Skip to content

Commit 9a79b9b

Browse files
committed
Use variables for creator and responsible
1 parent 0b8021e commit 9a79b9b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

opengever/maintenance/scripts/cmi_to_gever/converter.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
class TI2036Config(object):
2828
"""Configuration object for https://4teamwork.atlassian.net/browse/TI-2036
2929
"""
30+
CREATOR = 'zopemaster'
31+
RESPONSIBLE = CREATOR
32+
3033
REVIEW_STATE_MAPPING = {
3134
u'Offen': u"dossier-state-active",
3235
u'Restriktiv': u"dossier-state-active",
@@ -390,15 +393,15 @@ def documents(self):
390393

391394
def convert(self):
392395
return {
393-
u"_creator": u"zopemaster",
396+
u"_creator": self.config.CREATOR,
394397
u"guid": self.data.get('guid'),
395398
u"description": self.data.get('bemerkung'),
396399
u"title": self.data.get('titel'),
397400
u"end": self.end_date,
398401
u"start": self.start_date,
399402
u"review_state": self.config.REVIEW_STATE_MAPPING.get(self.data.get(self.REVIEW_STATE_KEY)),
400403
u"parent_reference": self.config.PARENT_REFERENCE_MAPPING.get(self.data.get(self.PARENT_REFERENCE_KEY)),
401-
u"responsible": u"zopemaster",
404+
u"responsible": self.config.RESPONSIBLE,
402405
}
403406

404407

0 commit comments

Comments
 (0)