Can anybody suggest me something to solve this problem?
The page, when the problem happens, is supposed to render a fastdatagrid
only.
================================================================================
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/_cphttptools.py", line 99, in _run
self.main()
File "/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/_cphttptools.py", line 247, in main
body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in index
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py", line 198, in expose
func, tg_format, html, fragment, *args, **kw)
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/database.py", line 193, in run_with_transaction
retval = func(*args, **kw)
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py", line 215, in _execute_func
output = errorhandling.try_call(func, self, *args, **kw)
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/errorhandling.py", line 64, in try_call
output = func(self, *args, **kw)
File "/home/godoy/empresa/clientes/latam/Site-Amostras/siteamostras/substancias.py", line 43, in index
return self.substancias(substancia_id)
File "<string>", line 3, in substancias
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py", line 193, in expose
output = _execute_func(self, func, tg_format, html, fragment,
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py", line 220, in _execute_func
return _process_output(tg_format, output, html, fragment)
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py", line 68, in _process_output
fragment=fragment)
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/view.py", line 60, in render
return engine.render(info, format, fragment, template)
File "/usr/lib/python2.4/site-packages/TurboKid-0.9.0-py2.4.egg/turbokid/kidsupport.py", line 136, in render
return t.serialize(encoding=self.defaultencoding, output=format, fragment=fragment)
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/thirdparty/kid/kid/__init__.py", line 236, in serialize
return serializer.serialize(self, encoding, fragment)
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/thirdparty/kid/kid/serialization.py", line 51, in serialize
text = list(self.generate(stream, encoding, fragment))
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/thirdparty/kid/kid/serialization.py", line 324, in generate
stream = iter(stream)
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/thirdparty/kid/kid/__init__.py", line 261, in __iter__
return iter(self.transform())
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/thirdparty/kid/kid/__init__.py", line 316, in transform
stream = self.pull()
File "/home/godoy/desenvolvimento/python/TurboGears/trunk/thirdparty/kid/kid/__init__.py", line 275, in pull
self.initialize()
File "/home/godoy/empresa/clientes/latam/Site-Amostras/siteamostras/templates/form_generico.py", line 20, in initialize
File "/home/godoy/empresa/clientes/latam/Site-Amostras/siteamostras/templates/master.py", line 19, in initialize
TypeError: 'NoneType' object is not callable
================================================================================
TIA,
--
Jorge Godoy <jgo...@gmail.com>
Max.
> Are you sure the error can't be caused by mere programming logic error
> -- e.g. you try to call None in your template?
Positively sure. If it was like that, it wouldn't have worked before and it
wouldn't work with just a refresh of the page after the restart.
--
Jorge Godoy <jgo...@gmail.com>
Keith
Ciao
Michele
> I was getting the same error some times ago in fastdata, are you
> running the latests kid and turbokid?
I am. TurboKid 0.9? I've tried easy_install before reporting this error
here. And I'm using Kid from SVN trunk.
--
Jorge Godoy <jgo...@gmail.com>
Keith
run "tg-admin info" anywhere to see what all you have installed.
Also, Turbokid is in plugins/kid, not thirdparty/kid (kid is there).
I'm also running into this error, with TurboKid 0.9.0 and kid 0.8. Kid
0.9 gives me a bizarre sitetemplate error that I've been unable to
track down. Just upgraded to turbokid 0.9.1, so I'm hoping it'll clear
up.
Mike
Cheers,
P.
Anyone got any advice, here my tg-admin info:
TurboGears 0.9a1
nose 0.8.4
RuleDispatch 0.5a0
setuptools 0.6a10
FormEncode 0.4
cElementTree 1.0.5-20051216
PasteScript 0.4.1
elementtree 1.2.6
simplejson 1.1
SQLObject 0.7.1dev-r1457
CherryPy 2.2.0-beta
TurboKid 0.9.0
PyProtocols 1.0a0
INITools 0.2dev-r1029
PasteDeploy 0.3
Paste 0.3
FormEncode 0.4
kid 0.8
elementtree 1.2.6
I think you should upgrade your TurboKid.
Ciao
Michele
Just tried, tells me 0.9.0 is already the active version? is there a
specific development version I need?
how are you trying to get the new version?
the best way to get the latest of turbokid is to go into the
plugins/kid dir of your trunk checkout, and run "easy_install ."
I haven't upgraded since february 20th (if it isn't broken, don't fix
it), and my turbokid version is 0.9.1dev-r787
Also, you might try doing the same thing for kid (but it's in
thirdparty/kid) - I noticed your version is 0.8. Mine is 0.9. I
believe the fix has been in turbokid, but this might be something else
to try.
I don't know if the above instructions work with the alpha release.
Haven't tried it yet. If those folders exist, though, give it a shot.
-Mike