[google-appengine] remote api, when?
hi all there is an undocumented remote api client in the 1.1.8 sdk which i tried, but it seems the protocoll buffer implementation is not available on appengine, just in the sdk. this error is raised when calling the remote_api handler : cannot import name remote_api_pb Traceback (most recent call last): File "/base/python_lib/versions/1/google/appengine/ext/remote_api/ handler.py", line 50, in from google.appengine.ext.remote_api import remote_api_pb File "/base/python_lib/versions/1/google/appengine/ext/remote_api/ __init__.py", line 72, in from google.appengine.ext.remote_api import remote_api_pb : cannot import name remote_api_pb does anybody know when this feature will be enabled? thx in advance, BErnd --~--~-~--~~~---~--~~ 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: app-engine-patch : 'User' has no attribute 'objects' ?
Hi Jan, On 20 Jan., 19:28, peterk wrote: > I've been playing around with app-engine-patch for Django on AE, and > I've been pretty happy with it so far. But I've run into a bit of bump > on the road. > > As per the Django documentation, I'm trying to create a User like so: > > from django.contrib.auth.models import User > > ... > > user = User.objects.create_user('john', 'len...@thebeatles.com', > 'johnpassword') > > I'm doing this in the context of a custom form that I'm using for user > registration..I'm over-riding it's save function, and need to create > the user therein. > > Problem is, I get this error: > > AttributeError: type object 'User' has no attribute 'objects' > > I'm probably doing something silly, I'm a bit of a python AND django > newbie > > Can anyone shed some light? Thanks for much for any help! The 0.9.x series of app-engine-patch doesn't support User.objects. However, it'll be part of the upcoming release 1.0. I've already implemented it in our patched Django repository, but the sample project repo hasn't been updated, yet. Bye, Waldemar Kornewald --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: app-engine-patch : 'User' has no attribute 'objects' ?
Hey Waldemar, Thanks very much for that info..I might check out the latest repository version and give that a go. Great work, btw, very much appreciate what you guys are doing. On Jan 21, 9:36 am, Waldemar Kornewald wrote: > Hi Jan, > > On 20 Jan., 19:28, peterk wrote: > > > > > I've been playing around with app-engine-patch for Django on AE, and > > I've been pretty happy with it so far. But I've run into a bit of bump > > on the road. > > > As per the Django documentation, I'm trying to create a User like so: > > > from django.contrib.auth.models import User > > > ... > > > user = User.objects.create_user('john', 'len...@thebeatles.com', > > 'johnpassword') > > > I'm doing this in the context of a custom form that I'm using for user > > registration..I'm over-riding it's save function, and need to create > > the user therein. > > > Problem is, I get this error: > > > AttributeError: type object 'User' has no attribute 'objects' > > > I'm probably doing something silly, I'm a bit of a python AND django > > newbie > > > Can anyone shed some light? Thanks for much for any help! > > The 0.9.x series of app-engine-patch doesn't support User.objects. > However, it'll be part of the upcoming release 1.0. I've already > implemented it in our patched Django repository, but the sample > project repo hasn't been updated, yet. > > Bye, > Waldemar Kornewald --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] re: images.Transform() was too large
The error I'm receiving for a section of my code is: RequestTooLargeError: The request to API call images.Transform() was too large. I'm trying to resize images to thumb nails, and it's failing. I saw this thread (which mysteriously I can't seem to reply to...): http://groups.google.com/group/google-appengine/browse_thread/thread/2f5cb194e8f74aa1 Quote: " Currently we have a 1MB request limit, which likely explains the error you're seeing. At the moment the only workaround is to restrict the size of images accepted by your application. Daniel " However, I'm seeing this error turn up for numbers much lower than 1 MB, and its weird. Anyone else seen this? For example my code (below) returns: Failed: Invalid file: The request to API call images.Transform() was too large. (image size was: 2592 x 1944) (image data was: 1.25500011444 MB) But unexpectedly: Failed: Invalid file: The request to API call images.Transform() was too large. (image size was: 768 x 1024) (image data was: 0.292947769165 MB) As if the resize request is converting the low quality JPG in the second example into a bitmap, and then realizing that the resulting image is too large? I've looked into /google/appengine/api/images/images_stub.py but it seems to just be passing the request on to PIL, which is definitely not the source of this error. So... help? The code I'm using is: try: # Data image bytes data = args['data'].value # Raw form data type, swidth, sheight = img.getImageInfo (data) type = images.PNG # Transcode to PNG width = 640 height = 480 thumb = images.resize (data, width, height) # Apply action response = self.savePicture (user, data, thumb, type) success = response['status'] response = response['response'] error = '' except Exception, e: success = 'false' lvalue = (float(len(args['data'].value)) / 1024.0) / 1024.0; response = '\'Invalid file: ' + str(e) + '(image size was: ' + str(swidth) + ' x ' + str(sheight) + ') (image data was: ' + str(lvalue) + ' MB)\'' error = '' ~ Doug. --~--~-~--~~~---~--~~ 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: Hosting question
I have earlier tried your suggestion and passing custom URL other than '/' does not work, for eg: If you write: - url: /.* script: myscript.py It will work but if you write - url: /myrequest/.* script: myscript.py It does not work. Please correct me if appropriate at any place --~--~-~--~~~---~--~~ 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: app-engine-patch : 'User' has no attribute 'objects' ?
Hey Peter, On Jan 21, 10:45 am, peterk wrote: > Hey Waldemar, > > Thanks very much for that info..I might check out the latest > repository version and give that a go. > > Great work, btw, very much appreciate what you guys are doing. Thanks a lot! We're happy when our users are happy. :) Bye, Waldemar Kornewald --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Model field value choices - can the list be generated dynamically?
Hi, On Jan 20, 5:49 pm, Janne Kuuskeri wrote: > > You can use a custom ModelChoiceField and override itslabel_from_instance() > > method: > > > class SizeOptionChoiceField(ModelChoiceField): > > deflabel_from_instance(self, obj): > > return obj.code > > Sorry, I'm a bit late to the game but i just ran into this thread and > wanted to ask that have you been able to use label_from_instance() in > GAE? I used to use it Django but in GAE it just doesn't get called > ever. That's why I have been using __unicode__ as well. Has anybody > ran into this issue? This *should* work in our app-engine-patch repository. http://www.bitbucket.org/wkornewald/appenginepatch-sample/ Project site: http://code.google.com/p/app-engine-patch/ Bye, Waldemar Kornewald --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Google login in a lightbox?
I agree, great UI implementation, and for people who wouldn't use it add a link "open in new window". phishing concerns for first time users would be resolved once they successfully logged in via the google domain. going forward they would prpbably trust the lightbox, and if they dont you have the "open in new window" link. On Jan 20, 8:04 am, gops wrote: > Cool Idea !! > > On Jan 18, 11:34 pm, emi420 wrote: > > > I want to show the Google login form in a lightbox, like this: > > >http://microbloog.appspot.com/ > > > It works, but isn't an elegant solution. > > > Any suggestions? > > > 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: Google login in a lightbox?
Thanks!! i like the "open in new window" idea. On Jan 21, 11:16 am, realgt wrote: > I agree, great UI implementation, and for people who wouldn't use it > add a link "open in new window". phishing concerns for first time > users would be resolved once they successfully logged in via the > google domain. going forward they would prpbably trust the lightbox, > and if they dont you have the "open in new window" link. > > On Jan 20, 8:04 am, gops wrote: > > > Cool Idea !! > > > On Jan 18, 11:34 pm, emi420 wrote: > > > > I want to show the Google login form in a lightbox, like this: > > > >http://microbloog.appspot.com/ > > > > It works, but isn't an elegant solution. > > > > Any suggestions? > > > > Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: how to do both filter and order
You need to convert the inequality filter on date to something that can use an "=" filter, a couple of ways of doing this.. One way is to add a 'recent' list of date to the model, so instead of storing just the publish day, store recent = [day,day-1,day-2,day-3] etc. as a list - the number of recent days in this will determine how many days your looking back on and limit your results to those days, you can then 'recent=yesterday', and order by your liked. You could do a similar thing by storing a 'week' or 'month' property and just filtering by items in the current week. Sites like youtube tend to have popular today, this week, this month.. then you still have your 'liked' free to do order on. Or run a query every few minutes to go through and flag items as recent or not, then just 'recent=true'. You will have to do this onto the back of requests and batch things at the moment, hopefully some cron style scripts are coming soon to automate this. These methods are never going to be exact, but it will get you close enough if your trying to filter all 'recently liked images' which is what I'm guessing your doing. Anthony On Jan 21, 3:17 am, kang wrote: > Then, how can I do the hot thing? > The image class has a datetime property 'date' and a int property 'liked'. I > need to get the images after yesterday and then order them by liked. Thanks. > > On Tue, Jan 20, 2009 at 1:58 PM, ryan > > > > > > wrote: > > > On Jan 20, 6:05 am, "Barry Hunter" > > wrote: > > > Its not strictly a gql limitation, but rather a datastore limitation. > > > >http://code.google.com/appengine/docs/python/datastore/queriesandinde... > > > correct. if you have both inequality filter(s) and sort order(s), the > > first sort order must be on the same property as the inequality filter > > (s). this is a fundamental datastore limitation, unfortunately, and > > one that we have no plans to remove any time soon. > > > > If your 'date' property really is a date, and not a date+time, you > > > should be ok. > > > actually, this limitation is unrelated to property type. (hopefully > > i'm just misunderstanding your point here...) > > -- > Stay hungry,Stay foolish. --~--~-~--~~~---~--~~ 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: Hosting question
Make sure the -url: /myrequest/.* line doesn't come after a -url: /.* line, or any other line with a regex that will match your /myrequest URLs. The regexes are checked in order, and .* will match anything causing later URLs to never get checked. On Jan 21, 7:29 am, arnie wrote: > I have earlier tried your suggestion and passing custom URL other than > '/' does not work, for eg: > If you write: > - url: /.* > script: myscript.py > It will work > but if you write > - url: /myrequest/.* > script: myscript.py > It does not work. Please correct me if appropriate at any place --~--~-~--~~~---~--~~ 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: Exploding Index
Thank you for your reply. I was worried it would result in exploding index and I may have to redesign the whole Model. And I could not come up with an alternate way to achieve the same functionality. Murali On Jan 20, 1:48 pm, Marzia Niccolai wrote: > Hi, > > From what you have explained, it doesn't appear as though you will > have an issue with exploding indexes, provided you don't start running > queries on multiple StringListProperties, and your overall entity > definition does not have a lot of properties. This is typically where > applications start to have issues. > > -Marzia > > On Sat, Jan 17, 2009 at 11:05 AM, Murali wrote: > > > I would like to request some clarification on whether the following > > model with the set of queries result in an exploding index. > > > I am trying to build a quick stock notes application where we want to > > add some quick notes on stocks. Stocks and Tags are both list > > properties. But I will not make any query that include both tags and > > stocks at the same time. Only ONE at a time combined with created in > > desc order (to get last one first). > > > I imposed a restriction of ONLY A MAX of 3 tags allowed for any row > > ( same is the case with 3 stocks, restricted to max of 3) > > > class QuickNote(db.Model): > > description = db.StringProperty() > > author = db.StringProperty() > > status = db.StringProperty() > > tags = db.StringListProperty() > > stocks = db.StringListProperty() > > created = db.DateTimeProperty(auto_now_add=True) > > > Index : > > - kind: QuickNote > > properties: > > - name: tag > > - name: created > > direction: desc > > > - kind: QuickNote > > properties: > > - name: stock > > - name: created > > direction: desc > > > 1. A single entity will never have more than 3 values in each list and > > never more than one list property is used in a single query. However, > > I need to combine with date in desc order to retrieve latest notes. > > (as shown above) > > 2. As a whole, we might have about 1000 stocks and similar range of > > tags. > > > I would like to know if this data model with the given set of queries, > > will result in exploding index? > > > Also, if I have 7 more (a total of 9) different List properties > > (similar to stocks and tags) each with the same restriction of 3 > > values in a list, and they are never combined (except with date in > > desc order), would that result in exploding index? At any time only 2 > > or 3 lists will have any values filled in. > > > Thank you very much in advance for your inputs. > > Murali --~--~-~--~~~---~--~~ 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: "Ancestor is" performance
Thanks for the excellent reply Ryan! On Jan 20, 3:54 pm, ryan wrote: > On Jan 19, 7:10 am, TonyArkles wrote: > > > > > In a thread [1], and in the documentation [2], it says that setting > > ancestors doesn't affect performance, but I'm not sure that this is > > the case. > ... > > The measured "ms-cpu" in the request logs comes out WAY smaller for > > the "ANCESTOR IS" query (roughly 3,000ms-cpu vs. 30,000 ms-cpu for > > 1,000 entities, and roughly this same ratio for smaller queries) > > the important distinction to make here is between performance and > cost. the thread and doc you cited are correct in that ancestor > queries don't differ in performance from non-ancestor queries. > however, they may differ in their CPU cost, which is what you noticed. > > On Jan 19, 3:42 pm, Alexander Kojevnikov > wrote: > > > > > All entities in a group are stored in the same datastore node. > > > I guess this means that entities from the same group are stored close > > to each other. When your query uses "ANCESTOR IS", the query engine > > can take advantage of this. Just a speculation though... > > this is definitely correct. the query engine can take advantage of > this in some kinds of queries, but most ancestor queries use a > composite (ie developer-defined) index. those queries don't take > advantage of the entity group locality. > > another point i'd reiterate is that regardless of the filters, > ancestor, and sort orders you use, query performance should generally > be the same. a query consists of a single, bounded, bigtable scan over > an index table, along with individual row lookups for each result > entity. details inhttp://snarfed.org/space/datastore_talk.html. this > means that query performance will depend on the number and size of the > result entities fetched, but not (generally) on the query itself. > > the one exception is merge join queries, ie queries that include only > equality filters, and maybe an ancestor, but no sort orders. those > queries are implemented using a somewhat more expensive algorithm. > it's still roughly O(n) in the number of result entities fetched, but > it has a higher constant factor. this is described in the slides > linked above, and has been discussed in more detail in other threads > on this group. --~--~-~--~~~---~--~~ 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] can't deploy index.yaml
I keep getting this error Cloning 3 application files. Closing update. Error parsing yaml file: mapping values are not allowed here in "/Users/ljw1001/journalist/index.yaml", line 3, column 15 when trying to upload a file like this: - kind: Note properties: - name: __searchable_text_index - name: create_date_time direction: desc --~--~-~--~~~---~--~~ 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 deploy index.yaml
Make sure you have an indexes: line before your mappings. (see http://code.google.com/appengine/docs/python/tools/configuration.html) On Jan 21, 10:18 am, jones34 wrote: > I keep getting this error > > Cloning 3 application files. > Closing update. > Error parsing yaml file: > mapping values are not allowed here > in "/Users/ljw1001/journalist/index.yaml", line 3, column 15 > > when trying to upload a file like this: > > - kind: Note > properties: > - name: __searchable_text_index > - name: create_date_time > direction: desc --~--~-~--~~~---~--~~ 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 question - How to start?
Hi, I'm newbie to web developement, with only some experience in software like dreamweaver and frontpage. Could anyone advise a learning syllbus for google app engine? I know that I should go through "Python", but anything else? I have quite a few ideas for web applications but still lack of IT skills to realize them. I have engineering background (not computer science of course) and have some knowledge about C++. Thanks in advance! P.S: Maybe a introduction of learning could be add to the tutorial? I guess not all the people who have ideas know everything on IT side too. Mark --~--~-~--~~~---~--~~ 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] SMS issues form: Comments Error
Hello, I also have the problem to do sms verification with my own phone number and while i report with "SMS issues form", report page will show that, "Error: Comments". Does anybody know how to handle this? I cannot find the 3rd way to confirm the accound.. Regards, Ted --~--~-~--~~~---~--~~ 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: Why can't I sign up Adsense for my Google App Engine application?
Hi, Does anybody know if this problem will remain unfixed for a long time? Is there an easy solution? Thanks On 2 dez 2008, 20:53, Marzia Niccolai wrote: > Hi, > > It seems that right now, AdSense does not allow you to list such a URL, but > we are currently looking in to getting this fixed. > > -Marzia > > On Sun, Nov 30, 2008 at 8:28 PM, IN wrote: > > > When I tried to sign up my App Engine application for Adsense I got > > this message: URL cannot contain a Google host. > > > The URL I used was the standard App Engine URL: *.appspot.com > > > Thanks, > > IN --~--~-~--~~~---~--~~ 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: Why can't I sign up Adsense for my Google App Engine application?
Hi, I have no timeline for when this issue may be fixed. The only options currently would be to make login to these pages optional, or serve non-targeted ads on the pages that require login. -Marzia On Wed, Jan 21, 2009 at 4:54 AM, Rodrigo Alves Lima wrote: > > Hi, > > Does anybody know if this problem will remain unfixed for a long time? > Is there an easy solution? > > > > Thanks > > On 2 dez 2008, 20:53, Marzia Niccolai wrote: >> Hi, >> >> It seems that right now, AdSense does not allow you to list such a URL, but >> we are currently looking in to getting this fixed. >> >> -Marzia >> >> On Sun, Nov 30, 2008 at 8:28 PM, IN wrote: >> >> > When I tried to sign up my App Engine application for Adsense I got >> > this message: URL cannot contain a Google host. >> >> > The URL I used was the standard App Engine URL: *.appspot.com >> >> > Thanks, >> > IN > > > > --~--~-~--~~~---~--~~ 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] Cant start my helloworld sample
Hi all, I follow the Hello World guide but still have problem to start Apps Engine. Here is the error: C:\Program Files\Google\google_appengine>dev_appserver.py helloworld/ ERROR2009-01-21 16:40:27,203 dev_appserver_main.py] Fatal error when loading application configuration: Unable to assign value 'pyhton' to attribute 'runtime': Value 'pyhton' not in {'python': 'python'}. in "helloworld/app.yaml", line 3, column 10 what is the problem? --~--~-~--~~~---~--~~ 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] No cell phone
I want to sign up for Google app engine. I have no cell phone.. How do I sign up without using cell phone number? --~--~-~--~~~---~--~~ 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: Cant start my helloworld sample
Read the error message closely. You misspelled python. On Wed, Jan 21, 2009 at 11:44 AM, ahYeop wrote: > > Hi all, > > I follow the Hello World guide but still have problem to start Apps > Engine. Here is the error: > > C:\Program Files\Google\google_appengine>dev_appserver.py helloworld/ > ERROR2009-01-21 16:40:27,203 dev_appserver_main.py] Fatal error > when loading > application configuration: > Unable to assign value 'pyhton' to attribute 'runtime': > Value 'pyhton' not in {'python': 'python'}. > in "helloworld/app.yaml", line 3, column 10 > > what is the problem? > > > > -- http://giscoder.blogspot.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: Google Apps dashboard not recognizing Google App Engine/CNAME record
THANK YOU!!! --Ben On Jan 20, 9:52 am, Marzia Niccolai wrote: > Hi, > > You must remove the mapping from the Google Apps personalized start > page before attempting to add the 'www' mapping for your App Engine > app. After it is removed, you should be able to add the mapping > successfully for your app. > > -Marzia > > On Mon, Jan 19, 2009 at 9:41 AM, Benjamin Tseng wrote: > > > We currently have xhibitr.com registered under DreamHost with Google > > Apps (Standard Edition) and have been trying to set up our appengine > > application (at xhibitr.appspot.com) so thatwww.xhibitr.comforwards > > to xhibitr.appspot.com > > > The instructions on the Google page ask us to set up a CNAME record > > (so we created one to link "www" to "ghs.google.com") as confirmed by > > DNSstuff (http://private.dnsstuff.com/tools/customlookup.ch? > > formaction=DNSLOOKUP&name=www.xhibitr.com&r=235660&detail=0&type=CNAME), > > but we are unable to set up URL forwarding from the Google Apps panel. > > > We are confused as we were able to set this recognition for > > widget.xhibitr.com (http://private.dnsstuff.com/tools/customlookup.ch? > > formaction=DNSLOOKUP&name=widget.xhibitr.com&r=235660&detail=0&type=CNAME). > > > Does anyone have any ideas why this is happening? --~--~-~--~~~---~--~~ 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 deploy index.yaml
i do have the indexes line. that's not the problem. On Jan 21, 10:28 am, Geoffrey Spear wrote: > Make sure you have an > indexes: > > line before your mappings. > (seehttp://code.google.com/appengine/docs/python/tools/configuration.html) > > On Jan 21, 10:18 am, jones34 wrote: > > > I keep getting this error > > > Cloning 3 application files. > > Closing update. > > Error parsing yaml file: > > mapping values are not allowed here > > in "/Users/ljw1001/journalist/index.yaml", line 3, column 15 > > > when trying to upload a file like this: > > > - kind: Note > > properties: > > - name: __searchable_text_index > > - name: create_date_time > > direction: desc --~--~-~--~~~---~--~~ 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 deploy index.yaml
Hi, Can you please post your entire index.yaml file? -Marzia On Wed, Jan 21, 2009 at 10:23 AM, jones34 wrote: > > i do have the indexes line. that's not the problem. > > On Jan 21, 10:28 am, Geoffrey Spear wrote: >> Make sure you have an >> indexes: >> >> line before your mappings. >> (seehttp://code.google.com/appengine/docs/python/tools/configuration.html) >> >> On Jan 21, 10:18 am, jones34 wrote: >> >> > I keep getting this error >> >> > Cloning 3 application files. >> > Closing update. >> > Error parsing yaml file: >> > mapping values are not allowed here >> > in "/Users/ljw1001/journalist/index.yaml", line 3, column 15 >> >> > when trying to upload a file like this: >> >> > - kind: Note >> > properties: >> > - name: __searchable_text_index >> > - name: create_date_time >> > direction: desc > > > --~--~-~--~~~---~--~~ 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] Transcript: App Engine chat time January 21
[09:01am] scudder: marzia_google and I are here from Google [09:02am] scudder is now known as scudder_google. [09:02am] marzia_google: good morning [09:02am] tonyarkles: hi! [09:02am] Cyndre: Morning, and thank you for you time [09:02am] DineshV: hi [09:02am] martimartino: evening! [09:02am] scudder_google: [09:02am] SDragon: 1st question: are the naked domain issues resolved / are there any plans to officially support naked domains in the near future? [09:03am] jeverling: hi everybody! [09:03am] marzia_google: though we would like to eventually support naked domains [09:03am] marzia_google: it's not something that is the highest priority, they were taken away so that we could do effective load balancing on requests [09:04am] marzia_google: so the preferred method of handling naked domains is to set up a 302 [09:04am] VM: hi! [09:05am] Cyndre: when dealing with multiple pages is it better to handle them in one script, or a script per page? [09:05am] SDragon: is geographical load balancing implemented? IE: requests from europe handled within europe, etc; and if so, are there any data-synchronization issues we should pay attentiont to? [09:06am] marzia_google: h, i don't have a concrete answer for that question (re: one or multiple scripts) [09:06am] marzia_google: certainly at some point multiple scripts are necessary [09:06am] prasannaj: hi [09:06am] DineshV: we are developing a app development platform over gae(in lines of coghead and longjump) for over 6 months now. [09:07am] scudder_google: SDragon: at the moment app engine doesn't do very much geographic load balancing [09:07am] martimartino: I've not found much in the docs about enforcing unique properties etc. what's the best way to enforce data constraints - can you do them at the model level, or should checks just be done when creating/saving entities? [09:08am] DineshV: while trying to improve performance, we found out memcache and queries are not performant as we actually expected it to be. [09:08am] DineshV: we used cprofile to profile the code in gae [09:08am] Cyndre: is there an issue with storring gigs of data in datastore? asking because its the lowest set constraint, .5 gb [09:08am] marzia_google: concerning profiling, if you could elaborate that would be helpful [09:09am] scudder_google: martimartino: checking your data to fit constrints on write is generally the prefered model [09:09am] marzia_google: concerning storage, there is no concern, 1/2 gig is the free quota [09:09am] marzia_google: which currently we can bump [09:09am] martimartino: scudder: ok, thanks for that! [09:09am] scudder_google: what kinds of constraints are you interested in? [09:09am] marzia_google: and soon you should be able to pay for [09:09am] Cyndre: any idea how soon? that was my next question [09:09am] SDragon: which of the upcoming runtime languages are in the most mature phase / expected to be released within the current release window? [09:10am] martimartino: marzia_google: Mainly enforcing unique groups of properties [09:10am] marzia_google: before the end of march, as we've mentioned paying is currently in the trusted tester phase [09:11am] scudder_google: SDragon: no comment [09:11am] DineshV: marzia_google:we are creating close to 400objects in single transaction(to create a complete page). we use memcache as second level cache [09:11am] Cyndre: marzia_google: Thanks, I feel much better about using GAE now. ty [09:11am] DineshV: and we do maintain a first level chache [09:11am] marzia_google: yes, you will not be able to create 400 objects reliably in a single transaction [09:12am] scudder_google: martimartino: so you are saying that you want to ensure that a certain property in an entity is unique across all entities of that kind? [09:12am] marzia_google: the datastore is optimized for quickly reading information, writes require a bit more work [09:12am] noodlez_: work queues/long running processes are not on the roadmap, does this means they won't be available anytime soon (at least not in Q1)? [09:12am] Cyndre: Ive noticed that with index building - I had 4 items in it and it took 7 minutes to order it.. [09:13am] VM: is it advisable to use memcache,for caching data above the Bigtable [09:13am] marzia_google: we are working on updating the roadmap with additional information for the upcoming years, while long running processes are something we are working on, they aren't slated for Q1 [09:14am] martimartino: scudder: basically I want to do the equivalent of unique_together in a rdb [09:14am] marzia_google: re: index building, it's an offline process so it can't necessarily be reliably timed [09:14am] marzia_google: i would read 'How Index Building Works' [09:14am] marzia_google: to get a better idea of what happens [09:14am] marzia_google: or see ryan+appengine's comments in the groups, which are the most detailed wrt to details on the datastore [09:14am] DineshV: marzia_google: I am trying to get profile data. but the profile data that co
[google-appengine] Re: app-engine-patch : 'User' has no attribute 'objects' ?
Sorry to come back on this..I guess I should have tried this before replying previously..but, how can I get my sample app totally up to date? I checked out the patched version of django, but when I zip it up (to replace the zipped django), it comes to nearly 4MB, which is over the limit for GAE? I (naively) and blindly then tried to add just the contrib/auth part of the updated patched django, but that causes errors elsewhere (since changes there seem to depend on changes elsewhere in the patched django that the rest doesn't have). Also, if I do manage to update the zipped django, is that all I need to get up to date? I initially tried to just change the models.py file for contrib/auth as per the latest changes to the patched django repository, but I still got the same errors about User not having the objects() attribute..and trying to use the UserManager directly, I get errors saying that User doesn't have attribute 'all()' . So that's why I tried then to update the rest, figuring there are dependencies on other updates.. Sorry, I know these issues are very newbish :( Thanks for any help, again.. On Jan 21, 12:39 pm, Waldemar Kornewald wrote: > Hey Peter, > > On Jan 21, 10:45 am, peterk wrote: > > > Hey Waldemar, > > > Thanks very much for that info..I might check out the latest > > repository version and give that a go. > > > Great work, btw, very much appreciate what you guys are doing. > > Thanks a lot! We're happy when our users are happy. :) > > 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] Any way to set domain for version of my app?
Hi, I am deploying a beta version of my app. The domain is listed as 2a.latestappspot.com. My main app is hosted at www.howsfvotes.com. I would like a way to deploy the beta version on a subdomain of howsfvotes.com. One reason is that I have a Google Maps API key that is only valid for howsfvotes.com. Is there a way to do this? Thanks, Jesse --~--~-~--~~~---~--~~ 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: Any way to set domain for version of my app?
There's no way to assign a subdomain to a specific version of an app. The most practical solution to host a "beta" version like this is to install both versions of your software within the same app, and control the difference with URL path mapping. You could create a second app, associate it with a subdomain in Google Apps (such as beta.howsfvotes.com), then deploy the beta version to the new app. The new app will not be able to access the datastore of the original app, though. -- Dan On Wed, Jan 21, 2009 at 10:53 AM, Jesse wrote: > > Hi, > > I am deploying a beta version of my app. The domain is listed as > 2a.latestappspot.com. My main app is hosted at www.howsfvotes.com. > I would like a way to deploy the beta version on a subdomain of > howsfvotes.com. One reason is that I have a Google Maps API key that > is only valid for howsfvotes.com. Is there a way to do this? Thanks, > > Jesse > > > > --~--~-~--~~~---~--~~ 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: app-engine-patch : 'User' has no attribute 'objects' ?
Oops..nevermind, I got it working. I guess sometimes you just have to RTFM :D Specifically, this page gave me what I needed: http://code.google.com/p/app-engine-patch/wiki/ManualInstallation So User.objects works now..which is great. So far so good :) Thanks again for your help! On Jan 21, 7:16 pm, peterk wrote: > Sorry to come back on this..I guess I should have tried this before > replying previously..but, how can I get my sample app totally up to > date? > > I checked out the patched version of django, but when I zip it up (to > replace the zipped django), it comes to nearly 4MB, which is over the > limit for GAE? > > I (naively) and blindly then tried to add just the contrib/auth part > of the updated patched django, but that causes errors elsewhere (since > changes there seem to depend on changes elsewhere in the patched > django that the rest doesn't have). > > Also, if I do manage to update the zipped django, is that all I need > to get up to date? > > I initially tried to just change the models.py file for contrib/auth > as per the latest changes to the patched django repository, but I > still got the same errors about User not having the objects() > attribute..and trying to use the UserManager directly, I get errors > saying that User doesn't have attribute 'all()' . So that's why I > tried then to update the rest, figuring there are dependencies on > other updates.. > > Sorry, I know these issues are very newbish :( Thanks for any help, > again.. > > On Jan 21, 12:39 pm, Waldemar Kornewald wrote: > > > Hey Peter, > > > On Jan 21, 10:45 am, peterk wrote: > > > > Hey Waldemar, > > > > Thanks very much for that info..I might check out the latest > > > repository version and give that a go. > > > > Great work, btw, very much appreciate what you guys are doing. > > > Thanks a lot! We're happy when our users are happy. :) > > > Bye, > > Waldemar Kornewald --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Any way to set domain for version of my app?
Thanks On Jan 21, 1:41 pm, Dan Sanderson wrote: > There's no way to assign a subdomain to a specific version of an app. The > most practical solution to host a "beta" version like this is to install > both versions of your software within the same app, and control the > difference with URL path mapping. > > You could create a second app, associate it with a subdomain in Google Apps > (such as beta.howsfvotes.com), then deploy the beta version to the new app. > The new app will not be able to access the datastore of the original app, > though. > > -- Dan > > On Wed, Jan 21, 2009 at 10:53 AM, Jesse wrote: > > > Hi, > > > I am deploying a beta version of my app. The domain is listed as > > 2a.latestappspot.com. My main app is hosted atwww.howsfvotes.com. > > I would like a way to deploy the beta version on a subdomain of > > howsfvotes.com. One reason is that I have a Google Maps API key that > > is only valid for howsfvotes.com. Is there a way to do this? Thanks, > > > Jesse --~--~-~--~~~---~--~~ 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] sanitizing user submitted HTML
There must be an easy answer for this problem and I almost feel dumb for asking BUT I can't figure it out and have spent too much time trying. The scenerio is a comment/blog situation. I am using tinyMCE which is creating 'trustable' html. I can display this with django by using {{field|safe}}... all is good. The problem is some bozo will have their way with the textarea by turning of their javascript. So I'm trying to figure out best way to sanitize the data. The normal escaping of data won't work because it clobbers the 'good' html from tinyMCE. Anyway would be good to sanitize even the tinyMCE generated html. I've been looking at using html5 lib/parser but can't seem to get it to work. I've even gone through creating a replace method to escape everything and then put back the 'good' tags. However, that seems like a round-about way to go and get's really nasty when considering img, span, etc. tags tinyMCE creates so nicely. Surely many have come across this and there an easy answer. All suggestions and recommendations are greatly appreciated. thx, Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: No cell phone
> I want to sign up for Google app engine. I have no cell phone.. > How do I sign up without using cell phone number? Fill out the SMS issues form: http://appengine.google.com/waitlist/sms_issues --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: is gaeutilities sessions the only 3rd party session manager?
thanks for the suggestions. does beaker really work out of the box with gae? On Jan 21, 1:06 am, Ian Bicking wrote: > On Tue, Jan 20, 2009 at 10:40 PM, jeremy wrote: > > can anyone recommend / mention a session manager other than the one in > > gaeutilities? > > Beaker works with GAE:http://beaker.groovie.org/ > > -- > Ian Bicking | http://blog.ianbicking.org --~--~-~--~~~---~--~~ 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: sanitizing user submitted HTML
You can port this code [1] from C# to Python, shouldn't take long. The code is used on the StackOverflow [2] website for exactly the same purposes as yours. [1] http://refactormycode.com/codes/333-sanitize-html [2] http://stackoverflow.com/ On Jan 22, 9:47 am, Dave wrote: > There must be an easy answer for this problem and I almost feel dumb > for asking BUT I can't figure it out and have spent too much time > trying. The scenerio is a comment/blog situation. I am using tinyMCE > which is creating 'trustable' html. I can display this with django by > using {{field|safe}}... all is good. > > The problem is some bozo will have their way with the textarea by > turning of their javascript. So I'm trying to figure out best way to > sanitize the data. The normal escaping of data won't work because it > clobbers the 'good' html from tinyMCE. Anyway would be good to > sanitize even the tinyMCE generated html. > > I've been looking at using html5 lib/parser but can't seem to get it > to work. I've even gone through creating a replace method to escape > everything and then put back the 'good' tags. However, that seems like > a round-about way to go and get's really nasty when considering img, > span, etc. tags tinyMCE creates so nicely. Surely many have come > across this and there an easy answer. > > All suggestions and recommendations are greatly appreciated. > > thx, > > Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: sanitizing user submitted HTML
Check out: http://feedparser.org/docs/html-sanitization.html On Jan 21, 2:47 pm, Dave wrote: > There must be an easy answer for this problem and I almost feel dumb > for asking BUT I can't figure it out and have spent too much time > trying. The scenerio is a comment/blog situation. I am using tinyMCE > which is creating 'trustable' html. I can display this with django by > using {{field|safe}}... all is good. > > The problem is some bozo will have their way with the textarea by > turning of their javascript. So I'm trying to figure out best way to > sanitize the data. The normal escaping of data won't work because it > clobbers the 'good' html from tinyMCE. Anyway would be good to > sanitize even the tinyMCE generated html. > > I've been looking at using html5 lib/parser but can't seem to get it > to work. I've even gone through creating a replace method to escape > everything and then put back the 'good' tags. However, that seems like > a round-about way to go and get's really nasty when considering img, > span, etc. tags tinyMCE creates so nicely. Surely many have come > across this and there an easy answer. > > All suggestions and recommendations are greatly appreciated. > > thx, > > Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: sanitizing user submitted HTML
Thanks Chris and Alexander, I took a look at both... from the links I also found http://code.google.com/p/soclone/source/browse/trunk/soclone/utils/html.py which uses html5lib. It puts a wrapper on html5lib and helped me figure out how to make it work. What is wicked cool is that what appeared to be a nightmare seems to work just great. For others attempting same thing do this: 1- get & install html5lib. Note: phthon manage.py install failed for me so i just copied it to my project folder. 2- get the code from link above and save it file in your project (i.e. htmlsanitize.py) 3- I run the code as a clean in my forms(i.e. def clean_comment) such as below: def clean_comment(self): import htmlsanitize data = htmlsanitize.sanitize_html(self.cleaned_data['comment']) return data So far so good for me. Would love to hear 'thumbs up' or 'thumbs down' if this is a good approach. thx again Dave Chris Tan wrote: > Check out: > http://feedparser.org/docs/html-sanitization.html > > > On Jan 21, 2:47�pm, Dave wrote: > > There must be an easy answer for this problem and I almost feel dumb > > for asking BUT I can't figure it out and have spent too much time > > trying. The scenerio is a comment/blog situation. I am using tinyMCE > > which is creating 'trustable' html. I can display this with django by > > using {{field|safe}}... all is good. > > > > The problem is some bozo will have their way with the textarea by > > turning of their javascript. So I'm trying to figure out best way to > > sanitize the data. The normal escaping of data won't work because it > > clobbers the 'good' html from tinyMCE. Anyway would be good to > > sanitize even the tinyMCE generated html. > > > > I've been looking at using html5 lib/parser but can't seem to get it > > to work. I've even gone through creating a replace method to escape > > everything and then put back the 'good' tags. However, that seems like > > a round-about way to go and get's really nasty when considering img, > > span, etc. tags tinyMCE creates so nicely. Surely many have come > > across this and there an easy answer. > > > > All suggestions and �recommendations are greatly appreciated. > > > > thx, > > > > Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: is gaeutilities sessions the only 3rd party session manager?
Does beaker store all session information as cookies? I'm just trying to figure out the value in the signed cookie approach, because if I can figure out a way for it to make sense I would consider moving gaeutilities to that approach. gaeutilities stores only a temporary session token in the browser cookie store, all information is stored server side for security. Since I only have the one cookie, which is basically an id to find the session server side with, I don't see a way for this approach to keep a session from being hijacked. As in the end the 'hash-value' string could be hijacked and reused by another browser. The performance issue with gaeutililites, and why Jeremy is looking for options, is the approach I've taken to securing the session id requires frequent put() operations. I've seen some other blogs who've mentioned this is a performance bottleneck for gae, but I haven't been able to come up with another approach that will not sacrifice reliability or performance. Basically I rotate the session id in the cookie every 5 seconds (this length is configurable). I store the current plus previous 2 tokens in a ListProperty in order to manage sites using AJAX type functionality. A session token is generally good for 15 seconds with this approach. Longer if there are not interim requests generating new tokens, as a new token is only generated when the 5 second TTL is hit. So you come back 2 minutes later, and the session token is still valid for that request, just regenerated on the request. As you can imagine, this is a lot of put operations for each session. I deemed just using memcache to not be a viable alternative because it's documented that it's a volatile storage, it can be cleared at any time. I do use memcache for speeding up reads to the session data, limiting read access to the datastore. I'm definitely open to suggestions for a method to do this without all the puts. The key being the reliability and security are more important than performance. In the end it's cheaper to pay for the CPU usage than the risks by allowing users to have their sessions easily hijacked, depending on the application, or having sessions randomly lost due to the storage medium not being permanent enough. On Jan 21, 6:27 pm, jeremy wrote: > thanks for the suggestions. > > does beaker really work out of the box with gae? > > On Jan 21, 1:06 am, Ian Bicking wrote: > > > On Tue, Jan 20, 2009 at 10:40 PM, jeremy wrote: > > > can anyone recommend / mention a session manager other than the one in > > > gaeutilities? > > > Beaker works with GAE:http://beaker.groovie.org/ > > > -- > > Ian Bicking | http://blog.ianbicking.org --~--~-~--~~~---~--~~ 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: Superclass.get_by_key_name(subclass_instance.key_name) doesn't work
On Dec 11 2008, 6:02 am, Andy Freeman wrote: > I thought that he was asking about properties that are present in some > instances and not others. If a given instance doesn't have a given > property, it isn't indexed by that property and one would hope that > there'd be no overhead when said instance is put. Correct. I don't provide a value for any property I don't need. It's worked for me so far. . . --~--~-~--~~~---~--~~ 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] 403 Forbidden when accessing an admin-only resource as an admin
I've got a Django app with some functions I'd like to keep people from running, so I've sandboxed them to admins using app: - url: /[a-zA-Z/_]*/admin/.* script: main.py login: admin - url: /.* script: main.py It's working too well - I'm an admin, and I can't access them! My friend is the admin for the domain it's on. He created the app with Google Apps authentication (which it doesn't look like I could change if I wanted to). He created me a Google Apps account and made it an admin. I can access the admin section of http://google.com/a/ for this domain just fine, yet I still get this forbidden error when I try to access resources protected by app.yaml. --~--~-~--~~~---~--~~ 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: 403 Forbidden when accessing an admin-only resource as an admin
would making one change of adding a . before the * in the following line help? - url: /[a-zA-Z/_].*/admin/.* just curious if . is needed before use of * in the yaml. Jeremy On Wed, 2009-01-21 at 16:53 -0800, theillustratedlife wrote: > I've got a Django app with some functions I'd like to keep people from > running, so I've sandboxed them to admins using app: > > - url: /[a-zA-Z/_]*/admin/.* > script: main.py > login: admin > > - url: /.* > script: main.py > > > It's working too well - I'm an admin, and I can't access them! > > My friend is the admin for the domain it's on. He created the app > with Google Apps authentication (which it doesn't look like I could > change if I wanted to). He created me a Google Apps account and made > it an admin. I can access the admin section of http://google.com/a/ > for this domain just fine, yet I still get this forbidden error when I > try to access resources protected by app.yaml. > --~--~-~--~~~---~--~~ > 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 > -~--~~~~--~~--~--~--- > signature.asc Description: This is a digitally signed message part
[google-appengine] Re: 403 Forbidden when accessing an admin-only resource as an admin
Hi, If I read your email correctly, this is expected behavior. See this article for more details: http://code.google.com/appengine/articles/auth.html To summarize, the issue is that your app can only serve the authentication page that matches the type of authentication chosen when registering your application. Since the app is using Google Apps authentication, you can not sign in to any part of the actual application with a Google Accounts email, even if you are an admin for that app. This restriction does not apply to the admin console - so you can still upload your application and view the Admin Console pages for an app with Google Apps authentication using a Google Accounts account. Hope this helps clarify the issue. -Marzia On Wed, Jan 21, 2009 at 4:53 PM, theillustratedlife wrote: > > I've got a Django app with some functions I'd like to keep people from > running, so I've sandboxed them to admins using app: > > - url: /[a-zA-Z/_]*/admin/.* > script: main.py > login: admin > > - url: /.* > script: main.py > > > It's working too well - I'm an admin, and I can't access them! > > My friend is the admin for the domain it's on. He created the app > with Google Apps authentication (which it doesn't look like I could > change if I wanted to). He created me a Google Apps account and made > it an admin. I can access the admin section of http://google.com/a/ > for this domain just fine, yet I still get this forbidden error when I > try to access resources protected by app.yaml. > > > --~--~-~--~~~---~--~~ 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 deploy index.yaml
This is the whole thing: indexes: - kind: Note properties: - name: __searchable_text_index - name: create_date_time direction: desc # AUTOGENERATED # This index.yaml is automatically updated whenever the dev_appserver # detects that a new type of query is run. If you want to manage the # index.yaml file manually, remove the above marker line (the line # saying "# AUTOGENERATED"). If you want to manage some indexes # manually, move them above the marker line. The index.yaml file is # automatically uploaded to the admin console when you next deploy # your application using appcfg.py. On Jan 21, 1:27 pm, Marzia Niccolai wrote: > Hi, > > Can you please post your entire index.yaml file? > > -Marzia > > On Wed, Jan 21, 2009 at 10:23 AM, jones34 wrote: > > > i do have the indexes line. that's not the problem. > > > On Jan 21, 10:28 am, Geoffrey Spear wrote: > >> Make sure you have an > >> indexes: > > >> line before your mappings. > >> (seehttp://code.google.com/appengine/docs/python/tools/configuration.html) > > >> On Jan 21, 10:18 am, jones34 wrote: > > >> > I keep getting this error > > >> > Cloning 3 application files. > >> > Closing update. > >> > Error parsing yaml file: > >> > mapping values are not allowed here > >> > in "/Users/ljw1001/journalist/index.yaml", line 3, column 15 > > >> > when trying to upload a file like this: > > >> > - kind: Note > >> > properties: > >> > - name: __searchable_text_index > >> > - name: create_date_time > >> > direction: desc --~--~-~--~~~---~--~~ 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 deploy index.yaml
The indentation looks strange, do you use tabs? AFAIK tabs are not allowed in yaml. Try this: indexes: - kind: Note properties: - name: __searchable_text_index - name: create_date_time direction: desc On Jan 22, 1:34 pm, jones34 wrote: > This is the whole thing: > > indexes: > - kind: Note > properties: > - name: __searchable_text_index > - name: create_date_time > direction: desc > > # AUTOGENERATED > > # This index.yaml is automatically updated whenever the dev_appserver > # detects that a new type of query is run. If you want to manage the > # index.yaml file manually, remove the above marker line (the line > # saying "# AUTOGENERATED"). If you want to manage some indexes > # manually, move them above the marker line. The index.yaml file is > # automatically uploaded to the admin console when you next deploy > # your application using appcfg.py. > > On Jan 21, 1:27 pm, Marzia Niccolai wrote: > > > Hi, > > > Can you please post your entire index.yaml file? > > > -Marzia > > > On Wed, Jan 21, 2009 at 10:23 AM, jones34 wrote: > > > > i do have the indexes line. that's not the problem. > > > > On Jan 21, 10:28 am, Geoffrey Spear wrote: > > >> Make sure you have an > > >> indexes: > > > >> line before your mappings. > > >> (seehttp://code.google.com/appengine/docs/python/tools/configuration.html) > > > >> On Jan 21, 10:18 am, jones34 wrote: > > > >> > I keep getting this error > > > >> > Cloning 3 application files. > > >> > Closing update. > > >> > Error parsing yaml file: > > >> > mapping values are not allowed here > > >> > in "/Users/ljw1001/journalist/index.yaml", line 3, column 15 > > > >> > when trying to upload a file like this: > > > >> > - kind: Note > > >> > properties: > > >> > - name: __searchable_text_index > > >> > - name: create_date_time > > >> > direction: desc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Newbie question - How to start?
http://code.google.com/intl/en-US/appengine/docs/python/gettingstarted/ On Tue, Jan 20, 2009 at 7:38 PM, Mark wrote: > > Hi, > > I'm newbie to web developement, with only some experience in software > like dreamweaver and frontpage. Could anyone advise a learning syllbus > for google app engine? I know that I should go through "Python", but > anything else? > > I have quite a few ideas for web applications but still lack of IT > skills to realize them. I have engineering background (not computer > science of course) and have some knowledge about C++. > > Thanks in advance! > > P.S: Maybe a introduction of learning could be add to the tutorial? I > guess not all the people who have ideas know everything on IT side > too. > > > > Mark > > > > -- Stay hungry,Stay foolish. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---