Grammalecte  Check-in [c88678ec25]

Overview
Comment:[lo] update: text formatter uses helpers
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | lo | multid
Files: files | file ages | folders
SHA3-256: c88678ec25defa7f005c924d63e8ae17500fee2db54293a9c138438f72bae9ca
User & Date: olr on 2018-02-19 12:38:07
Other Links: branch diff | manifest | tags
Context
2018-02-19
12:39
[lo] remove print check-in: a6c452056b user: olr tags: lo, multid
12:38
[lo] update: text formatter uses helpers check-in: c88678ec25 user: olr tags: lo, multid
12:37
[lo] update: helpers check-in: 12ad381687 user: olr tags: lo, multid
Changes

Modified gc_lang/fr/oxt/TextFormatter/TextFormatter.py from [6fb58f6672] to [652166f86d].

   381    381               # create options dictionary
   382    382               dOpt = {}
   383    383               for key, lWidget in self.dCheckboxWidgets.items():
   384    384                   w = getattr(self, key)
   385    385                   dOpt[w.Name] = w.State
   386    386                   for w in lWidget:
   387    387                       dOpt[w.Name] = w.State
   388         -            # get extension path
   389         -            xDefaultContext = self.ctx.ServiceManager.DefaultContext
   390         -            xPackageInfoProvider = xDefaultContext.getValueByName("/singletons/com.sun.star.deployment.PackageInformationProvider")
   391         -            sExtPath = xPackageInfoProvider.getPackageLocation("French.linguistic.resources.from.Dicollecte.by.OlivierR")
   392         -            sExtPath = sExtPath[8:] + "/pythonpath/tf_options.py"  # remove "file:///"
   393         -            sExtPath = os.path.abspath(sExtPath)
   394    388               # write file
          389  +            sExtPath = helpers.getAbsolutePathOf("/pythonpath/tf_options.py")
   395    390               if os.path.isfile(sExtPath):
          391  +                print(sExtPath)
   396    392                   hOpt = open(sExtPath, "w")
   397    393                   hOpt.write("dDefaultOpt = " + str(tf_options.dDefaultOpt) + "\n")
   398    394                   hOpt.write("dOpt = " + str(dOpt))
   399    395                   hOpt.close()
   400    396           except:
   401    397               traceback.print_exc()
   402    398