I started getting this famous error, what didn't happened before.  I noticed
that this happens when I enter several forms of mine.  If I restart the
application and reload the page, it works perfectly...  Then, I start
navigating and after four or five pages (other forms), it happens again -- and
then, every form fails...

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      <[EMAIL PROTECTED]>

Reply via email to