Changeset 8234 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 20 Apr 2012, 11:27:59 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/tests/test_accesscode.py
r8194 r8234 233 233 # Access codes have a history. 234 234 match = re.match( 235 '^....-..-.. ..:..:.. . .... .+ - initialized by system',235 '^....-..-.. ..:..:.. .+ - initialized by system', 236 236 self.ac1.history) 237 237 assert match is not None … … 300 300 "prefix","serial","ac","state","history" 301 301 "FOO","9.99","1","0" 302 "FOO","0","FOO-1-11111111","used","<YYYY-MM-DD hh:mm:ss TZ>- ..."303 "FOO","1","FOO-1-22222222","initialized","<YYYY-MM-DD hh:mm:ss TZ>- ..."304 "FOO","2","FOO-1-33333333","disabled","<YYYY-MM-DD hh:mm:ss TZ>- ..."302 "FOO","0","FOO-1-11111111","used","<YYYY-MM-DD hh:mm:ss> UTC - ..." 303 "FOO","1","FOO-1-22222222","initialized","<YYYY-MM-DD hh:mm:ss> UTC - ..." 304 "FOO","2","FOO-1-33333333","disabled","<YYYY-MM-DD hh:mm:ss> UTC - ..." 305 305 '''[1:] 306 306 contents = open(result_path, 'rb').read() -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py
r8186 r8234 332 332 if not getattr(doc, 'kofa_nodate', False): 333 333 tz = getUtility(IKofaUtils).tzinfo 334 today = now(tz).strftime('%d/%m/%Y %H:%M:%S % z %Z')334 today = now(tz).strftime('%d/%m/%Y %H:%M:%S %Z') 335 335 canvas.drawString(2.2*cm, 0.5 * inch, 336 336 translate(_(u'Date: ${a}', mapping = {'a': today}))) -
main/waeup.kofa/trunk/src/waeup/kofa/hostels/hostel.py
r8186 r8234 210 210 bedticket.bed = None 211 211 tz = getUtility(IKofaUtils).tzinfo 212 timestamp = now(tz).strftime("%Y-%m-%d %H:%M:%S % z %Z")212 timestamp = now(tz).strftime("%Y-%m-%d %H:%M:%S %Z") 213 213 bedticket.bed_coordinates = u'-- booking cancelled on %s --' % ( 214 214 timestamp,) -
main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py
r8186 r8234 284 284 self.browser.contents) 285 285 self.assertMatches(bedticket.bed_coordinates, 286 u' -- booking cancelled on <YYYY-MM-DD hh:mm:ss TZ>--')286 u' -- booking cancelled on <YYYY-MM-DD hh:mm:ss> UTC --') 287 287 # If we release a free be, nothing will happen 288 288 ctrl = self.browser.getControl(name='val_id') -
main/waeup.kofa/trunk/src/waeup/kofa/objecthistory.py
r8186 r8234 61 61 msgs = self._getMessages() 62 62 tz = getUtility(IKofaUtils).tzinfo 63 timestamp = now(tz).strftime("%Y-%m-%d %H:%M:%S % z %Z")63 timestamp = now(tz).strftime("%Y-%m-%d %H:%M:%S %Z") 64 64 user = get_current_principal() 65 65 if user is None: -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r8186 r8234 209 209 frame_footer = Frame(1*cm,0,width-(2*cm),1*cm) 210 210 tz = getUtility(IKofaUtils).tzinfo 211 timestamp = now(tz).strftime("%d/%m/%Y %H:%M:%S % z %Z")211 timestamp = now(tz).strftime("%d/%m/%Y %H:%M:%S %Z") 212 212 left_text = '<font size=10>%s</font>' % timestamp 213 213 story.append(Paragraph(left_text, style["Normal"])) -
main/waeup.kofa/trunk/src/waeup/kofa/tests/test_objecthistory.py
r8186 r8234 80 80 hist.addMessage('blah') 81 81 result = ''.join(hist.messages) 82 self.assertMatches('<YYYY-MM-DD hh:mm:ss TZ>- blah by system', result)82 self.assertMatches('<YYYY-MM-DD hh:mm:ss> UTC - blah by system', result) 83 83 84 84 def test_add_messages_existing_principal(self): … … 89 89 hist.addMessage('blah') 90 90 result = ''.join(hist.messages) 91 self.assertMatches('<YYYY-MM-DD hh:mm:ss TZ>- blah by Bob', result)91 self.assertMatches('<YYYY-MM-DD hh:mm:ss> UTC - blah by Bob', result) 92 92 93 93 def test_messages(self):
Note: See TracChangeset for help on using the changeset viewer.