in line 233 of tgwebservices/controllers.py
is defined a templated named 'wsautoxml':

@tgexpose("wsautoxml", allow_json=True, accept_format="text/xml")

when kid try to render data it doesn't find 'wsautoxml.kid' in any package

What is that wsautoxml.kid template? I can't find it in anywhere.

j

jo ha scritto:
> Hi all,
>
> I'm playing with the tgwebservices  examples  but I have a an error 
> using it without tg_format.
> using tg_format=json it returns data OK, but without tg_format parameter 
> it returns an error...
> I tried using tg_format=xml , text, html  but I have the same result...
> what are the valid values for tg_format?
>
> http://mysite/tgwebservices/times2?value=3&tg_format=json
>
> {"result": 6}
>
> http://mysite/tgwebservices/times2?value=3
>
>
> Unrecoverable error in the server.
>
> ===First Error===
>
> Page handler: <bound method Services.times2 of 
> <sicer.controllers.varie.webservices.Services object at 0xa04db4c>>
> Traceback (most recent call last):
>   File "/var/lib/python-support/python2.4/cherrypy/_cphttptools.py", line 
> 105, in _run
>     self.main()
>   File "/var/lib/python-support/python2.4/cherrypy/_cphttptools.py", line 
> 254, in main
>     body = page_handler(*virtual_path, **self.params)
>   File "/usr/lib/python2.4/site-packages/tgwebservices/controllers.py", line 
> 119, in newfunc
>     return tgfunc(self, **kw)
>   File "<string>", line 3, in d_w_r
>   File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 
> 342, in expose
>     output = database.run_with_transaction(
>   File "<string>", line 5, in run_with_transaction
>   File "/var/lib/python-support/python2.4/turbogears/database.py", line 373, 
> in sa_rwt
>     retval = dispatch_exception(e,args,kw)
>   File "/var/lib/python-support/python2.4/turbogears/database.py", line 356, 
> in sa_rwt
>     retval = func(*args, **kw)
>   File "<string>", line 5, in _expose
>   File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 
> 359, in <lambda>
>     mapping, fragment, args, kw)))
>   File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 
> 399, in _execute_func
>     return _process_output(output, template, format, content_type, mapping, 
> fragment)
>   File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 
> 86, in _process_output
>     fragment=fragment)
>   File "/var/lib/python-support/python2.4/turbogears/view/base.py", line 129, 
> in render
>     return engine.render(**kw)
>   File "/var/lib/python-support/python2.4/turbokid/kidsupport.py", line 182, 
> in render
>     tclass = self.load_template(template)
>   File "/var/lib/python-support/python2.4/turbokid/kidsupport.py", line 100, 
> in load_template
>     raise ValueError, "All Kid templates must be in a package"
> ValueError: All Kid templates must be in a package
>
>
> ===Second Error===
>
> Traceback (most recent call last):
>   File "/var/lib/python-support/python2.4/cherrypy/_cphttptools.py", line 
> 425, in handleError
>     _cputil.get_special_attribute('_cp_on_error', '_cpOnError')()
>   File "/usr/lib/python2.4/site-packages/tgwebservices/controllers.py", line 
> 230, in _cp_on_error
>     cherrypy.response.body = self._formatexception(excinfo)
>   File "<string>", line 3, in _formatexception
>   File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 
> 338, in expose
>     output = func._expose(func, accept, func._allow_json,
>   File "<string>", line 5, in _expose
>   File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 
> 359, in <lambda>
>     mapping, fragment, args, kw)))
>   File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 
> 399, in _execute_func
>     return _process_output(output, template, format, content_type, mapping, 
> fragment)
>   File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 
> 86, in _process_output
>     fragment=fragment)
>   File "/var/lib/python-support/python2.4/turbogears/view/base.py", line 129, 
> in render
>     return engine.render(**kw)
>   File "/var/lib/python-support/python2.4/turbokid/kidsupport.py", line 182, 
> in render
>     tclass = self.load_template(template)
>   File "/var/lib/python-support/python2.4/turbokid/kidsupport.py", line 100, 
> in load_template
>     raise ValueError, "All Kid templates must be in a package"
> ValueError: All Kid templates must be in a package
>
>
>
>
>
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
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