[google-appengine] Re: Bug report: On My Applications panel, I can't access the app whose name only contains digital chars.
You sure deployed? On Dec 28, 2008, at 11:07 AM, Max wrote: I created one app named 000, but I can't access it by click its name on On My Applications panel. --~--~-~--~~~---~--~~ 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] A bug? On My Applications panel, I can't visit the app whose name only contains number chars.
I created one app named 000, but I can't access it by click its link on My Applications panel at http://appengine.google.com/ The link on the app name was http://appengine.google.com/dashboard?;. It seems the part app_id=000 missed. --~--~-~--~~~---~--~~ 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 bug? On My Applications panel, I can't visit the app whose name only contains number chars.
Not deployed, and CAN NOT. I got this while using update command : - Initiating update. 2008-12-28 16:49:22,780 ERROR appcfg.py:1128 An unexpected error occurred. Abort ing. Error 403: --- begin server output --- You do not have permission to modify this app (app_id=u'0'). --- end server output --- - PS: I'm sure I have successfully deployed another application. On Dec 28, 2008, at 4:14 PM, Pikaurd Chen chenha...@gmail.com wrote: You sure deployed? On Dec 28, 2008, at 11:07 AM, Max wrote: I created one app named 000, but I can't access it by click its name on On My Applications panel. --~--~-~--~~~---~--~~ 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: 3 feature requests
The Django sitemaps framework does not work on GAE. Star the issue here: http://code.google.com/p/google-app-engine-django/issues/detail?id=102q=sitemaps On 11 Dec, 10:51, niklasr nikla...@gmail.com wrote: The form preview framework works with gae and the django request handler. Validation rules like serverside reg ex defining allowed phonenumber etc. and related layout details e.g. a red box around any form parameter not passing validation are related details to which I look for a lean solution. The advantage of customizing instead of the framework is more control over details and the disadvantage is that there's no autogeneration of markup as with the framework. RSS and sitemap generator are interesting to adapt to work with the default request handler as well. Thank you for the support. Niklas On 4 Dec, 01:42, Dan Sanderson dansander...@google.com wrote: I haven't used them myself, but at first glance I don't see why they wouldn't work, assuming you're using Django for your request handling. Give 'em a try. Django features that don't work out of the box on App Engine tend to be those that use Django's ORM layer, which doesn't work with the App Engine datastore. One notable example is the admin app. -- Dan On Wed, Dec 3, 2008 at 4:00 PM, niklasr nikla...@gmail.com wrote: There are 3 features from django that are interesting RSS syndication http://docs.djangoproject.com/en/dev/ref/contrib/syndication/?from=ol... Form preview framework http://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-previ... Sitemap generator http://docs.djangoproject.com/en/dev/ref/contrib/sitemaps/?from=olddocs Django has these features, can we apply them to our gae projects? Niklas --~--~-~--~~~---~--~~ 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 Alex/David, Alternatively, you can override the __unicode__ method of your model: class SizeOption(db.Model): code = db.StringProperty(required = True) html = db.StringProperty(required = True, multiline = True) def __unicode__(self): return self.code You can use a custom ModelChoiceField and override its Nice one! The alternative is to define a __str__ method on your SizeOption class, since that is what is used to render the options in the default label_from_instance implementation. your suggestions to override methods worked a treat. Overriding at the Model level suits me very well as it gives me flexibility. One final question (I hope): what is the difference in overriding the __unicode__ and __str__ methods? Best regards, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Store model as different name to class?
Is that the same as ... class NewTest(Test): pass ... ? On Dec 27, 12:20 pm, yejun yej...@gmail.com wrote: NewTest=type('NewTest',(Test,),{}) --~--~-~--~~~---~--~~ 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?
On Mon, Dec 29, 2008 at 12:24 AM, Martynas Brijunas mbri...@gmail.com wrote: Nice one! The alternative is to define a __str__ method on your SizeOption class, since that is what is used to render the options in the default label_from_instance implementation. Oops. I read Alex's email too quickly. He suggests exactly what I mentioned, except using __unicode__ instead of __str__. your suggestions to override methods worked a treat. Overriding at the Model level suits me very well as it gives me flexibility. One final question (I hope): what is the difference in overriding the __unicode__ and __str__ methods? Unless you're actually dealing with Unicode text, there won't be any practical difference. Check the Python docs for the full story. 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: Money sum formating
Hi, I tried what you suggested and this is what I got: type 'exceptions.EnvironmentError': Environment variable DJANGO_SETTINGS_MODULE is undefined. args = ('Environment variable DJANGO_SETTINGS_MODULE is undefined.',) errno = None filename = None message = 'Environment variable DJANGO_SETTINGS_MODULE is undefined.' strerror = None Every help is necessary. Thanks, Shay Ben Dov On Dec 26, 8:45 am, Alexander Kojevnikov alexan...@kojevnikov.com wrote: Shay, you can try this code: import locale from django import template register = template.Library() @register.filter() def currency(value): locale.setlocale(locale.LC_ALL, '') return locale.currency(value, grouping=True) Also, in your template you should add this line near the top: {% load filters %} Let me know if this doesn't work. Cheers, Alex --www.muspy.com On Dec 26, 5:35 pm,ShayBen Dov shay.ben...@gmail.com wrote: Alex Hi, if I want to use something like: {{money|local}} where do I put your input about import locale because I saw this snippet from django import template import locale locale.setlocale(locale.LC_ALL, '') register = template.Library() @register.filter() def currency(value): return locale.currency(value, grouping=True) and it doesn't work. I'm new to GAE stuff and it seems to me a lot of trouble to format for currency. we should have a filter like {{sum|currency}} where we can change the currency symbol like it is done in other languages. or in short how I use you tip. Happy New Year Shay On Dec 25, 12:49 am, Alexander Kojevnikov alexan...@kojevnikov.com wrote: You can also use the standard locale module: import locale locale.setlocale(locale.LC_ALL, '') locale.format('%.2f', 1234.5678, True) '1,234.57' http://www.python.org/doc/2.5.2/lib/module-locale.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Money sum formating
Hi, Forget currency How I inset comma in: {{ total_in|floatformat:2 }} to get : 32,525.75 for example Thanks, Shay Ben Dov On Dec 26, 8:45 am, Alexander Kojevnikov alexan...@kojevnikov.com wrote: Shay, you can try this code: import locale from django import template register = template.Library() @register.filter() def currency(value): locale.setlocale(locale.LC_ALL, '') return locale.currency(value, grouping=True) Also, in your template you should add this line near the top: {% load filters %} Let me know if this doesn't work. Cheers, Alex --www.muspy.com On Dec 26, 5:35 pm,ShayBen Dov shay.ben...@gmail.com wrote: Alex Hi, if I want to use something like: {{money|local}} where do I put your input about import locale because I saw this snippet from django import template import locale locale.setlocale(locale.LC_ALL, '') register = template.Library() @register.filter() def currency(value): return locale.currency(value, grouping=True) and it doesn't work. I'm new to GAE stuff and it seems to me a lot of trouble to format for currency. we should have a filter like {{sum|currency}} where we can change the currency symbol like it is done in other languages. or in short how I use you tip. Happy New Year Shay On Dec 25, 12:49 am, Alexander Kojevnikov alexan...@kojevnikov.com wrote: You can also use the standard locale module: import locale locale.setlocale(locale.LC_ALL, '') locale.format('%.2f', 1234.5678, True) '1,234.57' http://www.python.org/doc/2.5.2/lib/module-locale.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: application wont write to file system. am i reading this right
Did you also notice that applications that aren't written in Python won't run at all? The filesystem is the least of your problems here. On Dec 27, 5:22 pm, gom...@gmail.com gom...@gmail.com wrote: what do they mean by the application can not write data to the file system. i have an email application written in c# and in order for it to be sent it must temporarily post to which ever server its running on in order to relay to its client like so strFileName = Path.GetFileName(FileUpload1.PostedFile.FileName); // Preced the file name with attachments/ so // the file is saved to our attachments directory strFileName = attachments/ + strFileName; // Save the file on the server FileUpload1.PostedFile.SaveAs(Server.MapPath (strFileName)); // Create the email attachment with the uploaded file Attachment attach = new Attachment(Server.MapPath (strFileName)); // Attach the newly created email attachment Mail.Attachments.Add(attach); so would something like this work on theyre end --~--~-~--~~~---~--~~ 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 Usage with Timeouts - Question
I have an app where I want to set a memcache for 1 hour expiration, and then update it while keeping the same timeout (i.e. when I update it I don't want the 1-hour to start over, I just want the value to change, while keeping the timeout the same as b4). How can I do 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: Model field value choices - can the list be generated dynamically?
your suggestions to override methods worked a treat. Overriding at the Model level suits me very well as it gives me flexibility. One final question (I hope): what is the difference in overriding the __unicode__ and __str__ methods? Unless you're actually dealing with Unicode text, there won't be any practical difference. Check the Python docs for the full story. Martynas, David is absolutely correct, you can use either of them. I suggest to always use the __unicode__ method unless you have a very good reason to use __str__. Cheers, Alex -- www.muspy.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] Access entity properties dynamically (like introspection)
Say I have: class MyClass(db.Model): foo1 = db.IntegerProperty() foo2 = db.IntegerProperty() foo3 = db.IntegerProperty() obj = MyClass(foo1=100, foo2=200, foo3=300) I want to loop over foo values. I found that I can do: for x in [1, 2, 3]: print obj.__dict__['_foo%d' % x] Is this bad / subject to break? Is there a better way to do 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: Money sum formating
Which version of Django do you use? Could you also post the full stack trace? On Dec 29, 5:24 am, Shay Ben Dov shay.ben...@gmail.com wrote: Hi, I tried what you suggested and this is what I got: type 'exceptions.EnvironmentError': Environment variable DJANGO_SETTINGS_MODULE is undefined. args = ('Environment variable DJANGO_SETTINGS_MODULE is undefined.',) errno = None filename = None message = 'Environment variable DJANGO_SETTINGS_MODULE is undefined.' strerror = None Every help is necessary. Thanks, Shay Ben Dov On Dec 26, 8:45 am, Alexander Kojevnikov alexan...@kojevnikov.com wrote: Shay, you can try this code: import locale from django import template register = template.Library() @register.filter() def currency(value): locale.setlocale(locale.LC_ALL, '') return locale.currency(value, grouping=True) Also, in your template you should add this line near the top: {% load filters %} Let me know if this doesn't work. Cheers, Alex --www.muspy.com On Dec 26, 5:35 pm,ShayBen Dov shay.ben...@gmail.com wrote: Alex Hi, if I want to use something like: {{money|local}} where do I put your input about import locale because I saw this snippet from django import template import locale locale.setlocale(locale.LC_ALL, '') register = template.Library() @register.filter() def currency(value): return locale.currency(value, grouping=True) and it doesn't work. I'm new to GAE stuff and it seems to me a lot of trouble to format for currency. we should have a filter like {{sum|currency}} where we can change the currency symbol like it is done in other languages. or in short how I use you tip. Happy New Year Shay On Dec 25, 12:49 am, Alexander Kojevnikov alexan...@kojevnikov.com wrote: You can also use the standard locale module: import locale locale.setlocale(locale.LC_ALL, '') locale.format('%.2f', 1234.5678, True) '1,234.57' http://www.python.org/doc/2.5.2/lib/module-locale.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Money sum formating
Forget currency How I inset comma in: {{ total_in|floatformat:2 }} to get : 32,525.75 for example You can use this filter: @register.filter() def comma(value): locale.setlocale(locale.LC_ALL, '') return locale.format('%.2f', 1234.5678, True) --~--~-~--~~~---~--~~ 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: Access entity properties dynamically (like introspection)
You should not rely on the implementation details, they can change and break your code. The Model class has a properties() method: http://code.google.com/appengine/docs/datastore/modelclass.html#Model_properties To access the values of the properties you can use this code: for prop in obj.properties(): value = getattr(entity, prop) Cheers, Alex -- www.muspy.com On Dec 29, 8:21 am, boson dan.kam...@gmail.com wrote: Say I have: class MyClass(db.Model): foo1 = db.IntegerProperty() foo2 = db.IntegerProperty() foo3 = db.IntegerProperty() obj = MyClass(foo1=100, foo2=200, foo3=300) I want to loop over foo values. I found that I can do: for x in [1, 2, 3]: print obj.__dict__['_foo%d' % x] Is this bad / subject to break? Is there a better way to do 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: Memcache Usage with Timeouts - Question
the 'time' when you add memcache value can actully be a timestamp. When you first add calculate 'expire time' then either store in the value, or in a another memcache item. That way when you replace it you just read the current expire timestamp, and use it again. 2008/12/28 MajorProgamming sefira...@gmail.com: I have an app where I want to set a memcache for 1 hour expiration, and then update it while keeping the same timeout (i.e. when I update it I don't want the 1-hour to start over, I just want the value to change, while keeping the timeout the same as b4). How can I do this? -- 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: Memcache Usage with Timeouts - Question
Thanks. Nice workaround! On Dec 28, 4:50 pm, Barry Hunter barrybhun...@googlemail.com wrote: the 'time' when you add memcache value can actully be a timestamp. When you first add calculate 'expire time' then either store in the value, or in a another memcache item. That way when you replace it you just read the current expire timestamp, and use it again. 2008/12/28 MajorProgamming sefira...@gmail.com: I have an app where I want to set a memcache for 1 hour expiration, and then update it while keeping the same timeout (i.e. when I update it I don't want the 1-hour to start over, I just want the value to change, while keeping the timeout the same as b4). How can I do this? -- 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] Using other python files with my app; importing
This may be more of a general python question, but what's the best way of using many different .py files and importing one into another. For example, suppose I want to have one main.py and have a separate file that contains like 15 functions which are needed in main.py. First of all, what do I have to include in the function.py file? and secondly, what do I have to include in the main.py file? --~--~-~--~~~---~--~~ 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] AppEngine GET response headers
I'm trying to create a data table in an appengine, and send it back to a user. The user requests the data table using GET method, and I use class MainPage(webapp.RequestHandler): # This function is invoked when a user sends a get request def get(self): self.response.out.write(...) To give him the response. The only problem is, that for visualizations, the tutorial states that the response should return: print Content-type: text/plain print print data_table.ToJSonResponse(columns_order=(name, salary, full_time), order_by=salary) (No html stuff...) But when I use it, I get the headers spilled into my response. What is the best way to send text/plain response from get request? --~--~-~--~~~---~--~~ 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: Using other python files with my app; importing
I suggest you to skim through the part of the tutorial that explains modules and packages: http://www.python.org/doc/2.5.2/tut/node8.html On Dec 29, 9:18 am, MajorProgamming sefira...@gmail.com wrote: This may be more of a general python question, but what's the best way of using many different .py files and importing one into another. For example, suppose I want to have one main.py and have a separate file that contains like 15 functions which are needed in main.py. First of all, what do I have to include in the function.py file? and secondly, what do I have to include in the main.py file? --~--~-~--~~~---~--~~ 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: AppEngine GET response headers
10x ! It worked :) On Dec 29, 12:33 am, Alexander Kojevnikov alexan...@kojevnikov.com wrote: You should use the response object: def get(self): self.response.headers['Content-Type'] = 'text/plain' self.response.out.write('your json') Cheers, Alex --www.muspy.com On Dec 29, 9:19 am, Chen Harel chook.ha...@gmail.com wrote: I'm trying to create a data table in an appengine, and send it back to a user. The user requests the data table using GET method, and I use class MainPage(webapp.RequestHandler): # This function is invoked when a user sends a get request def get(self): self.response.out.write(...) To give him the response. The only problem is, that for visualizations, the tutorial states that the response should return: print Content-type: text/plain print print data_table.ToJSonResponse(columns_order=(name, salary, full_time), order_by=salary) (No html stuff...) But when I use it, I get the headers spilled into my response. What is the best way to send text/plain response from get request? --~--~-~--~~~---~--~~ 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 do you debug?
Does anyone here have a simple way to breakpoint your code? I saw a tutorial for PyDev in Eclipse, but what about simpler IDE such as ActivePython? --~--~-~--~~~---~--~~ 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 Backup Datastore
Another solution, that I just released over the holidays, is Google App Engine Backup and Restore (Gaebar). The screencast, links to repositories, etc., are in the blog post: http://aralbalkan.com/1784 Bug reports, comments, suggestions, and patches are welcome! :) Aral On Nov 25, 12:35 pm, kaspars...@gmail.com kaspars...@gmail.com wrote: You may also want to check out AppRocket which replicates AppEngine datastore to MySQL: http://code.google.com/p/approcket/ On Nov 18, 6:00 am, Edward 061...@gmail.com wrote: Is there a best practice for backing up one's datastore? Is there a way to do this on the Google site to avoid having to do this individually? If not, is there something in the pipeline? --~--~-~--~~~---~--~~ 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 display feeds in App Engine pages
Google search digs up lots of tutorials, tips and tricks - feed parsing and display is pretty popular. Here's a tutorial that gently guides you through getting started by building a feed parser that uses Django templates. (If you're hoping for hardcore Hollywood hacker GUIs, you'll be slightly disappointed.) http://www.ibm.com/developerworks/opensource/library/os-eclipse-mashup-google-pt1/ On Dec 27, 10:25 am, rastafareye rastafar...@ekno.com wrote: I need more tutorials. I need more basic tutorials. I'd like more basic video tutorials. I need really a basic how-to on displaying RSS feeds in App Engine (Django?) pages. (Everyone keeps saying how simple Django is; but, if its so simple, why is there no drag and drop GUI?) I'd also like to know how to cache RSS feeds in GAE datastore. So in other words how do I pull RSS feeds into GAE datastore, and then push them out to display in App Engine/Django pages?? TIA --~--~-~--~~~---~--~~ 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] Iterating through XML with django templates
Hi, I have run into difficulties when trying to access certain parts of Picasa's XML from django templates. For example, a list of tags for a photograph can be found under a media:keywords tag. However, when I try to parse something like {{ photo.media:group.media:keywords }} in a template, I am getting an error. I suspect that a : symbol is treated the same as . and the parser is trying to split a tag's name in two. Has anyone came accross the same problem? Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: need creative idea for admin of GAE app via smtp2web and gmail
I should add that there will be a confirmation email sent in both use cases that sends a key in a url. The user will then click that link to actually complete the transaction (like user registration systems). I'm thinking of making this a feature request. GOOG: the application server has several advantages over traditional app servers, one of them should be the ability to leverage gmail. (confirmation of source of email from gmail, spam filter, hosting of smtp2web type service, etc.) Anyone else interested in full gmail integration with their GAE application? You can reply to me in private if you prefer. Thanks, Tim On Dec 27, 1:43 pm, Nash-t timna...@gmail.com wrote: I'd like to allow users to admin theirhttp://smw.appspot.comaccount via an email sent from their Gmail account. This would satisfy at least two use cases: 1. bulk addition of users to their smw.appspot.com group. (Gmail is convenient and familiar because of its contacts interface, etc.) 2. Converting a smw.appspot.com account into a kiosk mode account with most web services shutoff. All control (including converting kiosk account back to regular account) is done via email. But the problem is that email can be so easily faked. Can anyone think of a way to do this and be sure the email comes from the user's gmail account? Since it's a gmail email being sent to google appspot you'd think there would be a way to make this work, no? TIA, any ideas appreciated. Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: need creative idea for admin of GAE app via smtp2web and gmail
Well ... not real answers from me to your question yet but nice application you made regards Nick On Dec 29, 1:47 am, Nash-t timna...@gmail.com wrote: I should add that there will be a confirmation email sent in both use cases that sends a key in a url. The user will then click that link to actually complete the transaction (like user registration systems). I'm thinking of making this a feature request. GOOG: the application server has several advantages over traditional app servers, one of them should be the ability to leverage gmail. (confirmation of source of email from gmail, spam filter, hosting of smtp2web type service, etc.) Anyone else interested in full gmail integration with their GAE application? You can reply to me in private if you prefer. Thanks, Tim On Dec 27, 1:43 pm, Nash-t timna...@gmail.com wrote: I'd like to allow users to admin theirhttp://smw.appspot.comaccount via an email sent from their Gmail account. This would satisfy at least two use cases: 1. bulk addition of users to their smw.appspot.com group. (Gmail is convenient and familiar because of its contacts interface, etc.) 2. Converting a smw.appspot.com account into a kiosk mode account with most web services shutoff. All control (including converting kiosk account back to regular account) is done via email. But the problem is that email can be so easily faked. Can anyone think of a way to do this and be sure the email comes from the user's gmail account? Since it's a gmail email being sent to google appspot you'd think there would be a way to make this work, no? TIA, any ideas appreciated. Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: need creative idea for admin of GAE app via smtp2web and gmail
Well ... not real answers from me to your question yet but nice application you made regards Nick On Dec 29, 1:47 am, Nash-t timna...@gmail.com wrote: I should add that there will be a confirmation email sent in both use cases that sends a key in a url. The user will then click that link to actually complete the transaction (like user registration systems). I'm thinking of making this a feature request. GOOG: the application server has several advantages over traditional app servers, one of them should be the ability to leverage gmail. (confirmation of source of email from gmail, spam filter, hosting of smtp2web type service, etc.) Anyone else interested in full gmail integration with their GAE application? You can reply to me in private if you prefer. Thanks, Tim On Dec 27, 1:43 pm, Nash-t timna...@gmail.com wrote: I'd like to allow users to admin theirhttp://smw.appspot.comaccount via an email sent from their Gmail account. This would satisfy at least two use cases: 1. bulk addition of users to their smw.appspot.com group. (Gmail is convenient and familiar because of its contacts interface, etc.) 2. Converting a smw.appspot.com account into a kiosk mode account with most web services shutoff. All control (including converting kiosk account back to regular account) is done via email. But the problem is that email can be so easily faked. Can anyone think of a way to do this and be sure the email comes from the user's gmail account? Since it's a gmail email being sent to google appspot you'd think there would be a way to make this work, no? TIA, any ideas appreciated. Tim --~--~-~--~~~---~--~~ 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 best to represent a directed graph w/ 25K nodes? (for path planning)
There are 312 487 500 potential paths (25K choose 2) and edge weights are variable-- the cost function is determined by user-configurable multipliers. So precomputing all paths in advance isn't feasible, unless I'm misunderstanding what you mean. On Dec 27, 5:03 pm, David Symonds dsymo...@gmail.com wrote: On Sat, Dec 27, 2008 at 5:16 AM, Amar Pai jcrue...@gmail.com wrote: I have a route planning webapp, written in Python, that uses Djikstra's algorithm to find the shortest path between two nodes in a directedgraph. I want to port this to AppEngine, but I'm not sure how to represent thegraph. Right now I'm using a dict of dict, G[pt] [pt] - (edge data) where pt1/pt2 are coordinates and edge data is just some strings. Thegraphis cPickled and gets loaded on app startup. It has about 25K entries and the pickle file is 3 MB. I generate it offline, and it's read-only-- basically a large constant lookup table that gets repeatedly queried when the path planner runs. I'm not sure that's such a good fit. How about computing the shortest paths between any two nodes offline, and simply looking them up? 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: need creative idea for admin of GAE app via smtp2web and gmail
Well ... not real answers from me to your question yet but nice application you made regards Nick On Dec 29, 1:47 am, Nash-t timna...@gmail.com wrote: I should add that there will be a confirmation email sent in both use cases that sends a key in a url. The user will then click that link to actually complete the transaction (like user registration systems). I'm thinking of making this a feature request. GOOG: the application server has several advantages over traditional app servers, one of them should be the ability to leverage gmail. (confirmation of source of email from gmail, spam filter, hosting of smtp2web type service, etc.) Anyone else interested in full gmail integration with their GAE application? You can reply to me in private if you prefer. Thanks, Tim On Dec 27, 1:43 pm, Nash-t timna...@gmail.com wrote: I'd like to allow users to admin theirhttp://smw.appspot.comaccount via an email sent from their Gmail account. This would satisfy at least two use cases: 1. bulk addition of users to their smw.appspot.com group. (Gmail is convenient and familiar because of its contacts interface, etc.) 2. Converting a smw.appspot.com account into a kiosk mode account with most web services shutoff. All control (including converting kiosk account back to regular account) is done via email. But the problem is that email can be so easily faked. Can anyone think of a way to do this and be sure the email comes from the user's gmail account? Since it's a gmail email being sent to google appspot you'd think there would be a way to make this work, no? TIA, any ideas appreciated. Tim --~--~-~--~~~---~--~~ 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 best to represent a directed graph w/ 25K nodes? (for path planning)
So if I shard my graph into 3 parts, my main class can store them as class variables and they'll persist across requests? That would be great. But will I run into quota problems holding 3M data in memory? (Assuming low overhead otherwise, and only 100ish requests per day) Also, if I did it that way, is there a good way to export the sharded graph data to BigTable for backup/inspection purposes? I guess I could schedule a cron job that hits webapp periodically to trigger export of x items, where x is however many you're allowed to write at a time. Seems inelegant though. thanks Amar On Dec 27, 5:56 pm, Robin B robi...@gmail.com wrote: Using Djikstra's shortest path algorithm, you can compute the shortest paths between all nodes in the same runtime as computing the path between any 2 nodes, so storing then querying the precomputed paths would be a good approach as mentioned above. Since there are no files in AppEngine, my first thought was to create a model for thegraphand then write a batch importer that puts all the nodes/edges into BigTable. AppEngine actually does have read-only access to the filesystem, so you could break a 3MB file into 3x1MB files, upload them along with your application files via 'appcfg', then read the files from disk at launch, cache the data in memcache or, for even faster access, in a dict global stored in local RAM which is preserved between requests. Robin --~--~-~--~~~---~--~~ 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: Googe App Engine and Friend Connect...
dear sir, i also want to add google friend connect onto my GAE, but where directory should i place the 2 file google asked for uploading, ie., canvas.htmlrpc_relay.html ? i place them on the root folder of my app, also place them in the static folder with other html files, but neither working, ie, the setup process of google friend connect can't find them. where and how to setup in the py file to let the 2 html files can be found on root folder? i absolutely bland on python code, but i try to learn.p help me out. --~--~-~--~~~---~--~~ 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: Googe App Engine and Friend Connect...
i also need to python code to judge the url to redircct respectively. u know, my domain blocked in China, whose surveillance now absolutely banned my domain, be21zh.org. i had some appspot sites bonded with custom domain under be21zh.org, like forum.be21zh.org , guestbook.be21zh.ort , etc. while google friend connect setup require the site url, i want friend connect on my GAE, like Http://app21zh.appspot.com ,can adoptive to the coming url, if the url is from appspot.com , then my friend connect gadget for registered site of app21zh.appspot.com in use, otherwise, if visitor from http://forum.be21zh.org , then frined connect code for registered site, forum.be21zh.org in use. i have no knowledge on python, but i would like to learn in this way. could anyone help me to offer the needed code to setup my fourm working with friend connect, within surveillance China and within the freedom world? --~--~-~--~~~---~--~~ 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] Expend the user API?
I wish in the next sdk, the user API can be expended. So we can get the friends of a user using the user api. Another request is that, the friendconnect should be compatible with GAE, so user need not to login twice. --~--~-~--~~~---~--~~ 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: Using other python files with my app; importing
On Mon, Dec 29, 2008 at 3:48 AM, MajorProgamming sefira...@gmail.com wrote: This may be more of a general python question, but what's the best way of using many different .py files and importing one into another. For example, suppose I want to have one main.py and have a separate file that contains like 15 functions which are needed in main.py. First of all, what do I have to include in the function.py file? and secondly, what do I have to include in the main.py file? the root of your GAE app is already under the PYTHONPATH. Therefore you can import any moduleclass/function from anywhere in the directory tree in a GAE app by referring to them from the root of your GAE app. -- Mir Nazim Cell: +91 9469071855 Blog: http://saunzal.org Company:http://www.ikraftsoft.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 -~--~~~~--~~--~--~---