Hello!
I am new to pyton
I am trying to use Pylons + Dojo and I am having trouble calling a control
with multiple parameters. What is an example of that?

Thanks a lot

Ex:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--IN THE CONTROLLER
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
class TesteController(BaseController):

    @jsonify
    def login(self, sUsrNme, sUstPwd ):

        result = "ok"

        return result

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--IN THE PAGE
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
var xhrArgs = {
                url: "/teste/login/",
                postData: "{Master,Senha}",
                handleAs: "json",
                load: function(sUsrNme, sUsrPwd ){
                  dojo.byId("basicFormTab").innerHTML = "Message posted.";
                },
                error: function(error){
                  dojo.byId("basicFormTab").innerHTML = "We'll 404 in the
demo, but that's okay.  We don't have a 'postIt' service on the docs
server." ;
                }
              }

The error returned is:
TypeError: login() takes exactly 3 arguments (1 given)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to