Hi,

I've just updated to Turbogears 0.9a (r556) and i'm having a play with
the datacontroller (which seems very nice).  I can view the root
datacontroller page and it lists the entries in the database but when I
click on add, edit or delete I get an exception:

Page handler: <bound method DataController.add of
<turbogears.fastdata.datacontroller.DataController object at
0x40996ccc>>
Traceback (most recent call last):
  File
"/var/www/testpython/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/_cphttptools.py",
line 98, in _run
    self.main()
  File
"/var/www/testpython/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/_cphttptools.py",
line 246, in main
    body = page_handler(*virtual_path, **self.params)
  File
"/var/www/testpython/lib/python2.4/site-packages/TurboGears-0.9a0dev_r556-py2.4.egg/turbogears/controllers.py",
line 240, in newfunc
    html, fragment, *args, **kw)
  File
"/var/www/testpython/lib/python2.4/site-packages/TurboGears-0.9a0dev_r556-py2.4.egg/turbogears/database.py",
line 189, in run_with_transaction
    retval = func(*args, **kw)
  File
"/var/www/testpython/lib/python2.4/site-packages/TurboGears-0.9a0dev_r556-py2.4.egg/turbogears/controllers.py",
line 262, in _execute_func
    return _process_output(tg_format, output, html, fragment)
  File
"/var/www/testpython/lib/python2.4/site-packages/TurboGears-0.9a0dev_r556-py2.4.egg/turbogears/controllers.py",
line 62, in _process_output
    output = view.render(output, tg_format,
template=template,fragment=fragment)
  File
"/var/www/testpython/lib/python2.4/site-packages/TurboGears-0.9a0dev_r556-py2.4.egg/turbogears/view.py",
line 57, in render
    return engine.render(info, format, fragment, template)
  File
"/var/www/testpython/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
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/__init__.py",
line 232, in serialize
    return serializer.serialize(self, encoding, fragment)
  File
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/serialization.py",
line 51, in serialize
    text = list(self.generate(stream, encoding, fragment))
  File
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/serialization.py",
line 319, in generate
    for ev, item in self.apply_filters(stream):
  File
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/serialization.py",
line 77, in balancing_filter
    for ev, item in stream:
  File
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/pull.py",
line 203, in _coalesce
    for ev, item in stream:
  File
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/filter.py",
line 21, in transform_filter
    for ev, item in apply_matches(stream, template, templates,
apply_func):
  File
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/filter.py",
line 31, in apply_matches
    item = stream.expand()
  File
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/pull.py",
line 95, in expand
    for ev, item in self._iter:
  File
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/pull.py",
line 164, in _track
    for p in stream:
  File
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/pull.py",
line 203, in _coalesce
    for ev, item in stream:
  File
"/var/www/testpython/lib/python2.4/site-packages/TurboGears-0.9a0dev_r556-py2.4.egg/turbogears/fastdata/templates/form.py",
line 53, in _pull
  File
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/filter.py",
line 21, in transform_filter
    for ev, item in apply_matches(stream, template, templates,
apply_func):
  File
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/filter.py",
line 25, in apply_matches
    for ev, item in stream:
  File
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/pull.py",
line 164, in _track
    for p in stream:
  File
"/var/www/testpython/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/pull.py",
line 203, in _coalesce
    for ev, item in stream:
  File "<string>", line 29, in _pull
NameError: name 'value_of' is not defined


This is a project I quickstarted a few minutes ago - i've removed
master.kid in case that was doing anything strange but I can't really
think of anything else to try at the exception means nothing to me.

Anyone else come across a problem like this? Any ideas?

I also had a problem with catwalk and sqlite ( seems to be
http://trac.turbogears.org/turbogears/ticket/249 ), i've added my
experience to that ticket.

Thanks,

Jamie

Reply via email to