Hi all

I am trying to re-implement an xml rpc interface with turboears, but what 
was working
with tg 2 is not  working with In [8]: tg.version Out[8]: '2.3.1' .

root.py
==========

from pylons.controllers import XMLRPCController
from pylons.controllers.util import forward
......

 class MyXML(XMLRPCController):
        def userstatus(self):
            return 'basic string'
        userstatus.signature = [ ['string'] ]

        def userinfo(self, username, age=None):
            user = LookUpUser(username)
            response = {'username':user.name}
            if age and age > 10:
                response['age'] = age
            return response
        #userinfo.signature = [['struct', 'string'],

class RootController(BaseController):
   @expose()
   def xmlrpc(self, *args, **kw):
        return forward(MyXML())
 
RUN TIME Error
===========
RuntimeError: Unable to forward: environ['pylons.controller'] is not a 
valid Pylons controller

Doing something wrong or is a tg 2.3.1 Bug
Some hints ?

Cheers Giovanni

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to