[TurboGears] Re: Using XMLRPC filter
Ok. Apparently I was a dumbass an mis-spelled the config option name for xmlrpc_filter :) Now it works. The only thing is - is there a way to prevent tg_flash from showing up? thanks, Eli
[TurboGears] Re: Using XMLRPC filter
On 2/6/06, reflog [EMAIL PROTECTED] wrote: Is that true? NO normal way of implementing this? That sounds very discouraging... :( There's no such thing as no normal way, especially if you can create a patch ;) If you open a ticket with the requirements someone might be able to make this work if it is viable. Lee
[TurboGears] Re: Using XMLRPC filter
Well, if I understand correctly this problem exists for all usages of the CP filters?
[TurboGears] Re: Using XMLRPC filter
well, I'll take a look at identity's code, but the wikis don't help, since they use deprecated syntax for filters.
[TurboGears] Re: Using XMLRPC filter
On 2/6/06, reflog [EMAIL PROTECTED] wrote: well, I'll take a look at identity's code, but the wikis don't help, since they use deprecated syntax for filters. Not the first link that I gave you. That is the current documentation. Granted, the second link is slightly out of date in that it uses cpg and cpFilterList, but the theory behind it is still valid. Also of note, the XMLRPC filter comes as one of cherrypy's standard filters. It's just a case of enabling it in the server config in a similar way to the static filters in your-project/config.py. However I've not tried this and as I'm ignorant on the subject of XMLRPC I can't guarantee it's success. Is the XMLRPC version of your app supposed to sit on another port next to the standard version? Most of the XMLRPC documentation i've seen has it sitting on port 9001... Lee
[TurboGears] Re: Using XMLRPC filter
Well, I did try enabling it thru the config.py used the whole path('/RPC') xmlrpcFilter.on = True thing. Did do a thing :) I wanted to have it on the same port, as a part of the whole app (to minimize database problems) So basiclly I was hoping for a small working example, because I pounded on it for while with no success :( Eli
[TurboGears] Re: Using XMLRPC filter
I'm sure you already seen this, anyway: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/413404 Ciao Michele reflog wrote: Well, I did try enabling it thru the config.py used the whole path('/RPC') xmlrpcFilter.on = True thing. Did do a thing :) I wanted to have it on the same port, as a part of the whole app (to minimize database problems) So basiclly I was hoping for a small working example, because I pounded on it for while with no success :( Eli
[TurboGears] Re: Using XMLRPC filter
reflog wrote: Hi there. I was wondering, since the _cpFilterList will be deprecated in future versions of CherryPy, can someone please provide a clear example on how to impement a XMLRPC handling controller that is mounted to the Root one? Somethis to make this work: class RPCController(controllers.Root): @turbogears.expose() def test(self, i): return i+1 class Root(controllers.Root): RPC = RPCController() I tried to do this and had no success. I concluded that I was better off just running SimpleXMLRPCServer in another process until TG supports @turbogears.expose(xmlrpc=True) or similar. -- Regards, Stephen Thorne Development Engineer Scanned by the NetBox from NetBox Blue (http://netboxblue.com/)
[TurboGears] Re: Using XMLRPC filter
Is that true? NO normal way of implementing this? That sounds very discouraging... :(