示例#1
0
文件: tool.py 项目: bendavis78/zope
 def listUpgrades(self, profile_id, show_old=False):
     """Get the list of available upgrades.
     """
     if show_old:
         source = None
     else:
         source = self.getLastVersionForProfile(profile_id)
     upgrades = listUpgradeSteps(self, profile_id, source)
     res = []
     for info in upgrades:
         if type(info) == list:
             subset = []
             for subinfo in info:
                 subset.append(self._massageUpgradeInfo(subinfo))
             res.append(subset)
         else:
             res.append(self._massageUpgradeInfo(info))
     return res
示例#2
0
文件: tool.py 项目: goschtl/zope
 def listUpgrades(self, profile_id, show_old=False):
     """Get the list of available upgrades.
     """
     if show_old:
         source = None
     else:
         source = self.getLastVersionForProfile(profile_id)
     upgrades = listUpgradeSteps(self, profile_id, source)
     res = []
     for info in upgrades:
         if type(info) == list:
             subset = []
             for subinfo in info:
                 subset.append(self._massageUpgradeInfo(subinfo))
             res.append(subset)
         else:
             res.append(self._massageUpgradeInfo(info))
     return res