[appengine-java] Re: What are your opinion ?
On Aug 26, 10:04 pm, Geraldo Lopes geraldo...@gmail.com wrote: Hi, The article below review gae's persistence. What are your opinion ? http://www.ibm.com/developerworks/java/library/j-gaej3.html?ca=dgr-bt... I'm using the low-level API and am quite happy with it. That nicely sidesteps many of the issues. It's not so low-level actually, it's more or less like dealing with java.util.Map. However my applications are all very simple. Cheers Philippe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Using @EmbeddedID and @Embedded with JPA ...
should'a RTFM'ed :) On Aug 27, 1:20 am, datanucleus andy_jeffer...@yahoo.com wrote: btw why does em.flush() throw an exception declaring that it requires a transaction and that there is none in context when the Persistence Provider is clearly configured for non-tx writes You mean according to the JPA spec 3.1.1, for flush() spec @throws TransactionRequiredException if there is no transaction /spec so it complies with the JPA TCK then. Don't call flush in a non-tx context. --Andy (DataNucleus) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Local server works, Appspot fails with java.lang.StackOverflowError when Spring AOP is enabled
Do you have a simple sample app that you can reproduce this with? On Wed, Aug 26, 2009 at 12:38 AM, Gabriel Moreira gabrielmore...@gmail.comwrote: My app is using Spring 3.0. If i disable Spring AOP, my app runs fine both on local and appspot. But when i enable Spring AOP (tested with advice or aspects), in local runtime everything is fine and works, but in appspot im getting this error: java.lang.StackOverflowError at java.lang.String.endsWith(Unknown Source) at sun.security.provider.PolicyFile.canonPath(Unknown Source) at java.io.FilePermission$1.run(Unknown Source) at java.io.FilePermission$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.io.FilePermission.init(Unknown Source) at java.io.FilePermission.init(Unknown Source) at sun.net.www.protocol.file.FileURLConnection.getPermission(Unknown Source) at sun.misc.URLClassPath.check(Unknown Source) at sun.misc.URLClassPath$FileLoader.getResource(Unknown Source) at sun.misc.URLClassPath$FileLoader.findResource(Unknown Source) at sun.misc.URLClassPath.findResource(Unknown Source) at java.net.URLClassLoader$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(Unknown Source) at com.google.apphosting.runtime.security.UserClassLoader.findResource (UserClassLoader.java:631) at java.lang.ClassLoader.getResource(Unknown Source) at com.google.apphosting.runtime.security.UserClassLoader$4.run (UserClassLoader.java:665) at com.google.apphosting.runtime.security.UserClassLoader$4.run (UserClassLoader.java:659) at java.security.AccessController.doPrivileged(Native Method) at com.google.apphosting.runtime.security.UserClassLoader.findResource (UserClassLoader.java:659) at java.lang.ClassLoader.getResource(Unknown Source) at com.google.apphosting.runtime.security.UserClassLoader$4.run (UserClassLoader.java:665) at com.google.apphosting.runtime.security.UserClassLoader$4.run (UserClassLoader.java:659) at java.security.AccessController.doPrivileged(Native Method) at com.google.apphosting.runtime.security.UserClassLoader.findResource (UserClassLoader.java:659) at java.lang.ClassLoader.getResource(Unknown Source) at com.google.apphosting.runtime.security.UserClassLoader$4.run (UserClassLoader.java:665) at com.google.apphosting.runtime.security.UserClassLoader$4.run (UserClassLoader.java:659) at java.security.AccessController.doPrivileged(Native Method) at com.google.apphosting.runtime.security.UserClassLoader.findResour... My applicationContext.xml: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:aop=http://www.springframework.org/schema/aop; xmlns:context=http://www.springframework.org/schema/context; xmlns:tx=http://www.springframework.org/schema/tx; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd; !-- Habilita annotations para JPA -- !-- VERIFICAR: bean class=org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor / -- bean class=org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor / context:property-placeholder location=classpath:application.properties / !-- JPA Entity Manager -- bean id=entityManagerFactory class=org.springframework.orm.jpa.LocalEntityManagerFactoryBean property name=persistenceUnitName value=transactions-optional / /bean !-- Activates spring transaction container -- bean id=transactionManager class=org.springframework.orm.jpa.JpaTransactionManager property name=entityManagerFactory ref=entityManagerFactory / /bean !-- Cache configuration -- bean id=cacheManager class=org.springframework.cache.ehcache.EhCacheManagerFactoryBean property name=configLocation valueclasspath:ehcache.xml/value /property /bean !-- Activates annotations to be detected in bean classes: @Transaction
[appengine-java] Re: Relationships
You cannot establish an owned relationship between two objects after the child object (User in this case) has already been persisted. This is because the parent key is embedded inside the child key, and keys can't be modified once an entity is persisted in the datastore. You can, however, use an unowned relationship and just store a reference to the User entity's Key. I think this is what you're looking to do, since unowned relationships can be established after the entities have already been stored. http://code.google.com/appengine/docs/java/datastore/relationships.html#Unowned_Relationships - Jason On Wed, Aug 26, 2009 at 7:26 AM, Yong Niu(Michael, USA--Houston) michael...@gmail.com wrote: you have to make the user-article relationship bidirectly befroe you persist the article, like: article.getusers().add(user); On Wed, Aug 26, 2009 at 5:42 AM, midomarocain elattar...@gmail.comwrote: i use three class User , Type ,and Article : @PersistenceCapable(identityType = IdentityType.APPLICATION) public class User { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent private String login; @Persistent private Type type; ... } @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Type { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; ... } @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Article { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id; @Persistent private User user; . } I use this method to save the article : public static Article save(Article article, Long userId) { Article result = null; PersistenceManager pm = PMF.get().getPersistenceManager(); try { // Getting the user by id Query query = pm.newQuery(User.class, id == idParam); query.declareParameters(Long idParam); ListUser users = (ListUser) query.execute(userId); User user = null; if (!users.isEmpty()) { user = users.get(0); } article.setUser(user); result = pm.makePersistent(article); } finally { pm.close(); } return result; } the exception : javax.jdo.JDOFatalUserException: Detected attempt to establish Article (16) as the parent of User(14) but the entity identified by User(14) has already been persisted without a parent. A parent cannot be established or changed once an object has been persisted. at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException (NucleusJDOHelper.java:354) at org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent (JDOPersistenceManager.java:674) at org.datanucleus.jdo.JDOPersistenceManager.makePersistent (JDOPersistenceManager.java:694) .. thanks in advance On 25 août, 17:14, objectuser kevin.k.le...@gmail.com wrote: Can you tell us what the error is? And maybe some snippits of code showing the relevant parts of your model and how it's mapped? On Aug 25, 8:08 am, midomarocain elattar...@gmail.com wrote: I have a relation between a User and Article (1) User can have one or many article (2) an article is owned by only one user i'am intersted only by the relation (2) the User is persisted I create a new Article and i want relie it with an existant User But i have a probleme when trying to persist the article object my code is like article.setUser(user); pm.makePersistent(article); can any one help me please -- Yong Niu (Michael) yong...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Model to Optimize Queries
Yes, it is a key. I just wanted to make it obvious which Keys are involved. I read the Embedded class as well, its not what I want here I think. How would you model this scenario then? Both models I discussed in my original post have issues. On Thu, Aug 27, 2009 at 11:22 AM, Jason (Google) apija...@google.comwrote: JDO supports syntax like article.status but App Engine's datastore doesn't support joins so you'll have to make article an embedded object in order to use the query as you have it below: http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Embedded_Classes Also, how have you defined reviewerParam? Is it a Key object or are you actually passing in the Reviewer object? The latter won't work, but I'll follow up about the former (querying on a Key). - Jason On Sun, Aug 23, 2009 at 11:18 PM, Sam Walker am.sam.wal...@gmail.comwrote: Also, I get this error: *Can only filter by properties of a sub-object if the sub-object is embedded.* when I tried to access article while setting a fitler: query.setFilter(reviewer == reviewerParam article.status = articleStatusParam); What am I missing? On Sat, Aug 22, 2009 at 6:02 PM, Sam Walker am.sam.wal...@gmail.comwrote: In the second model, how will I find all Articles being reviewed by A and B? The only way I can think of is adding another derived field in Article: Article { HashSetReview reviews; HashSetReviewer reviewers; // keys of Reviewers to help the query find all articles reviewed by A and B HashSetString tags; int status; // derived from all Reviews' statuses. } Review { Article article; Reviewer reviewer; int status; } Now I should be able to do reviewers.contains(A.key) and reviewers.contains(B.key). Is that the best way? On Sat, Aug 22, 2009 at 2:02 PM, Sam Walker am.sam.wal...@gmail.comwrote: Oh sweet, I didn't know that. That's awesome! Thanks for the quick reply. On Sat, Aug 22, 2009 at 1:51 PM, datanucleus andy_jeffer...@yahoo.comwrote: I dont think I can do sth like (I can't access article.tags, article.status as far as I know, correct?): Of course you can. JDO spec defines JDOQL, using Java syntax. query.setFilter(reviewer == reviewerParam status == statusParam article.tags == tagParam article.status = articleStatusParam); What is tagParam ? an element of the hashSet? You can't do Collection == element in Java so you can't in JDOQL. You could do article.tags.contains(tagParam) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: child of the same class
You can implements self one-to-many relationship the tricky is Dont define ManytoOne, for your example your class will look like : class Mall{ ... id and other properties @OneToMany ListMallsubMallList; ... } remenber. dont add parent object to the class! cheers Michael On Aug 25, 11:03 pm, mar_novice mariocape1...@gmail.com wrote: Is it possible to implement a parent-child relationship in the same class.. for example parent Location has a child Location... for instance Mall class with fields name, longitude, latitude. a big mall name X, lat - 1.1 long- 2.3 sub mall name A, lat - 1.01 long -2.1 sub mall name B sub mall sub mall submall sub mall --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[google-appengine] template access of db.referenceproperty
I am using aep on google app engine class Link(): bag = db.Referencepropery(Bag) #bag have name, id and other property name = db.Stringpropery object_query = Link.all(); p = paginator( object_query) object_list = p.page(1); prefetch_references( object_list.object_list, 'bag') render_to_response(...,{'object_list':object_list.object_list},...) #template {% for object in objectlist%} {{object.bag.id}} !--failed to get any value, why???/-- {% 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] Re: template access of db.referenceproperty
objectlist is missing the _ 2009/8/27 Albert zinki...@gmail.com: I am using aep on google app engine class Link(): bag = db.Referencepropery(Bag) #bag have name, id and other property name = db.Stringpropery object_query = Link.all(); p = paginator( object_query) object_list = p.page(1); prefetch_references( object_list.object_list, 'bag') render_to_response(...,{'object_list':object_list.object_list},...) #template {% for object in objectlist%} {{object.bag.id}} !--failed to get any value, why???/-- {% 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] Re: Yahoo denying access to pipes rss feed from Google App Engine urlfetch
Hi Bernard, We're in contact with engineers at Yahoo!, and are working on resolving this issue. -Nick Johnson On Wed, Aug 26, 2009 at 7:12 PM, Bernard Maltais bern...@ducourier.comwrote: Thank you for the reply. I was affraid of this. The thing is that I am relying on GAE to fetch and parse Pipes feeds and then publish on twitter when required... I guess I will have to drop GAE as a platform and find one that give me more reliable urlfetches... but hey, when it is free what can you complain about! -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Yahoo denying access to pipes rss feed from Google App Engine urlfetch
This is really good news. I would really have been sorry to move away from such a great platform. I enjoyed learning python through my GAE development effort. Without GAE I would probably not have discovered Python for a while. I had eared how great of a language it was but was always comfortable with PHP... so. Looking forward for the resolution. The urlfetch problem is mostly present during business hours week-days. On Aug 27, 7:30 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi Bernard, We're in contact with engineers at Yahoo!, and are working on resolving this issue. -Nick Johnson --~--~-~--~~~---~--~~ 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: Request Slow Down
On Wed, Aug 26, 2009 at 6:39 PM, Andy Freeman ana...@earthlink.net wrote: Is there any reason to prefer multiple app.yaml entries over few? That is, one can match /pages/.*, /users/.*, /tasks/.*, /foo/.*, etc with separate app.yaml entries, followed by a catch-all app.yaml entry, each with its own handler file, each file with its own wsgi application, or with a single app.yaml entry (/.*) and a handler file with a wsgi application that has a clause for each of those cases. (Assume that each handler file defines main() so it will be cached.) Is there any difference between these two approachs wrt reuse or other implementation issues? If your handlers are mostly distinct - that is, they have large codebases that they don't share in common with each other - using separate app.yaml handlers can reduce initial startup time by only loading the modules the particular request handler requires. If, like most apps, your handlers need to load most of the app in order to serve a request, however, this effect is minimal. For example, if an instance is created for one handler, will it be used for another? (The documentation says that handler files can be cached like any other module, but doesn't say how that interacts with instance reuse.) The same Python runtime environment can be used by multiple handlers - in which case they will share the same loaded modules. -Nick Johnson Thanks, -andy On Aug 26, 4:31 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi PubliusX, On Tue, Aug 25, 2009 at 8:38 PM, PubliusX arjun.va...@gmail.com wrote: Hey, thanks.. but I figured out the problem. Apparently if there are too many requesthandlers (referenced in the handler script), then appengine doesn't cache the handler script.. At least thats what I think.. because I reduced the number by removing an arbitrary 5-6 classes and its back to the old time. That's definitely not the case. App Engine doesn't even know how many RequestHandlers you're using, or even check what framework you're using. You were probably just getting a new instance on each request. -Nick Johnson -- Nick Johnson, Developer Programs Engineer, App Engine -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Supercharging your free AppEngine quota
Hi all, I've got a post (http://izuzak.wordpress.com/2009/08/27/how-to- supercharge-your-free-appengine-quota/) on pumping up your free AppEngine quota. Here's the useful payload: Other than billable quotas, there are also unbillable quotas which increase when you switch to the paid model but are not billed. So, by switching to the paid model, irregardless to how you distribute your budget, your app gets a free bump in the: * number of requests it can process from 1,300,000 to 43,000,000 and from 7,400 to 30,000 req/min, * number of outgoing HTTP requests from 657,000 to 46,000,000 and from 3,000 to 32,000 req/min, * number of memcache calls from8,600,000to 96,000,000 and from 48,000 to 108,000 calls/min, and many others. These are very usable improvements by themselves for apps that need to process a lot of requests (or bursts of requests) which don’t consume a lot of CPU time, or apps that need to make a lot of outgoing HTTP requests that don’t consume a lot of bandwidth. So here’s the idea for supercharging your free AppEngine quotas: 1) switch you app to the paid model by enabling billing, 2) enter the minimum daily budget ($1), 3) distribute the budget over resources you are 100% sure will not consume their free quota (e.g. if you have a stateless app which doesn’t use the database, put the whole $1 in the stored data quota). Since you put your budget on resources which won’t consume the entire free quota and since AppEngine doesn’t charge you anything if the app doesn’t step over the free quota – you are essentially getting a better free quota. What do you guys think? Are there any other hacks for squeezing more out of AppEngine? Thanks, Ivan --~--~-~--~~~---~--~~ 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] Accidentally Deleted all my INDEXES :(
Hi All, I tried to vacuum out some indexes that were in the error state, I gave appcfg.py vacuum_indexes My_application During the process I missed a couple of them, I tried to give the 'a' option thinking that it was the Abort option :( :( Now all my indexes are in deleting state, its very late in my dev stage to track down all the previous indexes and upload them again. Can anyone please help me to get the indexes back, my app is down at the moment due to the missing indexes :( :( Thanks, Arun Shanker Prasad. --~--~-~--~~~---~--~~ 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: Accidentally Deleted all my INDEXES :(
Hi Arun, I'm afraid your only option is to recreate the indexes once they've finished deleting. If you no longer have your index.yaml, you can copy down the index definitions from the App Engine console index page in order to recreate it. -Nick Johnson On Thu, Aug 27, 2009 at 3:34 PM, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi All, I tried to vacuum out some indexes that were in the error state, I gave appcfg.py vacuum_indexes My_application During the process I missed a couple of them, I tried to give the 'a' option thinking that it was the Abort option :( :( Now all my indexes are in deleting state, its very late in my dev stage to track down all the previous indexes and upload them again. Can anyone please help me to get the indexes back, my app is down at the moment due to the missing indexes :( :( Thanks, Arun Shanker Prasad. -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Accidentally Deleted all my INDEXES :(
Hi, Oh I was afraid that would be the answer :( By the time I saw your reply all my indexes were already deleted. Trying to track down all the past backups to get the indexes :( The 'a' option SHOULD really be REMOVED :( :( Thanks, Arun Shanker Prasad. On Aug 27, 7:41 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Arun, I'm afraid your only option is to recreate the indexes once they've finished deleting. If you no longer have your index.yaml, you can copy down the index definitions from the App Engine console index page in order to recreate it. -Nick Johnson On Thu, Aug 27, 2009 at 3:34 PM, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi All, I tried to vacuum out some indexes that were in the error state, I gave appcfg.py vacuum_indexes My_application During the process I missed a couple of them, I tried to give the 'a' option thinking that it was the Abort option :( :( Now all my indexes are in deleting state, its very late in my dev stage to track down all the previous indexes and upload them again. Can anyone please help me to get the indexes back, my app is down at the moment due to the missing indexes :( :( Thanks, Arun Shanker Prasad. -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Supercharging your free AppEngine quota
Really? You want to discuss how to Hack/Screw Google on their own listserv? I'll say that is ballsy... Or stupid --~--~-~--~~~---~--~~ 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: Supercharging your free AppEngine quota
Hi Brandon, On Thu, Aug 27, 2009 at 4:52 PM, Brandon N. Wirtz drak...@digerat.comwrote: Really? You want to discuss how to Hack/Screw Google on their own listserv? I'll say that is ballsy... Or stupid Enabling billing as Ivan suggests is a perfectly legitimate way to increase your non-billed quotas. -Nick Johnson -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Supercharging your free AppEngine quota
On Aug 27, 5:52 pm, Brandon N. Wirtz drak...@digerat.com wrote: Really? You want to discuss how to Hack/Screw Google on their own listserv? I'll say that is ballsy... Or stupid I know Google folks both professionally and privately, and I'm confident they won't get angry. And as Nick said - it's all legit and helps both users (to get more out of this great platform) and Google (to better understand how users think about and use their platform, and possibly redefine the pricing according to that). So yeah, just ballsy ;) Ivan --~--~-~--~~~---~--~~ 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: Issues with App Upload
What does your app.yaml look like? In particular, are you making these html files static? If so, your program can't access them to use them as templates. On Aug 26, 2:31 pm, John johntravolta101...@gmail.com wrote: Dear All, I am facing the following issue while I upload my app to the google server. It would be of immense help if some one of you could give me some clue of whats going wrong. Here is the problem description 1. I added a few program files (.py) files and a few template files (.html files) to the app which was already running on google app engine 2. My app works fine on the dev_appserver.py but is unable to find the new files when uploaded to the server. 3. I use appcfg.py update myapp to upload my application 4. I tried to include the contents of the additional .py files to the existing one and upload. Its able to execute a few things but it is unable to the new html templates. 5. I have a feeling that the new files that I have added to the app directory are not uploaded to the server. Is there a way to check the files that are uploaded ? Thanking You, Sincerely, John --~--~-~--~~~---~--~~ 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: Supercharging your free AppEngine quota
On Aug 27, 5:58 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Brandon, On Thu, Aug 27, 2009 at 4:52 PM, Brandon N. Wirtz drak...@digerat.comwrote: Really? You want to discuss how to Hack/Screw Google on their own listserv? I'll say that is ballsy... Or stupid Enabling billing as Ivan suggests is a perfectly legitimate way to increase your non-billed quotas. -Nick Johnson -- Nick Johnson, Developer Programs Engineer, App Engine Thanks Nick! AppEngine 3 Cheers, Ivan --~--~-~--~~~---~--~~ 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] entity groups
Maybe my search skills are sucking at the moment, but I am failing to find a good example of Entity Group modeling. I started here: http://code.google.com/appengine/docs/python/datastore/modelclass.html (The Model class) which then led me to http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html (Keys and Entity Groups) Mainly, what I am trying to find is how to declare the Parent and Child objects, and then how does parent walk to child and vice versa. If I have class MyParent(db.Model): class MyParentChild(db.Model): what do I add to the above declarations to wire up parent and child to be part of an entity group. Do I still use ReferenceProperty? (but what if I want one to one and not one to many?) Thanks for any pointers, L --~--~-~--~~~---~--~~ 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] Issue with Google App deployment
Hello, Over the past few days i was trying to deploy my application making changes to the static files. I was not able to get the changes in the deployed version. The files i was referring are htm files which i have placed in the build path where normally classes would be present. for example, parent/src/main/resources/htm/*.htm parent/src/main/java/*.java Is there any problem? This was working fine till last week. Is there some issue with the servers. I suspect they are rendering my old htms from the cache. --~--~-~--~~~---~--~~ 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 can you access App.yaml data?
Is it possible to access the data in your app.yaml file from your app? (Not the file, but is the data loaded into the code anywhere). For example, I am looking to access the handlers with the login property set to required so that I do not have to repeat some sort of variable in the code because this is inconvenient to maintain. I need to force someone to actually register with the site once signed in with a google account but login:required would still let them view the page without registering so I need to access the urls. --~--~-~--~~~---~--~~ 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] ClientLogin and prompt for username/password
Hi there, I need to use the GData API to add a post to a blog. Always the same blog, always the same user (whose credentials I happen to have, since they are my own). I've gotten this working, except for one thing: when I request the page that does this and the logic runs, I am prompted for my Google credentials anyways. Since I don't want the user of my app to be bothered with this (I am guessing it doesn't matter WHO authenticates, as long as someone does), I'd like to figure out how to stop this behaviour... The code that does the logging in is this: # Authenticate using ClientLogin. service = gdata.service.GDataService(email, password) service.source = 'GAE App' service.service = 'blogger' service.server = 'www.blogger.com' gdata.alt.appengine.run_on_appengine(service, store_tokens=False, single_user_mode=True) service.ProgrammaticLogin() Has anyone run into this problem? Is there a solution? 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] Need help understanding an error (not sure if it is my fault or not)
I am getting the following traceback: Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py, line 507, in __call__ handler.get(*groups) File /base/data/home/apps/riabizdev/1.335829215948087052/ handlers.py, line 197, in get banner_code = models.Banner.get_by_id(int (banner_id)).get_code_and_log_impression() File /base/data/home/apps/riabizdev/1.335829215948087052/ models.py, line 209, in get_code_and_log_impression self.put() File /base/python_lib/versions/1/google/appengine/ext/db/ __init__.py, line 725, in put return datastore.Put(self._entity) File /base/python_lib/versions/1/google/appengine/api/ datastore.py, line 166, in Put raise _ToDatastoreError(err) File /base/python_lib/versions/1/google/appengine/api/ datastore.py, line 2100, in _ToDatastoreError raise errors[err.application_error](err.error_detail) Timeout And the method in question from models.py is this: def get_text(self): self.counter += 1 self.put() #this is line 209, where the error originates return self.text Is this a common problem that I can do something to avoid? Alternatively, could someone show me the syntax to make this fail gracefully? (I think I've seen an example before, but don't remember where to find it). Thanks in advance-- Nevin Freeman --~--~-~--~~~---~--~~ 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: downloading files off google app engine
I download jpeg files which are stored like this in the datastore. class Photo(db.Model): data = db.BlobProperty(required=True) Here is the handler code: class GetPhoto(webapp.RequestHandler): def get(self): photo = db.get(db.Key(self.request.get('photoKey'))) self.response.headers['Content-Type'] = 'image/jpeg' self.response.out.write(photo.data) On Aug 26, 1:14 pm, Lee, Duk (Genworth) duk@genworth.com wrote: Is there a way I can download my files off google app engine? 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: UserService.createLogoutURL() creates wrong URL when using hosted domain
Is this a bug? I am seeing the same problem in my app using gapps domain. -rjaxin On Jul 28, 7:00 am, dflorey daniel.flo...@gmail.com wrote: Hi Nick, I've logged the urls on appengine and this is what I pass in as an argument: http://floreyvoice.appspot.com/telephony/index.html This is what I get as logout url: http://floreyvoice.appspot.com/_ah/logout?continue=https://www.google... The logout works fine, but I end up on the Google apps login screen. This is the URL displayed in the browser on the login screen: https://www.google.com/a/floreysoft.com/ServiceLogin?service=CPanelc... Correct behavior would to end on my application start screen in logged out state. Cheers, Daniel On Jul 28, 10:43 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi dflorey, What argument are you passing to createLogoutURL? -Nick Johnson On Tue, Jul 28, 2009 at 9:33 AM, dflorey daniel.flo...@gmail.com wrote: I've created an application that runs on GAE and is integrated into our Google apps as a service. I can login to the app using my hosted domain account and can grant access to several Google services (contacts, calendar...) using AuthSub. But when logging out from my app, I get redirected to the Google apps login screen instead of the given next URL. When logging in again, I get forwarded to the domain dashboard instead of my domain! This is the logout-URL that I get from UserService: http://floreyvoice.appspot.com/_ah/logout?continue=https://www.google... The logout request should forward me to my application and log out the user transparently. When running on the default gmail.com domain, everything works as expected. -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Supercharging your free AppEngine quota
On Aug 27, 2:43 pm, Ivan Zuzak izu...@gmail.com wrote: Hi all, I've got a post (http://izuzak.wordpress.com/2009/08/27/how-to- supercharge-your-free-appengine-quota/) on pumping up your free AppEngine quota. Here's the useful payload: Just noticed my URL got massacred, here we go again: http://izuzak.wordpress.com/2009/08/27/how-to-supercharge-your-free-appengine-quota/ Ivan --~--~-~--~~~---~--~~ 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] Just use and host
Hello, I am no coder but I would like to use a directory script with my domain name. Does Google App Engine allow to host such a script ? I checked the FAQ but I read no concrete answer to my question and since I am no coder there is a lot I do not understand here. I think I found such a script in the gallery but then : what do I do ? (I have a domain name) Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Accidentally Deleted all my INDEXES :(
Guys I want to know how can I create Indexes while using entity manager get set properties Please help. On Thu, Aug 27, 2009 at 8:11 PM, Nick Johnson (Google) nick.john...@google.com wrote: Hi Arun, I'm afraid your only option is to recreate the indexes once they've finished deleting. If you no longer have your index.yaml, you can copy down the index definitions from the App Engine console index page in order to recreate it. -Nick Johnson On Thu, Aug 27, 2009 at 3:34 PM, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi All, I tried to vacuum out some indexes that were in the error state, I gave appcfg.py vacuum_indexes My_application During the process I missed a couple of them, I tried to give the 'a' option thinking that it was the Abort option :( :( Now all my indexes are in deleting state, its very late in my dev stage to track down all the previous indexes and upload them again. Can anyone please help me to get the indexes back, my app is down at the moment due to the missing indexes :( :( Thanks, Arun Shanker Prasad. -- Nick Johnson, Developer Programs Engineer, App Engine -- _ _ _ _ _ _ _ _ _ _ Thanks Regards Rahul Kumar [09891362429] --~--~-~--~~~---~--~~ 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: Request Greater Index Quota?
Ok, I emailed you. Thanks On Aug 25, 7:43 pm, Jeff S (Google) j...@google.com wrote: Hi O, I've reset the index count quota and error out the indexes which were stuck in the building state. It does look like you have quite a few indexes, how many do you anticipate needing? It is usually no problem to increase the number of index for an app, though there is an upper limit which no one has hit yet to my knowledge. I'm curious if there is a way to reduce the number of indexes for your app or possibly restructure a few queries to remove the need for some of these indexes. The reason I advocate reducing indexes in general is that they can make writes to the datastore more expensive when a large number of indexes are involved. Feel free to email me privately if you don't feel comfortable discussing on the group. Thank you, Jeff On Tue, Aug 25, 2009 at 2:25 PM, O obisho...@gmail.com wrote: When I upload (ogweb.appspot.com), I get the error 500 message. I searched here, and it seems that error is related to the index quota. I do have a lot of indexes. How do I request a greater index quota? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Help With Error: ReferenceProperty failed to be resolved
I recently ignorantly deleted an entity of mine thru the Dashboard. Now when only my user accesses a certain section of the app, I recieve this error: Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py, line 507, in __call__ handler.get(*groups) File /base/data/home/apps/appname/1.95169432469460/ quizlink.py, line 757, in get selectors = [selector for selector in self.get_selectors(user) if selector.quiz.question_count 0] File /base/python_lib/versions/1/google/appengine/ext/db/ __init__.py, line 2704, in __get__ raise Error('ReferenceProperty failed to be resolved') Error: ReferenceProperty failed to be resolved Only my username creates this problem, not other's. I'd like to fix this, but I can't think of anyway around it. I tried to manually recreate the entity thru the Dashboard, with the same ID (112052) but that doesnt work as the ID is randomly generated and cannot be edited. Anyone have any ideas? Thanks, Kambiz --~--~-~--~~~---~--~~ 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: Accidentally Deleted all my INDEXES :(
Hi, I tried to upload indexes I deleted but they seem to be stuck in the Building state. I think this is similar to the problem I had earlier, since I think I uploaded the same indexes again, my mistake :( http://groups.google.com/group/google-appengine/browse_thread/thread/ed380a3d752133ae A day full of mistakes Any help will be GREATLY appreciated. Thanks, Arun Shanker Prasad. On Aug 27, 7:54 pm, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi, Oh I was afraid that would be the answer :( By the time I saw your reply all my indexes were already deleted. Trying to track down all the past backups to get the indexes :( The 'a' option SHOULD really be REMOVED :( :( Thanks, Arun Shanker Prasad. On Aug 27, 7:41 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Arun, I'm afraid your only option is to recreate the indexes once they've finished deleting. If you no longer have your index.yaml, you can copy down the index definitions from the App Engine console index page in order to recreate it. -Nick Johnson On Thu, Aug 27, 2009 at 3:34 PM, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi All, I tried to vacuum out some indexes that were in the error state, I gave appcfg.py vacuum_indexes My_application During the process I missed a couple of them, I tried to give the 'a' option thinking that it was the Abort option :( :( Now all my indexes are in deleting state, its very late in my dev stage to track down all the previous indexes and upload them again. Can anyone please help me to get the indexes back, my app is down at the moment due to the missing indexes :( :( Thanks, Arun Shanker Prasad. -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Supercharging your free AppEngine quota
Just noticed my URL got massacred, here we go again: I'm thinking of putting a URL Shortener/ De-referrer on GAE... You should have one of those... But if you are on WP you should also consider sharing urls by post id to make the URLs shorter. --~--~-~--~~~---~--~~ 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: Accidentally Deleted all my INDEXES :(
Hi, I have sent the app id as a mail, please let me know when you have tracked anything down. Thanks, Arun Shanker Prasad. On Aug 28, 2:07 am, Jeff S (Google) j...@google.com wrote: Hello, I'd be happy to help but I'm having a tough time tracking down the app ID that this is for. What is your app ID? Thank you, Jeff On Thu, Aug 27, 2009 at 11:56 AM, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi, I tried to upload indexes I deleted but they seem to be stuck in the Building state. I think this is similar to the problem I had earlier, since I think I uploaded the same indexes again, my mistake :( http://groups.google.com/group/google-appengine/browse_thread/thread/... A day full of mistakes Any help will be GREATLY appreciated. Thanks, Arun Shanker Prasad. On Aug 27, 7:54 pm, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi, Oh I was afraid that would be the answer :( By the time I saw your reply all my indexes were already deleted. Trying to track down all the past backups to get the indexes :( The 'a' option SHOULD really be REMOVED :( :( Thanks, Arun Shanker Prasad. On Aug 27, 7:41 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Arun, I'm afraid your only option is to recreate the indexes once they've finished deleting. If you no longer have your index.yaml, you can copy down the index definitions from the App Engine console index page in order to recreate it. -Nick Johnson On Thu, Aug 27, 2009 at 3:34 PM, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi All, I tried to vacuum out some indexes that were in the error state, I gave appcfg.py vacuum_indexes My_application During the process I missed a couple of them, I tried to give the 'a' option thinking that it was the Abort option :( :( Now all my indexes are in deleting state, its very late in my dev stage to track down all the previous indexes and upload them again. Can anyone please help me to get the indexes back, my app is down at the moment due to the missing indexes :( :( Thanks, Arun Shanker Prasad. -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: How can I create Indexes using Entities in Google's Data Store
HI Rahul, All the properties of an entity with indexed=true are automatically indexed by the default indexes. You can define custom indexes other than the default indexes in the index.yaml app configuration file as specified here: http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Defining_Indexes_With_Configuration Regards, Jai On Aug 26, 11:30 pm, rahul kumar rahul.k...@gmail.com wrote: Hello Techies I want to create Indexes using Google' Datastore Api so that when I am saving my entities,I can be able to create get Indexes also to make it easy for my application to search Data. How can I achieve this. Please help thanks Rahul Kumar --~--~-~--~~~---~--~~ 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: Just use and host
If I understand your ask this will work. But you would likely be happier on Google Apps, or Google Sites. Install python on your Computer. Install the GAE SDK. Place all of your static HTML, Images, and Website In a directory called Static. Create an entry for each file in your website in the App.Yaml Use the APPCFG.py to deploy your app. -Original Message- From: google-appengine@googlegroups.com [mailto:google-appeng...@googlegroups.com] On Behalf Of Jean Sent: Thursday, August 27, 2009 8:19 AM To: Google App Engine Subject: [google-appengine] Just use and host Hello, I am no coder but I would like to use a directory script with my domain name. Does Google App Engine allow to host such a script ? I checked the FAQ but I read no concrete answer to my question and since I am no coder there is a lot I do not understand here. I think I found such a script in the gallery but then : what do I do ? (I have a domain name) Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: entity groups
To get the parent-child relation: specify the parent= attribute of the object constructor for the child. All the links/relations are stored in the Key of the object, you don't have to put any Properties in the Model definition. myObj = Model(parent=someparent,.) myObj.put() If you want to find an object that has a certain parent object use the ancestor() call of a Query http://code.google.com/appengine/docs/python/datastore/queryclass.html#Query_ancestor For GQL look here http://code.google.com/appengine/docs/python/datastore/gqlreference.html 2009/8/27 Laimonas Simutis lai...@gmail.com: Maybe my search skills are sucking at the moment, but I am failing to find a good example of Entity Group modeling. I started here: http://code.google.com/appengine/docs/python/datastore/modelclass.html (The Model class) which then led me to http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html (Keys and Entity Groups) Mainly, what I am trying to find is how to declare the Parent and Child objects, and then how does parent walk to child and vice versa. If I have class MyParent(db.Model): class MyParentChild(db.Model): what do I add to the above declarations to wire up parent and child to be part of an entity group. Do I still use ReferenceProperty? (but what if I want one to one and not one to many?) Thanks for any pointers, L --~--~-~--~~~---~--~~ 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] backend frontend vs. classical
I would like received your thought about this architecture. 1 typhical structure one aplicacion with one version for models/gwt/ etc and compile all version in each version versus system with two versions 1 for backend write using python or java 2 other verion only presentation code gwt, django, others Other questions what do you think about mix python / java thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Request Slow Down
Hi Nick, You say: The same Python runtime environment can be used by multiple handlers - in which case they will share the same loaded modules. Is this always the case? Or do you need to programmatically do this? If so, how do you achieve that? Jaap On Thu, Aug 27, 2009 at 1:47 PM, Nick Johnson (Google) nick.john...@google.com wrote: On Wed, Aug 26, 2009 at 6:39 PM, Andy Freeman ana...@earthlink.netwrote: Is there any reason to prefer multiple app.yaml entries over few? That is, one can match /pages/.*, /users/.*, /tasks/.*, /foo/.*, etc with separate app.yaml entries, followed by a catch-all app.yaml entry, each with its own handler file, each file with its own wsgi application, or with a single app.yaml entry (/.*) and a handler file with a wsgi application that has a clause for each of those cases. (Assume that each handler file defines main() so it will be cached.) Is there any difference between these two approachs wrt reuse or other implementation issues? If your handlers are mostly distinct - that is, they have large codebases that they don't share in common with each other - using separate app.yaml handlers can reduce initial startup time by only loading the modules the particular request handler requires. If, like most apps, your handlers need to load most of the app in order to serve a request, however, this effect is minimal. For example, if an instance is created for one handler, will it be used for another? (The documentation says that handler files can be cached like any other module, but doesn't say how that interacts with instance reuse.) The same Python runtime environment can be used by multiple handlers - in which case they will share the same loaded modules. -Nick Johnson Thanks, -andy On Aug 26, 4:31 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi PubliusX, On Tue, Aug 25, 2009 at 8:38 PM, PubliusX arjun.va...@gmail.com wrote: Hey, thanks.. but I figured out the problem. Apparently if there are too many requesthandlers (referenced in the handler script), then appengine doesn't cache the handler script.. At least thats what I think.. because I reduced the number by removing an arbitrary 5-6 classes and its back to the old time. That's definitely not the case. App Engine doesn't even know how many RequestHandlers you're using, or even check what framework you're using. You were probably just getting a new instance on each request. -Nick Johnson -- Nick Johnson, Developer Programs Engineer, App Engine -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Program Policies
Dear Google, As me and my partners have an affiliate software that we are rebuilding and want to have it exclusively on Google App Engine. We are going to offer companies hosted affiliate software, where they can store statistics of their affiliates, upload their banners to offer to affiliates and have an admin interface etc. etc. As we do not going to have so much content and main content for our customers and their affiliates is going to be banners and an administration interface. We are not going to accept customers that has illegal content or hate related content or sell illegal products, but we can not limit e.g. a poker site that has a license in a legal jurisdiction, that will be limiting our service and that is not something we want to do. Have a nice day! Best Regards /Peter GOOGLE APP ENGINE PROGRAM POLICIES: Prohibited Content The Content displayed and/or processed through your Application or other web site utilizing the Service shall not contain any of the following types of content: Content that infringes a third party's rights (e.g., copyright) according to applicable law; Pornographic, obscene or excessively profane content; Hate-related or violent content; Content advocating racial or ethnic intolerance; Content intended to advocate or advance computer hacking or cracking Gambling; Other illegal activity, including without limitation illegal export of controlled substances or illegal software; Drug paraphernalia; Phishing; Malicious content; Pages comprised primarily of advertising; Other material, products or services that violate or encourage conduct that would violate any criminal laws, any other applicable laws, or any third-party rights. --~--~-~--~~~---~--~~ 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 Delete Property from Model?
Perfect, thanks. I was just missing the step about temporarily converting to db.Expando. On Aug 26, 12:15 pm, vivpuri v...@vivekpuri.com wrote: Read this article: http://code.google.com/appengine/articles/update_schema.html -V --~--~-~--~~~---~--~~ 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: Accidentally Deleted all my INDEXES :(
Hello, I'd be happy to help but I'm having a tough time tracking down the app ID that this is for. What is your app ID? Thank you, Jeff On Thu, Aug 27, 2009 at 11:56 AM, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi, I tried to upload indexes I deleted but they seem to be stuck in the Building state. I think this is similar to the problem I had earlier, since I think I uploaded the same indexes again, my mistake :( http://groups.google.com/group/google-appengine/browse_thread/thread/ed380a3d752133ae A day full of mistakes Any help will be GREATLY appreciated. Thanks, Arun Shanker Prasad. On Aug 27, 7:54 pm, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi, Oh I was afraid that would be the answer :( By the time I saw your reply all my indexes were already deleted. Trying to track down all the past backups to get the indexes :( The 'a' option SHOULD really be REMOVED :( :( Thanks, Arun Shanker Prasad. On Aug 27, 7:41 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Arun, I'm afraid your only option is to recreate the indexes once they've finished deleting. If you no longer have your index.yaml, you can copy down the index definitions from the App Engine console index page in order to recreate it. -Nick Johnson On Thu, Aug 27, 2009 at 3:34 PM, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi All, I tried to vacuum out some indexes that were in the error state, I gave appcfg.py vacuum_indexes My_application During the process I missed a couple of them, I tried to give the 'a' option thinking that it was the Abort option :( :( Now all my indexes are in deleting state, its very late in my dev stage to track down all the previous indexes and upload them again. Can anyone please help me to get the indexes back, my app is down at the moment due to the missing indexes :( :( Thanks, Arun Shanker Prasad. -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] How can I create Indexes using Entities in Google's Data Store
Hello Techies I want to create Indexes using Google' Datastore Api so that when I am saving my entities,I can be able to create get Indexes also to make it easy for my application to search Data. How can I achieve this. Please help thanks Rahul Kumar --~--~-~--~~~---~--~~ 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: Help With Error: ReferenceProperty failed to be resolved
With a query find all the objects that have this faulty reference property. Create a new property of the correct type and update the objects of the query You can get rid of the list comprehention, make it a for loop that fills a list, catch the exception and filter out the objects with the rogue reference selectors = [] for selector in self.get_selectors(user): try: if selector.quiz.question_count 0: selectors.append(selector) except Error pass # or update the reference and put() the selector back 2009/8/27 Kambiz Kambiz kam...@gmail.com: I recently ignorantly deleted an entity of mine thru the Dashboard. Now when only my user accesses a certain section of the app, I recieve this error: Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py, line 507, in __call__ handler.get(*groups) File /base/data/home/apps/appname/1.95169432469460/ quizlink.py, line 757, in get selectors = [selector for selector in self.get_selectors(user) if selector.quiz.question_count 0] File /base/python_lib/versions/1/google/appengine/ext/db/ __init__.py, line 2704, in __get__ raise Error('ReferenceProperty failed to be resolved') Error: ReferenceProperty failed to be resolved Only my username creates this problem, not other's. I'd like to fix this, but I can't think of anyway around it. I tried to manually recreate the entity thru the Dashboard, with the same ID (112052) but that doesnt work as the ID is randomly generated and cannot be edited. Anyone have any ideas? Thanks, Kambiz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Need help understanding an error (not sure if it is my fault or not)
Unfortunately the Datastore gives sometimes timeout exceptions on operations. You can catch them and take some action, like retry the operation. Or let the user know in a friendly manner. There has been a post of a retry decorator on 25-aug-2009. When you are wrapping your put() and get() operations in try-except wrappers for Timeout exceptions, also do it for the CapabilityDisabled exception in case the Datastore is in read-only mode during maintenance. 2009/8/27 Nevin Freeman nevin.free...@gmail.com: I am getting the following traceback: Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py, line 507, in __call__ handler.get(*groups) File /base/data/home/apps/riabizdev/1.335829215948087052/ handlers.py, line 197, in get banner_code = models.Banner.get_by_id(int (banner_id)).get_code_and_log_impression() File /base/data/home/apps/riabizdev/1.335829215948087052/ models.py, line 209, in get_code_and_log_impression self.put() File /base/python_lib/versions/1/google/appengine/ext/db/ __init__.py, line 725, in put return datastore.Put(self._entity) File /base/python_lib/versions/1/google/appengine/api/ datastore.py, line 166, in Put raise _ToDatastoreError(err) File /base/python_lib/versions/1/google/appengine/api/ datastore.py, line 2100, in _ToDatastoreError raise errors[err.application_error](err.error_detail) Timeout And the method in question from models.py is this: def get_text(self): self.counter += 1 self.put() #this is line 209, where the error originates return self.text Is this a common problem that I can do something to avoid? Alternatively, could someone show me the syntax to make this fail gracefully? (I think I've seen an example before, but don't remember where to find it). Thanks in advance-- Nevin Freeman --~--~-~--~~~---~--~~ 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] Increasing Task Queue Quota Limit
Hello, I was wondering if we can get our Task Queue quota increased. We have seen a substantial increase in usage, and are getting close to the 10K limit (we use it to run small background tasks that increase proportionally with usage). Our app IDs are worldwidelexicon and wwlapi Thanks. Brian McConnell --~--~-~--~~~---~--~~ 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] Static Files
I am using java server side. I am curious if there is anyway to have pretty urls (for example www.example.com/home) point to a static home.html (so no .html in the url) . I would like to do this without converting home.html to a jsp file. 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 can I create Indexes using Entities in Google's Data Store
Thanks Jai But I am getting index of all the attributes of Entity despite of the fact that I haven't created any, neither on attributes nor explicitly through XML Right now I have lesser Data so Its hard to judge where the query processing is fast or not but when the data is in millions will it work? thanks in advance but please guide me. On Fri, Aug 28, 2009 at 12:36 AM, Jai sharma...@gmail.com wrote: HI Rahul, All the properties of an entity with indexed=true are automatically indexed by the default indexes. You can define custom indexes other than the default indexes in the index.yaml app configuration file as specified here: http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Defining_Indexes_With_Configuration Regards, Jai On Aug 26, 11:30 pm, rahul kumar rahul.k...@gmail.com wrote: Hello Techies I want to create Indexes using Google' Datastore Api so that when I am saving my entities,I can be able to create get Indexes also to make it easy for my application to search Data. How can I achieve this. Please help thanks Rahul Kumar -- _ _ _ _ _ _ _ _ _ _ Thanks Regards Rahul Kumar [09891362429] --~--~-~--~~~---~--~~ 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: Help With Error: ReferenceProperty failed to be resolved
I can't write a query to find all the objects with this reference property since I deleted one object which caused this problem. That object is now gone. That being said, I don't know if your method will work since all my object right now are technically OK but since 1 is missing in the list, it isn't generating it. Does that make sense? Kambiz On Aug 27, 4:47 pm, djidjadji djidja...@gmail.com wrote: With a query find all the objects that have this faulty reference property. Create a new property of the correct type and update the objects of the query You can get rid of the list comprehention, make it a for loop that fills a list, catch the exception and filter out the objects with the rogue reference selectors = [] for selector in self.get_selectors(user): try: if selector.quiz.question_count 0: selectors.append(selector) except Error pass # or update the reference and put() the selector back 2009/8/27 Kambiz Kambiz kam...@gmail.com: I recently ignorantly deleted an entity of mine thru the Dashboard. Now when only my user accesses a certain section of the app, I recieve this error: Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py, line 507, in __call__ handler.get(*groups) File /base/data/home/apps/appname/1.95169432469460/ quizlink.py, line 757, in get selectors = [selector for selector in self.get_selectors(user) if selector.quiz.question_count 0] File /base/python_lib/versions/1/google/appengine/ext/db/ __init__.py, line 2704, in __get__ raise Error('ReferenceProperty failed to be resolved') Error: ReferenceProperty failed to be resolved Only my username creates this problem, not other's. I'd like to fix this, but I can't think of anyway around it. I tried to manually recreate the entity thru the Dashboard, with the same ID (112052) but that doesnt work as the ID is randomly generated and cannot be edited. Anyone have any ideas? Thanks, Kambiz --~--~-~--~~~---~--~~ 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: Accidentally Deleted all my INDEXES :(
Hi Jeff, Still no updates? My indexes are still stuck building. Thanks, Arun Shanker Prasad. On Aug 28, 2:27 am, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi, I have sent the app id as a mail, please let me know when you have tracked anything down. Thanks, Arun Shanker Prasad. On Aug 28, 2:07 am, Jeff S (Google) j...@google.com wrote: Hello, I'd be happy to help but I'm having a tough time tracking down the app ID that this is for. What is your app ID? Thank you, Jeff On Thu, Aug 27, 2009 at 11:56 AM, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi, I tried to upload indexes I deleted but they seem to be stuck in the Building state. I think this is similar to the problem I had earlier, since I think I uploaded the same indexes again, my mistake :( http://groups.google.com/group/google-appengine/browse_thread/thread/... A day full of mistakes Any help will be GREATLY appreciated. Thanks, Arun Shanker Prasad. On Aug 27, 7:54 pm, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi, Oh I was afraid that would be the answer :( By the time I saw your reply all my indexes were already deleted. Trying to track down all the past backups to get the indexes :( The 'a' option SHOULD really be REMOVED :( :( Thanks, Arun Shanker Prasad. On Aug 27, 7:41 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Arun, I'm afraid your only option is to recreate the indexes once they've finished deleting. If you no longer have your index.yaml, you can copy down the index definitions from the App Engine console index page in order to recreate it. -Nick Johnson On Thu, Aug 27, 2009 at 3:34 PM, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi All, I tried to vacuum out some indexes that were in the error state, I gave appcfg.py vacuum_indexes My_application During the process I missed a couple of them, I tried to give the 'a' option thinking that it was the Abort option :( :( Now all my indexes are in deleting state, its very late in my dev stage to track down all the previous indexes and upload them again. Can anyone please help me to get the indexes back, my app is down at the moment due to the missing indexes :( :( Thanks, Arun Shanker Prasad. -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Google Checkout Rate Your Experience emails
Hi, Is there any way to get Google Checkout to stop sending me Rate your shopping experience emails? I've answered them, but they keep coming. I have a handful of apps and each of them generates a checkout charge once a day, which means I get a handful of rate your shopping experience emails every day. Ben --~--~-~--~~~---~--~~ 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: Webworker definition explanation
HELP ? Is this question too challenging or too lame? I am really new to GAE. Can anyone point me in the right direction on this? Thank you, Carl On Aug 24, 6:37 pm, carlsdb right...@gmail.com wrote: Please define webworker and provide a brief explanation of how one uses a webworker. Thank you, Carl --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---