I'm using version 1.0
The following lines in my start.py changes tg behavior about using kid/genshi.

import toscawidgets
from toscawidgets.mods.tg import Turbogears
toscawidgets.framework = Turbogears(None)

Whithout these lines I have no more the errors:
ValueError: need more than 2 values to unpack
or
ValueError: too many values to unpack
and I am able to use genshi and kid as in version 1.0b2 but ToscaWidgets.

Could someone tell me please, how to configure my tg to use ToscaWidgets and widgest with genshi and kid?

jo

jose wrote:


I would like to use both kid and genshi in the same project.
I see if my app.cfg has:

tg.defaultview = "kid" or None

when I try to view a genshi template tg gives me this error:
....
 File "build/bdist.linux-i686/egg/genshi/template.py", line 902, in _eval
File "build/bdist.linux-i686/egg/genshi/template.py", line 954, in _flatten

ValueError: need more than 2 values to unpack
----------------------------------------
on the other side when I change my app.cfg as:

tg.defaultview = "genshi"

for every page with a kid template tg gives me this error:
...
   for p in stream:
File "/usr/lib/python2.4/site-packages/kid-0.9.3-py2.4.egg/kid/pull.py", line 210, in _coalesce
   for ev, item in stream:
ValueError: too many values to unpack
----------------------------------
In my controllers I define the templates with prefix kid: or genshi as in:
   @expose(template="kid:sicer.templates.tabella.index")
or
   @expose(template="genshi:sicer.templates.tabella.index")


What can I do to having both templates kind together?

jo





>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to