Modify ↓
Opened 6 years ago
Closed 6 years ago
#13451 closed defect (fixed)
Invalid format string on all pages containing WikiFormsPlugin
Reported by: | Owned by: | Ryan J Ollos | |
---|---|---|---|
Priority: | normal | Component: | WikiFormsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.0 |
Description (last modified by )
The example published on WikiFormsPlugin generates following error:
Traceback (most recent call last): File "E:\Python2715\lib\site-packages\trac\wiki\formatter.py", line 1191, in _exec_processor return processor.process(text) File "E:\Python2715\lib\site-packages\trac\wiki\formatter.py", line 364, in process text = self.processor(text) File "E:\Python2715\lib\site-packages\trac\wiki\formatter.py", line 351, in _macro_processor text) File "E:\Python2715\lib\site-packages\tracwikiforms-1.0.0.dev0-py2.7.egg\wikiforms\wikiforms.py", line 465, in expand_macro req.tz, req.locale) File "E:\Python2715\lib\site-packages\trac\util\datefmt.py", line 312, in format_datetime return _format_datetime(t, format, tzinfo, locale, 'datetime') File "E:\Python2715\lib\site-packages\trac\util\datefmt.py", line 299, in _format_datetime return _format_datetime_without_babel(t, format) File "E:\Python2715\lib\site-packages\trac\util\datefmt.py", line 246, in _format_datetime_without_babel text = t.strftime(str(format)) ValueError: Invalid format string
The problem is in the %T
directive (wikiforms\wikiforms.py
, line 465) which is unknown for strftime()
in Python 2.7.
Attachments (0)
Change History (4)
comment:1 Changed 6 years ago by
comment:2 Changed 6 years ago by
Description: | modified (diff) |
---|---|
Owner: | set to Ryan J Ollos |
Status: | new → accepted |
comment:3 Changed 6 years ago by
Works for me on OSX, but looks like a Windows vs Linux/Unix difference: SO:26140502.
Note: See
TracTickets for help on using
tickets.
The problem appears after the first submit.