Tranquil IT recrute Tranquil IT recrute

tis-libreoffice-numbertext

Version : 0.9.5-1

Download
  • package : tis-libreoffice-numbertext
  • editor :
  • version : 0.9.5-1
  • licence :
  • architecture : all
  • locale :
  • description : Extension LibreOffice pour ecrire les nombres en lettres et en devises
  • description_fr :
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • installed_size :
  • impacted_process :
  • signature_date : 20180227-190157
  • maintainer : mcadorel-adm
  • Depends :

setup.py

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

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

# command(s) to launch to remove the application(s)
uninstallstring = []

# list of required parameters names (string) which can be used during install
required_params = []


def install():
    extension_name = 'numbertext-0.9.5.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)

    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-libreoff-numbertext')
        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: fr.starxpert.extensions.multidiff
    extension_identifier = 'org.numbertext-calc-addin'

    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('uninstalling tis-libreoffice-multidiff')
        print (cmd)
        run(cmd)
			

Changelog

"""{% trans %}No changelog.{% endtrans %}"""
			

manifest.sha256

[["WAPT/icon.png", "ba3c6c1437d4641c1d3599133198eff40a73baad1e56d78b4c920ac23ea3ce07"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "af0bfb79cfa2e2f1cecd14449c2360511f9c4d7bd9898cdf4789512f062955d4"], ["WAPT/control", "97fa4fdb8750f9a3b69b1c2139249251babeadd2dd2284ba8ae7db1604073417"], ["TempWmicBatchFile.bat", "d3be9ec618c982a1971bc1547125821bcc939af4a22145d7f9da6a4b63f4addc"], ["setup.py", "18514c0cece15db61bb8bf260cecd9a92ffaa5185c8c01bcce7f001b763ffa63"], ["numbertext-0.9.5.oxt", "1568ed1d2feb8210bb5de61d69574a165cded536cfa17c6953c9064076469de2"], ["WAPT/Thumbs.db", "d2a5f3fcc9b48332ae16b23427e32d8826c02f3ac05355ecc5c764efc7233220"]]