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)
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
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))
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))
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))
def attributes(self): attrs = {} attrs['site'] = utils.strip(self._siteCode) attrs['class'] = utils.strip(self._classCode) attrs['id'] = utils.strip(self._itemId) return attrs
def _setAttribute(feature, attribute, value): try: feature.setAttribute(attribute, utils.strip(value)) except Exception: pass