comparison getan/project.py @ 485:726206815059

Removes dead code.
author Magnus Schieder <mschieder@intevation.de>
date Thu, 28 Jun 2018 16:27:09 +0200
parents 999a438474f2
children c8e63e919a90
comparison
equal deleted inserted replaced
484:40dd1e33c1dd 485:726206815059
108 # we add this attribute for use in jinja2 templates, 108 # we add this attribute for use in jinja2 templates,
109 # as filters like sort() or groupby() work only on attributes 109 # as filters like sort() or groupby() work only on attributes
110 # and sorting or grouping by day is common for reporting 110 # and sorting or grouping by day is common for reporting
111 self.startisoday = start.date().isoformat() 111 self.startisoday = start.date().isoformat()
112 112
113 # carefully handle non unicode string
114 # urwid seems to have some issue with plain str
115 if self.desc and not isinstance(self.desc, str):
116 self.desc = str(self.desc, locale.getpreferredencoding())
117
118 c = self.desc 113 c = self.desc
119 if c: 114 if c:
120 m = self.WORKPACKAGE.match(c) 115 m = self.WORKPACKAGE.match(c)
121 if m: 116 if m:
122 self.workpackage = m.group(1) 117 self.workpackage = m.group(1)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)