No reply yet ...

Anyway I got things working after so much searching and reading . Here
is the way I upload my test app for 1st time. I am putting the same
here so that if anyone else have same problems .. should get a way
out. There may be other BETTER methods unknown to me but this worked .

My constrains :

1.I access internet using an authenticated proxy server. Currently
appcfg.py doesn't seem to have a fascility to support authenticated
proxy ( atleast documentation is not there ).
My solution : I installed a local proxy server on my own computer and
set the internet options to pass through it. It made the
authentication by itself. the software I used is trial version of
CCProxy.

2.Even that this https support through proxy by urllib2 is .......
well I don't know.
My solution : This one was a bit adventurous.After reading the error
logs I traced back the function in appcfg.py which was always failing.
It is around line number 166 .

 def _GetAuthToken(self, email, password):

This need to return an AuthToken provided by google client login API.
This alwasy failed bcz abover reason. I found a cool way out in the
google group of client login API. I created a simple html page with
follwing content.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="jquery.js"></script>
<title>Untitled Document</title>
</head>

<body>

<div style="border:1px solid">
Following Form Generates Auth Key to be used for Google app engine.
<br />
<form action="https://www.google.com/accounts/ClientLogin";
method="post" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="source" id="source" value="Google-
appcfg-1.0">
    <input type="hidden" name="accountType" id="accountType"
value="HOSTED_OR_GOOGLE">
    <input type="text" name="Email" id="Email">
    <input type="password" name="Passwd" id="Passwd">
    <input type="hidden" name="service" id="service" value="ah">
    <INPUT type="submit" value="Send"> <INPUT type="reset">
</form>
</div>
</body>
</html>


Putting your google account and password in this page returns your
Auth token very nicely. ( Firefox 3.0.0.5 ) .
Now copied this auth token and replaced the whole content of above
function to just return this value.Than ... OMG ... It worked. YES IT
WORKED.

Put a guest post in my test app.

http://developmentstageholder.appspot.com/



On Jan 15, 5:20 am, ramu <[email protected]> wrote:
> Sorry for the 2nd post with similar topic, but this seems to be the
> final answer with my limited python knowledge. I access internet
> through my institute basic authentication proxy. It took me a lot to
> figureout how to input my username and password. As the documentation
> only says how to input the proxy, which also seems not to be working .
> It dosen't tell where to put proxy username and password.
>
> The method I found out to use authentication proxy is :
>
> http://stackoverflow.com/questions/34079/how-to-specify-an-authentica...
>
> Appended the lines from above at the top of appcfg.py. Even than it
> would not work. Again searching on net .. and the horrible truth seems
> to invade me ... """Currently urllib2 does not support fetching of
> https locations through a proxy. This can be a problem.""". Https is
> necessary for google username and password communication.
>
> above quote at :
>
> http://www.voidspace.org.uk/python/articles/urllib2.shtml#proxies
>
> I request google app engine developers to device any other method to
> upload the files .I web browser based method should work for all.
>
> Thanks .
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to