I'm pretty seasoned in (local) python. I've never made two scripts
work together and I've never used anything quite like the setup you
have here. I'm looking for a basic understanding.

Say, for simplicity, I have a local script and an App Engine script
that multiplies two numbers.

In pseudo-code, the local script looks like this:

import urllib2 # For interface with Google
def send(addone, addtwo) # Functions must be created before they are
called
        urllib2.url('myapp.appspot.com?=addone=\'' + addone +
'\'addtwo=\'' + addtwo + '\'') # Send the command
        urllib2.WaitForCommand
        show = CommandThatIGotFromAppEngine
        print 'Answer is', show
def addends()
        addendone = raw_input('First number to multiply?'
        addendtwo = raw_input('Second number to multiply?'
        send(addendone, addendtwo)

while True:
        addends()



and the App Engine script looks like this:


Wait for command
FireThisBack = addone + addtwo
FireThisBack.FireItNow()

So... Am I even close?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to