Modify ↓
#1214 closed defect (duplicate)
Error "global name 'True' is not defined"
| Reported by: | Owned by: | Jonas Borgström | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wiki system | Version: | 0.8 |
| Severity: | major | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
After publishing a page (without preview), I got the following error:
Trac detected an internal error: global name 'True' is not defined
With the associated Python traceback:
Traceback (most recent call last):
File "/usr/lib/python2.1/site-packages/trac/core.py", line 525, in cgi_start
real_cgi_start()
File "/usr/lib/python2.1/site-packages/trac/core.py", line 520, in real_cgi_start
dispatch_request(path_info, args, req, env)
File "/usr/lib/python2.1/site-packages/trac/core.py", line 435, in dispatch_request
module.run()
File "/usr/lib/python2.1/site-packages/trac/Module.py", line 44, in run
self.render()
File "/usr/lib/python2.1/site-packages/trac/Wiki.py", line 339, in render
Formatter(self.req.hdf, self.env,self.db).format(self.page.text, out)
File "/usr/lib/python2.1/site-packages/trac/WikiFormatter.py", line 569, in format
result = re.sub(rules, self.replace, line)
File "/usr/lib/python2.1/sre.py", line 63, in sub
return _compile(pattern, 0).sub(repl, string, count)
File "/usr/lib/python2.1/sre.py", line 164, in _sub
return _subn(pattern, template, string, count)[0]
File "/usr/lib/python2.1/sre.py", line 185, in _subn
append(filter(m))
File "/usr/lib/python2.1/site-packages/trac/WikiFormatter.py", line 68, in replace
return getattr(self, '_' + itype + '_formatter')(match, fullmatch)
File "/usr/lib/python2.1/site-packages/trac/WikiFormatter.py", line 381, in _indent_formatter
self.in_list_item = True
NameError: global name 'True' is not defined
Thus, my page is unusable :-/
I checked ticket #1011 but I didn't use RST (I also applied the diff, but it was unsuccessfull).
I don't remember exactly what I typed, but perhaps it could be a problem with nested lists and/or titles.
Contextual informations: debian stable, python 2.1.3
Attachments (0)
Note:
See TracTickets
for help on using tickets.



Duplicate of #1003.