コード例 #1
0
 def setFixedPasswords(self, id=''): 
     '''setter method'''
     log.debug('setFixedPasswords on %s' % self.id)
     for prop in self._properties:
         prop_id = prop['id']
         if self.getPropertyType(prop_id) == 'password':
             log.debug("setting fixed passwor to %s" % self.getPassword(prop_id))
             ZenPropertyManager._setPropValue(self, prop_id, self.getPassword(prop_id))
コード例 #2
0
 def _setPropValue(self, id, value):
     '''
         Override from PropertyManager to 
         handle checks and binds
         Used by modeler.
     '''
     log.debug('_setPropValue object:%s property:%s value:%s' % (self.id, id, value))
     if self.getPropertyType(id) == 'password': 
         self._wrapperCheck(value)
         log.debug("found password type for %s on %s" % (id,self.id))
         ZenPropertyManager._setPropValue(self, id, self.encrypt(value))
     else: ZenPropertyManager._setPropValue(self, id, value)
コード例 #3
0
 def afterSetUp(self):
     """
     Test ZenPropertyManager that does not acquire a dmd attribute.
     """
     super(TransformerTest, self).afterSetUp()
     self.manager = ZenPropertyManager()