#884: TypeError: 'NoneType' object is not callable in master.py
------------------------------------+---------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Kid | Version: 0.9a6
Severity: normal | Keywords:
------------------------------------+---------------------------------------
Our old friend, NoneType is not callable has come back:
{{{
Page handler: <bound method Root.default of <gotoed.controllers.news.Root
object at 0x2a9a170d50>>
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-
packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py", line 105, in
_run
self.main()
File "/usr/local/lib/python2.4/site-
packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py", line 254, in
main
body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in default
File "/usr/local/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/controllers.py", line 273, in expose
output = database.run_with_transaction(
File "/usr/local/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/database.py", line 221, in run_with_transaction
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "/usr/local/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/controllers.py", line 290, in <lambda>
mapping, fragment, *args, **kw)))
File "/usr/local/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/controllers.py", line 314, in _execute_func
output = errorhandling.try_call(func, *args, **kw)
File "/usr/local/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/errorhandling.py", line 71, in try_call
return func(self, *args, **kw)
File "/www/gotoed/gotoed/controllers/news.py", line 119, in default
return self.drug(d)
File "<string>", line 3, in drug
File "/usr/local/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/controllers.py", line 269, in expose
output = func._expose(func, accept, func._allow_json,
File "<string>", line 5, in _expose
File "/usr/local/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/controllers.py", line 290, in <lambda>
mapping, fragment, *args, **kw)))
File "/usr/local/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/controllers.py", line 324, in _execute_func
return _process_output(output, template, format, content_type,
mapping, fragment)
File "/usr/local/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/controllers.py", line 65, in _process_output
fragment=fragment)
File "/usr/local/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/view/base.py", line 131, in render
return engine.render(**kw)
File "/usr/local/lib/python2.4/site-
packages/TurboKid-0.9.5-py2.4.egg/turbokid/kidsupport.py", line 156, in
render
return t.serialize(encoding=self.defaultencoding, output=format,
fragment=fragment)
File "/usr/local/lib/python2.4/site-
packages/kid-0.9.1-py2.4.egg/kid/__init__.py", line 236, in serialize
return serializer.serialize(self, encoding, fragment)
File "/usr/local/lib/python2.4/site-
packages/kid-0.9.1-py2.4.egg/kid/serialization.py", line 51, in serialize
text = list(self.generate(stream, encoding, fragment))
File "/usr/local/lib/python2.4/site-
packages/kid-0.9.1-py2.4.egg/kid/serialization.py", line 324, in generate
stream = iter(stream)
File "/usr/local/lib/python2.4/site-
packages/kid-0.9.1-py2.4.egg/kid/__init__.py", line 261, in __iter__
return iter(self.transform())
File "/usr/local/lib/python2.4/site-
packages/kid-0.9.1-py2.4.egg/kid/__init__.py", line 316, in transform
stream = self.pull()
File "/usr/local/lib/python2.4/site-
packages/kid-0.9.1-py2.4.egg/kid/__init__.py", line 275, in pull
self.initialize()
File "/www/gotoed/gotoed/templates/news_drug.py", line 22, in initialize
File "/www/gotoed/gotoed/templates/master.py", line 25, in initialize
TypeError: 'NoneType' object is not callable
}}}
I think this is related to either SO or Kid - I am using SO in my Kid
template.
Behaviour goes away when I restart the server. Maybe this is related to
modifying master.kid? I have modified master.kid without a restart before
though, and it doesn't exhibit immediately. This happens on the page above
and on my "/" page.
SO calls are in master.kid
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/884>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---