Example #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
Example #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
Example #3
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)
Example #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)
Example #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
Example #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
Example #7
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
Example #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
Example #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))
Example #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))
Example #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))
Example #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
Example #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))
Example #14
0
def _setAttribute(feature, attribute, value):
    try:
        feature.setAttribute(attribute, utils.strip(value))
    except Exception:
        pass
Example #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))
Example #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
Example #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))
Example #18
0
def _setAttribute(feature, attribute, value):
    try:
        feature.setAttribute(attribute, utils.strip(value))
    except Exception:
        pass