Exemple #1
0
 def attributes(self):
     attrs = {}
     attrs['creator'] = utils.strip(self.creator())
     attrs['created'] = utils.strip(self.created())
     attrs['modifier'] = utils.strip(self.modifier())
     attrs['modified'] = utils.strip(self.modified())
     return attrs
Exemple #2
0
 def attributes(self):
     attrs = {}
     attrs['creator'] = utils.strip(self.creator())
     attrs['created'] = utils.strip(self.created())
     attrs['modifier'] = utils.strip(self.modifier())
     attrs['modified'] = utils.strip(self.modified())
     return attrs
 def toFeature(self, feature):
     self._item.toFeature(feature)
     feature.setAttribute('label', utils.strip(self._label))
     feature.setAttribute('category', utils.strip(self._category))
     self._source.toFeature(feature)
     feature.setAttribute('comment', utils.strip(self._comment))
     self._audit.toFeature(feature)
Exemple #4
0
 def toFeature(self, feature):
     self._item.toFeature(feature)
     feature.setAttribute('label', utils.strip(self._label))
     feature.setAttribute('category', utils.strip(self._category))
     self._source.toFeature(feature)
     feature.setAttribute('comment', utils.strip(self._comment))
     self._audit.toFeature(feature)
Exemple #5
0
 def attributes(self):
     attrs = {}
     attrs = self._item.attributes()
     attrs['source_cd'] = utils.strip(self.sourceCode())
     attrs['source_cl'] = utils.strip(self.item().classCode())
     attrs['source_id'] = utils.strip(self.item().itemId())
     attrs['file'] = utils.strip(self.filename())
     return attrs
Exemple #6
0
 def attributes(self):
     attrs = {}
     attrs = self._item.attributes()
     attrs['source_cd'] = utils.strip(self.sourceCode())
     attrs['source_cl'] = utils.strip(self.item().classCode())
     attrs['source_id'] = utils.strip(self.item().itemId())
     attrs['file'] = utils.strip(self.filename())
     return attrs
 def attributes(self):
     attrs = {}
     attrs.update(self.item().attributes())
     attrs['label'] = utils.strip(self._label)
     attrs['category'] = utils.strip(self._category)
     attrs.update(self.source().attributes())
     attrs['comment'] = utils.strip(self._comment)
     attrs.update(self.audit().attributes())
     return attrs
Exemple #8
0
 def attributes(self):
     attrs = {}
     attrs.update(self.item().attributes())
     attrs['label'] = utils.strip(self._label)
     attrs['category'] = utils.strip(self._category)
     attrs.update(self.source().attributes())
     attrs['comment'] = utils.strip(self._comment)
     attrs.update(self.audit().attributes())
     return attrs
Exemple #9
0
 def toFeature(self, feature):
     feature.setAttribute('creator', utils.strip(self._creator))
     feature.setAttribute('created', utils.strip(self._created))
     feature.setAttribute('modifier', utils.strip(self._modifier))
     feature.setAttribute('modified', utils.strip(self._modified))
Exemple #10
0
 def toFeature(self, feature):
     feature.setAttribute('source_cd', utils.strip(self._code))
     feature.setAttribute('source_cl', utils.strip(self.item().classCode()))
     feature.setAttribute('source_id', utils.strip(self.item().itemId()))
     feature.setAttribute('file', utils.strip(self._filename))
Exemple #11
0
 def toFeature(self, feature):
     feature.setAttribute('site', utils.strip(self._siteCode))
     feature.setAttribute('class', utils.strip(self._classCode))
     feature.setAttribute('id', utils.strip(self._itemId))
Exemple #12
0
 def attributes(self):
     attrs = {}
     attrs['site'] = utils.strip(self._siteCode)
     attrs['class'] = utils.strip(self._classCode)
     attrs['id'] = utils.strip(self._itemId)
     return attrs
Exemple #13
0
 def toFeature(self, feature):
     feature.setAttribute('creator', utils.strip(self._creator))
     feature.setAttribute('created', utils.strip(self._created))
     feature.setAttribute('modifier', utils.strip(self._modifier))
     feature.setAttribute('modified', utils.strip(self._modified))
Exemple #14
0
def _setAttribute(feature, attribute, value):
    try:
        feature.setAttribute(attribute, utils.strip(value))
    except Exception:
        pass
Exemple #15
0
 def toFeature(self, feature):
     feature.setAttribute('site', utils.strip(self._siteCode))
     feature.setAttribute('class', utils.strip(self._classCode))
     feature.setAttribute('id', utils.strip(self._itemId))
Exemple #16
0
 def attributes(self):
     attrs = {}
     attrs['site'] = utils.strip(self._siteCode)
     attrs['class'] = utils.strip(self._classCode)
     attrs['id'] = utils.strip(self._itemId)
     return attrs
Exemple #17
0
 def toFeature(self, feature):
     feature.setAttribute('source_cd', utils.strip(self._code))
     feature.setAttribute('source_cl', utils.strip(self.item().classCode()))
     feature.setAttribute('source_id', utils.strip(self.item().itemId()))
     feature.setAttribute('file', utils.strip(self._filename))
Exemple #18
0
def _setAttribute(feature, attribute, value):
    try:
        feature.setAttribute(attribute, utils.strip(value))
    except Exception:
        pass