The "--passin" parameter makes it possible to pass the password via
stdin to appcfg.py. I have wrote a corresponding Ant target which use
this parameter to read the password from a file. Here you can see the
core part of this Ant target:
##############################################
<exec executable="${python}" input="${pwd_dir}/
loxal.key">
<arg value="${gae.home}/appcfg.py" />
<arg value="--email=${gae.email}" />
<!--
passin is necessary to supply the
password via the "input"file
-->
<arg value="--passin" />
<arg value="update" />
<arg value="${build}" />
</exec>
##############################################
If I execute this target the application is automatically uploaded to
Google without any password prompt. Now I have wrote a Python method
which is trying to do the same:
##############################################
def gaeUpdate(self):
"""
update the GAE application
"""
# password = open('%s/loxal.key' % PWD_DIR).read()
args = (
'',
'--verbose',
'--email=%s' % USER_NAME,
# "passin" is necessary to supply the password via the
"input" file
'--passin',
'update',
PATH_PRJ_BUILD,
)
os.execv('%s/appcfg.py' % PATH_GAE, args)
##############################################
But how can I pass the "password" variable to os.execv? When I call
this Python method a password prompt appears.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---