[google-appengine] Re: urgent help needed:cann't update to GAE via http proxy

2009-03-15 Thread catgon

Hi Coonay,

If you are under a proxy you need to do the below commands first:

Set http_proxy=http://user:p...@proxy:8080
Set https_proxy=http://user:p...@proxy:8080

hope this works

On Mar 15, 1:05 am, Coonay  wrote:
> yes, i did 
> ashttp://code.google.com/appengine/docs/python/tools/uploadinganapp.htm...
> ,but it doesn't work,
> i cann't update succesuffly that way
>
> On Mar 13, 9:50 pm, "Sharp-Developer.Net"
>
>
>
>  wrote:
> > Try to search on this group or in Google.com - it was discussed many
> > times here.
> > --
> > Alex
>
> > On Mar 13, 6:57 am, Coonay  wrote:
>
> > > cmd>set HTTP_PROXY=http://cache.mycompany.com:3128
> > > cmd>python appcfg.py update myapp
> > > URLError:  > > because the t
> > > arget machine actively refused it>
> > > Traceback (most recent call last):
> > >   File "C:\Program Files\Google\google_appengine\appcfg.py", line 60,
> > > in 
> > >     run_file(__file__, globals())
> > >   File "C:\Program Files\Google\google_appengine\appcfg.py", line 57,
> > > in run_fil
> > > e
> > >     execfile(script_path, globals_)
> > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > \tools
> > > \appcfg.p
> > > y", line 1976, in 
> > >     main(sys.argv)
> > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > \tools
> > > \appcfg.p
> > > y", line 1967, in main
> > >     result = AppCfgApp(argv).Run()
> > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > \tools
> > > \appcfg.p
> > > y", line 1418, in Run
> > >     self.action(self)
> > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > \tools
> > > \appcfg.p
> > > y", line 1879, in __call__
> > >     return method()
> > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > \tools
> > > \appcfg.p
> > > y", line 1669, in Update
> > >     lambda path: open(os.path.join(basepath, path), "rb"))
> > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > \tools
> > > \appcfg.p
> > > y", line 1213, in DoUpload
> > >     missing_files = self.Begin()
> > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > \tools
> > > \appcfg.p
> > > y", line 1009, in Begin
> > >     version=self.version, payload=self.config.ToYAML())
> > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > \tools
> > > \appengin
> > > e_rpc.py", line 312, in Send
> > >     self._Authenticate()
> > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > \tools
> > > \appengin
> > > e_rpc.py", line 344, in _Authenticate
> > >     super(HttpRpcServer, self)._Authenticate()
> > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > \tools
> > > \appengin
> > > e_rpc.py", line 233, in _Authenticate
> > >     auth_token = self._GetAuthToken(credentials[0], credentials[1])
> > >   File "C:\Program Files\Google\google_appengine\google\appengine
> > > \tools
> > > \appengin
> > > e_rpc.py", line 177, in _GetAuthToken
> > >     response = self.opener.open(req)
> > >   File "C:\PROGRA~1\Python26\lib\urllib2.py", line 383, in open
> > >     response = self._open(req, data)
> > >   File "C:\PROGRA~1\Python26\lib\urllib2.py", line 401, in _open
> > >     '_open', req)
> > >   File "C:\PROGRA~1\Python26\lib\urllib2.py", line 361, in
> > > _call_chain
> > >     result = func(*args)
> > >   File "C:\PROGRA~1\Python26\lib\urllib2.py", line 1138, in
> > > https_open
> > >     return self.do_open(httplib.HTTPSConnection, req)
> > >   File "C:\PROGRA~1\Python26\lib\urllib2.py", line 1105, in do_open
> > >     raise URLError(err)
> > > urllib2.URLError:  > > made becau
> > > se the target machine actively refused it>
>
> > > PS:the version of gae is 1.1.9,
> > >      python  is 2.6- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[google-appengine] Sending Email trhu Google App engine

2009-03-13 Thread catgon

Hi All,

I copy/paste the sample code from google app engine for sending
email.
I replaced the sender/to email address to my personal account which is
not gmail
After I uploaded my codes I tried but I was getting a 500 server error

what I did was I changed the sender/to email address to my gmail
account, I uploaded and tried again
and it worked fine.

My question is, is email sending only for gmail accounts?

Please help. This is the codes that I pasted.

from google.appengine.api import mail
message = mail.EmailMessage(sender="supp...@example.com",
subject="Your account has been approved")message.to = "Albert Johnson
"
message.body = """Dear Albert:Your example.com account has been
approved.  You can now visithttp://www.example.com/ and sign in using
your Google Account toaccess new features.Please let us know if you
have any questions.The example.com Team"""
message.send()

thanks

catgon


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