tis-libreoffice-copyvisicells 1.1-0

  • package : tis-libreoffice-copyvisicells
  • version : 1.1-0
  • description : Copy only visible cells
  • maintainer : mcadorel-adm
  • date : 2017-07-20 11:21:15
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112115
  • min_os_version :
  • min_wapt_version :
  • 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)

    

manifest

[["WAPT/icon.png", "baaf8b9d6669107a1455a6cd9266bf8cea3bce19"], ["copyvisicells-1-1.oxt", "fd3792e2596a7a039b26b635b7b995a988076ae6"], ["WAPT/wapt.psproj", "f04519c0ccfbeb85b06eca00b99f20022d1685b3"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/control", "d1667a43b8308a6773b9f69fffcb6b563af5675e"], ["TempWmicBatchFile.bat", "15648fd8e5d1303e0339bfc602cd5c0a96edc26b"], ["setup.py", "1c48a81ebfe39ef1dca478264620cb31a85596c3"], ["WAPT/Thumbs.db", "c2d55f8f610ab877cedd580a91854087af28e9c2"]]