[google-appengine] Re: documentation for memcache namespaces?
http://code.google.com/appengine/docs/python/memcache/clientclass.html#Introduction 2009/5/4 Andy Freeman : > > Where are memcache namespaces documented? (They're mentioned in > http://code.google.com/appengine/docs/python/memcache/functions.html > and http://code.google.com/appengine/docs/python/memcache/clientclass.html > .) > > Note that http://code.google.com/p/memcached/wiki/FAQ says that > memcached does not support namespaces --~--~-~--~~~---~--~~ 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
The third url search on admins.googleapps.com is: http://admins.googleapps.com/system/app/pages/search?q=error|400 --~--~-~--~~~---~--~~ 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
hasn't Wooble already told you why this is happening? - and that should be enough to work out how to fix it. On May 5, 12:57 am, "Tag++" wrote: > Hi,all > > Please copy this three url to the address box and press enter, don't > click to open it from here. > > http://www.google.com/search?q=%22bad+request%22|%22error+400%22http://admins.googleapps.com/system/app/pages/search?q=%22bad+request%22http://admins.googleapps.com/system/app/pages/search?q=%22bad+request...%22error+400%22 > > You will get different kink of response, the last one is a 'Google > Sites' with the DNS 'park in' on ghs.google.com > To here you should awaken what's the problem: when you call a url with > '|' char to those sites, you will get 'Error 400' response! > > admins.googleapps.com CNAME ghs.google.com > ghs.google.com CNAME ghs.l.google.com > ghs.l.google.com A 72.14.235.121 > > So I think my this question is belong to ghs.google.com, not of App > Engine. > I have post a same question to 'Apps help > forum':http://www.google.com/support/forum/p/Google+Apps/thread?tid=696797f6... > > The original post: > > My app: tagplusplus.appspot.com have bound to domain: gae.tagpp.com > > Access URL > Statushttp://tagplusplus.appspot.com/ > OKhttp://tagplusplus.appspot.com/search?q=abc > OKhttp://tagplusplus.appspot.com/search?q=a+b+c OKhttp://tagplusplus.appspot.com/search?q=a|b|c > OK > > http://gae.tagpp.com/ > OKhttp://gae.tagpp.com/search?q=abc > OKhttp://gae.tagpp.com/search?q=a+b+c > OKhttp://gae.tagpp.com/search?q=a|b|c Bad Request Error 400 > > app.yaml: > > application: tagplusplus > version: 1 > runtime: python > api_version: 1 > > handlers: > > - url: .* > script: main.py > > > main.py: > > class MainPage(webapp.RequestHandler): > def get(self): > > url = self.request.url > q = self.request.get('q') > s = ('Base: %s, %s' % (q,url)) > logging.info(s) > self.response.out.write(s) > > application = webapp.WSGIApplication([ > ('/.*', MainPage) > ], debug=True) > > def main(): > wsgiref.handlers.CGIHandler().run(application) > > if __name__ == '__main__': > main() > > > > I found that the last one requesthttp://gae.tagpp.com/search?q=a|b|c(with > '|') can not reach to App engine, > > there are not any Error/Exception messages produced on App engine end > while calling this url, it seems this > > request have been denied in the front of App engine. > > Client --> URL Checker/Request Dispatcher (ghs.google.com) --> Apps, > real request handler (gae.tagpp.com) --~--~-~--~~~---~--~~ 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
You are right. /search?q=a|b work fine on google others search engine too, I think the problem placed in ghs.google.com On May 5, 3:15 am, Wooble wrote: > RFC1738 requires unsafe characters, including '|', to be urlencoded. > Why this works on appspot is a mystery, but I'd guess having it fail > on a google apps domain has something to do with how ghs handles > mapping URLs to applications. > > On May 3, 4:30 am, "Tag++" wrote: > > > Hi,all > > > My app: tagplusplus.appspot.com have bound to domain: gae.tagpp.com > > > Access URL > > Statushttp://tagplusplus.appspot.com/ > > OKhttp://tagplusplus.appspot.com/search?q=abc > > OKhttp://tagplusplus.appspot.com/search?q=a+b+c OKhttp://tagplusplus.appspot.com/search?q=a|b|c > > OK > > >http://gae.tagpp.com/ > >OKhttp://gae.tagpp.com/search?q=abc > >OKhttp://gae.tagpp.com/search?q=a+b+c > >OKhttp://gae.tagpp.com/search?q=a|b|c Bad Request Error 400 > > > app.yaml: > > > > application: tagplusplus > > version: 1 > > runtime: python > > api_version: 1 > > > handlers: > > > - url: .* > > script: main.py > > > > > main.py: > > > > class MainPage(webapp.RequestHandler): > > def get(self): > > > url = self.request.url > > q = self.request.get('q') > > s = ('Base: %s, %s' % (q,url)) > > logging.info(s) > > self.response.out.write(s) > > > application = webapp.WSGIApplication([ > > ('/.*', MainPage) > > ], debug=True) > > > def main(): > > wsgiref.handlers.CGIHandler().run(application) > > > if __name__ == '__main__': > > main() > > > > > > I found that the last one requesthttp://gae.tagpp.com/search?q=a|b|c(with > > '|') can not reach to App engine, > > > there are not any Error/Exception messages produced on App engine end > > while calling this url, it seems this > > > request have been denied in the front of App engine. > > > Client --> URL Checker/Reuest Dispatcher (ghs.google.com) --> Apps, > > real request handler (gae.tagpp.com) --~--~-~--~~~---~--~~ 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
Hi, '|' characters in URLs should be escaped as %7C. Web browsers will do this for you, but if you're constructing URLs yourself, it's up to you to escape them properly. -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Shrink Javascript with Python..?
On Tue, May 5, 2009 at 4:39 AM, richardcur...@googlemail.com wrote: > GWT for example does real obfuscation and the shrinking results are > impressive. Especially local variables etc. can be highly obfuscated. JS compilation (as distinct from just obfuscation) really works best as an offline process (e.g. http://jscompiler.org/) as it can do substitutions and various renamings. It's worth working out if you can cut down on the dynamism of the JS you are serving so you can statically compile it once and avoid having to do that work for every request. Dave. --~--~-~--~~~---~--~~ 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] email issue with Google Apps e-mail "Group"
Hi, Currently it is not possible to send a mail to a Google Apps group. For example, I've a group "support@.com and I want to send a mail with the GAE e-mail service. In this group, I've 2 users : user_a@.com and user_b@.com There are 2 issues : - "user_a" received a mail in the spam box : "Delivery Status Notification (Failure)" - "user_b" received nothing. It seems to be an "important" issue : GAE is not allowed to send a mail to a Google Apps group ? ** This is an automatically generated Delivery Status Notification Delivery to the following recipient failed permanently: support@.com Technical details of permanent failure: The envelope-from, 3gqcasgukb2qibga.kxwzbdqibga@apphosting.bounces.google.com, is not allowed to post to this group. - Original message - --~--~-~--~~~---~--~~ 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
barryhunter, I see what Wooble said. I am a visitor of http://admins.googleapps.com/ I open this site with Firefox browser and input "error|400" into the search box which located in top right of screen, and press the "Search Site" button to submit this query, and I got a response of: Your search for "error|400" did not match any pages. Everything work fine, and I want to share this page(search result page) to my friend, so copy the url from address box and send to my friend: http://admins.googleapps.com/system/app/pages/search?q=%22error|400%22 Now, suppose you are my friend, and got this url and paste it back to IE or Firefox, to see the result Until now, what's wrong with Vistor, Firefox or admins.googleapps.com??? IE work fine, it will automatic format '|' to '%7C' when a user submit a form with GET method, but firefox keep '|' in address box Google or Yahoo can handle url with '|' smoothly. On May 5, 5:04 pm, barryhunter wrote: > hasn't Wooble already told you why this is happening? > > - and that should be enough to work out how to fix it. > > On May 5, 12:57 am, "Tag++" wrote: > > > Hi,all > > > Please copy this three url to the address box and press enter, don't > > click to open it from here. > > >http://www.google.com/search?q=%22bad+request%22|%22error+400%22http://admins.googleapps.com/system/app/pages/search?q=%22bad+request... > > > You will get different kink of response, the last one is a 'Google > > Sites' with the DNS 'park in' on ghs.google.com > > To here you should awaken what's the problem: when you call a url with > > '|' char to those sites, you will get 'Error 400' response! > > > admins.googleapps.com CNAME ghs.google.com > > ghs.google.com CNAME ghs.l.google.com > > ghs.l.google.com A 72.14.235.121 > > > So I think my this question is belong to ghs.google.com, not of App > > Engine. > > I have post a same question to 'Apps help > > forum':http://www.google.com/support/forum/p/Google+Apps/thread?tid=696797f6... > > > The original post: > > > My app: tagplusplus.appspot.com have bound to domain: gae.tagpp.com > > > Access URL > > Statushttp://tagplusplus.appspot.com/ > > OKhttp://tagplusplus.appspot.com/search?q=abc > > OKhttp://tagplusplus.appspot.com/search?q=a+b+c OKhttp://tagplusplus.appspot.com/search?q=a|b|c > > OK > > >http://gae.tagpp.com/ > >OKhttp://gae.tagpp.com/search?q=abc > >OKhttp://gae.tagpp.com/search?q=a+b+c > >OKhttp://gae.tagpp.com/search?q=a|b|c Bad Request Error 400 > > > app.yaml: > > > > application: tagplusplus > > version: 1 > > runtime: python > > api_version: 1 > > > handlers: > > > - url: .* > > script: main.py > > > > > main.py: > > > > class MainPage(webapp.RequestHandler): > > def get(self): > > > url = self.request.url > > q = self.request.get('q') > > s = ('Base: %s, %s' % (q,url)) > > logging.info(s) > > self.response.out.write(s) > > > application = webapp.WSGIApplication([ > > ('/.*', MainPage) > > ], debug=True) > > > def main(): > > wsgiref.handlers.CGIHandler().run(application) > > > if __name__ == '__main__': > > main() > > > > > > I found that the last one requesthttp://gae.tagpp.com/search?q=a|b|c(with > > '|') can not reach to App engine, > > > there are not any Error/Exception messages produced on App engine end > > while calling this url, it seems this > > > request have been denied in the front of App engine. > > > Client --> URL Checker/Request Dispatcher (ghs.google.com) --> Apps, > > real request handler (gae.tagpp.com) --~--~-~--~~~---~--~~ 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] Re: email issue with Google Apps e-mail "Group"
Hi Sylvain, Unfortunately, it's not possible to post to a group from Google App Engine. As you can see from the bounce message, App Engine sets the sender address to an autogenerated 'bounce' address, and it's the sender address that Google Groups checks to verify if a user can post. -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
Nick Johnson, IE can convert '|' to %7C but Firefox will not! I (a normal visitor) didn't constructing any URL, so this is not Vistor's or Firefox's business, this is Web Server's matter I know some kind of Web Server can handle '|' char, including App Engine, and I am sure something failed on ghs.google.com Did you try this url on firefox browser? http://admins.googleapps.com/system/app/pages/search?q=%22error|400%22 On May 5, 5:15 pm, "Nick Johnson (Google)" wrote: > Hi, > > '|' characters in URLs should be escaped as %7C. Web browsers will do > this for you, but if you're constructing URLs yourself, it's up to you > to escape them properly. > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: email issue with Google Apps e-mail "Group"
Just to be cleared : I don't want to send a mail to a "Google Group" but to a Google Apps "group" (group for "Google Apps For your Domain" / e-mail user&group) I don't understand why it doesn't work because my group is to set "public" (not team,...) So all e-mail adresses should work. It's an issue to GAE or Google Apps ? Regards On 5 mai, 11:55, "Nick Johnson (Google)" wrote: > Hi Sylvain, > > Unfortunately, it's not possible to post to a group from Google App > Engine. As you can see from the bounce message, App Engine sets the > sender address to an autogenerated 'bounce' address, and it's the > sender address that Google Groups checks to verify if a user can post. > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
Firefox will send your URL exactly as you enter it, yes. But if you fill out a form (such as a search box) in Firefox, it will correctly URL-escape the | character for the URL. Internet Explorer behaves in the same manner, so any URL generated by a form will have the | character correctly escaped. Google's servers returning a 400 for URLs containing an unescaped | character is not a bug in the server - they're correctly obeying the relevant RFCs. -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: email issue with Google Apps e-mail "Group"
Hi Sylvain, The answer is the same: The group is prohibiting posts from a sender address it doesn't recognise. Since you can't change the sender address with the App Engine email API, the only way around this is to change your group's settings to allow posts from non-members, if that's possible. -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
To Nick Johnson, "But if you fill out a form (such as a search box) in Firefox, it will correctly URL-escape the | character for the URL" Is this real? but my Firefox 3.0.4(Windows XP) or Chrome 1.0.154.59 (Windows XP) always keep the '|' in the address box!!! I have try this test on google search server many many times! On May 5, 6:13 pm, "Nick Johnson (Google)" wrote: > Firefox will send your URL exactly as you enter it, yes. But if you > fill out a form (such as a search box) in Firefox, it will correctly > URL-escape the | character for the URL. Internet Explorer behaves in > the same manner, so any URL generated by a form will have the | > character correctly escaped. > > Google's servers returning a 400 for URLs containing an unescaped | > character is not a bug in the server - they're correctly obeying the > relevant RFCs. > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Add StringProperty to Model without problems with the datastore?
Hi, I have a db.model and would like to add 2 db.StringProperties to it. Sadly users already stored thousands of these models in the datastore and I don't want to wipe it clean just to extend my model. Is there a way to do this without breaking my whole app? Perhaps one should write a visual tool, where one could perform such operations on the whole datastore. The way it is now is somewhat frustrating to the developer since he feels like he has not the full power. thanks...ricky --~--~-~--~~~---~--~~ 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
On Tue, May 5, 2009 at 11:28 AM, Tag++ wrote: > > To Nick Johnson, > > "But if you > fill out a form (such as a search box) in Firefox, it will correctly > URL-escape the | character for the URL" > > Is this real? but my Firefox 3.0.4(Windows XP) or Chrome 1.0.154.59 > (Windows XP) always keep the '|' in the address box!!! I've since discovered that although Firefox 2 escapes the | character in the address box, Firefox 3 does not, and instead escapes it when sent to the server. -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Add StringProperty to Model without problems with the datastore?
Hi Ricky, If your StringProperties are either not required, or supply a default value, you can simply amend your model without trouble. Bear in mind, though, that the properties will not be present on entities that were last updated before you added them, so queries and filters involving the new properties will only show up entities that were updated since you changed the model. If you need to change existing entities, one way to do this is with the remote_api module. The article has details on how to write a simple map framework here: http://code.google.com/appengine/articles/remote_api.html -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
To Nick Johnson, http://www.google.com/search?hl=en&q=error|400+^bad+~request+{goog}+\to+[OR]+`go`&btnG=Search http://search.yahoo.com/search?hl=en&q=error|400+^bad+~request+{goog}+\to+[OR]+`go`&btnG=Search http://en.wikipedia.org/wiki/Special:Search?search=error|400+^bad+~request+{goog}+\to+[OR] This three urls work fine on Chrome or Firefox 3.0.4, I think the browser keep those 'unsafe characters' in the address box, because it belief the Web Server should be accept them, so is the RFC1738/ ghs.google.com outdated? or Firefox did not following the standard? On May 5, 6:37 pm, "Nick Johnson (Google)" wrote: > On Tue, May 5, 2009 at 11:28 AM, Tag++ wrote: > > > To Nick Johnson, > > > "But if you > > fill out a form (such as a search box) in Firefox, it will correctly > > URL-escape the | character for the URL" > > > Is this real? but my Firefox 3.0.4(Windows XP) or Chrome 1.0.154.59 > > (Windows XP) always keep the '|' in the address box!!! > > I've since discovered that although Firefox 2 escapes the | character > in the address box, Firefox 3 does not, and instead escapes it when > sent to the server. > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
The RFC is clear as to what characters are acceptable in the query string part of a HTTP URL. | is not one of these characters, so if your browser is sending one, it's an issue either with your browser or with your URL encoding. -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: email issue with Google Apps e-mail "Group"
Yes, the group settings ar ok. Everybody can send a mail to this group even if this adress belongs or not to the Google Apps domain. In google app, this group is set to "Public"(For topics of general interest. Email is unrestricted.) So e-mail is "unrestricted" and all e-mails (@gmail, @, @yahoo.com, @hotmail,...) can send a mail to this group. http://www.google.com/support/a/bin/answer.py?hl=en&answer=126169 A mail like this it should work : @apphosting.bounces.google.com So, there is an issue. Sylvain On 5 mai, 12:15, "Nick Johnson (Google)" wrote: > Hi Sylvain, > > The answer is the same: The group is prohibiting posts from a sender > address it doesn't recognise. Since you can't change the sender > address with the App Engine email API, the only way around this is to > change your group's settings to allow posts from non-members, if > that's possible. > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: email issue with Google Apps e-mail "Group"
Hi Sylvain, Even for groups that are marked 'public', they generally require that the sender be a member of the group before they can post. In addition to setting the group as "public", you also need to select "anyone can post" under "who can post messages?" on the Access tab of the group's settings. -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: newbie question - url routing - using urls to make queries
Hi, loopymonkey, You don't specify which runtime you're working with, and the best way to do this is runtime-specific. In Python, however, if you're using the default webapp framework, you can do this by defining groups in the handler regular expressions; the contents of these groups will be passed to the handler. An example can be seen here: http://code.google.com/appengine/docs/python/tools/webapp/running.html -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: email issue with Google Apps e-mail "Group"
Yes, this group is correctly parameter. I'm just testing to send a mail to support@.com with my gmail adress and many other e-mail adresses (hotmail,... etc,...). And all my tests work. So there is only an issue with mails from GAE. Sylvain On 5 mai, 13:42, "Nick Johnson (Google)" wrote: > Hi Sylvain, > > Even for groups that are marked 'public', they generally require that > the sender be a member of the group before they can post. In addition > to setting the group as "public", you also need to select "anyone can > post" under "who can post messages?" on the Access tab of the group's > settings. > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
To Nick Johnson, I am normal visitor now, I didn't do any URL encoding, I use the popular browser, including Chrome from google. I want to making a comparison between popular Web Server(Google Search Server,Yahoo Search Server,Wikipedia.org) and RFC follower (ghs.google.com: admins.googleapps.com) I copy this four url to Chrome and running Wireshark(Ethereal) monitor in sync: http://www.google.com/search?hl=en&q=error|400+^bad+~request+{goog}+\to+[OR]+`go`&btnG=Search http://search.yahoo.com/search?hl=en&q=error|400+^bad+~request+{goog}+\to+[OR]+`go`&btnG=Search http://en.wikipedia.org/wiki/Special:Search?search=error|400+^bad+~request+{goog}+\to+[OR] http://admins.googleapps.com/system/app/pages/search?q=error|400 Here is the results: http://www.google.com/search?hl=en&q=error|400+^bad+~request+{goog}+\to+[OR]+`go`&btnG=Search GET /search?hl=en&q=error|400+^bad+~request+{goog}+\to+[OR] +`go`&btnG=Search HTTP/1.1 >>> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.59 Safari/525.19 Cache-Control: max-age=0 Accept: text/xml,application/xml,application/xhtml+xml,text/ html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Encoding: gzip,deflate,bzip2,sdch Cookie: SS=Q0=ZXJyb3J8NDAwIF5iYWQgfnJlcXVlc3Qge2dvb2d9IFx0byBbT1JdIGBnb2A; PREF=ID=fe12fd1a0173fe4f:U=353e139915e1a04d:TM=1241507257:LM=1241517635:S=fHsk8nSgRIhgbcMx; NID=22=DDPkCYZFMBGElbmJTDCMYlkTH9JiK-4s5wu7THnHryfRan12NsupUxZ22Ex93mtue8rIJPsvwkVnZIVkgcyiJORl_DKUI2VbjHaDUWuUiN5Zy5sekqS0n- Cy3sovwURW Accept-Language: en-US,en Accept-Charset: ISO-8859-1,*,utf-8 Host: www.google.com Connection: Keep-Alive <<< HTTP/1.1 200 OK Cache-Control: private, max-age=0 Date: Tue, 05 May 2009 11:33:50 GMT Expires: -1 Content-Type: text/html; charset=UTF-8 Set-Cookie: SS=Q0=ZXJyb3J8NDAwIF5iYWQgfnJlcXVlc3Qge2dvb2d9IFx0byBbT1JdIGBnb2A; path=/search Server: gws Transfer-Encoding: chunked Content-Encoding: gzip http://search.yahoo.com/search?hl=en&q=error|400+^bad+~request+{goog}+\to+[OR]+`go`&btnG=Search GET /search?hl=en&q=error|400+^bad+~request+{goog}+\to+[OR] +`go`&btnG=Search HTTP/1.1 >>> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.59 Safari/525.19 Accept: text/xml,application/xml,application/xhtml+xml,text/ html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Encoding: gzip,deflate,bzip2,sdch Cookie: B=3gbvl8150066s&b=3&s=20; sSN=5KQYzcU2wWFqlq8uHtcu48gBXYhpMjv2tjR8tsxUYrq6BvycSGmb1Ts5yrp1NVKxwkeoSp2zeGcJTf1S6N40CA-- Accept-Language: en-US,en Accept-Charset: ISO-8859-1,*,utf-8 Host: search.yahoo.com Connection: Keep-Alive <<< HTTP/1.1 200 OK Date: Tue, 05 May 2009 11:34:15 GMT P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml";, CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV" Set-Cookie: sSN=WIMQEXg2wWEmn_LKPNkqX7ool_yNxuPZoR9VrTk.ii7Je1Z9ECrJKyBmpH1huFCtdplpzDZQPgM7y6UUpvgHsA--; path=/; domain=.search.yahoo.com Cache-Control: private Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 Content-Encoding: gzip http://en.wikipedia.org/wiki/Special:Search?search=error|400+^bad+~request+{goog}+\to+[OR] GET /wiki/Special:Search?search=error|400+^bad+~request+{goog}+\to+ [OR] HTTP/1.1 >>> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.59 Safari/525.19 Accept: text/xml,application/xml,application/xhtml+xml,text/ html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Encoding: gzip,deflate,bzip2,sdch Accept-Language: en-US,en Accept-Charset: ISO-8859-1,*,utf-8 Host: en.wikipedia.org Connection: Keep-Alive <<< HTTP/1.0 200 OK Date: Tue, 05 May 2009 11:34:25 GMT Server: Apache X-Powered-By: PHP/5.2.4-2ubuntu5wm1 Cache-Control: private, s-maxage=0, max-age=0, must-revalidate Content-Language: en Vary: Accept-Encoding,Cookie X-Vary-Options: Accept-Encoding;list-contains=gzip,Cookie;string- contains=enwikiToken;string-contains=enwikiLoggedOut;string- contains=enwiki_session;string-contains=centralauth_Token;string- contains=centralauth_Session;string-contains=centralauth_LoggedOut Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Encoding: gzip Content-Length: 4546 Content-Type: text/html; charset=utf-8 X-Cache: MISS from sq24.wikimedia.org X-Cache-Lookup: MISS from sq24.wikimedia.org:3128 X-Cache: MISS from sq16.wikimedia.org X-Cache-Lookup: MISS from sq16.wikimedia.org:80 Via: 1.1 sq24.wikimedia.org:3128 (squid/2.7.STABLE6), 1.0 sq16.wikimedia.org:80 (squid/2.7.STABLE6) Connection: keep-alive http://admins.googleapps.com/system/app/pages/search?q=error|400 GET /system/app/pages/search?q=error|400 HTTP/1.1 >>> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.59 Safari/525.19 Cache-Control: max-age=0 Accept: text/xml,application/xml,application/xhtml+xml,text/ html;
[google-appengine] Re: email issue with Google Apps e-mail "Group"
I don't think we are talking about the same thing. You are talking about "Post a message". I just want to "send" a mail Here is a picture about what I'm talking. http://img206.imageshack.us/my.php?image=gappgroup.jpg Sylvain On 5 mai, 13:57, Sylvain wrote: > Yes, this group is correctly parameter. > > I'm just testing to send a mail to support@.com with my gmail > adress and many other e-mail adresses (hotmail,... etc,...). And all > my tests work. > > So there is only an issue with mails from GAE. > > Sylvain > > On 5 mai, 13:42, "Nick Johnson (Google)" > wrote: > > > Hi Sylvain, > > > Even for groups that are marked 'public', they generally require that > > the sender be a member of the group before they can post. In addition > > to setting the group as "public", you also need to select "anyone can > > post" under "who can post messages?" on the Access tab of the group's > > settings. > > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: PyCrypto Access
Hi Dan, Just the same as you would in any other app using PyCrypto: Consult the relevant documentation. PyCrypto puts all the relevant modules under the 'Crypto' module. -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Is logging.debug output available on GAE Development Server?
On Sat, May 2, 2009 at 11:49 AM, Scott wrote: > Basically I want to use logging.debug as I develop my app. When my > app is running up on GAE, I can use the console to view logs. I would > also like to view logs when I run under the Development Server on my > local machine. Possible? Pass the -d (or --debug) flag to dev_appserver.py Dave. --~--~-~--~~~---~--~~ 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] Re: upload_data authentication problem
Hi John, Are you using a Google Apps account as an administrator? If your app is set to allow authentication from all domains, and you're using a Google Apps account for the administrator account, this is the behaviour you'll see with the bulk loader, even if the same account works fine for other commands like 'upload'. The reason you're not being prompted is likely because you've allowed appcfg.py to store your credentials. -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Best way to implement optimistic locking?
Hi Andy, If you're only updating a single entity, or multiple entities in a single entity group, you can use db.run_in_transaction to execute the check-and-update atomically. -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Google account and Google Apps account mixed
Hi Sorcix, Mobile phone numbers can only be used once, globally, to verify an App Engine account. If you'd previously used your phone number to verify your Apps account, you cannot use the same number to verify a non-apps account. -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: [How To] - Get a global error handler
Hi Pranny, google.appengine.ext.webapp.RequestHandler defines a 'handle_exception' method, which gets called for any uncaught exceptions. You can define your exception handling code there, and use standard OO inheritance to define different exception handling behaviour. Then, just have each Handler extend the appropriate superclass. -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: An error occurred for the API request datastore_v3.RunQuery()
Can you please paste the entire stacktrace? I'm guessing this is probably a datastore timeout - these do happen from time to time, and you need to catch them and deal with them appropriately (for example, by retrying, or returning a nicely formatted error page to the user. -Nick Johnson On Sat, May 2, 2009 at 8:17 PM, tijer wrote: > > One of the requests to my app today resulted in this weird error, > resulting in a blank page for the user. After a refresh it went away. > > It has happened a few other times, but it seems that there is nothing > I can do to avoid a blank page when it happens. The error looks like > this: > > Error: An error occurred for the API request datastore_v3.RunQuery(). > > Is there any explanation for it? > > the app id is rby, the error occoured at 05-02 10:59AM 00.005 --~--~-~--~~~---~--~~ 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] Save JSON data as csv files
Hello: I have use gviz_api to generate JSON data at GAE server side and render them in html pages under Django. Now I want to provide a "save as" link to save all JSON data into a .csv file, how to proceed? 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 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] Re: Add StringProperty to Model without problems with the datastore?
I have dealed with the same situation a couple of times, and I used the technique described at: http://code.google.com/appengine/articles/update_schema.html Reading the remote_api article I guess that the main advantage is the removal of timeout limitation (as the code actually runs on your machine) But It looks slightly more difficult to use remote api than the other approach. Soo, I guess I would only use remote api if I need to do complicated stuff over large number of entries. And keep using the other way for simple updates/property inclusion. But probably I'm wrong. Thanks for the tip! On May 5, 7:49 am, "Nick Johnson (Google)" wrote: > Hi Ricky, > > If your StringProperties are either not required, or supply a default > value, you can simply amend your model without trouble. Bear in mind, > though, that the properties will not be present on entities that were > last updated before you added them, so queries and filters involving > the new properties will only show up entities that were updated since > you changed the model. > > If you need to change existing entities, one way to do this is with > the remote_api module. The article has details on how to write a > simple map framework > here:http://code.google.com/appengine/articles/remote_api.html > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: documentation for memcache namespaces?
I mentioned that link. It doesn't provide any useful information about what namespaces do. Consider the documentation for set_multi. "key_prefix - Prefix for to prepend to all keys. ... namespace - An optional namespace for the keys." What functionality does namespace provide that key_prefix doesn't provide? On May 5, 1:15 am, djidjadji wrote: > http://code.google.com/appengine/docs/python/memcache/clientclass.htm... > > 2009/5/4 Andy Freeman : > > > > > > > Where are memcache namespaces documented? (They're mentioned in > >http://code.google.com/appengine/docs/python/memcache/functions.html > > andhttp://code.google.com/appengine/docs/python/memcache/clientclass.html > > .) > > > Note thathttp://code.google.com/p/memcached/wiki/FAQsays that > > memcached does not support namespaces- 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] "DatastoreNeedIndexException: no matching index found" after app uploaded to Google
I have a very simple java web app, tested on local 127.0.0.1, without any problem, but got error on Google. The model is plain pojo, and the function is straight forward List results = new ArrayList(); PersistenceManager pm = PersistenceManagerSingeton.instance ().getPersistenceManager(); int startId = pageNumber*pageSize; int endId = startId+pageSize+1; Query query = pm.newQuery(MyModel.class); query.setOrdering("id desc"); query.setRange(startId, endId); try { results = (List< MyModel >) query.execute(); } finally { query.closeAll(); pm.close(); } The "id" is the PK @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id; This works fine on my local testing (Eclipse+App-Engine-Plug-in) Today, I got account approval email from Google, and uploaded this app to app-engine. However when I was testing it, always got below error: com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found. at com.google.appengine.api.datastore.DatastoreApiHelper.translateError (DatastoreApiHelper.java:34) at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall (DatastoreApiHelper.java:55) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl.runQuery(DatastoreServiceImpl.java:310) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl.access$100(DatastoreServiceImpl.java:240) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl$1.iterator(DatastoreServiceImpl.java:269) at org.datanucleus.store.appengine.query.RuntimeExceptionWrappingIterable.iterator (RuntimeExceptionWrappingIterable.java:42) at org.datanucleus.store.appengine.query.StreamingQueryResult. (StreamingQueryResult.java:72) at org.datanucleus.store.appengine.query.DatastoreQuery.fulfillEntityQuery (DatastoreQuery.java:253) at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute (DatastoreQuery.java:220) at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute (JDOQLQuery.java:85) at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute (JDOQLQuery.java:31) at org.datanucleus.store.query.Query.executeQuery(Query.java:1466) at org.datanucleus.store.query.Query.executeWithArray(Query.java: 1340) at org.datanucleus.store.query.Query.execute(Query.java:1313) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:218) My understanding is that query as simple as above, should not need manual index. I noticed there was nothing the generated datastore-indexes-auto.xml, just . It makes sense since all my operations are save, delete and select-all-type of query I even tried creating manually the datastore-index.xml with below: http://appengine.google.com/ns/datastore-indexes/1.0"; autoGenerate="true"> Tested on Google, and got same error. Please help 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 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] join group-by queries, reports and data warehousing
Sorry to raise up this topic again, but I did not find any still opened for my additional questions. I read a lot of information here saying that the way we store/retrieve information in Datastore is particularly designed for high performance and scalability. I hear this a lot in GAE, and I am sure Google handles a very huge volume of data which makes practically impossible to run traditional queries (full of sub-queries, join and group-by) as we all know in the SQL world. However, I still lack the experience of such number, and the traditional way could just fit enough to my purposes. As GAE is already built in with Google's premises to scalability, I kind of see a lack of guidance on that matter. For example, in a simple model where I am running polls for different purposes, storing who+option values only, how could I report the total of hits on an option? Should I: a) just get them all and let the python code to loop and manually do my group by action (if that's the case, then I think we have the same problem for the scalability, as the cost to reach and get all data may be even higher) or b) create another model to add the counter for every option (and t that's the case, it sounds to me very bad principle to try to build a data warehousing model to generate proper reports for every single formatting I may need, meaning too many insert queries for a single poll vote)? Could we have a more official solution or example for such cases? I think this kind of question will be addressed oftenly around here. Just reminding that the objective is not to add "join" or "group-by" features to GQL, but rather have concrete workarounds that will give the same results. This is very important for models requiring reporting services. I really would like someone to enlighten me on this. Thanks in advance. --~--~-~--~~~---~--~~ 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] Logging System
Hi, The google team could provide a logging guide? It would be very helpful. I could configure my test app to use the Java Logging API but would prefer to use Log4J. The server already provide the log4j jar? If I want to use it I should include it with my app? How to setup the appenders if we cannot write to disk? Thanks in advance. Congrats for the excellent app engine java project. Marcelo --~--~-~--~~~---~--~~ 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] Video chat inside application
Hi guys, well, I just started with App Engine and I'd like to know if you can help me with ideias of how to use the Gmail/Gtalk video plugin inside my apps. Or maybe integrate the web chat. Thanks in advance for any help. --~--~-~--~~~---~--~~ 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] Uploading App for another person will help market adoption - Is-it possible?
Hello everyone, After reading the docs and discussions, I still don't find how it will be possible to upload an application for another person Google account... Could someone give me light...? That is the context, as I see it: . Google App Engine is fine, particularly for companies with limited IT staff . GAE is also fine for IT professionals who want to develop App for that companies Hypothesis: . Google will be happy to attract both: small companies and IT specialist interested The problem: . Lets imagine that one person has obtain an application ID and he want a developer to develop this App . As I see up to now, the developer need the password of the Gmail account to upload the App . So what...? The person should keep this email address for the App? He should renounce to the confidentiality of this email? He should trust the developer? He should become an IT developer and do the development...? Obviously none of these solutions are ideal for mass market adoption! As I am still new to GAE, maybe I missed some points and I will be happy I someone could help me. For me, the ideal solution would be something like: The gmail account owner: . obtain an application ID . manage the application: quotas, billings... . can temporarily delegate application development and uploading to a developer . can revoke the uploading right when he want. The developer: . Receive an application ID an the right to upload . Do uploads ... (has access to some part of the dashboard ... loads, errors... Or the owner could also send him these informations...) I know, this is kind of wishful thinking... :-) On the other hand, maybe it's still there and I just can't see it... Or maybe they are a lot of other developer that will be interested by this feature?? Thus, your comments are welcome! --~--~-~--~~~---~--~~ 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] Re: different urlfetch behaviour on development and production servers: URLs with the characters: ( or )
Ivan, Your problem looks like a common encoding problem. The default encoding used in server of GAE is ASCII, but something else such as UTF-8 on your computer. So the code works in your development environment but not on Google server. To deal with this problem you need to declare the encoding in file header and decode your string to unicode with the proper charset before using it. If you don't do this, the Python interpreter will help you to do it with the system default one. I agree this is a little confusing. Python should do it more elegantly. For Matthew's problem, sorry I also have no idea about it. urlfetch is a mystery in GAE libs. I found several examples working good in local but throwing error on server. So I can only suggest you avoid touching the dangerous zone like braces in url. :-) -- George App Engine Unit Test Framework http://code.google.com/p/gaeunit/ On May 4, 5:35 pm, Ivan Maslov wrote: > I have similar problem. On development server function urlencode works > correctly with unicode string. In production error occurs: > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe2' in position > 2: ordinal not in range(128). It occurs when i pass russian strings as > parameter. > > 2009/5/4 Matt Trinneer > > > > > To further that post... > > > It seems to me that URLs containing characters such as ( and ) are not > > being fetched properly on the production environment. I've attempted > > escaping the characters, as per RFC 3986. However the escaped url > > (http://dbpedia.org/resource/Companion_%28manga%29) doesn't fair any > > better. --~--~-~--~~~---~--~~ 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] Re: PyCrypto Access
The problem is that I don't see a file or a directory named 'Crypto' anywhere on my system (it's certainly not in google_appengine/lib with antlr3 and django) . Where is it supposed to be? On May 5, 5:04 am, "Nick Johnson (Google)" wrote: > Hi Dan, > > Just the same as you would in any other app using PyCrypto: Consult > the relevant documentation. PyCrypto puts all the relevant modules > under the 'Crypto' module. > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Uploading App for another person will help market adoption - Is-it possible?
Hi Michel, You can add additional administrators for your app in the control panel, and remove them when you no longer require them there. Failing that, your (hypothetical) contractor can develop the app independently, and simply send it to you to deploy. -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: google account frustrations
Hi Jason, I am running Safari 4. Clearing cookies doesn't work. I will test Firefox today. I don't think I'm doing anything in particular when I'm redirected. I'd estimate that the amount of time before I'm redirected is about 5-10 mins on average. On May 4, 4:13 pm, "Jason (Google)" wrote: > Hi Ben. Which browser are you running? Have you tried using a different > browser or clearing your cookies to see if this flippant behavior stops? > > Just to get a better idea of your problem, are you doing anything in > particular between when you're able to work in the Admin Console and when > you're being redirected to the standard sign-in? Or is it just one click > you're fine and the next you're redirected? How many minutes on average > before this happens? > > - Jason > > > > On Sat, May 2, 2009 at 1:09 PM, Ben Nevile wrote: > > > I administer most of my apps through a Google Apps account: > > b...@mainsocial.com. Recently the application console started asking > > me FREQUENTLY to log in. It bounces me to the regular "sign in with > > your google account" page. If I just go directly back to > >http://appengine.google.com/a/mainsocial.com, it doesn't ask me to log > > in, and I can get back to the app console for a few minutes. > > > I used to be able to mess around all day in the application console > > without this happening. What changed? > > > Ben --~--~-~--~~~---~--~~ 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] Re: PyCrypto Access
PyCrypto is a third-party library. If it is installed, it will be in your Python install's site-packages directory, not under the App Engine SDK. -Nick Johnson --~--~-~--~~~---~--~~ 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] DB blob and URL fetch size limitations...
Team Google- Are there any plans to increase the DB blob object and URL fetch object size limitations? My understanding is that both are limited to 1MB which is a little constraining for one application I'm building. I understand that there are workarounds, such as the use of AWS, but for simplicity's sake, I'd like to keep everything in one place. If there's not a plan to change this overall, is there any opportunity to get this limit raised on a per-application basis? --~--~-~--~~~---~--~~ 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] Re: Best way to implement optimistic locking?
OK. Thanks, that's great. Andy On May 5, 1:41 pm, "Nick Johnson (Google)" wrote: > Hi Andy, > > If you're only updating a single entity, or multiple entities in a > single entity group, you can use db.run_in_transaction to execute the > check-and-update atomically. > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Uploading App for another person will help market adoption - Is-it possible?
Thanks a lot, I missed this point in the app control panel. Now it works fine! On May 5, 4:52 pm, "Nick Johnson (Google)" wrote: > Hi Michel, > > You can add additional administrators for your app in the control > panel, and remove them when you no longer require them there. > > Failing that, your (hypothetical) contractor can develop the app > independently, and simply send it to you to deploy. > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: newbie question - url routing - using urls to make queries
that's it. i was using python. Thanks Nick! On May 5, 7:47 am, "Nick Johnson (Google)" wrote: > Hi,loopymonkey, > > You don't specify which runtime you're working with, and the best way > to do this is runtime-specific. In Python, however, if you're using > the default webapp framework, you can do this by defining groups in > the handler regular expressions; the contents of these groups will be > passed to the handler. An example can be seen > here:http://code.google.com/appengine/docs/python/tools/webapp/running.html > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: [How To] - Get a global error handler
Oh, Thats good. I was unaware of this. Thanks a lot. I will work on this. Cheers :-) Pranav On May 5, 6:15 pm, "Nick Johnson (Google)" wrote: > Hi Pranny, > > google.appengine.ext.webapp.RequestHandler defines a > 'handle_exception' method, which gets called for any uncaught > exceptions. You can define your exception handling code there, and use > standard OO inheritance to define different exception handling > behaviour. Then, just have each Handler extend the appropriate > superclass. > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Save JSON data as csv files
You can not output JSON data as csv directly. Perhaps you need generate a list. http://www.7blog.org/archives/django-step-by-step-102ban-xinbanjiaocheng-csv/ http://docs.djangoproject.com/en/dev/howto/outputting-csv/?from=olddocs 2009/5/5 秦锋 > > Hello: > I have use gviz_api to generate JSON data at GAE server side and > render them in html pages under Django. Now I want to provide a "save > as" link to save all JSON data into a .csv file, how to proceed? > > 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 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] How to iterate a json string using dictionary
I am getting a json string from an iphone application that is consuming a google app engine application. Can anybody let me know how to iterate over a json string using a dictionary so that I can extract individual fields of the string Thanks Arnieterm --~--~-~--~~~---~--~~ 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] Re: PyCrypto Access
What?? How does this reconcile with the 1.2.1 announcement: App Engine includes a custom version of the Python Cryptography Toolkit, also known as PyCrypto. The version included with App Engine is based on pycrypto 2.0.1. This is not the latest version, but should be largely compatible with more recent versions. http://code.google.com/appengine/docs/python/tools/libraries.html On May 5, 7:54 am, "Nick Johnson (Google)" wrote: > PyCrypto is a third-party library. If it is installed, it will be in > your Python install's site-packages directory, not under the App > Engine SDK. > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: PyCrypto Access
Seems there is native code there for various ciphers and hashes. Just include the Python parts of PyCrypto in your project. Try running: [ x for x in sys.modules.keys() if 'ypt' in x ] on http://shell.appspot.com David 2009/5/5 Devel63 : > > What?? How does this reconcile with the 1.2.1 announcement: > > App Engine includes a custom version of the Python Cryptography > Toolkit, also known as PyCrypto. > The version included with App Engine is based on pycrypto 2.0.1. > This is not the latest version, but > should be largely compatible with more recent versions. > > http://code.google.com/appengine/docs/python/tools/libraries.html > > > On May 5, 7:54 am, "Nick Johnson (Google)" > wrote: >> PyCrypto is a third-party library. If it is installed, it will be in >> your Python install's site-packages directory, not under the App >> Engine SDK. >> >> -Nick Johnson > > > -- It is better to be wrong than to be vague. — Freeman Dyson --~--~-~--~~~---~--~~ 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] Re: Some design Issues in appengine datastore
Thanks all for your suggestions,I am trying different ways and reading about various design patterns that can be used, I will update the thread once i am done with some more work on this. On Sun, May 3, 2009 at 11:17 PM, ryan > wrote: > > also take a look at polymodel: > > http://code.google.com/appengine/docs/python/datastore/polymodelclass.html > > On May 1, 12:54 pm, adelevie wrote: > > try readinghttp://bret.appspot.com/entry/how-friendfeed-uses-mysql > > > > one pitfall to avoid is to rely on a recursive function to iterate > > through a tree. > > > > On May 1, 9:24 am, Ted wrote: > > > > > > 1# > > > > > class Food(db.Model): > > > category = db.StringListProperty() > > > [other properties] > > > > > apple = Food(category=['fruit','red','iron','apple']) > > > greenfruit = Food(category=['fruit','green']) > > > veg3 = Food(category= > > > ['vegetable','category1','category2','category3']) > > > > > If you query category='fruit', you'll get both apple and greenfruit. > > > > > > 2# > > > > > Try to use auto-completion provided by some Ajax libraries like YUI. > > > > > > 3# > > > > > Do you mean XMPP and Jaiku, seehttp:// > morethanseven.net/2009/02/21/example-using-xmpp-app-engine-imi... > > > --~--~-~--~~~---~--~~ 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] Re: join group-by queries, reports and data warehousing
hi bruno! thanks for the post, this is a great question. the short answer is that the datastore simply doesn't support data warehouse or data mining well. it's doable, but far from ideal, for the reasons you've mentioned. it's aimed at serving webapps, which it's good at, but not at ad hoc reports or queries. for use cases like counters, if they're needed for end user requests, we usually recommend updating them on writes, as you mentioned, but you're right that that doesn't work for the arbitrary number of reports or queries that data warehouses traditionally support, nor does it work for the ad hoc queries often needed for data mining and business intelligence. right now, if you need an industrial strength data warehouse, i'd recommend bulk downloading your data and using a third party solution. --~--~-~--~~~---~--~~ 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] Sagar T.R. wants to chat
--- Sagar T.R. wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-a225ac5ae0-e75f3fc856-cb452dab5795851f You'll need to click this link to be able to chat with Sagar T.R.. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with Sagar T.R., visit: http://mail.google.com/mail/a-a225ac5ae0-e75f3fc856-cb452dab5795851f Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into "conversations" - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client Gmail and Google Talk are still in beta. We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). --~--~-~--~~~---~--~~ 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] Re: PyCrypto Access
The libraries are installed on the App Engine production servers. They are not part of the SDK, so they're not on your machine unless you installed them, the same as the other third party libraries usable with App Engine. On May 5, 1:38 pm, Devel63 wrote: > What?? How does this reconcile with the 1.2.1 announcement: > > App Engine includes a custom version of the Python Cryptography > Toolkit, also known as PyCrypto. > The version included with App Engine is based on pycrypto 2.0.1. > This is not the latest version, but > should be largely compatible with more recent versions. > > http://code.google.com/appengine/docs/python/tools/libraries.html > > On May 5, 7:54 am, "Nick Johnson (Google)" > wrote: > > > PyCrypto is a third-party library. If it is installed, it will be in > > your Python install's site-packages directory, not under the App > > Engine SDK. > > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Sagar T.R. wants to chat
hmmmlooks like some people really crave for attention On Tue, May 5, 2009 at 10:47 PM, Sagar T.R. wrote: > > --- > > Sagar T.R. wants to stay in better touch using some of Google's coolest new > products. > > If you already have Gmail or Google Talk, visit: > http://mail.google.com/mail/b-a225ac5ae0-e75f3fc856-cb452dab5795851f > You'll need to click this link to be able to chat with Sagar T.R.. > > To get Gmail - a free email account from Google with over 2,800 megabytes of > storage - and chat with Sagar T.R., visit: > http://mail.google.com/mail/a-a225ac5ae0-e75f3fc856-cb452dab5795851f > > Gmail offers: > - Instant messaging right inside Gmail > - Powerful spam protection > - Built-in search for finding your messages and a helpful way of organizing > emails into "conversations" > - No pop-up ads or untargeted banners - just text ads and related information > that are relevant to the content of your messages > > All this, and its yours for free. But wait, there's more! By opening a Gmail > account, you also get access to Google Talk, Google's instant messaging > service: > > http://www.google.com/talk/ > > Google Talk offers: > - Web-based chat that you can use anywhere, without a download > - A contact list that's synchronized with your Gmail account > - Free, high quality PC-to-PC voice calls when you download the Google Talk > client > > Gmail and Google Talk are still in beta. We're working hard to add new > features > and make improvements, so we might also ask for your comments and suggestions > periodically. We appreciate your help in making our products even better! > > Thanks, > The Google Team > > To learn more about Gmail and Google Talk, visit: > http://mail.google.com/mail/help/about.html > http://www.google.com/talk/about.html > > (If clicking the URLs in this message does not work, copy and paste them into > the address bar of your browser). > > > > -- Quarix framework developer --- Ajax on Progress www.quarix.net http://blogspot.tudorconstantin.com http://www.linkedin.com/in/tudorconstantin Clarence Darrow - "When I was a boy I was told that anybody could become President; I'm beginning to believe it." - http://www.brainyquote.com/quotes/authors/c/clarence_darrow.html --~--~-~--~~~---~--~~ 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] Re: PyCrypto Access
OK, I hear what you all are saying: I need to install the libraries on my dev server, but not upload them to my workspace because they will already be accessible there. However, I don't know why people on this thread keep saying that this is the way it works with all the other 3rd party libraries. To the contrary, antlr3, django v0.96, webob, and yaml ... everything else mentioned on http://code.google.com/appengine/docs/python/tools/libraries.html ... gets installed with the SDK under the lib directory. I guess I can give it a go and see what happens, but it seems weird to me that Google would make a custom version, tell us it is not based on the latest release of the public version, and then not distribute it with the SDK as they have with every other incorporated library (unless there's some security reason not to do so). So I guess we have to get it working locally, then upload and hope that it works with their modified and reduced functionality module, which we have no way of examining beforehand. On May 5, 12:57 pm, Wooble wrote: > The libraries are installed on the App Engine production servers. > They are not part of the SDK, so they're not on your machine unless > you installed them, the same as the other third party libraries usable > with App Engine. > > On May 5, 1:38 pm, Devel63 wrote: > > > What?? How does this reconcile with the 1.2.1 announcement: > > > App Engine includes a custom version of the Python Cryptography > > Toolkit, also known as PyCrypto. > > The version included with App Engine is based on pycrypto 2.0.1. > > This is not the latest version, but > > should be largely compatible with more recent versions. > > > http://code.google.com/appengine/docs/python/tools/libraries.html > > > On May 5, 7:54 am, "Nick Johnson (Google)" > > wrote: > > > > PyCrypto is a third-party library. If it is installed, it will be in > > > your Python install's site-packages directory, not under the App > > > Engine SDK. > > > > -Nick Johnson --~--~-~--~~~---~--~~ 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] http://appgallery.appspot.com ???
http://appgallery.appspot.com - Is it dead or why does the featured application not chaning? Always the GiftTag app. It is ok, but shouldn't we be presented with new apps every week? --~--~-~--~~~---~--~~ 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] structure of appengine application
Hi, First of all, I'd like to say i've learned a lot in this group. Thanks for all the great insight. I am developing a web app and wanted to know what is the best way to structure my development. I want to get the data/schemas done first. I've started to write my models.py. But how to write views.py and urls.py to correlate with my models.py? Can you show me any examples of structuring my schema, views.py, or urls.py. Basically do you have any examples of views.py or urls.py. What are the best practices to start writing a web app? i've done all the wireframing and diagramming as well. 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 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] Re: PyCrypto Access
Doesn't seem to work on http://shell.appspot.com I can import a module (e.g., from Crypto.Cipher import DES), but when I try to use it I get all sorts of errors about not being able to pickle it (e.g., obj=DES.new('abcdefgh', DES.MODE_ECB). I picked those 2 lines (and others) because they are straight out of the pycrypto examples. On May 5, 1:24 pm, Devel63 wrote: > OK, I hear what you all are saying: I need to install the libraries on > my dev server, but not upload them to my workspace because they will > already be accessible there. > > However, I don't know why people on this thread keep saying that this > is the way it works with all the other 3rd party libraries. To the > contrary, antlr3, django v0.96, webob, and yaml ... everything else > mentioned onhttp://code.google.com/appengine/docs/python/tools/libraries.html > ... gets installed with the SDK under the lib directory. > > I guess I can give it a go and see what happens, but it seems weird to > me that Google would make a custom version, tell us it is not based on > the latest release of the public version, and then not distribute it > with the SDK as they have with every other incorporated library > (unless there's some security reason not to do so). So I guess we > have to get it working locally, then upload and hope that it works > with their modified and reduced functionality module, which we have no > way of examining beforehand. > > On May 5, 12:57 pm, Wooble wrote: > > > The libraries are installed on the App Engine production servers. > > They are not part of the SDK, so they're not on your machine unless > > you installed them, the same as the other third party libraries usable > > with App Engine. > > > On May 5, 1:38 pm, Devel63 wrote: > > > > What?? How does this reconcile with the 1.2.1 announcement: > > > > App Engine includes a custom version of the Python Cryptography > > > Toolkit, also known as PyCrypto. > > > The version included with App Engine is based on pycrypto 2.0.1. > > > This is not the latest version, but > > > should be largely compatible with more recent versions. > > > > http://code.google.com/appengine/docs/python/tools/libraries.html > > > > On May 5, 7:54 am, "Nick Johnson (Google)" > > > wrote: > > > > > PyCrypto is a third-party library. If it is installed, it will be in > > > > your Python install's site-packages directory, not under the App > > > > Engine SDK. > > > > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: Check Domain Availability
No, I was actually looking for an api for my app to use to check if a domain is available On May 4, 7:05 pm, "Jason (Google)" wrote: > If you're looking for an appspot.com domain, which all App Engine > applications are served from, then you'll need to register for and sign into > App Engine and try registering a new application: > > http://appengine.google.com > > Before you can create a new application, you have to specify an application > ID, which then becomes your subdomain (e.g. example.appspot.com). There's a > button to check whether a given application ID is available before you > register it. > > For general domain availability, I recommend a hosting provider website > likehttp://www.godaddy.com/. > > - Jason > > On Fri, May 1, 2009 at 3:35 PM, MajorProgamming wrote: > > > I'm looking for a way to check if a domain is available. Preferably to > > run on Google AppEngine alone. But if not then something in plain > > python that will work on my own pc. > > > 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 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] Using PyCrypto
Has anyone used PyCrypto successfully with App Engine (http:// code.google.com/appengine/docs/python/tools/libraries.html#PyCrypto)? I've run into 2 obstacles - 1) Since there's no distribution with App Engine SDK, does anyone know a safe source of the library for use on a Windows development machine? 2) Trying to use it on http://shell.appspot.com, I get errors from Crypto.Cipher import DES obj=DES.new('abcdefgh', DES.MODE_ECB) -->all sorts of traceback errors mentioning pickling --~--~-~--~~~---~--~~ 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] store files to datastore in a folder like structure?
I am porting my WebOS(Shedokan OS) to python from php so I can use it og GAE and I came to the stage where I need to read and write files. And after a lot of searching I found out that I cannot create files or write to files. here is my code: from google.appengine.ext import db class File(db.Model): filename = db.StringProperty(multiline=False) filedata = db.BlobProperty date = db.DateTimeProperty(auto_now_add=True) def createFile(fileName, content): if fileName=='' or content=='': return file = File() file.filedata = content file.filename = fileName file.put() def getFile(fileName): if fileName=='': return return db.GqlQuery('SELECT * FROM File WHERE filename= :1',fileName) any way to make this work with a folder structure? also I want to note that I started learning python just about 3 days ago, so I think I'm a begginer. 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 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] Re: documentation for memcache namespaces?
It says: To be compatible with other memcache implementations they allow parameters and functions that have no meaning --~--~-~--~~~---~--~~ 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] passing a variable value from html file to views.py
HI, I need help on passing a variable from the html file to views.py what I am doing is making a ad system. Currently working on making a clicks per ad count. So I have it structured like this: Their is 2 files: views.py and context.py context.py this files job is to send variable values to the html file. This will be the ads graphic url and also the website url. then at the html file. I put the ads url to the site variable in a form with a input type hidden. I then have javascript that will autmaticly submit the forms. The forms action is the url that I specified in urls.py. Now I have in the urls.py to point to the function in views.py that will handel the processing. So right now I am getting an Error : MultiValueDictKeyError then it says : "Key 'adr' not found in " The adr code is : url = request.POST['adr'] what do I need to pass a variable value from a form or any other method. I need to have a way that when they click the ad that I would send the ads url to the website to views.py because the views.py will update the database by a field named number of clicks and it would just add 1 to that number. Then it would redirect the user to the ads url to the ads website. thats what I need to do and so far am having trouble getting something to work. I am new to google apps engine and django. we use both google apps engine and django. --~--~-~--~~~---~--~~ 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] Re: PyCrypto Access
Hi The approach makes heaps of sense PIL, Imaging support is done the same way, you need PIL installed locally to support the limited image api, and google have a service that performs the same thing in their infrastructure. They won't let you run the full pycrypto library as it has lot of 'c' so you can't deploy it and they will have cut it down to what they can allow (ie no file writes, socket connections etc, and whatever cyphers and hashes they will support in the infrastructure) Rgds T On May 6, 4:24 am, Devel63 wrote: > OK, I hear what you all are saying: I need to install the libraries on > my dev server, but not upload them to my workspace because they will > already be accessible there. > > However, I don't know why people on this thread keep saying that this > is the way it works with all the other 3rd party libraries. To the > contrary, antlr3, django v0.96, webob, and yaml ... everything else > mentioned onhttp://code.google.com/appengine/docs/python/tools/libraries.html > ... gets installed with the SDK under the lib directory. > > I guess I can give it a go and see what happens, but it seems weird to > me that Google would make a custom version, tell us it is not based on > the latest release of the public version, and then not distribute it > with the SDK as they have with every other incorporated library > (unless there's some security reason not to do so). So I guess we > have to get it working locally, then upload and hope that it works > with their modified and reduced functionality module, which we have no > way of examining beforehand. > > On May 5, 12:57 pm, Wooble wrote: > > > The libraries are installed on the App Engine production servers. > > They are not part of the SDK, so they're not on your machine unless > > you installed them, the same as the other third party libraries usable > > with App Engine. > > > On May 5, 1:38 pm, Devel63 wrote: > > > > What?? How does this reconcile with the 1.2.1 announcement: > > > > App Engine includes a custom version of the Python Cryptography > > > Toolkit, also known as PyCrypto. > > > The version included with App Engine is based on pycrypto 2.0.1. > > > This is not the latest version, but > > > should be largely compatible with more recent versions. > > > > http://code.google.com/appengine/docs/python/tools/libraries.html > > > > On May 5, 7:54 am, "Nick Johnson (Google)" > > > wrote: > > > > > PyCrypto is a third-party library. If it is installed, it will be in > > > > your Python install's site-packages directory, not under the App > > > > Engine SDK. > > > > > -Nick Johnson --~--~-~--~~~---~--~~ 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] Re: store files to datastore in a folder like structure?
You will need to create a Folder entity It will need to know it's children, and you will need to support some form of url traversability to walk the folder heirarchy. I am doing that with zope3 components on gae Django doesn't normally do url traversing, but has a regex match to method Do you really need a folder heirarchy, have you gone down that path because you are just trying to replicate a filesystem, with out really needing those semantics ? If you really want this sort of functionality you might want to look at repoze.bfg it is just been made useable under gae (and is zope 3 based though much simpler) and does support inherintly the notion of url traversal over an object model/graph Rgds T On May 6, 6:34 am, Shedokan wrote: > I am porting my WebOS(Shedokan OS) to python from php so I can use it > og GAE and I came to the stage where I need to read and write files. > > And after a lot of searching I found out that I cannot create files or > write to files. > here is my code: > > from google.appengine.ext import db > > class File(db.Model): > filename = db.StringProperty(multiline=False) > filedata = db.BlobProperty > date = db.DateTimeProperty(auto_now_add=True) > > def createFile(fileName, content): > if fileName=='' or content=='': > return > file = File() > file.filedata = content > file.filename = fileName > file.put() > > def getFile(fileName): > > if fileName=='': > return > return db.GqlQuery('SELECT * FROM File WHERE filename= :1',fileName) > > any way to make this work with a folder structure? > > also I want to note that I started learning python just about 3 days > ago, so I think I'm a begginer. > > 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 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
On May 5, 11:13 am, "Nick Johnson (Google)" wrote: > > Google's servers returning a 400 for URLs containing an unescaped | > character is not a bug in the server - they're correctly obeying the > relevant RFCs. By this definition, you are claiming that the main google.com search server is wrong, because it does not refuse to accept raw pipe characters. Certainly, one set of Google servers are wrong, because there are two different behaviours. Here's a schizophrenic Google server for you, this very site: http://groups.google.com/group/google-appengine/browse_thread/thread/4ced9847935e7b34 Type: this|that into the search box in the upper right hand corner, and click "Search this group". It panics and redirects you to the main page at http://groups.google.com. You search query is lost. Try it again, but this time click on "Search groups". This works -- results are shown. The pipe was not encoded by my Firefox 3..0.x browser. > The RFC is clear as to what characters are acceptable in the query > string part of a HTTP URL. | is not one of these characters, It is clear, but it also gives reasons why: Unsafe: Characters can be unsafe for a number of reasons. The space character is unsafe because significant spaces may disappear and insignificant spaces may be introduced when URLs are transcribed or typeset or subjected to the treatment of word-processing programs. The characters "<" and ">" are unsafe because they are used as the delimiters around URLs in free text; the quote mark (""") is used to delimit URLs in some systems. The character "#" is unsafe and should always be encoded because it is used in World Wide Web and in other systems to delimit a URL from a fragment/anchor identifier that might follow it. The character "%" is unsafe because it is used for encodings of other characters. Other characters are unsafe because gateways and other transport agents are known to sometimes modify such characters. NONE of this applies once the URL has reached the web server. Why insist that the browser send you a %7c instead of | when you're just going to immediately decode it to | anyway? google.com doesn't. The google groups server is borked whatever you do. Here's the search with an explicit %7c: http://groups.google.com/group/google-appengine/search?group=google-appengine&q=this%7cthat&qt_g=Search+this+group > so if your browser is sending one, it's an issue either with your browser or > with your URL encoding. When millions of people browse with Firefox and Google Chrome, which do not encode '|' when an ordinary user types it into a search box, and your server software fails inelegantly to handle it, the fault is with the server software. That's why the main google.com software gets it right, and the groups.google.com software, among other Google services, gets it wrong... --~--~-~--~~~---~--~~ 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] PyCrypto Working?
Has anyone gotten the new support for PyCrypto to work? (http:// code.google.com/appengine/docs/python/tools/libraries.html#PyCrypto) When I try it on http://shell.appspot.com, I get error messages about pickling. - from Crypto.Cipher import DES - obj=DES.new('abcdefgh', DES.MODE_ECB) --~--~-~--~~~---~--~~ 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] Re: different urlfetch behaviour on development and production servers: URLs with the characters: ( or )
Hi George, Thanks for the response. I've done some additional testing and am not getting much further. Unfortunately in this case I do not have control of the endpoint and am stuck with braces in the URL. Some additional notes which may be of use to anyone who happens upon this: 1. The URLs being requested in this example return xml/rdf documents. 2. In the case of requesting a resource without braces in it's URL a response similar to the following is received (truncated for brevity) http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";> http://dbpedia.org/resource/Companion_ %28manga%29">. 3. On the GAE production environment the response to a request for a URL with braces is not an error, but rather an empty rdf document. http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";> 4. This lead me to speculate that the request being received by the remote host was not for the same resource as I believe I am making a request for. So, with the help of another non-GAE endpoint I have been logging requests generated via urlfetch and am not able to see any appreciable difference between those sent by the development version, where these requests work, and the production version, where they don't. Continuing to investigate On May 5, 5:31 am, George wrote: > Ivan, Your problem looks like a common encoding problem. The default > encoding used in server of GAE is ASCII, but something else such as > UTF-8 on your computer. So the code works in your development > environment but not on Google server. > > To deal with this problem you need to declare the encoding in file > header and decode your string to unicode with the proper charset > before using it. If you don't do this, the Python interpreter will > help you to do it with the system default one. I agree this is a > little confusing. Python should do it more elegantly. > > For Matthew's problem, sorry I also have no idea about it. urlfetch is > a mystery in GAE libs. I found several examples working good in local > but throwing error on server. So I can only suggest you avoid touching > the dangerous zone like braces in url. :-) > > -- > George > > App Engine Unit Test Frameworkhttp://code.google.com/p/gaeunit/ > > On May 4, 5:35 pm, Ivan Maslov wrote: > > > > > I have similar problem. On development server function urlencode works > > correctly with unicode string. In production error occurs: > > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe2' in position > > 2: ordinal not in range(128). It occurs when i pass russian strings as > > parameter. > > > 2009/5/4 Matt Trinneer > > > > To further that post... > > > > It seems to me that URLs containing characters such as ( and ) are not > > > being fetched properly on the production environment. I've attempted > > > escaping the characters, as per RFC 3986. However the escaped url > > > (http://dbpedia.org/resource/Companion_%28manga%29) doesn't fair any > > > better. --~--~-~--~~~---~--~~ 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] Re: Error 400: app engine + custom domain + /search?q=a|b|c
Like others general visitors, I often copy a url from address box and share to friends If you submit a search by click 'Search' button, Firefox will escape '|' to '%7c' and send to Web Server, but it will keep '|' remain in the address box If you paste 'error%7C400' to Firefox and press enter to submit, Firefox will convert '7%C' to '|', you will see 'error|400' in the address box, why??? I found that those server named 'GFE 1.3/2.0' can not accept the '|' char, but GWS or 'Google Frontend' does, so I guess GFE's real name is 'Google Firewall Edge', a firewall must be fast and secure, means it has been simplified or lightweighted? --~--~-~--~~~---~--~~ 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] You haven't set the DATABASE_ENGINE setting yet
I suddenly started to get this error... but never changed this setting. This error is critical and causing my entire site to crash. The DATABASE_ENGINE was set to 'dummy'. I have also tried to set it to 'appengine', neither seems to be working. --~--~-~--~~~---~--~~ 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] Re: different urlfetch behaviour on development and production servers: URLs with the characters: ( or )
Having some luck... By using urllib2 instead of urlfetch I am able to load the same URLs on the production server without any issue. Not really a solution per say but it gets the job done. Appreciate everyone's feedback. On May 5, 10:29 pm, Matt Trinneer wrote: > Hi George, > > Thanks for the response. I've done some additional testing and am not > getting much further. Unfortunately in this case I do not have > control of the endpoint and am stuck with braces in the URL. > > Some additional notes which may be of use to anyone who happens upon > this: > > 1. The URLs being requested in this example return xml/rdf > documents. > 2. In the case of requesting a resource without braces in it's URL a > response similar to the following is received (truncated for brevity) > > > http://www.w3.org/1999/02/22-rdf-syntax-ns#"; > xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";> > http://dbpedia.org/resource/Companion_ > %28manga%29">. > > > 3. On the GAE production environment the response to a request for a > URL with braces is not an error, but rather an empty rdf document. > > > http://www.w3.org/1999/02/22-rdf-syntax-ns#"; > xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";> > > > 4. This lead me to speculate that the request being received by the > remote host was not for the same resource as I believe I am making a > request for. So, with the help of another non-GAE endpoint I have > been logging requests generated via urlfetch and am not able to see > any appreciable difference between those sent by the development > version, where these requests work, and the production version, where > they don't. > > Continuing to investigate > > On May 5, 5:31 am, George wrote: > > > > > Ivan, Your problem looks like a common encoding problem. The default > > encoding used in server of GAE is ASCII, but something else such as > > UTF-8 on your computer. So the code works in your development > > environment but not on Google server. > > > To deal with this problem you need to declare the encoding in file > > header and decode your string to unicode with the proper charset > > before using it. If you don't do this, the Python interpreter will > > help you to do it with the system default one. I agree this is a > > little confusing. Python should do it more elegantly. > > > For Matthew's problem, sorry I also have no idea about it. urlfetch is > > a mystery in GAE libs. I found several examples working good in local > > but throwing error on server. So I can only suggest you avoid touching > > the dangerous zone like braces in url. :-) > > > -- > > George > > > App Engine Unit Test Frameworkhttp://code.google.com/p/gaeunit/ > > > On May 4, 5:35 pm, Ivan Maslov wrote: > > > > I have similar problem. On development server function urlencode works > > > correctly with unicode string. In production error occurs: > > > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe2' in > > > position > > > 2: ordinal not in range(128). It occurs when i pass russian strings as > > > parameter. > > > > 2009/5/4 Matt Trinneer > > > > > To further that post... > > > > > It seems to me that URLs containing characters such as ( and ) are not > > > > being fetched properly on the production environment. I've attempted > > > > escaping the characters, as per RFC 3986. However the escaped url > > > > (http://dbpedia.org/resource/Companion_%28manga%29) doesn't fair any > > > > better. --~--~-~--~~~---~--~~ 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] Re: store files to datastore in a folder like structure?
class Folder(db.Model): name = db.StringProperty() subfolders = db.ListProperty(File) parent = db.SelfReferenceProperty() This is how folder can be implemented. A folder must know what all files are child. Also a folder must know the parent folder (folders in case of cyclic dir structure). Apart from this, you might also implement Linux inode system in a model, for book keeping. On May 6, 5:41 am, Tim Hoffman wrote: > You will need to create a Folder entity > It will need to know it's children, and you will need to support > some form of url traversability to walk the folder heirarchy. > > I am doing that with zope3 components on gae > > Django doesn't normally do url traversing, but has a regex match to > method > > Do you really need a folder heirarchy, have you gone down that path > because you are just trying to > replicate a filesystem, with out really needing those semantics ? > > If you really want this sort of functionality you might want to look > at repoze.bfg it is just been > made useable under gae (and is zope 3 based though much simpler) and > does support inherintly > the notion of url traversal over an object model/graph > > Rgds > > T > > On May 6, 6:34 am, Shedokan wrote: > > > I am porting my WebOS(Shedokan OS) to python from php so I can use it > > og GAE and I came to the stage where I need to read and write files. > > > And after a lot of searching I found out that I cannot create files or > > write to files. > > here is my code: > > > from google.appengine.ext import db > > > class File(db.Model): > > filename = db.StringProperty(multiline=False) > > filedata = db.BlobProperty > > date = db.DateTimeProperty(auto_now_add=True) > > > def createFile(fileName, content): > > if fileName=='' or content=='': > > return > > file = File() > > file.filedata = content > > file.filename = fileName > > file.put() > > > def getFile(fileName): > > > if fileName=='': > > return > > return db.GqlQuery('SELECT * FROM File WHERE filename= :1',fileName) > > > any way to make this work with a folder structure? > > > also I want to note that I started learning python just about 3 days > > ago, so I think I'm a begginer. > > > 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 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] Re: structure of appengine application
You can look at following resources and their source code to under stand more * OpenSource projects on AppEngine http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects?hl=en * Google AppEngine's Sample Apps http://code.google.com/p/google-app-engine-samples/ * AppEngine cookbook http://appengine-cookbook.appspot.com -- Regards, Pranav Prakash "This life is more than ordinary" On May 6, 2:48 am, Rishtal wrote: > Hi, > > First of all, I'd like to say i've learned a lot in this group. Thanks > for all the great insight. > > I am developing a web app and wanted to know what is the best way to > structure my development. I want to get the data/schemas done first. > > I've started to write my models.py. But how to write views.py and > urls.py to correlate with my models.py? Can you show me any examples > of structuring my schema, views.py, or urls.py. Basically do you have > any examples of views.py or urls.py. > > What are the best practices to start writing a web app? i've done all > the wireframing and diagramming as well. > > 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 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] Re: How to iterate a json string using dictionary
You need to use a JSON library for Python. Here is a good one that i have found, and using for quite sometime. http://code.google.com/p/google-app-engine-samples/source/browse/trunk/geochat/json.py Also, refer to the Application's source code to understand how to use this http://code.google.com/p/google-app-engine-samples/source/browse/trunk/geochat/ Cheers, -- Pranav Prakash "This life is more than ordinary" On May 5, 9:30 pm, arnie wrote: > I am getting a json string from an iphone application that is > consuming a google app engine application. > Can anybody let me know how to iterate over a json string using a > dictionary so that I can extract individual fields of the string > Thanks > Arnieterm --~--~-~--~~~---~--~~ 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] Re: How to iterate a json string using dictionary
I am getting a very simple json string that contains only 14 elements Can't we use python dictionary to extract the elements of json? Thanks Arnie --~--~-~--~~~---~--~~ 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] Re: How to iterate a json string using dictionary
json = '{element1: "haha", element2: 123}' d = eval(json) print d['element1'], d.['element2'] 2009/5/6 arnie > > I am getting a very simple json string that contains only 14 elements > Can't we use python dictionary to extract the elements of json? > Thanks > Arnie > > > --~--~-~--~~~---~--~~ 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] Querying a DateTimeProperty from the dashboard
Hi Guys, I might be being silly here, I am trying a query through the DataViewer that is along the lines of: SELECT * FROM SearchCampaigns WHERE priority = True and finished = False and next_update < '2009-05-06 06:08:37' ORDER BY next_update The problem I am seeing is that it returns values where the next_date might be something like 2009-05-06 06:38:12. It looks like it is not filtering dates converted from strings correctly? I have checked the issues page and the closest I have found so far is http://code.google.com/p/googleappengine/issues/detail?id=1114 Paul --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---