Kevin Dangoor <[EMAIL PROTECTED]> writes:
> On 2/2/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>> I've tested Kevin's new commit (SVN r.622), sorry, I was out for the whole
>> morning.
>
> So, does use_old_controllers() work for you? :)
>
> Kevin
I put
turbogears.controllers.use_old_controllers()
as te second line on my controllers.py -- just after "import turbogears". It
showed me this message (twice)
/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py:362:
UserWarning: This is a temporary function that will be removed
once the new controller code has proved that it works.
warnings.warn("""This is a temporary function that will be removed
/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py:362:
UserWarning: This is a temporary function that will be removed
once the new controller code has proved that it works.
warnings.warn("""This is a temporary function that will be removed
and started the system.
And then, when I went to the said page (it is just one page where this
happens, login works fine, my main page works fine, all other pages on the
project works OK, just this one where I am using the DataGrid shows the
problem):
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
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/oldcontrollers.py",
line 241, in newfunc
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/oldcontrollers.py",
line 258, in _execute_func
output = func(self, *args, **kw)
File
"/home/godoy/empresa/clientes/latam/site_amostras/site_amostras/clientes.py",
line 35, in index
return self.clientes(cliente_id)
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/oldcontrollers.py",
line 244, in newfunc
tg_format, html, fragment, *args, **kw)
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/oldcontrollers.py",
line 263, in _execute_func
return _process_output(tg_format, output, html, fragment)
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/oldcontrollers.py",
line 63, in _process_output
output = view.render(output, tg_format, template=template,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 327, in generate
for ev, item in self.apply_filters(stream):
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/thirdparty/kid/kid/serialization.py",
line 84, in balancing_filter
for ev, item in stream:
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/thirdparty/kid/kid/pull.py",
line 206, in _coalesce
for ev, item in stream:
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/thirdparty/kid/kid/filter.py",
line 21, in transform_filter
for ev, item in apply_matches(stream, template, templates, apply_func):
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/thirdparty/kid/kid/filter.py",
line 31, in apply_matches
item = stream.expand()
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/thirdparty/kid/kid/pull.py",
line 95, in expand
for ev, item in self._iter:
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/thirdparty/kid/kid/pull.py",
line 164, in _track
for p in stream:
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/thirdparty/kid/kid/pull.py",
line 206, in _coalesce
for ev, item in stream:
File
"/home/godoy/empresa/clientes/latam/site_amostras/site_amostras/templates/clientes.py",
line 113, in _pull
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/widgets/base.py",
line 136, in insert
convert=convert, **kw),
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/widgets/base.py",
line 113, in create_dict
self.update_dict(d)
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/fastdata/datawidgets.py",
line 93, in update_dict
key = title + '-' + str(n) # avoid %s to avoid str() on title
TypeError: unsupported operand type(s) for +: 'lazystring' and 'str'
So, I believe that the problem is solved with oldcontrollers and now it is the
same as is reported in ticket #498. (This is the output without Unicode, but
with Unicode it is the same...)
The new controllers still doesn't work.
--
Jorge Godoy <[EMAIL PROTECTED]>