[google-appengine] Re: NotAllowedError on create_login_url?
Hi, I am also getting this error, while trying to create the login URL for my application from appversion.latest.appid.appspot.com. This is the only way to test the new versions before release Is there any work around for this issue? The CNAME supplied for my app is only for name.appsdomain.com, so I cannot test new versions before release Thanks, Arun Shanker Prasad. On Feb 12, 1:53 am, bjubbs wrote: > Thanks. > > How should I handle the fact that it works from my domain, but it > does not work via the appid.appspot.com url? > > On Feb 11, 3:43 pm, Marzia Niccolai wrote: > > > Hi, > > > This was an issue that was recently fixed, and that's why it stopped > > working. You can serve any app off of a Google Apps domain, regardless of > > authentication. However, to use HTTPS, you must serve off of appspot. > > > -Marzia > > > On Wed, Feb 11, 2009 at 11:54 AM, Devel63 wrote: > > > > Indeed, we are not serving off that domain. But it worked until a > > > couple of days ago! > > > > OK, I guess it's time to make the transition. Just haven't gotten > > > around to it yet. > > > > Will I be able to serve both types of apps simultaneously off a single > > > domain (with different app names, obviously)? > > > > On Feb 11, 11:23 am, Marzia Niccolai wrote: > > > > Hi, > > > > > If you restrict authentication to your Google Apps domain, to require > > > login, > > > > you must also serve off of that domain. I suspect this is why you are > > > > seeing the issue. > > > > > If not, could you provide more details, the exact code and error > > > > message? > > > > > -Marzia > > > > > On Wed, Feb 11, 2009 at 7:56 AM, bjubbs wrote: > > > > > > The users api is throwing aNotAllowedErrorwhen my app attempts to > > > > > create a login url using users.create_login_url('/'). Authentication > > > > > for my app is tied to a Google Apps domain. I must have a setting > > > > > wrong somehwere , but I haven't been able to dig up what this error > > > > > means . Does anybody know? --~--~-~--~~~---~--~~ 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: SDK 1.1.9 breaks google-app-engine-django?
I am also getting the same error. Upgraded GAE and I get the below error. This is very annoying and makes me wary about upgrading the app engine and deploying my code. Now I am stuck and unable to do my development. What is the fix? -JT Python 2.5.1: /System/Library/Frameworks/Python.framework/Versions/2.5/ Resources/Python.app/Contents/MacOS/Python Thu Feb 12 06:13:14 2009 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py in _HandleRequest (self=) etc. On Feb 10, 4:47 am, Nuno Maltez wrote: > Hi, > > I have a similar problem, except that I'm using Django 0.96 included > in the SDK and App Engine Helper for Django rev 53 (following the > instructions in the README, it's the latest revision that works with > 0.96). Updating to r73 would mean having to update to a more recent > version of Django and include it in my project, which was not in my > plans. > > I get the following Warning followed by an Error when I try to access my app: > > WARNING:root:Blocking access to skipped file > "/home/nuno/tmp/work-i18n/.google_appengine/lib/django/django/foo" > ERROR:root:Exception encountered handling request > Traceback (most recent call last): > File > "/home/nuno/tmp/work-i18n/.google_appengine/google/appengine/tools/dev_appserver.py", > line 2711, in _HandleRequest > base_env_dict=env_dict) > File > "/home/nuno/tmp/work-i18n/.google_appengine/google/appengine/tools/dev_appserver.py", > line 380, in Dispatch > base_env_dict=base_env_dict) > File > "/home/nuno/tmp/work-i18n/.google_appengine/google/appengine/tools/dev_appserver.py", > line 1998, in Dispatch > self._module_dict) > File > "/home/nuno/tmp/work-i18n/.google_appengine/google/appengine/tools/dev_appserver.py", > line 1916, in ExecuteCGI > reset_modules = exec_script(handler_path, cgi_path, hook) > File > "/home/nuno/tmp/work-i18n/.google_appengine/google/appengine/tools/dev_appserver.py", > line 1812, in ExecuteOrImportScript > exec module_code in script_module.__dict__ > File "/home/nuno/tmp/work-i18n/main.py", line 28, in > from appengine_django import InstallAppengineHelperForDjango > File > "/home/nuno/tmp/work-i18n/.google_appengine/google/appengine/tools/dev_appserver.py", > line 982, in decorate > return func(self, *args, **kwargs) > File > "/home/nuno/tmp/work-i18n/.google_appengine/google/appengine/tools/dev_appserver.py", > line 1572, in load_module > return self.FindAndLoadModule(submodule, fullname, search_path) > File > "/home/nuno/tmp/work-i18n/.google_appengine/google/appengine/tools/dev_appserver.py", > line 982, in decorate > return func(self, *args, **kwargs) > File > "/home/nuno/tmp/work-i18n/.google_appengine/google/appengine/tools/dev_appserver.py", > line 1480, in FindAndLoadModule > description) > File > "/home/nuno/tmp/work-i18n/.google_appengine/google/appengine/tools/dev_appserver.py", > line 982, in decorate > return func(self, *args, **kwargs) > File > "/home/nuno/tmp/work-i18n/.google_appengine/google/appengine/tools/dev_appserver.py", > line 1430, in LoadModuleRestricted > description) > File "/home/nuno/tmp/work-i18n/appengine_django/__init__.py", line > 118, in > from django import VERSION > ImportError: No module named django > INFO:root:"GET / HTTP/1.1" 500 - > > Anyone else with the same problem? Any pointers to what need to be > changed in order to fix this? > > I tried the zip fromhttp://code.google.com/p/google-app-engine-django/but got > the same > error. > > thanks, > Nuno --~--~-~--~~~---~--~~ 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: Can't create a new application
Thanks Marzia. I can confirm that I was seeing the error both when checking the availability and trying to register the app id. But the problem is now resolved. In the end, it was Chrome that was the culprit. I've upgraded to the latest publicly available v1.0.154.48, and no difference. I tried with Firefox and IE7 and it worked properly in both. Strangely, it works fine in Chrome if I do it using my Google Apps account. Yes, I did try deleting all cookies/cached data first. Regards, Richard On Feb 11, 5:41 am, Marzia Niccolai wrote: > Hi, > > Can you try a browser that isn't Chrome, and let us know if it works? Also, > is the error you are seeing when you check the availability of an app id, or > when you actually try to register the app id (or both)? > > -Marzia > > On Mon, Feb 9, 2009 at 10:29 PM, Richard Colley > wrote: > > > > > I'm new to GAE, so naturally I wanted to dive right in and create an > > app. > > > However, I can't seem to create a new application using my normal > > google account. > > > No matter what application-id I try to use (even silly ones like > > adsfasdf-245432532-gsfgdasjgfldsj), I get: > > > Sorry, "typerlc-test1" is not available. Application Identifiers may > > contain only . > > > I then signed up to GAE for Google Apps, and had no problem using the > > same application-id there. > > > So, why can't I use my normal google account? My google apps > > account is a work account, and my google account is my personal one. > > I want to use my personal account. > > > I am using Chrome 1.0.154.43 in case that matters. > > > Any help appreciated. > > > Thanks, > > Richard --~--~-~--~~~---~--~~ 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] Hosting at example.com instead of foo.example.com
Hi, I have a domain name managed by my web host (www.NearlyFreeSpeech.net) itself. Let's call it example.com. I know that I can run appengine apps at foo.example.com by adding a CNAME record. Is there a way to make the app run at example.com itself? CNAME doesn't work here. --~--~-~--~~~---~--~~ 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] Account issue
Hi there, Sorry for posting this on a public forum but I am unable to get help elsewhere. My problem is simple. I am unable to log in my app engine control center. It is not a valid google account. However, I am able to deploy my application using the same email address and password! My app is live. I'm not sure what happened. When I do log in with my google account I get a blank "create app" page. Eaden --~--~-~--~~~---~--~~ 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] updating entity in session issue
Hi all, In my app I am using gae-utilities sessions. One of my sessions variables is an entity that I retrieve from the datastore which holds reference properties to various other entities describing the user (e.g., his address data, her profile data, etc). example: class UserStatic(db.Model): firstName = db.StringProperty() mi= db.StringProperty() lastName = db.StringProperty() class User(db.Model): password = db.StringProperty() static= db.ReferenceProperty(UserStatic) so I have something like: self.sess = Session() self.sess['user'] = User.get_by_key_name('jo...@gmail.com') Now let's say I modify something in the user's static data: static = self.sess['user'].static static.firstName = 'frank' static.put() The problem is that self.sess['user'].static (or I guess self.sess ['user']) won't have the updated value unless I re-query the datastore. Something like: self.sess['user'] = User.get_by_key_name('jo...@gmail.com') Am I doing it wrong or is this how it's supposed to work? 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: Roadmap Request: increase the urlfetch limits
Hi Carter, Please add this to the issue tracker or up-vote an existing issue. This is presently the most efficient way to communicate these requests. We watch the issue tracker. Jon On Sat, Feb 7, 2009 at 9:04 AM, Carter Rabasa wrote: > > Request: please increase the maximum file size of urlfetch! > > I have created several apps on GAE that all interface with either > Twitter or FriendFeed's API. Due to the current limitations of > urlfetch, any API call that tries to retrieve the social graph of some > popular (say, Robert Scoble) gets shut-down due to the size of the > response. > > I realize that this is meant to prevent abuse of resources, but maybe > these calls could simply be rolled-in to the bandwidth caps? > > --Carter Rabasa > http://twitter2ff.appspot.com > http://twitter2mail.appspot.com > http://ff2disqus.appspot.com > http://www.socialdm.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: Modeling two-dimensional data
what about to store the whole table as a string '[[4, 2, 9], [1, 5, 7], [6, 8, 3]]' ? Sebastian E. Ovide Sent from: Buenos Aires Argentina. On Thu, Feb 12, 2009 at 1:06 AM, theillustratedlife wrote: > > How would you store a table of numbers in the datastore? > > | 4 | 2 | 9 | > -- > | 1 | 5 | 7 | > -- > | 6 | 8 | 3 | > -- > > My instinct would be something like [[4, 2, 9], [1, 5, 7], [6, 8, 3]], > but in the datastore docs it very plainly states that a ListProperty's > "item_type must be one of the datastore value types, and cannot be > list." > > Ideally, this should be stored as one property. Different entities > have different sizes, so it's not appropriate in my situation to have > a new property for each row. I suppose I could store them as a single > ListProperty of floats, although that makes the breaks between rows > less explicit. > > > --~--~-~--~~~---~--~~ 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: Support for Decimal in Datastore?
Created issue in Google's tracker for this. Please star and promote. http://code.google.com/p/googleappengine/issues/detail?id=1063 On Jan 11, 11:35 am, "eric.humphrey" wrote: > If you're adding a bunch of these up, it would be unneeded overhead. > Those building apps that handle financial data or other numerics that > require precision need thedecimaldata type. > > On Dec 5 2008, 7:25 am, Justin wrote: > > > Why not store the value as a string in the datastore and convert it to > > adecimalin Python on retrieval? You could use a property on your > > model to do it for you. > > > importdecimal > > > class MyModel(db.Model): > > string_amount = db.StringProperty(multiline=False) > > > def get_amount(self): > > returndecimal.Decimal(self.string_amount) > > > def set_amount(self, value): > > self.string_amount = str(value) > > > amount = property(get_amount, set_amount) > > > - Justin > > > On Dec 5, 3:11 am, "Fred Janon" wrote: > > > > Float andDecimalare two different types. Float is used in scientific > > > calculations,Decimalfor accounting/financial applications.Decimalexists > > > in Python but doesn't seem to be implemented in the Datastore. > > > > Fred > > > > On Fri, Dec 5, 2008 at 14:58, lock wrote: > > > > > There is the FloatProperty, pretty sure that's what your after. > > > > >http://code.google.com/appengine/docs/datastore/typesandpropertyclass... --~--~-~--~~~---~--~~ 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: storing key value pair in datastore
On Feb 12, 3:10 am, sagey wrote: > 1) store the 2 strings in a stringlistproperty, with the 2 strings > delimited by a sepcial character > 2) create a class that has 2 string properties and then store each > class in a list You can't do 2 - you can only store simple types in lists. But... 3) Create two stringlist fields, and use the index of one to access the other. --~--~-~--~~~---~--~~ 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: Domain squatting on App Engine
This must be a relatively recent change. I created a few identifiers last year that were less than the new minimum of 6 characters, and some others that surely would have already had a gmail account of the same name. Maybe its related to an expansion of Google Sites? (http:// sites.google.com) On Feb 12, 2:43 am, warreninaustintexas wrote: > Goeffrey - Thanks for the quick response. Have any of the Googlers > given a reason? That seems like a bad policy and I can't imagine any > technical reason for it > > On Feb 11, 11:10 am, Geoffrey Spear wrote: > > > On Feb 11, 11:04 am, warreninaustintexas > > wrote: > > > > I'm trying to get an Application Identifier for a new app. I've tried > > > many variations and I am receiving a "Sorry, is not available." > > > message at each one. When I check these apps at http://.appspot.com, > > > the app domain is not being used. > > > > Has there been domain squatting on App Engine? > > > The app id namespace is shared with the Gmail username namespace. > > There are a *lot* of Gmail accounts, and you can't use the usernames > > of any of the as app IDs. --~--~-~--~~~---~--~~ 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] Modeling two-dimensional data
How would you store a table of numbers in the datastore? | 4 | 2 | 9 | -- | 1 | 5 | 7 | -- | 6 | 8 | 3 | -- My instinct would be something like [[4, 2, 9], [1, 5, 7], [6, 8, 3]], but in the datastore docs it very plainly states that a ListProperty's "item_type must be one of the datastore value types, and cannot be list." Ideally, this should be stored as one property. Different entities have different sizes, so it's not appropriate in my situation to have a new property for each row. I suppose I could store them as a single ListProperty of floats, although that makes the breaks between rows less explicit. --~--~-~--~~~---~--~~ 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: A Fan of Google Apps and now App Engine!
I'm in the UK, and use AppEngine. Why do you think its not available? On 11/02/2009, Damien wrote: > > Hi Everyone, > > I have to say that I am surprised, I am a groupie like fan of Google > products and betas and somehow did not know anything about App Engine > until today! Oh...that could be because it is not yet available in the > the UK ;-( > > Do you know if there is a time-frame to enable creation of engines in > the UK market? I really would hate to go to AWS ... > > Thanks! > > Damien > > > > -- 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: A Fan of Google Apps and now App Engine!
On Feb 12, 5:55 am, Damien wrote: > Hi Everyone, > > I have to say that I am surprised, I am a groupie like fan of Google > products and betas and somehow did not know anything about App Engine > until today! Oh...that could be because it is not yet available in the > the UK ;-( > > Do you know if there is a time-frame to enable creation of engines in > the UK market? I really would hate to go to AWS ... > > Thanks! > > Damien Damien, App Engine is available worldwide. --~--~-~--~~~---~--~~ 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: Get Sum from datastore
Search the group for 'sharded counter' - the same technique should work equally well for calculating a sum. On 11/02/2009, Neversummer wrote: > > I want to get a total (sum) from an property on a given entity. I know > that sum() is not supported. Is the best method to query for all > records on the entity in question and work through a loop adding each > records value (the value of the property in question) to a total > variable? > > It's worth noting that I am brand new to google app engine and to > python. Thanks for any suggestions. > > > > -- 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: Entity Groups
the spirit of the conversation here is definitely on the right track. the only thing i'd contribute is to confirm that queries specifically, at least right now, don't benefit much from the locality provided by entity groups. they may benefit a little, but not a lot. details in http://groups.google.com/group/google-appengine/browse_thread/thread/2e12581d6b518c3a/20346c1145887416#20346c1145887416 --~--~-~--~~~---~--~~ 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] Random DeadlineExceededError messages
Can I get a response from Google on this item please. The problem is not going away. http://groups.google.com/group/google-appengine/browse_thread/thread/518a1d86df61ae0d/08abb1d15c2a50bc?lnk=gst&q=deadlineexceedederror#08abb1d15c2a50bc --~--~-~--~~~---~--~~ 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: Upgraded to App Engine Patch 1.0beta + Django 1.0.2 -> prefix on model name
Hi, On 11 Feb., 22:26, "Sharp-Developer.Net" wrote: > I've updated App Engine Patch from 0.9.3 to 1.0beta and now my app is > broken becouse for some reason models started to be named with a > prefix. > > Like if I had next structure: > > src > - djangoapp > - models.py > Entity > > then before update I had models stored in data store as "Entity". > > Now it's stored & queried (!) as "djangoapp_Entity". > > As a newbie in Python I'm kinda confused where to search for the > change. And not sure is it intentional or a bug. > > This occurs both on dev and PROD :(. > > I do not mind about prefixes in general but I already have a lot of > data in data store and have no idea how to recover to prev state. > > Any comments from App Engine Patch folks would be very welcome. It's mentioned in the release notes and I've made it more prominent, now. You can disable the Django-style kind() in your settings: DJANGO_STYLE_MODEL_KIND = False http://code.google.com/p/app-engine-patch/wiki/ReleaseNotes You could try to use something like gaebar to convert the data, but this could be difficult because ReferenceProperties (or db.Key in general) will point to the wrong entity kind, so you have to fix that, too. http://github.com/aral/gaebar-aep/tree/master Recovering to the previous state should be easy, though. You can just write a view that fetches 100 entities (using the Django-style kind(), so you don't lose your old data) at a time and run db.delete() on them. Visit that view a few times with your browser and everything should be clean. Bye, Waldemar Kornewald -- Use Django on App Engine: http://code.google.com/p/app-engine-patch/ Please donate if you like it. Thank you! --~--~-~--~~~---~--~~ 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: Upgraded to App Engine Patch 1.0beta + Django 1.0.2 -> prefix on model name
Thanks John, It was a long day and I've become kinda dumb by the end. I knew I could relay on the community :). -- Alex On Feb 11, 9:38 pm, johnP wrote: > In the instructions posted at the > URL:http://code.google.com/p/app-engine-patch/wiki/ReleaseNotes > > Is the following comment: > Very important: If you upgrade an existing project please set > DJANGO_STYLE_MODEL_KIND = False in your settings.py. From now on, the > model kind() gets prefixed with the app label, by default, which > prevents naming conflicts when multiple apps define models with the > same name. Note that Django uses this naming scheme, too, when > creating SQL tables. This feature breaks existing models which are > stored without the app label, so you need to disable it when upgrading > your project (or you can override the kind() method for existing > models). > > On Feb 11, 1:26 pm, "Sharp-Developer.Net" > > wrote: > > Hi, > > > I've updated App Engine Patch from 0.9.3 to 1.0beta and now my app is > > broken becouse for some reason models started to be named with a > > prefix. > > > Like if I had next structure: > > > src > > - djangoapp > > - models.py > > Entity > > > then before update I had models stored in data store as "Entity". > > > Now it's stored & queried (!) as "djangoapp_Entity". > > > As a newbie in Python I'm kinda confused where to search for the > > change. And not sure is it intentional or a bug. > > > This occurs both on dev and PROD :(. > > > I do not mind about prefixes in general but I already have a lot of > > data in data store and have no idea how to recover to prev state. > > > Any comments from App Engine Patch folks would be very welcome. > > -- > > Alexhttp://sharp-developer.net/ > > --~--~-~--~~~---~--~~ 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: Upgraded to App Engine Patch 1.0beta + Django 1.0.2 -> prefix on model name
In the instructions posted at the URL: http://code.google.com/p/app-engine-patch/wiki/ReleaseNotes Is the following comment: Very important: If you upgrade an existing project please set DJANGO_STYLE_MODEL_KIND = False in your settings.py. From now on, the model kind() gets prefixed with the app label, by default, which prevents naming conflicts when multiple apps define models with the same name. Note that Django uses this naming scheme, too, when creating SQL tables. This feature breaks existing models which are stored without the app label, so you need to disable it when upgrading your project (or you can override the kind() method for existing models). On Feb 11, 1:26 pm, "Sharp-Developer.Net" wrote: > Hi, > > I've updated App Engine Patch from 0.9.3 to 1.0beta and now my app is > broken becouse for some reason models started to be named with a > prefix. > > Like if I had next structure: > > src > - djangoapp > - models.py > Entity > > then before update I had models stored in data store as "Entity". > > Now it's stored & queried (!) as "djangoapp_Entity". > > As a newbie in Python I'm kinda confused where to search for the > change. And not sure is it intentional or a bug. > > This occurs both on dev and PROD :(. > > I do not mind about prefixes in general but I already have a lot of > data in data store and have no idea how to recover to prev state. > > Any comments from App Engine Patch folks would be very welcome. > -- > Alexhttp://sharp-developer.net/ --~--~-~--~~~---~--~~ 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] Upgraded to App Engine Patch 1.0beta + Django 1.0.2 -> prefix on model name
Hi, I've updated App Engine Patch from 0.9.3 to 1.0beta and now my app is broken becouse for some reason models started to be named with a prefix. Like if I had next structure: src - djangoapp - models.py Entity then before update I had models stored in data store as "Entity". Now it's stored & queried (!) as "djangoapp_Entity". As a newbie in Python I'm kinda confused where to search for the change. And not sure is it intentional or a bug. This occurs both on dev and PROD :(. I do not mind about prefixes in general but I already have a lot of data in data store and have no idea how to recover to prev state. Any comments from App Engine Patch folks would be very welcome. -- Alex http://sharp-developer.net/ --~--~-~--~~~---~--~~ 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] Get Sum from datastore
I want to get a total (sum) from an property on a given entity. I know that sum() is not supported. Is the best method to query for all records on the entity in question and work through a loop adding each records value (the value of the property in question) to a total variable? It's worth noting that I am brand new to google app engine and to python. Thanks for any suggestions. --~--~-~--~~~---~--~~ 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: NotAllowedError on create_login_url?
Thanks. How should I handle the fact that it works from my domain, but it does not work via the appid.appspot.com url? On Feb 11, 3:43 pm, Marzia Niccolai wrote: > Hi, > > This was an issue that was recently fixed, and that's why it stopped > working. You can serve any app off of a Google Apps domain, regardless of > authentication. However, to use HTTPS, you must serve off of appspot. > > -Marzia > > On Wed, Feb 11, 2009 at 11:54 AM, Devel63 wrote: > > > Indeed, we are not serving off that domain. But it worked until a > > couple of days ago! > > > OK, I guess it's time to make the transition. Just haven't gotten > > around to it yet. > > > Will I be able to serve both types of apps simultaneously off a single > > domain (with different app names, obviously)? > > > On Feb 11, 11:23 am, Marzia Niccolai wrote: > > > Hi, > > > > If you restrict authentication to your Google Apps domain, to require > > login, > > > you must also serve off of that domain. I suspect this is why you are > > > seeing the issue. > > > > If not, could you provide more details, the exact code and error message? > > > > -Marzia > > > > On Wed, Feb 11, 2009 at 7:56 AM, bjubbs wrote: > > > > > The users api is throwing a NotAllowedError when my app attempts to > > > > create a login url using users.create_login_url('/'). Authentication > > > > for my app is tied to a Google Apps domain. I must have a setting > > > > wrong somehwere , but I haven't been able to dig up what this error > > > > means . Does anybody know? --~--~-~--~~~---~--~~ 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: QueryIterator Error
Hi, In this case, you are storing a query in Memcache and not the results of the query, and this is the cause of the error. I can't see any reason why you would want to store this query in Memcache, you should be fetch()ing some number of results and storing those. -Marzia On Wed, Feb 11, 2009 at 5:39 AM, Davide Ferrero wrote: > > The error is on line n.173 that corresponds to a for that scroll a > query object retrieved from memcache or from Entity.all if there isn't > in memcache.. > However this is the portion of code: > > def tagCloud(): >q1=memcache.get("tagCloud") >if q1 is None: >q1=Tag.all() >if not memcache.add("tagCloud",q1): >print "Memcache add error on key > \"tagCloud\"" >tags=[] >for q in q1: > > What can I do? > On 9 Feb, 18:30, Marzia Niccolai wrote: > > Hi, > > > > Can you please post the code to the handler where you are seeing this > issue. > > > > -Marzia > > > > On Sun, Feb 8, 2009 at 7:30 AM, Davide Ferrero > wrote: > > > > > From 2 two days my applications fall in error in every pages. I don't > > > have modified nothing from 1 week and three days ago my application > > > works correctly.. this is the error log: > > > > > # > > > 02-08 07:24AM 44.966 / 500 194ms 139ms-cpu 0kb > > > See details > > > 79.50.168.248 - - [08/Feb/2009:07:24:45 -0800] "GET / HTTP/1.1" > > > 500 104 - - > > > E 02-08 07:24AM 45.081 > > > > > 'Query' object has no attribute '_Query__query_sets' > > > Traceback (most recent call last): > > >File "/base/python_lib/versions/1/google/appengine/ext/webapp/ > > > __init__.py", line 498, in __call__ > > > handler.get(*groups) > > >File "/base/data/home/apps/sbook/1.331254528912766865/ > > > main.py", line 89, in get > > > tags=Cloud.tagCloud() > > >File "/base/data/home/apps/sbook/1.331254528912766865/ > > > main.py", line 173, in tagCloud > > > for q in q1: > > >File "/base/python_lib/versions/1/google/appengine/ext/db/ > > > __init__.py", line 1336, in __iter__ > > > return self.run() > > >File "/base/python_lib/versions/1/google/appengine/ext/db/ > > > __init__.py", line 1328, in run > > > return _QueryIterator(self._model_class, iter(self._get_query > > > ().Run())) > > >File "/base/python_lib/versions/1/google/appengine/ext/db/ > > > __init__.py", line 1547, in _get_query > > > for query_set in self.__query_sets: > > > AttributeError: 'Query' object has no attribute > > > '_Query__query_sets' > > > > > 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: NotAllowedError on create_login_url?
Hi, This was an issue that was recently fixed, and that's why it stopped working. You can serve any app off of a Google Apps domain, regardless of authentication. However, to use HTTPS, you must serve off of appspot. -Marzia On Wed, Feb 11, 2009 at 11:54 AM, Devel63 wrote: > > Indeed, we are not serving off that domain. But it worked until a > couple of days ago! > > OK, I guess it's time to make the transition. Just haven't gotten > around to it yet. > > Will I be able to serve both types of apps simultaneously off a single > domain (with different app names, obviously)? > > > > On Feb 11, 11:23 am, Marzia Niccolai wrote: > > Hi, > > > > If you restrict authentication to your Google Apps domain, to require > login, > > you must also serve off of that domain. I suspect this is why you are > > seeing the issue. > > > > If not, could you provide more details, the exact code and error message? > > > > -Marzia > > > > On Wed, Feb 11, 2009 at 7:56 AM, bjubbs wrote: > > > > > The users api is throwing a NotAllowedError when my app attempts to > > > create a login url using users.create_login_url('/'). Authentication > > > for my app is tied to a Google Apps domain. I must have a setting > > > wrong somehwere , but I haven't been able to dig up what this error > > > means . Does anybody know? > > > --~--~-~--~~~---~--~~ 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: NotAllowedError on create_login_url?
Indeed, we are not serving off that domain. But it worked until a couple of days ago! OK, I guess it's time to make the transition. Just haven't gotten around to it yet. Will I be able to serve both types of apps simultaneously off a single domain (with different app names, obviously)? On Feb 11, 11:23 am, Marzia Niccolai wrote: > Hi, > > If you restrict authentication to your Google Apps domain, to require login, > you must also serve off of that domain. I suspect this is why you are > seeing the issue. > > If not, could you provide more details, the exact code and error message? > > -Marzia > > On Wed, Feb 11, 2009 at 7:56 AM, bjubbs wrote: > > > The users api is throwing a NotAllowedError when my app attempts to > > create a login url using users.create_login_url('/'). Authentication > > for my app is tied to a Google Apps domain. I must have a setting > > wrong somehwere , but I haven't been able to dig up what this error > > means . Does anybody know? --~--~-~--~~~---~--~~ 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
dude ramu... thanks a LOT ... it works now !!! On Jan 30, 12:27 am, ramu wrote: > 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/threa... > > 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 _
[google-appengine] Re: error uploading my app
dude ... now i m successfully able to upload my app .. but not able to run it in the localhost .. the same error persists .. any solution please ?? On Jan 30, 12:27 am, ramu wrote: > 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/threa... > > 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
[google-appengine] A Fan of Google Apps and now App Engine!
Hi Everyone, I have to say that I am surprised, I am a groupie like fan of Google products and betas and somehow did not know anything about App Engine until today! Oh...that could be because it is not yet available in the the UK ;-( Do you know if there is a time-frame to enable creation of engines in the UK market? I really would hate to go to AWS ... Thanks! Damien --~--~-~--~~~---~--~~ 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: NotAllowedError while redirecting to the login page
Hi, If you restrict authentication to a specific domain, when a user is logged in it must also serve off of that domain. -Marzia On Tue, Feb 10, 2009 at 7:50 PM, Mayank Sharma wrote: > > Hi, > > I have a google app with authentication restricted only to my google > apps domain users. I am using the following code to redirect the user > to login in case the user is not logged in. > > self.redirect(users.create_login_url("/")) > > This was working fine until yesterday (before the 1.1.9 release), But > today when I go to homepage of my app, instead of redirecting to the > login page, I get the following error. > > Traceback (most recent call last): > File "/base/python_lib/versions/1/google/appengine/ext/webapp/ > __init__.py", line 501, in __call__ >handler.get(*groups) > File "/base/data/home/apps/zebuengine/2.331336139814018406/main.py", > line 90, in get >redirect_address = users.create_login_url("http:// > zebuengine.appspot.com/") > File "/base/python_lib/versions/1/google/appengine/api/users.py", > line 156, in create_login_url >raise NotAllowedError > NotAllowedError > > This is still working fine for my application in which i have > authentication set to gmail users. But not working now only for my > google apps domain users. Is something broken in the new release? > > Regards, > Mayank > > > > --~--~-~--~~~---~--~~ 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: NotAllowedError on create_login_url?
Hi, If you restrict authentication to your Google Apps domain, to require login, you must also serve off of that domain. I suspect this is why you are seeing the issue. If not, could you provide more details, the exact code and error message? -Marzia On Wed, Feb 11, 2009 at 7:56 AM, bjubbs wrote: > > The users api is throwing a NotAllowedError when my app attempts to > create a login url using users.create_login_url('/'). Authentication > for my app is tied to a Google Apps domain. I must have a setting > wrong somehwere , but I haven't been able to dig up what this error > means . Does anybody know? > > > > > > > --~--~-~--~~~---~--~~ 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] Newbie's 1st notes trying to start django project on appengine
I'm as newbie as newbie can get. I'm trying to start a django project on appengine, but couldn't seem to get the devel environment set up on my mac -- of course, after sleeping on it and while composing this email it is now working! I wonder if my problems related to having just done the most basic tutorial and having dev_appserver.py running in a different terminal. Here are my notes anyway. ENV: Mac OS X 10.5.6 Pre-installed Python 2.5.1 + easy_install: Imaging (PIL) , django Google AppEngine SDK 1.1.9 I understand there is two ways to get django working: http://code.google.com/p/google-app-engine-django/ and http://code.google.com/p/app-engine-patch/ As the first seems to be Google blessed/supported. I'm trying to use it. First looking at http://code.google.com/p/google-app-engine-django/source/browse/trunk/README "You can download the latest released version of the helper from the Google Code project at: http://code.google.com/p/google-app-engine-django"; should probably be removed for now, as the only version currently is appengine_helper_for_django-r52.zip and it is trivially broken (missing antlr3 include) and pretty raw. So, I thought I would try the most recent all around. svn co http://google-app-engine-django.googlecode.com/svn/trunk/ appengine_helper_for_django which gave r74 Reading http://code.google.com/appengine/articles/django10_zipimport.html , I'm lead to believe that with appengine SDK 1.1.9 that "archive containing all of Django should work and can made using: 'zip -r django.zip django' Which leaves me with: $ ls -lh django.zip -rw-r--r-- 1 lloyd staff 3.6M 11 Feb 10:09 django.zip $ md5 django.zip MD5 (django.zip) = 94a089c6264967260bc082291fcc62a7 So I'm now reading http://code.google.com/appengine/articles/appengine_helper_for_django.html "On Linux or Mac OS you can use a command like the following to achieve this" which somewhat contradicts the ReadMe "If you have installed the Google App Engine SDK using the Windows or MacOS installers provided by Google you may skip this step." $ ln -s /usr/local/google_appengine .google_appengine $ python manage.py runserver Joy! Thanks, Lloyd --~--~-~--~~~---~--~~ 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: calculated properties
Because, if I just had a plain-old python class, I'd be able to implement the dependency in the class itself, I wouldn't have to write a separate property class to get that behavior. I'm not going to lose any sleep over it though. On Feb 10, 6:05 pm, Andy Freeman wrote: > Since you're creating a property whose value really does depend on the > value of another property, it's unclear (to me) why you think that > that dependence shouldn't be an aspect of the dependent property, that > is, something that is part of its descriptor. > > That said, it's more than a little annoying that you have to type the > name of the independent property twice, once in its definition and a > second time in the dependent property's descriptor. > > On Feb 10, 9:27 am, Jason DeFontes wrote: > > > Thanks for the suggestions. Neither option seems ideal to me: > > overriding Model.put() has the db.put() hole; creating a subclass of > > Property seems like a lot of leakage for logic that should really > > belong in the Model class. Oh well, I will deal if that's all there is. --~--~-~--~~~---~--~~ 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: Domain squatting on App Engine
On Feb 11, 11:04 am, warreninaustintexas wrote: > I'm trying to get an Application Identifier for a new app. I've tried > many variations and I am receiving a "Sorry, is not available." > message at each one. When I check these apps at http://.appspot.com, > the app domain is not being used. > > Has there been domain squatting on App Engine? The app id namespace is shared with the Gmail username namespace. There are a *lot* of Gmail accounts, and you can't use the usernames of any of the as app IDs. --~--~-~--~~~---~--~~ 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] 1.1.9 and users.create_login_url NotAllowedError for Google App ID Deployment
I have an app that I have deployed in 2 configurations: one for Google IDs and one for a Google App Domain. The one deployed on a Google App Domain is now preventing any access, generating a NotAllowedError when a call is made to users.create_login_url(uri). No changes have been made at our end, so I'm guessing it's v1.1.9 that's causing this change. Poking around, I discovered that if I hard-code the uri to be '/', I can get in. We are generating the uri argument by calling Django request.get_full_path(). Is this wrong? Is there some other call we should be using? --~--~-~--~~~---~--~~ 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: gaeoauth released
On 11 Feb., 04:27, Takashi Matsuo wrote: > Today, I've just released gaeoauth. > > Gaeoauth is a small django application for verifying oauth signed > request in Google App Engine Environment. It also enables you to > associate opensocial user (domain:opensocial_viewer_id style) with > django user on GAE. > > You can add gaeoauth.middleware.OpenSocialVerifySignatureMiddleware to > MIDDLEWARE_CLASSES in your settings.py to verify oauth signed request > from outside. > > You can use gaeoauth.decorators.request_must_be_signed decorator for > protect your view from bogus request. It returns django's > HttpResponseForbidden when the request is not properly signed. > > Gaeoauth supports both of RSA-SHA1 and HMAC-SHA1 signing methods, > includes public keys of iGoogle, orkut, and hi5. You can also register > your consumer secret in the GAE's Datastore. > > Project site:http://code.google.com/p/gaeoauth/ > > Source code:http://bitbucket.org/tmatsuo/gaeoauth/ > > Please enjoy! > > -- Takashi Matsuo Interesting! Thanks for sharing! 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] Performance testing GAE app.
I understand that performance would vary greatly, I guess I am interested in two things. 1. The theoretical scalability of a GAE app. Let's say I have an app that does nothing, but reads from something from the datastore by key. 2. How did you resolve any potential quota issues when doing performance testing? --~--~-~--~~~---~--~~ 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: Domain squatting on App Engine
Goeffrey - Thanks for the quick response. Have any of the Googlers given a reason? That seems like a bad policy and I can't imagine any technical reason for it On Feb 11, 11:10 am, Geoffrey Spear wrote: > On Feb 11, 11:04 am, warreninaustintexas > wrote: > > > I'm trying to get an Application Identifier for a new app. I've tried > > many variations and I am receiving a "Sorry, is not available." > > message at each one. When I check these apps at http://.appspot.com, > > the app domain is not being used. > > > Has there been domain squatting on App Engine? > > The app id namespace is shared with the Gmail username namespace. > There are a *lot* of Gmail accounts, and you can't use the usernames > of any of the as app IDs. --~--~-~--~~~---~--~~ 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 handle this?
maybe u can try the cgi module something like this : cgi.escape(your content) --~--~-~--~~~---~--~~ 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] updated 1.1.9 breaks django 1.0
My previous dev app doesn't work after I upgraded to SDK1.1.9. Then I try to use the lastest version of django and django helper(r74) but it still doesn't work. Any one can help me? Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 2711, in _HandleRequest base_env_dict=env_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 380, in Dispatch base_env_dict=base_env_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 1998, in Dispatch self._module_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 1916, in ExecuteCGI reset_modules = exec_script(handler_path, cgi_path, hook) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 1812, in ExecuteOrImportScript exec module_code in script_module.__dict__ File "/Users/syd/Sites/Banana/main.py", line 24, in from appengine_django import InstallAppengineHelperForDjango File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 1572, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 1480, in FindAndLoadModule description) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 1430, in LoadModuleRestricted description) File "/Users/syd/Sites/Banana/appengine_django/__init__.py", line 128, in from django.conf import settings File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 1572, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 1480, in FindAndLoadModule description) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 1430, in LoadModuleRestricted description) File "/Users/syd/Sites/Banana/django/conf/__init__.py", line 11, in from django.conf import global_settings File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.
[google-appengine] Django and App Engine not playing nice
When I installed App Engine originally, I was able to make it work well both on my Vista and Ubuntu machines. I then installed Jdango, however, and since then, Python has not been able to recognize any packages inside of the Google package. I have a hunch it has to do with the PATH environment variable, but I don't know what I can do in order to change that PATH or if that is even the problem. Could someone please give me some suggestions? Thank you. --~--~-~--~~~---~--~~ 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] NotAllowedError while redirecting to the login page
Hi, I have a google app with authentication restricted only to my google apps domain users. I am using the following code to redirect the user to login in case the user is not logged in. self.redirect(users.create_login_url("/")) This was working fine until yesterday (before the 1.1.9 release), But today when I go to homepage of my app, instead of redirecting to the login page, I get the following error. Traceback (most recent call last): File "/base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py", line 501, in __call__ handler.get(*groups) File "/base/data/home/apps/zebuengine/2.331336139814018406/main.py", line 90, in get redirect_address = users.create_login_url("http:// zebuengine.appspot.com/") File "/base/python_lib/versions/1/google/appengine/api/users.py", line 156, in create_login_url raise NotAllowedError NotAllowedError This is still working fine for my application in which i have authentication set to gmail users. But not working now only for my google apps domain users. Is something broken in the new release? Regards, Mayank --~--~-~--~~~---~--~~ 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] Memcache.replace_multi - how to 'reset' the time attribute
I am trying to implement a session store which needs to re-set the timeout each time a visitor hits my site. In the docs it says we can adjust time "relative number of seconds from current time"; I interpret this to mean that we can reset the time say it was originally created with a timeout of 20 minutes, then a user comes back 9 minutes later we can then reset the time back to another 20 minutes...etc. How can this be achieved since it appears that time is an 'attribute' rather than a 'key'? If someone can post an example that would be helpful; or, if there is a better way to implement sessions "with timeouts" than using memcache I would appreciate your advice. - e --~--~-~--~~~---~--~~ 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] Domain squatting on App Engine
I'm trying to get an Application Identifier for a new app. I've tried many variations and I am receiving a "Sorry, is not available." message at each one. When I check these apps at http://.appspot.com, the app domain is not being used. Has there been domain squatting on App Engine? --~--~-~--~~~---~--~~ 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] NotAllowedError on create_login_url?
The users api is throwing a NotAllowedError when my app attempts to create a login url using users.create_login_url('/'). Authentication for my app is tied to a Google Apps domain. I must have a setting wrong somehwere , but I haven't been able to dig up what this error means . Does anybody know? --~--~-~--~~~---~--~~ 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: SDK version 1.1.9 Released
It's documented in the SDK under google/appengine/ext/remote_api/ remote_api_stub.py It's not exactly full documentation but I got it to work pretty easily. On Feb 10, 10:34 am, Ross M Karchner wrote: > Has anyone figured out how to make the remote API work yet? Is documentation > coming soon? > > On Mon, Feb 9, 2009 at 10:12 PM, Bill wrote: > > > Buried in the change log is an innocuous line about the remote API. > > From the module: > > "This allows easy remote access to the App Engine datastore, and > > potentially any > > of the other App Engine APIs, using the same interface you use when > > accessing > > the service locally." --~--~-~--~~~---~--~~ 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 handle this?
For a very simple web app that is returning a simple xml whose headers I have set like this self.response.headers['Content-Type'] = 'text/xml' but the returned xml is complaining when there is an "&" in a field say This & This What more settings do i need to use to eliminate this? --~--~-~--~~~---~--~~ 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: files, directories & symlinks in root directory
Thank you. --~--~-~--~~~---~--~~ 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: files, directories & symlinks in root directory
Aha, thank you for pointing out the relevant documentation. --~--~-~--~~~---~--~~ 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: storing key value pair in datastore
It isn't exactly the same, but have you looked at the Expando class? http://code.google.com/appengine/docs/python/datastore/expandoclass.html This would allow you to add extra name/value pairs to an entity like this: class SomeEntity(Expando): pass e = SomeEntity() e.name1 = "value" e.name2 = "value2" You can also get a list of the properties you've defined using the dynamic_properties() method. cheers Michael On Feb 11, 2:10 pm, sagey wrote: > hello, > > Apologies for what i assume is a very stupid question. > > I did have a model that stored a list of strings using a > stringlistproperty. > > I now need to store a pair of string values but am unsure of the best/ > correct way to do this? > > i've thought of 2 ways so far: > > 1) store the 2 strings in a stringlistproperty, with the 2 strings > delimited by a sepcial character, and then split the string when i > retrieve the values (i then got stumped by the fact that i can't use > split in the template). > > or > > 2) create a class that has 2 string properties and then store each > class in a list, however i can't work out from the documentation > whether a list will support storing custom classes, i don't think it > does (certainly trying to define db.listproperty with my own class > type produced an error. > > i'd be really grateful for any help. i'm new to both python and > appengine, so any help would be appreciated. --~--~-~--~~~---~--~~ 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] storing key value pair in datastore
hello, Apologies for what i assume is a very stupid question. I did have a model that stored a list of strings using a stringlistproperty. I now need to store a pair of string values but am unsure of the best/ correct way to do this? i've thought of 2 ways so far: 1) store the 2 strings in a stringlistproperty, with the 2 strings delimited by a sepcial character, and then split the string when i retrieve the values (i then got stumped by the fact that i can't use split in the template). or 2) create a class that has 2 string properties and then store each class in a list, however i can't work out from the documentation whether a list will support storing custom classes, i don't think it does (certainly trying to define db.listproperty with my own class type produced an error. i'd be really grateful for any help. i'm new to both python and appengine, so any help would be appreciated. --~--~-~--~~~---~--~~ 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: QueryIterator Error
The error is on line n.173 that corresponds to a for that scroll a query object retrieved from memcache or from Entity.all if there isn't in memcache.. However this is the portion of code: def tagCloud(): q1=memcache.get("tagCloud") if q1 is None: q1=Tag.all() if not memcache.add("tagCloud",q1): print "Memcache add error on key \"tagCloud\"" tags=[] for q in q1: What can I do? On 9 Feb, 18:30, Marzia Niccolai wrote: > Hi, > > Can you please post the code to the handler where you are seeing this issue. > > -Marzia > > On Sun, Feb 8, 2009 at 7:30 AM, Davide Ferrero wrote: > > > From 2 two days my applications fall in error in every pages. I don't > > have modified nothing from 1 week and three days ago my application > > works correctly.. this is the error log: > > > # > > 02-08 07:24AM 44.966 / 500 194ms 139ms-cpu 0kb > > See details > > 79.50.168.248 - - [08/Feb/2009:07:24:45 -0800] "GET / HTTP/1.1" > > 500 104 - - > > E 02-08 07:24AM 45.081 > > > 'Query' object has no attribute '_Query__query_sets' > > Traceback (most recent call last): > > File "/base/python_lib/versions/1/google/appengine/ext/webapp/ > > __init__.py", line 498, in __call__ > > handler.get(*groups) > > File "/base/data/home/apps/sbook/1.331254528912766865/ > > main.py", line 89, in get > > tags=Cloud.tagCloud() > > File "/base/data/home/apps/sbook/1.331254528912766865/ > > main.py", line 173, in tagCloud > > for q in q1: > > File "/base/python_lib/versions/1/google/appengine/ext/db/ > > __init__.py", line 1336, in __iter__ > > return self.run() > > File "/base/python_lib/versions/1/google/appengine/ext/db/ > > __init__.py", line 1328, in run > > return _QueryIterator(self._model_class, iter(self._get_query > > ().Run())) > > File "/base/python_lib/versions/1/google/appengine/ext/db/ > > __init__.py", line 1547, in _get_query > > for query_set in self.__query_sets: > > AttributeError: 'Query' object has no attribute > > '_Query__query_sets' > > > 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] HELP~~~~~ appcfg problem!!!
hey guys, I can update my application. ## urllib2.URLError: (urlopen error (10060, 'Operation timed out')) ## how can i resolve it? Thanks a lot! --~--~-~--~~~---~--~~ 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: Entity Groups
oops, maybe I've confused things then ... :) I was referring to Dave's comment, "If you do a bunch of processing on groups of entities in a single request then you can put them in a entity group, which should make that processing faster because they will be kept close." I took that to mean locality in the sense of "next to each other in bigtable", and the API docs seem to suggest that won't have much of an effect. Anyway, it seems a good guideline is to use the smallest groups you can. cheers Michael On Feb 11, 9:11 am, Michael Hart wrote: > Hmm? I think Stu was asking about Dave's reference to locality, > assuming that it was for geographical purposes - I was just stating > that I think the reason locality was brought up was to highlight how > each entity group can actually be persisted on a separate machine, > thus speeding up read/write performance. Locality referring more to a > machine, not a location (as such). > > In any case, I think we're saying the same thing (as Dave originally > mentioned too) - smaller entity groups are going to be faster. > > On 11/02/2009, at 7:35 PM, mcobrien wrote: > > > > > I'm not sure how much locality helps, but putting entities in a group > > for performance sounds like it could go wrong, depending on your data. > > Writes to entities within a group are serialized so having too many > > within in a single group can seriously hurt performance. > > > The API doc has some good hints: > > * Only use entity groups when they are needed for transactions > > * A good rule of thumb for entity groups is that they should be about > > the size of a single user's worth of data or smaller > > > (fromhttp://code.google.com/appengine/docs/python/datastore/keysandentityg...) > > > I think the scalable apps talk has some detail on this as well (and > > it's definitely worth watching anyway): > >http://sites.google.com/site/io/building-scalable-web-applications-wi... > > > cheers > > Michael > > > On Feb 10, 11:26 pm, Michael Hart wrote: > >> Not quite right - I think the "faster" property refers to the fact > >> that reads/writes can happen in parallel (because they're split over > >> multiple machines), not because of the actual geographical location > >> of > >> the servers (not that this wouldn't help as well, but I don't believe > >> GAE currently has support for specifying geographical data location) > > >> I could be wrong though. > > >> On 11/02/2009, at 1:43 AM, Big Stu wrote: > > It also benefits from locality. Entity groups are stored close > together (needed to make transactions fast), which is why lots of > small entity groups makes the overall application faster (because > they > can be spread out). If you do a bunch of processing on groups of > entities in a single request then you can put them in a entity > group, > which should make that processing faster because they will be kept > close. > > Dave. > > >>> I don't quite have my head wrapped around the entity group thing > >>> either. The transaction part I get...other benefits I don't quite > >>> get > >>> yet. If I were to build an app for managing dollar store > >>> inventory or > >>> something like that would I want to make all the data related to a > >>> particular store part of the same entity group? So that the data > >>> for > >>> a store in Toronto is part of one group, and the data for > >>> Vancouver is > >>> part of another, and then as far as teh datastore and access times > >>> are > >>> concerned the storage of the datasets will be best suited to the > >>> geography of the situation? Am I getting this right? > > >>> Thanks. > > >>> Stu --~--~-~--~~~---~--~~ 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: Loading pdb
Should have searched my mail first: http://groups.google.com/group/google-appengine/browse_thread/thread/4f4f9626fb22d453/b693677ad779fa64?hl=en&lnk=gst&q=pdb#b693677ad779fa64 On Wed, Feb 11, 2009 at 7:12 PM, Ian Lewis wrote: > Is there any way I can import and run pdb locally? Currently I have > problems with importing pdb. I do a import pdb;pdb.set_trace() and I get the > following error: > > DEBUG2009-02-11 10:10:15,174 dev_appserver.py] Could not import > "readline": Disallowed C-extension or built-in module > DEBUG2009-02-11 10:10:15,175 dev_appserver.py] Could not import > "readline": Disallowed C-extension or built-in module > DEBUG2009-02-11 10:10:15,176 dev_appserver.py] Could not import > "readline": Disallowed C-extension or built-in module > ERROR2009-02-11 10:10:15,184 dev_appserver.py] Exception encountered > handling request > Traceback (most recent call last): > File > "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", > line 2461, in _HandleRequest > base_env_dict=env_dict) > File > "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", > line 354, in Dispatch > base_env_dict=base_env_dict) > File > "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", > line 1871, in Dispatch > self._module_dict) > File > "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", > line 1789, in ExecuteCGI > reset_modules = exec_script(handler_path, cgi_path, hook) > File > "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", > line 1685, in ExecuteOrImportScript > exec module_code in script_module.__dict__ > File "/home/ian/src/smipple/main.py", line 60, in > main() > File "/home/ian/src/smipple/main.py", line 57, in main > util.run_wsgi_app(application) > File > "/home/ian/src/google_appengine-1.1.8/google/appengine/ext/webapp/util.py", > line 76, in run_wsgi_app > result = application(env, _start_response) > File "/home/ian/src/smipple/django.zip/django/core/handlers/wsgi.py", > line 228, in __call__ > File "/home/ian/src/smipple/django.zip/django/core/handlers/base.py", > line 38, in load_middleware > mw_instance = mw_class() > File > "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", > line 849, in decorate > return func(self, *args, **kwargs) > File > "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", > line 1445, in load_module > return self.FindAndLoadModule(submodule, fullname, search_path) > File > "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", > line 849, in decorate > return func(self, *args, **kwargs) > File > "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", > line 1353, in FindAndLoadModule > description) > File > "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", > line 849, in decorate > return func(self, *args, **kwargs) > File > "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", > line 1303, in LoadModuleRestricted > description) > File "/home/ian/src/smipple/smipple/middleware.py", line 45, in > class AuthenticationMiddleware(object): > File "/home/ian/src/smipple/smipple/middleware.py", line 47, in > AuthenticationMiddleware > def process_request(self, request): > File "/home/ian/src/smipple/smipple/middleware.py", line 47, in > AuthenticationMiddleware > def process_request(self, request): > File "/usr/lib/python2.5/bdb.py", line 48, in trace_dispatch > return self.dispatch_line(frame) > File "/usr/lib/python2.5/bdb.py", line 67, in dispatch_line > if self.quitting: raise BdbQuit > BdbQuit > > -- === 株式会社ビープラウド イアン・ルイス 〒150-0012 東京都渋谷区広尾1-11-2アイオス広尾ビル604 email: ianmle...@beproud.jp TEL:03-5795-2707 FAX:03-5795-2708 http://www.beproud.jp/ === --~--~-~--~~~---~--~~ 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] Loading pdb
Is there any way I can import and run pdb locally? Currently I have problems with importing pdb. I do a import pdb;pdb.set_trace() and I get the following error: DEBUG2009-02-11 10:10:15,174 dev_appserver.py] Could not import "readline": Disallowed C-extension or built-in module DEBUG2009-02-11 10:10:15,175 dev_appserver.py] Could not import "readline": Disallowed C-extension or built-in module DEBUG2009-02-11 10:10:15,176 dev_appserver.py] Could not import "readline": Disallowed C-extension or built-in module ERROR2009-02-11 10:10:15,184 dev_appserver.py] Exception encountered handling request Traceback (most recent call last): File "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", line 2461, in _HandleRequest base_env_dict=env_dict) File "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", line 354, in Dispatch base_env_dict=base_env_dict) File "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", line 1871, in Dispatch self._module_dict) File "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", line 1789, in ExecuteCGI reset_modules = exec_script(handler_path, cgi_path, hook) File "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", line 1685, in ExecuteOrImportScript exec module_code in script_module.__dict__ File "/home/ian/src/smipple/main.py", line 60, in main() File "/home/ian/src/smipple/main.py", line 57, in main util.run_wsgi_app(application) File "/home/ian/src/google_appengine-1.1.8/google/appengine/ext/webapp/util.py", line 76, in run_wsgi_app result = application(env, _start_response) File "/home/ian/src/smipple/django.zip/django/core/handlers/wsgi.py", line 228, in __call__ File "/home/ian/src/smipple/django.zip/django/core/handlers/base.py", line 38, in load_middleware mw_instance = mw_class() File "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", line 849, in decorate return func(self, *args, **kwargs) File "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", line 1445, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", line 849, in decorate return func(self, *args, **kwargs) File "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", line 1353, in FindAndLoadModule description) File "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", line 849, in decorate return func(self, *args, **kwargs) File "/home/ian/src/google_appengine-1.1.8/google/appengine/tools/dev_appserver.py", line 1303, in LoadModuleRestricted description) File "/home/ian/src/smipple/smipple/middleware.py", line 45, in class AuthenticationMiddleware(object): File "/home/ian/src/smipple/smipple/middleware.py", line 47, in AuthenticationMiddleware def process_request(self, request): File "/home/ian/src/smipple/smipple/middleware.py", line 47, in AuthenticationMiddleware def process_request(self, request): File "/usr/lib/python2.5/bdb.py", line 48, in trace_dispatch return self.dispatch_line(frame) File "/usr/lib/python2.5/bdb.py", line 67, in dispatch_line if self.quitting: raise BdbQuit BdbQuit --~--~-~--~~~---~--~~ 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: Db Acces Online like PhpMyAdmin
Brill, that whole dashboard wasn't there on the first day of opening the account! Cheers On Feb 10, 5:41 pm, Marzia Niccolai wrote: > Hi, > > You can browse and query the datastore from the admin console: > > http://appengine.google.com > > Just click on the 'Data Viewer' link on the left hand side. > > -Marzia > > On Tue, Feb 10, 2009 at 4:48 AM, Dan Course wrote: > > > Hi guys an gals, > > > Where can I access the database online for the app I've built? Like a > > PHPMyAdmin interface for it? > > > I can get to the dashboard, but that just has my apps and no link to a > > database. > > > Chars, > > > d --~--~-~--~~~---~--~~ 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: Entity Groups
Hmm? I think Stu was asking about Dave's reference to locality, assuming that it was for geographical purposes - I was just stating that I think the reason locality was brought up was to highlight how each entity group can actually be persisted on a separate machine, thus speeding up read/write performance. Locality referring more to a machine, not a location (as such). In any case, I think we're saying the same thing (as Dave originally mentioned too) - smaller entity groups are going to be faster. On 11/02/2009, at 7:35 PM, mcobrien wrote: > > I'm not sure how much locality helps, but putting entities in a group > for performance sounds like it could go wrong, depending on your data. > Writes to entities within a group are serialized so having too many > within in a single group can seriously hurt performance. > > The API doc has some good hints: > * Only use entity groups when they are needed for transactions > * A good rule of thumb for entity groups is that they should be about > the size of a single user's worth of data or smaller > > (from > http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html) > > I think the scalable apps talk has some detail on this as well (and > it's definitely worth watching anyway): > http://sites.google.com/site/io/building-scalable-web-applications-with-google-app-engine > > cheers > Michael > > On Feb 10, 11:26 pm, Michael Hart wrote: >> Not quite right - I think the "faster" property refers to the fact >> that reads/writes can happen in parallel (because they're split over >> multiple machines), not because of the actual geographical location >> of >> the servers (not that this wouldn't help as well, but I don't believe >> GAE currently has support for specifying geographical data location) >> >> I could be wrong though. >> >> On 11/02/2009, at 1:43 AM, Big Stu wrote: >> >> >> It also benefits from locality. Entity groups are stored close together (needed to make transactions fast), which is why lots of small entity groups makes the overall application faster (because they can be spread out). If you do a bunch of processing on groups of entities in a single request then you can put them in a entity group, which should make that processing faster because they will be kept close. >> Dave. >> >>> I don't quite have my head wrapped around the entity group thing >>> either. The transaction part I get...other benefits I don't quite >>> get >>> yet. If I were to build an app for managing dollar store >>> inventory or >>> something like that would I want to make all the data related to a >>> particular store part of the same entity group? So that the data >>> for >>> a store in Toronto is part of one group, and the data for >>> Vancouver is >>> part of another, and then as far as teh datastore and access times >>> are >>> concerned the storage of the datasets will be best suited to the >>> geography of the situation? Am I getting this right? >> >>> Thanks. >> >>> Stu > > --~--~-~--~~~---~--~~ 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: Entity Groups
I'm not sure how much locality helps, but putting entities in a group for performance sounds like it could go wrong, depending on your data. Writes to entities within a group are serialized so having too many within in a single group can seriously hurt performance. The API doc has some good hints: * Only use entity groups when they are needed for transactions * A good rule of thumb for entity groups is that they should be about the size of a single user's worth of data or smaller (from http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html) I think the scalable apps talk has some detail on this as well (and it's definitely worth watching anyway): http://sites.google.com/site/io/building-scalable-web-applications-with-google-app-engine cheers Michael On Feb 10, 11:26 pm, Michael Hart wrote: > Not quite right - I think the "faster" property refers to the fact > that reads/writes can happen in parallel (because they're split over > multiple machines), not because of the actual geographical location of > the servers (not that this wouldn't help as well, but I don't believe > GAE currently has support for specifying geographical data location) > > I could be wrong though. > > On 11/02/2009, at 1:43 AM, Big Stu wrote: > > > > >> It also benefits from locality. Entity groups are stored close > >> together (needed to make transactions fast), which is why lots of > >> small entity groups makes the overall application faster (because > >> they > >> can be spread out). If you do a bunch of processing on groups of > >> entities in a single request then you can put them in a entity group, > >> which should make that processing faster because they will be kept > >> close. > > >> Dave. > > > I don't quite have my head wrapped around the entity group thing > > either. The transaction part I get...other benefits I don't quite get > > yet. If I were to build an app for managing dollar store inventory or > > something like that would I want to make all the data related to a > > particular store part of the same entity group? So that the data for > > a store in Toronto is part of one group, and the data for Vancouver is > > part of another, and then as far as teh datastore and access times are > > concerned the storage of the datasets will be best suited to the > > geography of the situation? Am I getting this right? > > > Thanks. > > > Stu --~--~-~--~~~---~--~~ 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: files, directories & symlinks in root directory
On Feb 11, 3:08 pm, Jason Dusek wrote: > When I set up my Python program to just respond with a > directoy listing, it shows me this on my laptop: > > ['app.yaml', 'css', 'form.html', 'form.py', 'html', 'index.yaml', > 'js'] > > while when I deploy the app, I get: > > ['form.py', 'form.html'] > In addition to what Guido said, the latest version of the SDK (1.1.9) is fixed to match the behaviour on the App Engine: http://code.google.com/p/googleappengine/issues/detail?id=550 Your page should now return the same list both from the dev_appserver and in production. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---