Hi folks,

I know this sounds backwards, but can I use TGWebservices without
turbogears? In particular can I plug TGWebservices controllers into my
cherrypy-only project and expect it to work without pulling in the
whole turbogears stack?

Also, similar to generating a wsdl - would you consider it a usable
feature to enable the user to fetch a js-file that has the exported
function declared with the correct parameter names etc? The functions
would wrap their parameters in a loadJSONDoc call and return the
deferred.

For the example
class Multiplier(WebServicesRoot):

    @wsexpose(int)
    @wsvalidate(int, int)
    def multiply(self, num1, num2):
        return num1 * num2

this would mean that I could do something like

<script src="/services.js"></script>
<script>

multiply(3,4).addCallback(alert);

</script>

"services.js" being automatically generated by tgwebservices.

Arnar

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