Mantis Bug Tracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000010 [Cheetah] Templates minor have not tried 1969-12-31 19:33 1969-12-31 19:00
Reporter rtyler View Status public  
Assigned To rtyler
Priority normal Resolution fixed  
Status resolved   Product Version
Summary 0000010: Failure to execute templates on Google App Engine
Description Per: http://dotnetmafia.com/blogs/jamesashley/archive/2008/12/15/Google-App-Engine_2C00_-Cheetah_2C00_-and-imp.get_5F00_suffixes.aspx [^]

'module' object has no attribute 'get_suffixes'

Traceback (most recent call last): File "blah/main.py", line 132, in Twiddle result = self
.fill_view(variables)
File "blah/main.py", line 109, in fill_view return str(t)
File "blah/Cheetah/Template.py", line 982, in __str__ def __str__(self): return getattr(se
lf, mainMethName)()
File "blah/applications/init/views/whatever/default.py", line 96, in respond _v = VFFSL(SL
,"name",True) # '$name' on line 10, col 11
File "blah/Cheetah/NameMapper.py", line 255, in valueFromFrameOrSearchList frame = inspect
.stack()[1][0]
File "/tmp/python.6884/usr/lib/python2.5/inspect.py", line 885, in stack return getouterfr
ames(sys._getframe(1), context)
File "/tmp/python.6884/usr/lib/python2.5/inspect.py", line 866, in getouterframes framelis
t.append((frame,) + getframeinfo(frame, context))
File "/tmp/python.6884/usr/lib/python2.5/inspect.py", line 837, in getframeinfo filename =
 getsourcefile(frame) or getfile(frame)
File "/tmp/python.6884/usr/lib/python2.5/inspect.py", line 386, in getsourcefile for suffi
x, mode, kind in imp.get_suffixes(): AttributeError: 'module' object has no attribute 'get_suffixes'

Additional Information The necessary fix is to "monkey-patch" the "inspect" module.

inspect.imp.get_suffixes = lambda : [('.py', 'U', 1)]


Tags No tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0000011)
rtyler (administrator)
1969-12-31 19:33

832c25a:
User avatar (0000028)
rtyler (administrator)
1969-12-31 19:00

I had forgotten to push this from grapefruit, so it will go out in v2.2.2

- Issue History
Date Modified Username Field Change
1969-12-31 19:00 rtyler Note Added: 0000028
1969-12-31 19:00 rtyler Fixed in Version v2.2.0 => v2.2.2
1969-12-31 19:00 rtyler Target Version v2.2.0 => v2.2.2
1969-12-31 19:33 rtyler New Issue
1969-12-31 19:33 rtyler Status new => assigned
1969-12-31 19:33 rtyler Assigned To => rtyler
1969-12-31 19:33 rtyler Note Added: 0000011
1969-12-31 19:33 rtyler Status assigned => resolved
1969-12-31 19:33 rtyler Fixed in Version => v2.2.0
1969-12-31 19:33 rtyler Resolution open => fixed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker