[google-appengine] Re: Task Queue implementation details
Thanks Nick :-) -Dhruv. On Apr 9, 2:26 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi, -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email 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 Query from your browser
On Apr 7, 5:18 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Dhruv, While this is an interesting project, providing direct access to the datastore from client-side code has very serious security implications. Any user can manipulate your data in any way, exposing private user data, modifying data, or erasing it. Hello Nick, I agree with you. Any app. that uses this, would have to hook onto every datastore URL request(put_entity/get_entity, etc..) and check the credentials of the requester. That alone would not be sufficient since anyone (authenticated user) could potentially query the datastore and get any user's details out. So, I am guessing this isn't good to store user details, but for implementing something that doesn't require authentication like an etherpad (not quite since I guess the etherpad URL is known only to the creator and people he/she shares it with), it could probably be worked out. Either ways, I thought of doing this as an exercise in javascript and a tool that provides a low entry barrier for anyone who wnats to learn about the appengine datastore and try things out themselves without going through the rigmarole (not quite the word I was looking for since you guys have made it _really_ simple to deploy apps; +1 to the appengine team!!) of creating a sample app. Regards, -Dhruv. -Nick Johnson On Wed, Apr 7, 2010 at 6:02 AM, dhruvbird dhruvb...@gmail.com wrote: Hello all, I was just trying out some stuff and managed to get data store query working from javascript on the browser.http://gaequery.appspot.com/ So, I made an appspot app. for demonstrating that. You can now write applications entirely in Javascript(with custom server side code for auth. and security), and write all your CRUD in Javascript on the browser itself. Regards, -Dhruv. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email 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 Query from your browser
Hello all, I was just trying out some stuff and managed to get data store query working from javascript on the browser. http://gaequery.appspot.com/ So, I made an appspot app. for demonstrating that. You can now write applications entirely in Javascript(with custom server side code for auth. and security), and write all your CRUD in Javascript on the browser itself. Regards, -Dhruv. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email 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: Weird error with SDK's datastore viewer
Hey Thanks!! :) On Apr 1, 12:47 pm, Nick Johnson (Google) nick.john...@google.com wrote: 'str' is a builtin. You're replacing the 'str' function with your own variable named 'str', and later code is trying to call it. -Nick Johnson On Thu, Apr 1, 2010 at 5:19 AM, dhruvbird dhruvb...@gmail.com wrote: If I run this code in the interactive console from google.appengine.ext import db str=class Test2(db.Expando): dummy=db.IntegerProperty(required=True,indexed=False,default=0) exec(str) str1=t = Test2() t.hello=world t.put() exec(str1) All requests to view any model in the datastore returns this error: Traceback (most recent call last): File C:\Program Files\Google\google_appengine\google\appengine\ext \webapp\__init__.py, line 507, in __call__ handler.get(*groups) File C:\Program Files\Google\google_appengine\google\appengine\ext \admin\__init__.py, line 671, in get value = DataType.get(raw_value).format(raw_value) File C:\Program Files\Google\google_appengine\google\appengine\ext \admin\__init__.py, line 904, in format return str(value) TypeError: 'str' object is not callable Does anyone know how I can fix it? Regards, -Dhruv. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email 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: Intercepting all HTTP calls on webapp/django
cool! Thanks again :) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Weird error with SDK's datastore viewer
If I run this code in the interactive console from google.appengine.ext import db str=class Test2(db.Expando): dummy=db.IntegerProperty(required=True,indexed=False,default=0) exec(str) str1=t = Test2() t.hello=world t.put() exec(str1) All requests to view any model in the datastore returns this error: Traceback (most recent call last): File C:\Program Files\Google\google_appengine\google\appengine\ext \webapp\__init__.py, line 507, in __call__ handler.get(*groups) File C:\Program Files\Google\google_appengine\google\appengine\ext \admin\__init__.py, line 671, in get value = DataType.get(raw_value).format(raw_value) File C:\Program Files\Google\google_appengine\google\appengine\ext \admin\__init__.py, line 904, in format return str(value) TypeError: 'str' object is not callable Does anyone know how I can fix it? Regards, -Dhruv. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Intercepting all HTTP calls on webapp/django
Hello, I was wondering how to best intercept all HTTP calls to my appengine app. From what I read here (http://blog.notdot.net/2010/01/Webapps-on- App-Engine-part-1-Routing), it seems as if defining my own router and then delegating the real work to the webapp/django router seems like a fair thing to do. I want the solution to be framweork independent. Please let me know if anyone has an easier/cleaner solution. Regards, -Dhruv. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Sending custom headers in email
Is there any way I can send custom headers in email sent from appengine; such as the References header or some X- type of header? Regards, -Dhruv. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email 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: Beginner Help - Python Incoming Mail
You can configure you mail program receiving email to forward all incoming email (or some subset of it) to you appspot email ID. For example, if you ar eusing gmail or google apps, you can configure mail forwarding on the settings page or email page if you are an admin for your apps domain. From there you can do anything you want with it. Regards, -Dhruv. On Mar 30, 10:54 pm, Jon Byrne em...@jonbyrne.com wrote: I am a beginner @ Python and not an experienced developer, but I have an idea to create an app using Google App Engine. The idea is that I forward some automatically generated emails from another programme to my appspot app and then import them into the Data Store. I will then from the data contained in the email be able to display the information on the web in a usful fasion. Now the emails are standardised and come from the same address. Is there some sample code out there with this kind of thing or is it even possible. Thanks Jon Byrne em...@jonbyrne.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-appeng...@googlegroups.com. To unsubscribe from this group, send email 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 SDK expiration doesn't work unless default_expiration set
Hello, The expiration: blah doesn't work, and only the value for default_expiration: blah blah is picked up for every static handler for me. Has anyone else faced this issue?? Regards, -Dhruv. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email 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: Proper way to send e-mail
Even we have been trying to work around this issue. As an aside, users who are currently logged in (if you are using google's auth) can ALSO send email (email can have that ID as the from ID) if I have read the docs. correctly. So, if you want to do background sending, you can send the email from: users+realuse...@yourdomain.com So that when you get a reply to that ID, you know who it is for. We also set up catch all handlers since there is no restriction on the To address when recieving mail. So, realuse...@yourdomain.com is also valid. Regards, -Dhruv. On Mar 30, 5:51 am, DutrowLLC dutrow...@gmail.com wrote: I've been reading about App Engine's restrictions on sending and receiving e-mail. Sending: * Can only send e-mail from the address of a registered administrator for the application * Or from the e-mail address of a google account that has been added as an administrator for the application Receiving: * Can only receive e-mail at str...@appid.appspotmail.com This doesn't appear to leave a lot of options to allow customers to sign up with my application that does invoicing, and then to allow my customers to send invoices to their customers that look like it comes from my customer's company. What is the proper way to handle this scenario? Should I simply be using a third party service? Thanks! Chris -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Broken link
Hello, On this page: http://code.google.com/appengine/docs/python/runtime.html The Link to The CGI standard (http://hoohoo.ncsa.uiuc.edu/cgi/ interface.html) is broken. Regards, -Dhruv. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] What if secnario for the data store
Hello, I had a few questions about the appengine data store. 1. Is there any way to tell the data store to not index expando's dynamic properties? 2. Suppose I have a model: class Foo(db.Expando): mem1 = db.IntegerProperty(indexed=True, blah..) Then, I add the attribute mem2 (at runtime): foo = Foo(mem1=100) foo.mem2=200 foo.put() And then run a task queue which adds mem2 for every entity of kind Foo that doesn't have it. All future entities created will always have it (say): foo = Foo(mem1=blah, mem2=blah-blah) foo.put() Now, I redefine class Foo as: class Foo(db.Expando): mem1 = db.IntegerProperty(indexed=True, blah..) mem2 = db.IntegerProperty(indexed=False, blah) What will happen if I upload this new definition and use it with the same data in the data store? Also, what will happen if the type of mem2 is changed from IntegerPropery to StringProperty, but the mem2 attributes has only Integers stored? Regards, -Dhruv. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Email Service from address Cruelty
The only way to add an approved address is to invite another developer to be a developer on my project. I don't want another developer on my project. (At least not yet) The other choice is to violate the terms of service and create a second app engine account for myself and then invite my #2 acct to the project. I don't want to violate the terms of service. Please can someone point me to the relevant sections which explain this particular violation of the TOS. Another thing I wanted to do was to be able to route messages on behalf of my users. One strategy we came up with was to have email addresses which look like: users+ usern...@mydomain.com, etc Does anyone know how to achieve an email address like: usern...@mydomain.com with MYDOMAIN.com being on google apps? Regards, -Dhruv. On Mar 25, 9:01 am, Greg g.fawc...@gmail.com wrote: I have done exactly this - set up supp...@..., cont...@... and accou...@... on my google apps account, and then invited them to be developers. Works fine. Cheers Greg. On Mar 25, 7:55 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi Frank, On Wed, Mar 24, 2010 at 4:15 PM, Milk Run fr...@milkrun.com wrote: I have an application which is deployed and has customers. I would like my app to be able to send emails. This only works if the from address is the same as my appengine login account. If I add email addresses to my account, those addresses still cannot be used as the from address in a sent email. The only way to add an approved address is to invite another developer to be a developer on my project. I don't want another developer on my project. (At least not yet) The other choice is to violate the terms of service and create a second app engine account for myself and then invite my #2 acct to the project. I don't want to violate the terms of service. This isn't a violation of the ToS, so long as you don't activate the second account and use it to create additional applications. You can simply leave it un-activated, and add it as a developer on your existing application. -Nick Johnson I understand that you must be restrictive on from addresses to stop spammers, etc. But this restrictiveness is too much. I just want to send mail from a support@blah.com email address. How about a send a code to the registered phone # type verification system for each additional from address? Please tell me that I'm not stuck and I just don't know what I'm talking about. Thanks, Frank -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Email Service from address Cruelty
I was told how. There is a catch-all handler in google apps' mail settings which can forward to any email address on the same domain. Regards, -Dhurv. On Mar 25, 12:39 pm, dhruvbird dhruvb...@gmail.com wrote: The only way to add an approved address is to invite another developer to be a developer on my project. I don't want another developer on my project. (At least not yet) The other choice is to violate the terms of service and create a second app engine account for myself and then invite my #2 acct to the project. I don't want to violate the terms of service. Please can someone point me to the relevant sections which explain this particular violation of the TOS. Another thing I wanted to do was to be able to route messages on behalf of my users. One strategy we came up with was to have email addresses which look like: users+ usern...@mydomain.com, etc Does anyone know how to achieve an email address like: usern...@mydomain.com with MYDOMAIN.com being on google apps? Regards, -Dhruv. On Mar 25, 9:01 am, Greg g.fawc...@gmail.com wrote: I have done exactly this - set up supp...@..., cont...@... and accou...@... on my google apps account, and then invited them to be developers. Works fine. Cheers Greg. On Mar 25, 7:55 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi Frank, On Wed, Mar 24, 2010 at 4:15 PM, Milk Run fr...@milkrun.com wrote: I have an application which is deployed and has customers. I would like my app to be able to send emails. This only works if the from address is the same as my appengine login account. If I add email addresses to my account, those addresses still cannot be used as the from address in a sent email. The only way to add an approved address is to invite another developer to be a developer on my project. I don't want another developer on my project. (At least not yet) The other choice is to violate the terms of service and create a second app engine account for myself and then invite my #2 acct to the project. I don't want to violate the terms of service. This isn't a violation of the ToS, so long as you don't activate the second account and use it to create additional applications. You can simply leave it un-activated, and add it as a developer on your existing application. -Nick Johnson I understand that you must be restrictive on from addresses to stop spammers, etc. But this restrictiveness is too much. I just want to send mail from a support@blah.com email address. How about a send a code to the registered phone # type verification system for each additional from address? Please tell me that I'm not stuck and I just don't know what I'm talking about. Thanks, Frank -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email 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 call a URL of your own application?
On Mar 22, 6:30 am, Eli Jones eli.jo...@gmail.com wrote: Depends on how you want the code to work.. If you just want to send of work to get processed by those other handlers, then firing off a Task (either with Task Queue or Deferred Task) would be perfect for that. Actually, this is a task that will create a new task in the task queue, so I didn't want to create 2 tasks when 1 is what is required. The thing is that that task has a Name, and the current caller doesn't know what that name is. I need to be able to call some other function to determine it's name and then create that task. Regards, -Dhruv. http://code.google.com/appengine/docs/python/taskqueue/overview.htmlhttp://code.google.com/appengine/articles/deferred.html On Sun, Mar 21, 2010 at 1:32 PM, dhruvbird dhruvb...@gmail.com wrote: Hello, I would like to call a URL of my own application. How can I go about doing that w/o using URL fetch? One option would be to manually construct a request object and call the function depending upon the URL mapping table. However, is there a way to do this w/o that mess and w/o using URL fetch (which will cost me a request)? for eg: If I have these URLs: /mail/send/ /chat/send/ /home/ If I want to call them from within the handler of /home/, how can I do that? Regards, -Dhruv. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email 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 call a URL of your own application?
Hello, And another thing I want to be able to do is figure out the HTTP return code for that internal URL. Since everything in already a web hook, I might as well model my app. in a similar fashion. I was wondering if the appengine guys could work out a hack for urllib where calls to internal URLs don't cost you an extra request. That way, I would generously use it for (synchronous) pubsub or some sort of internal communication which may be externalized later. Regards, -Dhruv. On Mar 22, 6:30 am, Eli Jones eli.jo...@gmail.com wrote: Depends on how you want the code to work.. If you just want to send of work to get processed by those other handlers, then firing off a Task (either with Task Queue or Deferred Task) would be perfect for that. http://code.google.com/appengine/docs/python/taskqueue/overview.htmlhttp://code.google.com/appengine/articles/deferred.html On Sun, Mar 21, 2010 at 1:32 PM, dhruvbird dhruvb...@gmail.com wrote: Hello, I would like to call a URL of my own application. How can I go about doing that w/o using URL fetch? One option would be to manually construct a request object and call the function depending upon the URL mapping table. However, is there a way to do this w/o that mess and w/o using URL fetch (which will cost me a request)? for eg: If I have these URLs: /mail/send/ /chat/send/ /home/ If I want to call them from within the handler of /home/, how can I do that? Regards, -Dhruv. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Error if I set required=False for a StringListProperty
Hello, I have a model with a single attribute that is a StringListProperty. I get an error if I define it as such: class Test(db.Expando): people = db.StringListProperty(required=False, indexed=True) However, on changing it to: class Test(db.Expando): people = db.StringListProperty(required=True, indexed=True, default=[]) It starts working. Any ideas why this is happening?? Regards, -Dhruv. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] How to call a URL of your own application?
Hello, I would like to call a URL of my own application. How can I go about doing that w/o using URL fetch? One option would be to manually construct a request object and call the function depending upon the URL mapping table. However, is there a way to do this w/o that mess and w/o using URL fetch (which will cost me a request)? for eg: If I have these URLs: /mail/send/ /chat/send/ /home/ If I want to call them from within the handler of /home/, how can I do that? Regards, -Dhruv. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.