当前位置: 首页>>代码示例>>Python>>正文


Python PackageManager.rebuildRemappings方法代码示例

本文整理汇总了Python中arelle.PackageManager.rebuildRemappings方法的典型用法代码示例。如果您正苦于以下问题:Python PackageManager.rebuildRemappings方法的具体用法?Python PackageManager.rebuildRemappings怎么用?Python PackageManager.rebuildRemappings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在arelle.PackageManager的用法示例。


在下文中一共展示了PackageManager.rebuildRemappings方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: packageRemove

# 需要导入模块: from arelle import PackageManager [as 别名]
# 或者: from arelle.PackageManager import rebuildRemappings [as 别名]
 def packageRemove(self):
     if 0 <= self.selectedPackageIndex < len(self.packagesConfig["packages"]):
         packageInfo = self.packagesConfig["packages"][self.selectedPackageIndex]
         self.removePackageInfo(packageInfo["name"], packageInfo["version"])
         self.packagesConfigChanged = True
         PackageManager.rebuildRemappings()
         self.loadTreeViews()
开发者ID:JagdishIdhate,项目名称:Arelle,代码行数:9,代码来源:DialogPackageManager.py

示例2: addPackageInfo

# 需要导入模块: from arelle import PackageManager [as 别名]
# 或者: from arelle.PackageManager import rebuildRemappings [as 别名]
 def addPackageInfo(self, packageInfo):
     name = packageInfo["name"]
     version = packageInfo["version"]
     self.removePackageInfo(name, version)  # remove any prior entry for this package
     self.packageNamesWithNewerFileDates.discard(name) # no longer has an update available
     self.packagesConfig["packages"].append(packageInfo)
     PackageManager.rebuildRemappings()
     self.packagesConfigChanged = True
开发者ID:JagdishIdhate,项目名称:Arelle,代码行数:10,代码来源:DialogPackageManager.py

示例3: packageMoveDown

# 需要导入模块: from arelle import PackageManager [as 别名]
# 或者: from arelle.PackageManager import rebuildRemappings [as 别名]
 def packageMoveDown(self):
     if 0 <= self.selectedPackageIndex < len(self.packagesConfig["packages"]) - 1:
         packages = self.packagesConfig["packages"]
         packageInfo = packages[self.selectedPackageIndex]
         del packages[self.selectedPackageIndex]
         packages.insert(self.selectedPackageIndex + 1, packageInfo)
         self.packagesConfigChanged = True
         PackageManager.rebuildRemappings()
         self.loadTreeViews()
开发者ID:JagdishIdhate,项目名称:Arelle,代码行数:11,代码来源:DialogPackageManager.py

示例4: packageEnable

# 需要导入模块: from arelle import PackageManager [as 别名]
# 或者: from arelle.PackageManager import rebuildRemappings [as 别名]
 def packageEnable(self):
     if 0 <= self.selectedPackageIndex < len(self.packagesConfig["packages"]):
         packageInfo = self.packagesConfig["packages"][self.selectedPackageIndex]
         if self.packageEnableButton['text'] == self.ENABLE:
             packageInfo["status"] = "enabled"
             self.packageEnableButton['text'] = self.DISABLE
         elif self.packageEnableButton['text'] == self.DISABLE:
             packageInfo["status"] = "disabled"
             self.packageEnableButton['text'] = self.ENABLE
         self.packagesConfigChanged = True
         PackageManager.rebuildRemappings()
         self.loadTreeViews()
开发者ID:JagdishIdhate,项目名称:Arelle,代码行数:14,代码来源:DialogPackageManager.py

示例5: enableDisableAll

# 需要导入模块: from arelle import PackageManager [as 别名]
# 或者: from arelle.PackageManager import rebuildRemappings [as 别名]
 def enableDisableAll(self, doEnable):
     for iPkg in range(len(self.packagesConfig["packages"])):
         packageInfo = self.packagesConfig["packages"][iPkg]
         if doEnable:
             packageInfo["status"] = "enabled"
             self.packageEnableButton['text'] = self.DISABLE
         else:
             packageInfo["status"] = "disabled"
             self.packageEnableButton['text'] = self.ENABLE
     self.packagesConfigChanged = True
     PackageManager.rebuildRemappings(self.cntlr)
     self.loadTreeViews()
开发者ID:davidjbell,项目名称:Arelle,代码行数:14,代码来源:DialogPackageManager.py

示例6: packageReload

# 需要导入模块: from arelle import PackageManager [as 别名]
# 或者: from arelle.PackageManager import rebuildRemappings [as 别名]
 def packageReload(self):
     if 0 <= self.selectedPackageIndex < len(self.packagesConfig["packages"]):
         packageInfo = self.packagesConfig["packages"][self.selectedPackageIndex]
         url = packageInfo.get("URL")
         if url:
             packageInfo = PackageManager.packageInfo(url, reload=True, packageManifestName=packageInfo.get("manifestName"))
             if packageInfo:
                 self.addPackageInfo(packageInfo)
                 PackageManager.rebuildRemappings()
                 self.loadTreeViews()
                 self.cntlr.showStatus(_("{0} reloaded").format(packageInfo.get("name")), clearAfter=5000)
             else:
                 messagebox.showwarning(_("Package error"),
                                        _("File or package cannot be reloaded: \n\n{0}")
                                        .format(url),
                                        parent=self)
开发者ID:JagdishIdhate,项目名称:Arelle,代码行数:18,代码来源:DialogPackageManager.py


注:本文中的arelle.PackageManager.rebuildRemappings方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。