[google-appengine] Re: Design consideration
Using a distance range with subsequent filter to return only 25 rows is a good idea. Even if I pass a distance range in request url say from=0.1 and to=0.9 still then one needs to write this "SELECT * FROM myTable" as I cannot use limit statement here If multiple iphone users are accessing the wsgi app in about same time, will GAE manage this? Or does there will occur any lock problems? --~--~-~--~~~---~--~~ 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: Assigning key_name for Expando object
thanks ryan, As because it is generating proper uuid's before put(), I thought it could be an RPC call, we use batch put and get for datastore and the performance is impressive compared to individual put() On Jan 29, 10:48 pm, ryan wrote: > On Jan 29, 12:48 am, vivek wrote: > > > If I use the above method for assigning the key_name, will it make a > > RPC call every time? > > happily, neither instantiating an Expando/Model subclass (ie running > the constructor) nor setting the _key_name attribute in memory will > make an RPC call. only put(), get*(), delete(), run_in_transaction(), > and queries make RPC calls. so, if you're just trying to avoid > unnecessary RPC calls, you can still go ahead and provide key_name in > the constructor. > > 200 entities is a lot to insert in a single HTTP request, but if > they're not too big and don't have too many properties, it may be > doable. you'll definitely want to pass them all into a single put() > call, instead of calling put() once per entity, so that the datastore > can handle them as a batch. --~--~-~--~~~---~--~~ 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] Server Error (500) on deploy @ appcfg.py:1148, not in Europe, no changes in index ?
Hello! I was merrily whiling away hours learning about GAE and playing with visualizations & json on my learning app "wattcher" when all of a sudden: --- C:\>python "C:\Program Files\Google\google_appengine\appcfg.py" update . Scanning files on local disk. Initiating update. Cloning 6 application files. Closing update. 2009-01-29 20:53:18,578 ERROR appcfg.py:1148 An unexpected error occurred. Aborting. Rolling back the update. Error 500: --- begin server output --- Server Error (500) A server error has occurred. --- end server output --- --- Tried a few more times but no success. Nothing in the admin console logs. App works just fine otherwise both on appspot and on the localhost testing server. Havent messed with indexes. Is It Just Me Or Is It Down For Everyone Else? --~--~-~--~~~---~--~~ 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: I18N, translation
On Thu, Jan 29, 2009 at 9:17 PM, Mel T. wrote: > Thanks for your help Rodrigo. Babel looks neat, and coming from Trac's > team makes it look like a good choice. > > Can I use babel with google's default webapp template engine ? > > If not, what template engine works well with that? Babel has a helper to extract strings from Django templates (default in App Engine). I'm not sure how to integrate, but there are several tutorials out there (both are popular). If you're using webapp, though, I recommend you to take a look at Jinja2. It is very similar to Django's template but easier to extend (and it is more modular, faster, etc). Babel integration is also built in. There are some tutorials about using Jinja2 (with Django or webapp) in the cookbook: http://appengine-cookbook.appspot.com/ have fun :) -- rodrigo --~--~-~--~~~---~--~~ 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] Problem with memcache.get_multi
Hi folks, I'm having a very curious problem with get_multi. I'm giving it a list of keys ten items long. It finds items 1 and 2 without issue, but doesn't find the last eight. If I reverse the search list and then use get_multi, I now get items 9 and 10, but not 8 through 1. If I make individual calls to memcache.get in a loop, I manage to get back all 10 items. ;) My code was working great before, and I've only been running in to this problem today. The only difference is that my memcache entries now hold a bunch more data than before -- which I suspect may be the issue? Though I'm not getting any errors when storing the items, and they can all be recovered individually. Any help? Thanks for your help! Savraj (currently in palo alto, ca :)) --~--~-~--~~~---~--~~ 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: I18N, translation
Thanks for your help Rodrigo. Babel looks neat, and coming from Trac's team makes it look like a good choice. Can I use babel with google's default webapp template engine ? If not, what template engine works well with that? On 29 jan, 14:04, Rodrigo Moraes wrote: > On Thu, Jan 29, 2009 at 2:34 PM, Mel T. wrote: > > What is gae's team official statement about support for localized > > application? Does GAE support it or not ? Are we supposed to develop > > our own localization solution? > > hey Mel, > > please checkhttp://babel.edgewall.org/- it is a standalone package > that provides full i18n support. well documented, easy to implemented, > etc. it is the way to go, imo. > > (sorry, not official, just a practical statement) > > cheers, > rodrigo --~--~-~--~~~---~--~~ 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 could you charge users for using your app?
Hello, what does Google recommend if you wanted to charge users using your application? thanks, virtual_pm --~--~-~--~~~---~--~~ 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: I18N, translation
I get some problem with i18n too. for example, msgid "Photo upload" msgstr "圖片上傳" It still trans to "Photo upload". Regards 2009/1/30 Mel T. > > Hi, > > I searched on this group looking for info on how to best build a > google app that supports multiple languages. The results are > disappointing: there is no recommended way to do this and it seems > that many attempts from other developer are not fully functional. > > I read these threads: > > > http://groups.google.com/group/google-appengine/browse_thread/thread/76d96246c91812a0 > no solution > > > http://groups.google.com/group/google-appengine/browse_thread/thread/e95549aea53f2dde > paritlal solution: still can't switch language dynamically > > > http://groups.google.com/group/google-appengine/browse_thread/thread/5c3104f821a8c829 > no reply > > > http://groups.google.com/group/google-appengine/browse_thread/thread/f2dc37b6cec1a21d > no solution > ... etc > > When I started to spend time learning Python and GAE, I assumed google > was intenational enough so I do not have to worry about I18N support. > It is frustrating for non-english customers to see so little support > for i18n on products from companies as important as Google. > > What is gae's team official statement about support for localized > application? Does GAE support it or not ? Are we supposed to develop > our own localization solution? > > - > Mel T. > > > > --~--~-~--~~~---~--~~ 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: please help with special characters
http://www.python.org/doc/2.5.2/ref/strings.html On Jan 30, 7:36 am, Aramaki wrote: > Hi, my code needs to trim special characters from users imput but > there is one I can't > > how can I trim '\' from a string without error > > chr(92) doesn't work, ord () throw an error when facing ' \ ' and I > don't really see how to implement unicode formating in that way. > > I am sure that wiht 2-3 line this must be done but I don't see the > way. > > I will apreciate any 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] Re: I18N, translation
i18n depends on the webframework you are using, that is the easy stuff, there are plenty solutions for it out there, what Google provides is much lower lever and it its the difficult stuff like scalability. If you use django (e.g. with apppenginepatch), then i18n is built in works fine, at least with what I have tried so far. And if you wanna do some custom i18n solution I also recommend you to use babel. Roberto On Jan 29, 4:04 pm, Rodrigo Moraes wrote: > On Thu, Jan 29, 2009 at 2:34 PM, Mel T. wrote: > > What is gae's team official statement about support for localized > > application? Does GAE support it or not ? Are we supposed to develop > > our own localization solution? > > hey Mel, > > please checkhttp://babel.edgewall.org/- it is a standalone package > that provides full i18n support. well documented, easy to implemented, > etc. it is the way to go, imo. > > (sorry, not official, just a practical statement) > > cheers, > rodrigo --~--~-~--~~~---~--~~ 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] Local Django Slow: Could not import "strop": Disallowed C-extension or built-in module...
Running Django + app-engine-patch locally... Frequently on requests (can't determine why/when) I get these two log items: DEBUG Could not import "strop": Disallowed C-extension or built-in module DEBUG Could not import "fcntl": Disallowed C-extension or built-in module Each one takes about half a second to come out. This isn't a big deal, but it is a little bit annoying. Is there any way to tell it to stop trying to import these modules, or speed it up somehow? 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] create_logout_url('/') behaving incorrectly on custom domain
I'm calling create_logout_url('/') from my app, which I expect would take me to http://myapp.com/. Instead, it sends me to the dashboard to configure Google Apps for Your Domain: http://www.myapp.com/_ah/logout?continue=https://www.google.com/a/myapp.com/Logout%3Fcontinue%3Dhttp://www.myapp.com/%26service%3Dah --~--~-~--~~~---~--~~ 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: please help with special characters
\ is an escape character so you either need to escape it ('\\') or use a raw string (r'\') On Jan 29, 3:36 pm, Aramaki wrote: > Hi, my code needs to trim special characters from users imput but > there is one I can't > > how can I trim '\' from a string without error > > chr(92) doesn't work, ord () throw an error when facing ' \ ' and I > don't really see how to implement unicode formating in that way. > > I am sure that wiht 2-3 line this must be done but I don't see the > way. > > I will apreciate any 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] please help with special characters
Hi, my code needs to trim special characters from users imput but there is one I can't how can I trim '\' from a string without error chr(92) doesn't work, ord () throw an error when facing ' \ ' and I don't really see how to implement unicode formating in that way. I am sure that wiht 2-3 line this must be done but I don't see the way. I will apreciate any 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] Re: error uploading my app
I had even much bigger problem, my proxy server required authentication ... Well lot's of serching and reading got me a way out .Your's is easier. >>> PROCEED ON YOUR OWN RISK AND KNOWLEDGE. IT WORKED FOR ME DOESN'T MEAN >>> SHOULD WORK """ HARMLESSLY """ TO ALL.. Follow the instructions in my 2nd post at :- http://groups.google.co.in/group/google-appengine/browse_thread/thread/662c4462e34f1a04/216276f46fea568f?lnk=gst&q=upload#216276f46fea568f A brief is like followng :- 1. Open Notepad and save the file as "getToken.html".. yes It should be saved as html page. Get the content from above post of mine. 2. Open this page in firefox and enter your credential. You would get the *Famous* auth token . copy it. 3. Go to your file :- File "C:\Program Files\Google\google_appengine \google\appengine\tools\appengine_rpc.py", , create a backup of it in case you mess up this . 3. Go to around line number 177 of this file and remove all inner content of function "_GetAuthToken" by :- return "THE_AUTH_TOKEN_YOU_COPIED_FROM_FIREFOX_USING_ABOVE_FILE". 4. Save and exit. Go and upload your app. >>> This is a must for you to do because your proxy doesn't support https . For >>> me the limitation was that even though proxy supported https, python >>> library didn't support authenticated proxy for https. Your's doesn't seem >>> to require authentication. >>> This method works only once. One Auth Toke can be used only once. You will >>> have to change it again while uploading the app 2nd time . On Jan 29, 10:12 am, "siva...@gmail.com" wrote: > Please help me !! > > I am not able to upload my app.. > > urllib2.URLError: > > I am behind my college proxy ..whose address is proxy.ssn.net and port > 8080 > We have few restrictions like , FTP,SSL are blocked.. and upload or > download limits > set max 20 mb. > > I am using .. > App Engine SDK - Release Notes > > Version 1.1.8 - January 7, 2008 > and > Python version 2.5.4 > > and i am just a beginner in python and app engine > > Please help me out .. > > This is what i get ... > > Microsoft Windows XP [Version 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > > C:\Documents and Settings\v.sivaprakash>cd C:\Program Files\Google > \google_appeng > ine > > C:\Program Files\Google\google_appengine>set HTTP_PROXY=http:// > proxy.ssn.net:808 > 0 > > C:\Program Files\Google\google_appengine>appcfg.py update hello > Scanning files on local disk. > Initiating update. > Email: siva...@gmail.com > Password for siva...@gmail.com: > 2009-01-29 23:25:49,233 ERROR appcfg.py:1148 An unexpected error > occurred. Abort > ing. > Traceback (most recent call last): > File "C:\Program Files\Google\google_appengine\appcfg.py", line 60, > in > run_file(__file__, globals()) > File "C:\Program Files\Google\google_appengine\appcfg.py", line 57, > in run_fil > e > execfile(script_path, globals_) > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \appcfg.p > y", line 1886, in > main(sys.argv) > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \appcfg.p > y", line 1877, in main > result = AppCfgApp(argv).Run() > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \appcfg.p > y", line 1328, in Run > self.action(self) > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \appcfg.p > y", line 1789, in __call__ > return method() > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \appcfg.p > y", line 1579, in Update > lambda path: open(os.path.join(basepath, path), "rb")) > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \appcfg.p > y", line 1127, in DoUpload > missing_files = self.Begin() > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \appcfg.p > y", line 980, in Begin > version=self.version, payload=self.config.ToYAML()) > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \appengin > e_rpc.py", line 312, in Send > self._Authenticate() > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \appengin > e_rpc.py", line 344, in _Authenticate > super(HttpRpcServer, self)._Authenticate() > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \appengin > e_rpc.py", line 233, in _Authenticate > auth_token = self._GetAuthToken(credentials[0], credentials[1]) > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \appengin > e_rpc.py", line 177, in _GetAuthToken > response = self.opener.open(req) > File "C:\Python25\lib\urllib2.py", line 381, in open > response = self._open(req, data) > File "C:\Python25\lib\urllib2.py", line 399, in _open > '_open', req) > File "C:\Python25\lib\urllib2.py", line 360, in _call_chain > result = func(*args) > File "C:\Python25\lib\urllib2.py", line 1115, in https_open > return self.do_open(httplib.HTTPSConnection, req) > Fil
[google-appengine] Re: Efficient paging using __key__ instead of a dedicated unique property
On Thu, Jan 29, 2009 at 3:39 PM, ryan wrote: > i believe my third derived query, ie without the y = B.y filter, is > right. one way to think about it is that the original query only has > sort orders, not filters, so it should return *every* entity that has > an x property and a y property. say the bookmark is B(x = 1, y = 1). > with your set of derived queries, no entity with x > 1 and y > 1 will > ever be returned, since every query has either an x = 1 filter or a y > = 1 filter. however, if you remove the y = B.y filter from the last > derived query (and add the y DESC sort order), it will include all of > entities with x > 1 and y > 1. hi ryan, hmmm. i see. it seems that this is a special case, and my result was different because i followed your logic very literally. i'll adapt to make it work without filters. i started to make a second try on it, extending datastore.Query instead. the result is cleaner (but still incomplete): http://bitbucket.org/moraes/appengine/src/tip/bookmark.py i'll post when it is working. thanks! -- rodrigo --~--~-~--~~~---~--~~ 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: I18N, translation
On Thu, Jan 29, 2009 at 2:34 PM, Mel T. wrote: > What is gae's team official statement about support for localized > application? Does GAE support it or not ? Are we supposed to develop > our own localization solution? hey Mel, please check http://babel.edgewall.org/ - it is a standalone package that provides full i18n support. well documented, easy to implemented, etc. it is the way to go, imo. (sorry, not official, just a practical statement) cheers, rodrigo --~--~-~--~~~---~--~~ 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] Eclipse/PyDev/Google App Engine/Python-Twitter API
Hi Folks, I'm hoping to develope a Twitter application using the above. Essentially, I am good to go in as much as I can run a little Python from within Eclipse to get some data from the Twitter API. That works great. The problem is that when I try to connect to http://localhost:, where I've configured dev_appserver.py to connect, GAE seems to be trying to load a version of the Python-Twitter library that I've not installed or configured. It seems to be looking in a path with -egg tacked on the end. My installation doesn't have this extension and I'm not sure where GAE is picking up the information so that I can change it. Any help would be most appreciated. Regards, Jim --~--~-~--~~~---~--~~ 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] error uploading my app
Please help me !! I am not able to upload my app.. urllib2.URLError: I am behind my college proxy ..whose address is proxy.ssn.net and port 8080 We have few restrictions like , FTP,SSL are blocked.. and upload or download limits set max 20 mb. I am using .. App Engine SDK - Release Notes Version 1.1.8 - January 7, 2008 and Python version 2.5.4 and i am just a beginner in python and app engine Please help me out .. This is what i get ... Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\v.sivaprakash>cd C:\Program Files\Google \google_appeng ine C:\Program Files\Google\google_appengine>set HTTP_PROXY=http:// proxy.ssn.net:808 0 C:\Program Files\Google\google_appengine>appcfg.py update hello Scanning files on local disk. Initiating update. Email: siva...@gmail.com Password for siva...@gmail.com: 2009-01-29 23:25:49,233 ERROR appcfg.py:1148 An unexpected error occurred. Abort ing. Traceback (most recent call last): File "C:\Program Files\Google\google_appengine\appcfg.py", line 60, in run_file(__file__, globals()) File "C:\Program Files\Google\google_appengine\appcfg.py", line 57, in run_fil e execfile(script_path, globals_) File "C:\Program Files\Google\google_appengine\google\appengine\tools \appcfg.p y", line 1886, in main(sys.argv) File "C:\Program Files\Google\google_appengine\google\appengine\tools \appcfg.p y", line 1877, in main result = AppCfgApp(argv).Run() File "C:\Program Files\Google\google_appengine\google\appengine\tools \appcfg.p y", line 1328, in Run self.action(self) File "C:\Program Files\Google\google_appengine\google\appengine\tools \appcfg.p y", line 1789, in __call__ return method() File "C:\Program Files\Google\google_appengine\google\appengine\tools \appcfg.p y", line 1579, in Update lambda path: open(os.path.join(basepath, path), "rb")) File "C:\Program Files\Google\google_appengine\google\appengine\tools \appcfg.p y", line 1127, in DoUpload missing_files = self.Begin() File "C:\Program Files\Google\google_appengine\google\appengine\tools \appcfg.p y", line 980, in Begin version=self.version, payload=self.config.ToYAML()) File "C:\Program Files\Google\google_appengine\google\appengine\tools \appengin e_rpc.py", line 312, in Send self._Authenticate() File "C:\Program Files\Google\google_appengine\google\appengine\tools \appengin e_rpc.py", line 344, in _Authenticate super(HttpRpcServer, self)._Authenticate() File "C:\Program Files\Google\google_appengine\google\appengine\tools \appengin e_rpc.py", line 233, in _Authenticate auth_token = self._GetAuthToken(credentials[0], credentials[1]) File "C:\Program Files\Google\google_appengine\google\appengine\tools \appengin e_rpc.py", line 177, in _GetAuthToken response = self.opener.open(req) File "C:\Python25\lib\urllib2.py", line 381, in open response = self._open(req, data) File "C:\Python25\lib\urllib2.py", line 399, in _open '_open', req) File "C:\Python25\lib\urllib2.py", line 360, in _call_chain result = func(*args) File "C:\Python25\lib\urllib2.py", line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File "C:\Python25\lib\urllib2.py", line 1082, in do_open raise URLError(err) urllib2.URLError: C:\Program Files\Google\google_appengine> --~--~-~--~~~---~--~~ 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] I18N, translation
Hi, I searched on this group looking for info on how to best build a google app that supports multiple languages. The results are disappointing: there is no recommended way to do this and it seems that many attempts from other developer are not fully functional. I read these threads: http://groups.google.com/group/google-appengine/browse_thread/thread/76d96246c91812a0 no solution http://groups.google.com/group/google-appengine/browse_thread/thread/e95549aea53f2dde paritlal solution: still can't switch language dynamically http://groups.google.com/group/google-appengine/browse_thread/thread/5c3104f821a8c829 no reply http://groups.google.com/group/google-appengine/browse_thread/thread/f2dc37b6cec1a21d no solution ... etc When I started to spend time learning Python and GAE, I assumed google was intenational enough so I do not have to worry about I18N support. It is frustrating for non-english customers to see so little support for i18n on products from companies as important as Google. What is gae's team official statement about support for localized application? Does GAE support it or not ? Are we supposed to develop our own localization solution? - Mel T. --~--~-~--~~~---~--~~ 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: Design consideration
> Do keep in mind that you have to adjust the longitude range as you get closer to the poles, because one degree longitude close to the poles is much longer in distance than it is at the equator. I meant that the distance per longitude degree gets *shorter* closer to the poles, of course. Regards, Andreas On Jan 29, 7:45 pm, Blixt wrote: > You could filter out a square region of a reasonable distance from the > iPhone in the query and then sort the positions in your application > and finally remove positions from the bottom of the list if there are > too many. Do keep in mind that you have to adjust the longitude range > as you get closer to the poles, because one degree longitude close to > the poles is much longer in distance than it is at the equator. > > I'm not sure how the datastore handles floating point filtering. It > might be wiser to make integer fields with the positions multiplied by > a factor. > > You'll also need to solve the "wrap-around" problem that occurs at > 0/90 degrees. > > Regards, > Andreas > > On Jan 29, 7:15 pm, arnie wrote: > > > Hi all > > I have to design a wsgi app which is returning xml data to be consumed > > by an iphone application. The iphone app sends an http request with > > latitude and longitude from iphone. Based on these entries, I need to > > query datastore table. The datastore table itself also contains > > latitude and longitude values in each row. I need to apply a distance > > calculation formula on this based on latitude and longitude values. > > Then I need to sort them in ascending order of distance. My problem is > > that we cannot reach at the final result before completing the > > calculation and also I do not want to send large xml data to iphone > > application to consume. Earlier I think to divide the process in two > > phases > > Phase 1: Does the calculation in wsgi application and generates the > > entire xml and sent the same to iphone > > PHase 2: iphone app sort the xml into ascending order > > But it will result in performance issue both at iphone and wsig > > application end. So is there any alternative that may give us limited > > data and that too sorted so that iphone can ask for another slot with > > no performance issue --~--~-~--~~~---~--~~ 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: Design consideration
You could filter out a square region of a reasonable distance from the iPhone in the query and then sort the positions in your application and finally remove positions from the bottom of the list if there are too many. Do keep in mind that you have to adjust the longitude range as you get closer to the poles, because one degree longitude close to the poles is much longer in distance than it is at the equator. I'm not sure how the datastore handles floating point filtering. It might be wiser to make integer fields with the positions multiplied by a factor. You'll also need to solve the "wrap-around" problem that occurs at 0/90 degrees. Regards, Andreas On Jan 29, 7:15 pm, arnie wrote: > Hi all > I have to design a wsgi app which is returning xml data to be consumed > by an iphone application. The iphone app sends an http request with > latitude and longitude from iphone. Based on these entries, I need to > query datastore table. The datastore table itself also contains > latitude and longitude values in each row. I need to apply a distance > calculation formula on this based on latitude and longitude values. > Then I need to sort them in ascending order of distance. My problem is > that we cannot reach at the final result before completing the > calculation and also I do not want to send large xml data to iphone > application to consume. Earlier I think to divide the process in two > phases > Phase 1: Does the calculation in wsgi application and generates the > entire xml and sent the same to iphone > PHase 2: iphone app sort the xml into ascending order > But it will result in performance issue both at iphone and wsig > application end. So is there any alternative that may give us limited > data and that too sorted so that iphone can ask for another slot with > no performance issue --~--~-~--~~~---~--~~ 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] Design consideration
Hi all I have to design a wsgi app which is returning xml data to be consumed by an iphone application. The iphone app sends an http request with latitude and longitude from iphone. Based on these entries, I need to query datastore table. The datastore table itself also contains latitude and longitude values in each row. I need to apply a distance calculation formula on this based on latitude and longitude values. Then I need to sort them in ascending order of distance. My problem is that we cannot reach at the final result before completing the calculation and also I do not want to send large xml data to iphone application to consume. Earlier I think to divide the process in two phases Phase 1: Does the calculation in wsgi application and generates the entire xml and sent the same to iphone PHase 2: iphone app sort the xml into ascending order But it will result in performance issue both at iphone and wsig application end. So is there any alternative that may give us limited data and that too sorted so that iphone can ask for another slot with no performance issue --~--~-~--~~~---~--~~ 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: Creating an app which could handle 100,000 users
Thanks guys, your replies have so far been really insightful. I totally agree with that Google App won't be able to handle that many requests at this stage (being free and all) but I haven't even started developing the app, so reaching a hundred thousand users is still far away, but what I would like to do is build a system, keeping in mind that I would have to serve that many users in the near future. So guys, how would you actually go about designing a system which has scalability built into it from day one.. I'm a total newbie here, so please excuse me if my questions are a bit general. I've heard that its essential in scalable systems to keep the server as stateless as possible, and not to keep to much data in the memory but rather store it in the database, so my question is, how do you do about making sure that your database doesn't end up being a bottleneck. Any other advices would be welcome and highly appreciated. On 29/01/09 10:58 PM, "ryan" wrote: > we've done this for many apps that serve high volumes of users and --~--~-~--~~~---~--~~ 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: Saving VRML files in the datastore
Check out this tutorial that shows how to upload, store (as Blobs), and serve images: http://code.google.com/appengine/docs/python/images/usingimages.html You should be able to adapt it to VRML quite easily. On Jan 29, 8:34 am, Kieran wrote: > Hi > > I am looking at making an app that takes some data and produces a VRML > file, then displaying this with something like in my index.html. > > At the moment i have a VRML file that i uploaded to test this and this > displays fine. But as i can't save to the file store i was wondering > does anyone know how i could go about saving a VRML file in the > datastore and then displaying it? > > Many thanks > Kieran --~--~-~--~~~---~--~~ 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: Creating an app which could handle 100,000 users
On Jan 29, 8:29 am, Geoffrey Spear wrote: > 100,000 simultaneous users constantly sending 2 requests/minute to the > server would add up to 288 million requests per day. The request > quota is currently ~1.3 million requests per day, and this quota is > not listed as being adjustable. you can actually apply for more quota: http://code.google.com/support/bin/request.py?contact_type=AppEngineQuota (linked from the http://code.google.com/appengine/kb/general.html#quota , among other places.) we've done this for many apps that serve high volumes of users and traffic, well above the initial free quota limit. http://code.google.com/appengine/casestudies.html has some examples. --~--~-~--~~~---~--~~ 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: Django Custom Authentication Backend (with app-engine-patch)
On Jan 29, 5:15 am, Waldemar Kornewald wrote: > What exactly was the problem? Could you please post the settings > backend code here? This is what I was following: http://docs.djangoproject.com/en/dev/topics/auth/#writing-an-authentication-backend > Did you try to add a few logging.info() calls into your backend in > order to verify that the code gets executed, at all, and in order to > check which line fails? I had more logging calls than non-logging calls. I'm not sure what the problem was, but my code seemed to stop executing (I think when I tried to construct the User()) without even raising anything. Hence my unsuccessful attempted foray into pdb-land. I can only guess Python was getting mixed up with namespaces or something, but that's a guess. I finally just created my own User class. > > My Users don't persist in the DB (auth is done remotely), and I have > > been warned this may cause problems for the admin site due to > > messaging issues, but we don't use the admin site anyway. I'm sure it > > will cause other problems too. We shall see. > > It's probably better to have a proxy user in the DB or at least fake a > user entry (not saved in DB) with a faked key_name, so other code can > store ReferenceProperties to that fake user. This is what everybody keeps telling me... I'm not familiar with Django yet. What is the "other code" that needs to reference DB users? I'm trying to build a super-light non-DB app, but if I have to create Users in DB I will. I just don't know why yet. --~--~-~--~~~---~--~~ 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: Assigning key_name for Expando object
On Jan 29, 12:48 am, vivek wrote: > If I use the above method for assigning the key_name, will it make a > RPC call every time? happily, neither instantiating an Expando/Model subclass (ie running the constructor) nor setting the _key_name attribute in memory will make an RPC call. only put(), get*(), delete(), run_in_transaction(), and queries make RPC calls. so, if you're just trying to avoid unnecessary RPC calls, you can still go ahead and provide key_name in the constructor. 200 entities is a lot to insert in a single HTTP request, but if they're not too big and don't have too many properties, it may be doable. you'll definitely want to pass them all into a single put() call, instead of calling put() once per entity, so that the datastore can handle them as a batch. --~--~-~--~~~---~--~~ 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: Debug with pdb + Django + app-engine-patch ?
Thanks for the links. Sorry my question wasn't phrased properly, as I thought pdb already did work with the dev_appserver by itself. Star this issue if you want pdb support in dev_appserver: http://code.google.com/p/googleappengine/issues/detail?id=308 On Jan 29, 5:02 am, Jesaja Everling wrote: > Hi, > > I also tried to get debugging to work. > In the comments for this article: > > http://jjinux.blogspot.com/2008/05/python-debugging-google-app-engine... > > Somebody describes how to define a method with which you can invoke > the debugger in a way that should work with the dev_appserver. > The same method is used in this discussion: > > http://groups.google.com/group/google-appengine/browse_thread/thread/... > > I didn't really test it, but it seemed to work when I tried. (even > without commenting out "sys.meta_path = [hook]" like described in the > discussion). > You may also want to take a look at firepython in conjunction with the > Python logging module, it can also be of great help when you want to > verify how your code behaves in action. > > Best Regards, > > Jesaja Everling > > On Wed, Jan 28, 2009 at 12:03 AM, boson wrote: > > > I can't get pdb to work with Django + app-engine-patch. > > > When I do this in my code: > > import pdb > > pdb.set_trace() > > > I get a stack trace printed to the console with a "BdbQuit" exception, > > but the (Pdb) prompt itself is written to the HTML output with the > > HTML for the Debug error page immediately following. > > > No interactive prompt ever comes up. > > > Am I missing a step? --~--~-~--~~~---~--~~ 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: Efficient paging using __key__ instead of a dedicated unique property
wow, awesome. thanks for implementing this, rodrigo! (and sorry for exploding your head. :P) On Jan 28, 9:42 pm, Rodrigo Moraes wrote: > ooops, sorry, let me correct the result i got. only the third query > doesn't match the one in ryan's doc: > > Original: > --- > WHERE x = B.x AND y = B.y AND __key__ > B ORDER BY __key__ ASC > WHERE x = B.x AND y < B.y ORDER BY y DESC, __key__ ASC > WHERE x > B.x ORDER BY x ASC, y DESC, __key__ ASC > > This is what i get: > --- > WHERE x = B.x AND y = B.y AND __key__ > B ORDER BY __key__ ASC > WHERE x = B.x AND y < B.y ORDER BY y DESC, __key__ ASC > WHERE x > B.x AND y = B.y ORDER BY x ASC, __key__ ASC this is for an original query of 'ORDER BY x ASC, y DESC', right? i believe my third derived query, ie without the y = B.y filter, is right. one way to think about it is that the original query only has sort orders, not filters, so it should return *every* entity that has an x property and a y property. say the bookmark is B(x = 1, y = 1). with your set of derived queries, no entity with x > 1 and y > 1 will ever be returned, since every query has either an x = 1 filter or a y = 1 filter. however, if you remove the y = B.y filter from the last derived query (and add the y DESC sort order), it will include all of entities with x > 1 and y > 1. --~--~-~--~~~---~--~~ 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 the requester's TCP port
I don't know about getting the port, but you should have this at the top of your file if you want to use the "os" module: import os On Jan 28, 4:14 pm, Huan wrote: > I know I can get the requester's IP address by > self.request.remote_addr, but how do I get the requester's TCP port > number? I tried self.request.remote_port, but that does not work. > > I also saw people using os.environ['REMOTE_ADDR'], so I was thinking > of trying os.environ['REMOTE_PORT'], but it gives me an error saying > "NameError: global name 'os' is not defined". Any idea what I are > doing wrong? How do I define the global name 'os'? > > Many 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: Creating an app which could handle 100,000 users
I only spent a little while working the numbers. My advice would be to approach Mosso and offer to talk about being an enterprise partner. Also, there are not very many people who really know how to scale a system such as you suggest. People mouth scalable, but few do it. On Thu, Jan 29, 2009 at 8:29 AM, Geoffrey Spear wrote: > > 100,000 simultaneous users constantly sending 2 requests/minute to the > server would add up to 288 million requests per day. The request > quota is currently ~1.3 million requests per day, and this quota is > not listed as being adjustable. > > If you really need to serve this many requests per day (which I > believe would put you close to Yahoo and Google in pagerank), you > might need to build your own multi-million dollar cloud. > > On Jan 28, 11:48 pm, "h.ali" wrote: > > Hi guys, > > I'm newbie to the google app engine, and i was wondering whether > > you guys could help me out in a problem. I want to develop an > > application which would need to cater for like 100,000 users using it > > simultaneously. All the users would be sending requests to the serve a > > couple of times a minute and this would put i think a huge load on the > > server. > > > > Would the Google App Engine be able to handle this? Also, if > > anyone can give any advise on how should i proceed, that would be > > greatly appreciated. > > > > Thanks, > > HAli > > > --~--~-~--~~~---~--~~ 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] Saving VRML files in the datastore
Hi I am looking at making an app that takes some data and produces a VRML file, then displaying this with something like in my index.html. At the moment i have a VRML file that i uploaded to test this and this displays fine. But as i can't save to the file store i was wondering does anyone know how i could go about saving a VRML file in the datastore and then displaying it? Many thanks Kieran --~--~-~--~~~---~--~~ 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: Creating an app which could handle 100,000 users
100,000 simultaneous users constantly sending 2 requests/minute to the server would add up to 288 million requests per day. The request quota is currently ~1.3 million requests per day, and this quota is not listed as being adjustable. If you really need to serve this many requests per day (which I believe would put you close to Yahoo and Google in pagerank), you might need to build your own multi-million dollar cloud. On Jan 28, 11:48 pm, "h.ali" wrote: > Hi guys, > I'm newbie to the google app engine, and i was wondering whether > you guys could help me out in a problem. I want to develop an > application which would need to cater for like 100,000 users using it > simultaneously. All the users would be sending requests to the serve a > couple of times a minute and this would put i think a huge load on the > server. > > Would the Google App Engine be able to handle this? Also, if > anyone can give any advise on how should i proceed, that would be > greatly appreciated. > > Thanks, > HAli --~--~-~--~~~---~--~~ 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: Creating an app which could handle 100,000 users
2009/1/29 E. Naraki : > > Hali, > > yes it is possible to for AppEngine to handle 100,000 users with many > concurrent requests. > Of course your app will not be allowed to use such resources until > they release the payment system to break out of the initial free > resources. > > AppEngine is built with Scalability in mind (http://en.wikipedia.org/ > wiki/Scalability) > and will allow you to reach an inifinite capacity, given you provide > an inifinite amount of funds (at competitive market price). Not even Google have infinite server capacity - sure they have a lot, but inifinite ? > > As for advice on how to begin with AppEngine and tap into the massive > potential it has. > Please check out http://php.net why php.net? Do you know something we dont? http://code.google.com/appengine/docs/python/runtime.html This is not bad: http://code.google.com/appengine/docs/python/gettingstarted/ > > Let me know how it goes, > E > > > > On Jan 28, 9:48 pm, "h.ali" wrote: >> Hi guys, >> I'm newbie to the google app engine, and i was wondering whether >> you guys could help me out in a problem. I want to develop an >> application which would need to cater for like 100,000 users using it >> simultaneously. All the users would be sending requests to the serve a >> couple of times a minute and this would put i think a huge load on the >> server. >> >> Would the Google App Engine be able to handle this? Also, if >> anyone can give any advise on how should i proceed, that would be >> greatly appreciated. >> >> Thanks, >> HAli > > > > -- Barry - www.nearby.org.uk - www.geograph.org.uk - --~--~-~--~~~---~--~~ 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: Creating an app which could handle 100,000 users
Hali, yes it is possible to for AppEngine to handle 100,000 users with many concurrent requests. Of course your app will not be allowed to use such resources until they release the payment system to break out of the initial free resources. AppEngine is built with Scalability in mind (http://en.wikipedia.org/ wiki/Scalability) and will allow you to reach an inifinite capacity, given you provide an inifinite amount of funds (at competitive market price). As for advice on how to begin with AppEngine and tap into the massive potential it has. Please check out http://php.net Let me know how it goes, E On Jan 28, 9:48 pm, "h.ali" wrote: > Hi guys, > I'm newbie to the google app engine, and i was wondering whether > you guys could help me out in a problem. I want to develop an > application which would need to cater for like 100,000 users using it > simultaneously. All the users would be sending requests to the serve a > couple of times a minute and this would put i think a huge load on the > server. > > Would the Google App Engine be able to handle this? Also, if > anyone can give any advise on how should i proceed, that would be > greatly appreciated. > > Thanks, > HAli --~--~-~--~~~---~--~~ 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: Creating an app which could handle 100,000 users
On 29 Gen, 05:48, "h.ali" wrote: > Would the Google App Engine be able to handle this? Also, if > anyone can give any advise on how should i proceed, that would be > greatly appreciated. I think you would exceed the free quotas very soon, according to the load you predicted You should wait for the additional paid quotas, as soon as the app engine goes out of beta Kerio --~--~-~--~~~---~--~~ 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: Django Custom Authentication Backend (with app-engine-patch)
Hi, On Jan 28, 8:58 pm, boson wrote: > I think the problem was that the Django "User" and ragendja "User" > were conflicting somehow and causing strange problems with the > runtime. > > For my custom backend I'm now creating my own "User" and ignoring both > of those (neither of which I could get to work properly). What exactly was the problem? Could you please post the settings backend code here? Did you try to add a few logging.info() calls into your backend in order to verify that the code gets executed, at all, and in order to check which line fails? > My Users don't persist in the DB (auth is done remotely), and I have > been warned this may cause problems for the admin site due to > messaging issues, but we don't use the admin site anyway. I'm sure it > will cause other problems too. We shall see. It's probably better to have a proxy user in the DB or at least fake a user entry (not saved in DB) with a faked key_name, so other code can store ReferenceProperties to that fake user. Bye, Waldemar Kornewald --~--~-~--~~~---~--~~ 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: regain the ownership of my app
Hi, The easiest way to fix this, if there was more than 1 developer of the app, is to have the other developer invite you again to develop for the app. If this deleted account is the only one that was a developer, I will need to manually fix this. Please let me know off the group if this is the case. -Marzia On Thu, Jan 29, 2009 at 4:33 AM, zsombor wrote: > > hi! > > I messed up the ownership of my app (http://mikorjon.appspot.com/). > I created this app with my previous google account which was: > 'zsphone' > Recently I reorganized my e-mail addresses, and I deleted this gmail > address, and the account as well, and I created this new one: > 'zsombor42' > > Now I realized I cannot access my app, and I cannot figure out any > solution to access it. > > Does anybody have any idea how to solve this lame situation? :) > > thanks! > > Zsombor > > > --~--~-~--~~~---~--~~ 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: importing model definition (n00b question)
Hi Tom, Here's a good explanation I found via Google: http://effbot.org/zone/import-confusion.htm if you have a file datamodel that contains a class name modelName, you can do: from datamodel import modelName -Marzia On Thu, Jan 29, 2009 at 4:48 AM, tom s wrote: > > Hi, I'm a n00b to python and GAE, so apologies in advance for the > naivety of this question.. > > My app has multiple .py files, which share db models. > So to avoid repetition, I want a single file that has the db model > definitions, such as 'datamodel.py'. > I can then import that into my main.py with 'import datamodel'. > To then use the model I need to do 'datamodel.modelName'. > > Is there a way to avoid the 'datamodel.' part, so that I can address > it directly as 'modelName'? > I suspect this has something todo with namespaces, but I dont really > understand it. > thanks, > > tom > > > > > > --~--~-~--~~~---~--~~ 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: Need help with app.yaml
Hi, If you have copied and pasted this as-is, the issue is that 'script' is improperly indented. It should be indented 2 spaces. If this is not the case, you should check your mappings wsgi handler mappings inside test_hw.py. -Marzia On Wed, Jan 28, 2009 at 4:22 PM, ljj wrote: > > application: test > version: 1 > runtime: python > api_version: 1 > > > handlers: > - url: /test > script: test.py > > - url: /.* > script: test_hw.py > > however, the address http://localhost:8080/test gives me 404 > > INFO 2009-01-29 00:19:35,144 dev_appserver.py] "GET /test HTTP/ > 1.1" 404 > > > > --~--~-~--~~~---~--~~ 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: Debug with pdb + Django + app-engine-patch ?
Hi, I also tried to get debugging to work. In the comments for this article: http://jjinux.blogspot.com/2008/05/python-debugging-google-app-engine-apps.html Somebody describes how to define a method with which you can invoke the debugger in a way that should work with the dev_appserver. The same method is used in this discussion: http://groups.google.com/group/google-appengine/browse_thread/thread/9f226a46a0de3188 I didn't really test it, but it seemed to work when I tried. (even without commenting out "sys.meta_path = [hook]" like described in the discussion). You may also want to take a look at firepython in conjunction with the Python logging module, it can also be of great help when you want to verify how your code behaves in action. Best Regards, Jesaja Everling On Wed, Jan 28, 2009 at 12:03 AM, boson wrote: > > I can't get pdb to work with Django + app-engine-patch. > > When I do this in my code: > import pdb > pdb.set_trace() > > I get a stack trace printed to the console with a "BdbQuit" exception, > but the (Pdb) prompt itself is written to the HTML output with the > HTML for the Debug error page immediately following. > > No interactive prompt ever comes up. > > Am I missing a step? > > > --~--~-~--~~~---~--~~ 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: Calculating Ranks
Hi Is it correct that the ranker code results in a tree where all the nodes in the tree is stored within the same GAE entity group (they all have the rootkey as parent), resulting in the entire tree being serialized for access? Best regards, Morten Nielsen On Jan 26, 11:08 pm, ryan wrote: > thanks for pinging us! they were actually ahead of me on this, and > they published that library a while back: > > http://code.google.com/p/google-app-engine-ranklist/ > > we'll probably post something about it to the app engine blog soon. --~--~-~--~~~---~--~~ 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 files using YUI uploader 2.6.0 and Google App Engine
I am using the Yui Uploader 2.6.0 advanced example and apparently it is working fine on the client side. Basically the uploadAll function in javascript passes to the uploader the url containing the script to handle the uploaded file/s on the server: function upload() { if (fileList != null) { uploader.setSimUploadLimit(parseInt(document.getElementById ("simulUploads").value)); uploader.uploadAll("http://localhost:8080/sign2"; ); } On the server side the requestHander object (self) does not contain the variables Filename or Filedata (the default names to access the name and data of the files respectively). In essence I have tried the following but it does not retrieve anything, they are empty: class ProcessOpinion2(webapp.RequestHandler): def post(self): f1 = self.request f2 = self.request.get('Filedata') f3 = self.request.get(u'Filedata') arg = self.request.arguments() --> there is no arguments, arg is empty When I debug the app, self.request contains the file uploaded: Content-Length: 1457 Content-Type: multipart/form-data; boundary=-- ae0Ij5Ij5Ef1KM7Ij5Ij5KM7ei4gL6 Host: localhost:8080 User-Agent: Adobe Flash Player 9 X-Flash-Version: 9,0,124,0 ae0Ij5Ij5Ef1KM7Ij5Ij5KM7ei4gL6 Content-Disposition: form-data; name="Filename" Help.JPG ae0Ij5Ij5Ef1KM7Ij5Ij5KM7ei4gL6 Content-Disposition: form-data; name="Filedata"; filename="Help.JPG" Content-Type: application/octet-stream but once it executes self.request.get('Filedata') then the self.request is emptied: Request: POST /sign2 Accept-Types: text/* Connection: close Content-Length: -1 Content-Type: multipart/form-data; boundary=-- Ij5GI3gL6gL6gL6KM7GI3KM7Ij5gL6 Host: localhost:8080 User-Agent: Adobe Flash Player 9 X-Flash-Version: 9,0,124,0 I have also observed that the upload data are contained in a **unicode multidic** in self.request.POST but I do not know how to retrieve this data or why they also disappears after executing self.request in the script. 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] how to get the requester's TCP port
I know I can get the requester's IP address by self.request.remote_addr, but how do I get the requester's TCP port number? I tried self.request.remote_port, but that does not work. I also saw people using os.environ['REMOTE_ADDR'], so I was thinking of trying os.environ['REMOTE_PORT'], but it gives me an error saying "NameError: global name 'os' is not defined". Any idea what I are doing wrong? How do I define the global name 'os'? Many 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] Creating an app which could handle 100,000 users
Hi guys, I'm newbie to the google app engine, and i was wondering whether you guys could help me out in a problem. I want to develop an application which would need to cater for like 100,000 users using it simultaneously. All the users would be sending requests to the serve a couple of times a minute and this would put i think a huge load on the server. Would the Google App Engine be able to handle this? Also, if anyone can give any advise on how should i proceed, that would be greatly appreciated. Thanks, HAli --~--~-~--~~~---~--~~ 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] Many clients upload records
What is the best way to have many clients upload records (data) to my app? I see the information on using the SDK to upload mass records in a CSV but, I want to create a program that can send a few thousand records from many clients about one time per day. Is RPC the best way to do this? and how would this be done? --~--~-~--~~~---~--~~ 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] Need help with app.yaml
application: test version: 1 runtime: python api_version: 1 handlers: - url: /test script: test.py - url: /.* script: test_hw.py however, the address http://localhost:8080/test gives me 404 INFO 2009-01-29 00:19:35,144 dev_appserver.py] "GET /test HTTP/ 1.1" 404 --~--~-~--~~~---~--~~ 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] importing model definition (n00b question)
Hi, I'm a n00b to python and GAE, so apologies in advance for the naivety of this question.. My app has multiple .py files, which share db models. So to avoid repetition, I want a single file that has the db model definitions, such as 'datamodel.py'. I can then import that into my main.py with 'import datamodel'. To then use the model I need to do 'datamodel.modelName'. Is there a way to avoid the 'datamodel.' part, so that I can address it directly as 'modelName'? I suspect this has something todo with namespaces, but I dont really understand it. thanks, tom --~--~-~--~~~---~--~~ 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] regain the ownership of my app
hi! I messed up the ownership of my app (http://mikorjon.appspot.com/). I created this app with my previous google account which was: 'zsphone' Recently I reorganized my e-mail addresses, and I deleted this gmail address, and the account as well, and I created this new one: 'zsombor42' Now I realized I cannot access my app, and I cannot figure out any solution to access it. Does anybody have any idea how to solve this lame situation? :) thanks! Zsombor --~--~-~--~~~---~--~~ 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: Assigning key_name for Expando object
thanks a lot Alex, In our application we need to create 200 entities in a single request,if we pass the key_name in constructor,Internally it makes a RPC call to the server every time which intern slows down my application, Because each RPC call takes nearly 10 millisecond(10*200 = 2 second). so we planned to maintain a local cache, and then to commit all entities in a single RPC call. If I use the above method for assigning the key_name, will it make a RPC call every time? if it makes a RPC call,then is there any way to assign a key_name to a created entity(not yet saved) with out making RPC call. On Jan 29, 12:12 pm, Alexander Kojevnikov wrote: > > I understand we won't be able to change the key_name after saving, > > Is it possible to set the key_name via some function call rather then > > setting via constructor(Before Saving),So that i can able to use > > get_by_key_name() once it is saved. > > Looking at the source code it appears that you can set the key_name > like this: > > entity = MyModel() > entity._key_name = my_key_name > entity.put() > > However, I don't recommend doing it as this method of setting the > key_name is not documented and can break in the future. > > Why wouldn't you initialise it in the constructor? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---