extending on the widgets I need. I'll look back if I get the change. Again,
thanks for your help. It saved me from adding more grey to my head!
Nicky
On 7/21/06, Christopher Arndt <[EMAIL PROTECTED]> wrote:
Nicky Ayoub wrote:
> I confirmed that the getVar() method works for me.
> As for the getattr(), the following error is thrown:
Soory, that should have been:
${getattr($aWidget, 'render')()}
Chris
Root.index of <useplex.controllers.Root object at 0xb76528ac>>
Traceback (most recent call last):
File "/home/nicky/TG1/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py", line 105, in _run
self.main()
File "/home/nicky/TG1/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py", line 254, in main
body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in index
File "/home/nicky/src/turbogears/turbogears/controllers.py", line 281, in expose
output = database.run_with_transaction(
File "<string>", line 5, in run_with_transaction
File "/home/nicky/src/turbogears/turbogears/database.py", line 245, in so_rwt
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "/home/nicky/src/turbogears/turbogears/controllers.py", line 298, in <lambda>
mapping, fragment, *args, **kw)))
File "/home/nicky/src/turbogears/turbogears/controllers.py", line 332, in _execute_func
return _process_output(output, template, format, content_type, mapping, fragment)
File "/home/nicky/src/turbogears/turbogears/controllers.py", line 73, in _process_output
mapping=mapping, content_type=content_type,fragment=fragment)
File "/home/nicky/src/turbogears/turbogears/view/base.py", line 127, in render
return turbogears.util.adapt_call(engine.render, **dict(info=info, format=format, fragment=fragment, template=template, mapping=mapping))
File "/home/nicky/src/turbogears/turbogears/util.py", line 161, in adapt_call
return func(*args, **kw)
File "/home/nicky/TG1/lib/python2.4/site-packages/TurboCheetah-0.9.5-py2.4.egg/turbocheetah/cheetahsupport.py", line 107, in render
return str(tempobj)
File "/home/nicky/python/useplex/useplex/templates/SiteTemplate.py", line 251, in respond
self.pagecontent(trans=trans)
File "<string>", line 122, in pagecontent
File "/home/nicky/src/turbogears/turbogears/widgets/base.py", line 188, in __call__
return self.display(*args, **params)
File "/home/nicky/src/turbogears/turbogears/widgets/meta.py", line 107, in lockwidget
output = self.__class__.display(self, *args, **kw)
File "/home/nicky/src/turbogears/turbogears/widgets/base.py", line 226, in display
return view.transform(params, template=self.template_c)
File "/home/nicky/src/turbogears/turbogears/view/base.py", line 132, in transform
return engine.transform(info, template)
File "/home/nicky/TG1/lib/python2.4/site-packages/TurboKid-0.9.5-py2.4.egg /turbokid/kidsupport.py", line 162, in transform
tclass = self.load_template(template)
File "/home/nicky/TG1/lib/python2.4/site-packages/TurboKid-0.9.5-py2.4.egg/turbokid/kidsupport.py", line 64, in load_template
raise ValueError, "All templates must be in a package"
ValueError: All templates must be in a package
--
--
Nicky Ayoub
G-Mail Account
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
- [TurboGears] Re: TurboCheetah template access to widgets and ... Nicky Ayoub

