tis-libreoffice-copyvisicells 1.1-0

  • package : tis-libreoffice-copyvisicells
  • version : 1.1-0
  • description : Copy only visible cells
  • maintainer : mcadorel-adm
  • date : 2018-02-27 19:01:50
  • Depends :

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey=[]

def install():
    extension_name = 'copyvisicells-1-1.oxt'
    killalltasks('soffice.exe', 'soffice.bin')
    # ce verrou ne disparaît pas toujours à la fermeture de LibreOffice
    lock_path = os.path.join(application_data(),'LibreOffice','4','.lock')
    remove_file(lock_path)

    print ("installing copyvisicells libreoffice extension")
    for install_dir in  glob.glob(programfiles32 + '\\LibreOffice*'):
        unopkg_com = os.path.join(install_dir,'program','unopkg.com')
        cmd = r'"%(unopkg_com)s" add --suppress-license --force --shared %(extension_name)s' % {'unopkg_com':unopkg_com,'extension_name':extension_name}
        print('installing tis-libreoffice-copyvisicells')
        run(cmd)

def uninstall():
    # pour recuperer l'identifiant de desinstallation,
    # lancer la commande suivante :
    # C:\Program Files (x86)\LibreOffice 4\program>unopkg.com list --shared
    # puis recuperer l'identifiant sur la ligne qui commence par :
    # Identifier: org.broffice.copyonlyvisiblecells
    extension_identifier = 'org.broffice.copyonlyvisiblecells'

    killalltasks('soffice.exe', 'soffice.bin')
    lock_path = os.path.join(application_data(),'LibreOffice','4','.lock')
    remove_file(lock_path)

    for install_dir in  glob.glob(programfiles32 + '\\LibreOffice*'):
        unopkg_com = os.path.join(install_dir,'program','unopkg.com')
        cmd = r'"%(unopkg_com)s" remove --suppress-license --shared %(extension_identifier)s' % {'unopkg_com':unopkg_com,'extension_identifier':extension_identifier}
        print (cmd)
        print('uninstalling tis-libreoffice-copyvisicells')
        run(cmd)

    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "ba3c6c1437d4641c1d3599133198eff40a73baad1e56d78b4c920ac23ea3ce07"], ["copyvisicells-1-1.oxt", "61632c659b2edf8713c9c3f2a42340ee495e01d3cb703af90a5166cac74a9484"], ["WAPT/wapt.psproj", "caaf6b783a66e5d47efa0fb013dbfb1032dc4f49cb743abbb04ee9da55bfe52e"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/control", "8b72a7f1d4024815f4df4e3127957db8a233cf6b3ea5572934db5cf2bf6d12c0"], ["TempWmicBatchFile.bat", "d3be9ec618c982a1971bc1547125821bcc939af4a22145d7f9da6a4b63f4addc"], ["setup.py", "986718e7abcf7f924d6d7c37f83148ee90865b1d245afa716c781615ed2ded32"], ["WAPT/Thumbs.db", "5ecae5e36620d54d551b90d9d2d8e83e007fb0a00f82de989b1de98f6c55106a"]]