Esempio n. 1
0
    def workflowLessTypes(self):
        """Return workflow-less types (like tools).
        """

        tools = [c.getName() for c in
                 self.atgenerator.getGeneratedTools(self.package)
                 if not
                 utils.isTGVFalse(c.getTaggedValue('autoinstall'))]
        tools.sort()
        return tools
Esempio n. 2
0
 def _getWorklistGuardPermission(self, worklistname):
     """Returns the guard permission associated with the worklistname."""
     log.debug("Getting the guard permission for the worklist...")
     default = 'Review portal content' #XXX odd convention
     results = [s.getTaggedValue('worklist:guard_permissions')
                for s in self.sm.getStates(no_duplicates = 1)
                if s.getTaggedValue('worklist') == worklistname
                and s.getTaggedValue('worklist:guard_permissions')]
     if not results:
         log.debug("No tagged value found, returning the default: '%s'.",
                   default)
         return default
     # There might be more than one guard_permissions tgv, take the first
     result = results[0]
     log.debug("Tagged value(s) found, taking the first (or only) one: '%s'.",
               result)
     if utils.isTGVFalse(result):
         return None
     return result
Esempio n. 3
0
 def isTGVFalse(self, v):
     return utils.isTGVFalse(v)
Esempio n. 4
0
 def isTGVFalse(self,v):
     return utils.isTGVFalse(v)