[appengine-java] Re: Datastore W/O JDO or JPA??
I think its the only one that doesn't make you deal with Keys (including JDO) ... correct me if Im wrong here. You just use normal object references to other entities and define them as @Parent's @Child'ren or even @Component's so that its properties are embedded. No reason why you can't do that in JDO. JDO itself doesn't want implementations to expose any vendor-specific Key class either, and that is solely down to implementation details on Google's behalf. You could have String or long identities in JDO easily enough and have all other fields as embedded. -- 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-j...@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: JDO enhancer does not process the annotations
I have the same problem, and it appears I have the same environment. It's almost as if it's simply not finding my annotations. On Dec 19, 6:25 pm, Sydney sydney.henr...@gmail.com wrote: I followed the tutorial on the DataNucleus web site but I am stuck at the enhancement part. I defined a class with annotations but the enhancer does not recognize the annotations. I only use annotations so I don't have any .jdo file. My class is: import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; @PersistenceCapable public class X { @Persistent(primaryKey = true) private long id; @Persistent private String sValue; @Persistent private int iValue; @Persistent private double dValue; private X() { } public X(String sValue, int iValue, double dValue) { this.sValue = sValue; this.iValue = iValue; this.dValue = dValue; } } The output of the Enhancer is: Dec 18, 2009 5:06:00 PM org.datanucleus.enhancer.DataNucleusEnhancer init INFO: DataNucleus Enhancer : Using ClassEnhancer ASM for API JDO Dec 18, 2009 5:06:01 PM org.datanucleus.PersistenceConfiguration setProperty INFO: Property datanucleus.rdbms.stringDefaultLength unknown - will be ignored Dec 18, 2009 5:06:01 PM org.datanucleus.enhancer.DataNucleusEnhancer main INFO: DataNucleus Enhancer (version 2.0.0-m4) : Validation of enhancement state DataNucleus Enhancer (version 2.0.0-m4) : Validation of enhancement state DataNucleus Enhancer : Classpath D:\home\workspace\JDO\bin D:\home\workspace\JDO\lib\mysql-connector-java-5.1.10-bin.jar D:\home\workspace\JDO\lib\datanucleus-core-2.0.0-m4.jar D:\home\workspace\JDO\lib\jdo2-api-2.3-ea.jar D:\home\workspace\JDO\lib\datanucleus-enhancer-2.0.0-m4.jar D:\home\workspace\JDO\lib\asm-3.2.jar Dec 18, 2009 5:06:01 PM org.datanucleus.metadata.MetaDataManager loadClasses INFO: Class JDOMain has no MetaData or annotations. Dec 18, 2009 5:06:01 PM org.datanucleus.metadata.MetaDataManager loadClasses INFO: Class X has no MetaData or annotations. Dec 18, 2009 5:06:01 PM org.datanucleus.enhancer.DataNucleusEnhancer addMessage INFO: DataNucleus Enhancer completed with success for 0 classes. Timings : input=78 ms, enhance=0 ms, total=78 ms. Consult the log for full details DataNucleus Enhancer completed with success for 0 classes. Timings : input=78 ms, enhance=0 ms, total=78 ms. Consult the log for full details Dec 18, 2009 5:06:01 PM org.datanucleus.enhancer.DataNucleusEnhancer main INFO: DataNucleus Enhancer completed and no classes were enhanced. Consult the log for full details DataNucleus Enhancer completed and no classes were enhanced. Consult the log for full details -- 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-j...@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: JDO enhancer does not process the annotations
I'm sure the *full* log would tell you way more ... the one where you have things logged at DEBUG level, with the verbose flag set to the enhancer. -- 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-j...@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] problem running my app
Hie By mistake i deleted my eclipse folder. So i freshly got a copy and installed google plugin for eclipse and opened my project. Now when i run it fails giving following exception Error occurred during initialization of VM agent library failed to init: instrument Error opening zip file or JAR manifest missing : D:\Personal\softwares\sakshum_softwares\Google_Apps\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.6.v200910130758\appengine-java-sdk-1.2.6\lib\agent\appengine-agent.jar I feel this is fine that mentioned jar would be missing which is of version 1.2.6 but from where i should remove this reference to fix it? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.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-j...@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: Spring Security with GAE - Adding object into HttpServletRequest does not appear to be working
Hi, I'm also trying to get Spring security to work on GAE. regarding your problem: 1. there is an issue with Spring Security 2.0.5 on GAE, you can find a fix here: http://www.google-app-engine.com/blog/post/Spring-security-fix-for-google-app-engine.aspx 2. I couldn't entirely substantiate it, but I read of a lot of problems deployed GAE has with AOP (as opposed to Google development environment on eclipse). maybe this has something to do with it as well. hope this helps a bit. On Dec 24, 10:46 pm, sulaimanmra...@googlemail.com sulaimanmra...@googlemail.com wrote: Hi, I've created a GAE web application using Spring 3.0 and Spring Security 2.0.5. After a little heartache and help from reading the posts on the forum, I managed to get it all working locally, with users able to register, validate their accounts via email and login in securely. When a user logs in, I wanted to make their details available across the site. I did this by creating an Interceptor, responsible for pulling the prinicipal from the Spring Security Authentication class (retrieved from the SecurityContextHolder) and then placing the object in the HttpServletRequest object. Below is a snippet of code from the interceptor. public void postHandle( HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) { try { Member member = securityContext.getMember(); request.setAttribute(user, member); log.info(injecting user into request); } catch(SecurityRuntimeException e) { // do nothing - will be thrown if no user is logged in } } The user's information is wrapped in a 'Member' object, with the securityContext responsible for retrieving it from the SecurityContextHolder. Locally, on the GAE development environment, everything works fine! The interceptor correctly places the principal in the request and my JSP's can readily access it. However, when I deploy the application to the app engine, it does not appear to work. The logs have not provided any clue as to why the request does not appear to have the principal in it. Is there any reason why the interceptor would not work on the app engine? Or, is it ill-advised to add objects into the HttpServletRequest? I'm tearing my hair out with why it's not working, and it's the only thing within my application that isn't! So any help or advice offered is much appreciated. I'm hoping to have my code up in the Google Code repository so if anyone wants to have a look, they're more than welcome. Thanks! Sully -- 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-j...@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.
Re: [appengine-java] jdoql contains method
http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Introducing_Queries In Query Filters section, it mentions that A filter specifies a field name, an operator, and a value. The value must be provided by the app; it cannot refer to another field, or be calculated in terms of other fields. so it seems to me desc.contains(ing) filter might cause the issue. On Sun, Dec 27, 2009 at 4:19 AM, zackmac zack.macom...@gmail.com wrote: I'm trying to use the contains method in a query and having some trouble. The query is formatted like this: select from Transactions where userName == 'auser' account == 'anAccount' desc.contains(ing) order by transDate desc, categoryName desc is a column in my Transactions table. Don't think I'm quite understanding how the contains method works and how to implement in a query. I get this error returned on my jsp when I try to run that query: org.datanucleus.store.appengine.query.DatastoreQuery $UnsupportedDatastoreFeatureException: Problem with query -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- 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-j...@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] I think it is the bug of Google App Gallery
1. does not convert uppercase to lowercase in tags 2. does not support space for example, when I use Search for apps by tag, if I search pdf, it does not include the apps with tag PDF. -- 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-j...@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] WARNING: No file found for:
Can't seem to get a simple app running. I am using Eclipse 3.4 with the Google plugin. I created a (default) app called App2. I have made no changes to the default code provided by the wizard. First I got the error that favicon.ico was not found. So I added an icon to the war folder. Now I am getting the error WARNING: No file found for /App2. Both of these errors are resulting in a 404 error in the browser. What am I missing? Is there some additional configuration that is required to get started? The Google Getting Started pages don't seem to mention these issues or other special requirements. Thanks, -db -- 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-j...@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.
Re: [appengine-java] Unittesting a connection to the application
For servlet unit testing, I've heard success from folks using HTTPUnit, though I have not used it myself. You can also set up JUnit using EasyMock for the HTTPServletRequest and HTTPServletResponse objects. On Sat, Dec 26, 2009 at 2:32 AM, John Adams jhnj...@gmail.com wrote: Hi Is it possible to get a unit testing environment in Eclipse so that I can make a http connection to the servlet (running locally), send and receive data via POST and get logging output from both the test and the servlet? -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine -- 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-j...@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: JDO Query for properties with null values
Hi, I have the following code: query = pm.newQuery(File.class); query.setFilter(parentKey == parentKeyParam); ListFile storedFiles = (ListFile)query.execute((Key)null); This query is returning all the Files including those with parentKey not null. What is wrong with this query? I am kinda stuck. Please help me. Thanks On Dec 28, 1:24 pm, Ikai L (Google) ika...@google.com wrote: You should be able to query for a null value, but you will not be able to query for an empty value. What is the query you are issuing? What is this returning? On Wed, Dec 23, 2009 at 8:29 AM, dantuluri pdantul...@gmail.com wrote: I am new GAE and I need some help. Is it possible to query for entities with a property value null using GAE JDO query? I want something like Get me all the Files that don't have a parent In regular relational DBs, it can be queried some thing like this: select * from File where parentKey is null I have a class something like this: public class File { �...@persistent �...@primarykey private Key id; �...@persistent String name; @Persistent private Key parentKey; } When I am querying for Files that have null parentKey, query returns all Files including those with non-null parentKey value. Is this possible to do with GAE? Thanks! On Dec 22, 1:33 pm, dantuluri pdantul...@gmail.com wrote: Hi, I have an entity that has the following structure: File which has Key as primary key and ParentKey that refers to another File which is parent of this File. Example data for this structure looks like this: Key: File(2) Name: Inbox parentKey: File(1) It is possible that File may not have a parentKey. I want to query the DataStore for Files that don't have parent file (parentKey == null). But when I am querying with parentKey == null, I am still getting all Files including those with parentsKeys. How can we do this with JDO query with App Store? I must be missing something basic here. Similarly I would like to get the child folders of a given folder (parentKey == File(1)). Any help would be appreciated! Thanks -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine -- 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-j...@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] OpenID
I plan to implement OpenID login on my App. I've found openid4java, joid and dyuproject and can't decide what to use. Also, any of this takes care of authentication cache? Regads -- 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-j...@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: 401 error
I found the problem. On Dec 28, 9:45 pm, Max max.seven@gmail.com wrote: I made mistake in subject line. 405 not 401 On Dec 28, 9:45 pm, Max max.seven@gmail.com wrote: I am developing bulk uploader. I delete all objects from datastore and upload data then delete and upload again. Recently I reached limit. So I was invited to join new paid application created on another google account. I uploaded my project but my servlet returns 405 (Method Not Allowed) error when I try to upload data. Data is uploaded throw POST method. I just changed Application ID it is very strange to me and I do not have any idea how to debug it. Thanks, Max -- 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-j...@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.
Re: [appengine-java] Re: need comment on using @transactional on service layer
the jdo-gae-context.xml is only used for integration tests. Yes, it duplicates the transactions defined in the service layer, but it's configured so that any transaction already started by the service layer will be inherited by the dao layer, so it won't start a new transaction. The nontransactionalread and nontransactionalwrite in the jdoconfig.xml are there because that's what google distributes. Why, or what they do, I don't know. I just used that part as-is. Ask the google boys the what and why. The transient on the logger is just a habit, in case I were to add a logger to a model/domain/dto object. I don't like declaring the logger as static because then I can't use getClass(); if you use MyClass.class instead then you can't copy and paste that line into another file. cw teoh wrote: @Rusty I tried read your codes, 1. you already defined pointcuit for transaction in jdo-gae-context.xml but will still define @transaction.. inside service layer? that is duplicate work right? 2. why do you define transient of logger in service layer? i do understand transient is not serializable, but what it serves in your context ... 3. in your jdoconfig.xml u set property name=javax.jdo.option.NontransactionalRead value=true / property name=javax.jdo.option.NontransactionalWrite value=true / that mean we are not usnig transaction right? -- 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-j...@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. -- 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-j...@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] data loads for tests
I'm working on a gizmo for making it easier to load data into the local data store (e.g., desktop) when doing tests. The file format is xml; a sample follows. I'm using Apache Xerces and SAX; this is my first adventure with parsing an xml file. Basically, the structure of the xml is that the top level is a dataset, and in that you can have 0 or more entity-lists and 0 or more entities. Within an entity-list you can have 1 or more entities; the entity-list specifies the type of the enclosed entities. Within an entity you can have entity-lists and entities. Entities can have properties, of the types supported by the data store (hmm, I just realized that I need to support user defined types as well). Any nesting of entities or entity-lists within entities means that there is parenting. In the example below the two entities in the type1 entity-list are at the top/root level; the entity-list there is a convenience. I'm posting this to get feedback, suggestions, etc. Thanks ds:dataset schemaVersion=0.0 xmlns:ds=urn:xmlns:objecteffects.com:dataset xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=urn:xmlns:objecteffects.com:dataset dataset.xsd ds:entity-list type=type1 ds:entity ds:property name=property1 type=byte value=1 / ds:entity type=type2 / /ds:entity ds:entity ds:property name=property2 type=long value=2 / /ds:entity /ds:entity-list ds:entity type=type3 ds:property name=property3 type=string value=3 / ds:property-binary name=property4 type=base64Binary ff aa /ds:property-binary ds:entity-list type=type4 ds:entity / /ds:entity-list /ds:entity /ds:dataset -- 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-j...@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] Do JPA objects show up in the admin colsole ?
Hi, I have just written my very first app, and it attempts to store an object using JPA. The code is as below. with the Employee and EMF classes copy / pasted from the docs. These lines were added to a default project, created with GWT support. snip Employee emp = new Employee(); EMF.get().createEntityManager().persist(emp); /snip I have created the persistance.xml file, and get no error when I run. My Question is :- = I see no obejcts in the Datastore Viewer (admin console) pages (Both production and dev mode) Is this something that is not currently implemented in the console ? Or (more likely) could it be a bug in my code ? Thanks -- 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-j...@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.
Re: [appengine-java] Do JPA objects show up in the admin colsole ?
On Wed, Dec 30, 2009 at 12:51 AM, newbie100 shahed...@gmail.com wrote: Hi, I have just written my very first app, and it attempts to store an object using JPA. The code is as below. with the Employee and EMF classes copy / pasted from the docs. These lines were added to a default project, created with GWT support. snip Employee emp = new Employee(); EMF.get().createEntityManager().persist(emp); /snip I have created the persistance.xml file, and get no error when I run. My Question is :- = I see no obejcts in the Datastore Viewer (admin console) pages (Both production and dev mode) Is this something that is not currently implemented in the console ? Or (more likely) could it be a bug in my code ? It's an error in your app. Try to begin with the tutorials provided at the App Engine site to get a feeling how things work... ra -- 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-j...@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: Code does not run server side.
Hi , I have a request for gae-j, is it not a good idea to have an 1) appengine simulator as a java eclipse plugin or sandbox account for testing app on the server , so that it is easier to debug ... i have come across numerous scenario where thing work locally and dont work on app engine, it has been a big turnoff for me to use appengine with thirdparty libs/frameworks is it on the road map? Thank you On Dec 28, 2:14 pm, Ikai L (Google) ika...@google.com wrote: Do you have a stack trace or an error? What are the visible symptoms of your problems running in production? On Thu, Dec 24, 2009 at 7:50 AM, Bert Peters bert.ljpet...@gmail.comwrote: Some code, that i created and tested using Eclipse and the google plugin, seems not to run while installed on the App Engine, no matter what. I have really no idea what it couldd be, Anyone else an idea? By the way, the code for all files is listed below. Main file: package poaphost; import javax.servlet.http.*; import javax.jdo.Query; import javax.jdo.PersistenceManager; import java.io.IOException; import poaphost.PMF; import poaphost.Address; import poaphost.Iphandler; import java.util.Locale; import java.util.Random; import java.util.List; import java.util.Date; import java.util.Formatter; public class LOGONServlet extends HttpServlet { /** * */ private static final long serialVersionUID = 1373256072813419920L; public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { String uid = ; Cookie[] cookies = req.getCookies(); for (Integer i = 0; i cookies.length; i++) { if (cookies[i].getName().equals(poap_uid) cookies[i].getValue().length() == 8) { uid = cookies[i].getValue(); } } if (uid == ) { String base = abcdefghijklmnopqrstuvwxyz1234567890; Random generator = new Random(); for (Integer i = 0; i 8; i++) { uid += base.charAt(generator.nextInt(35)); } } String ip = req.getRemoteAddr(); Long ipNo = Iphandler.ip2long(ip); PersistenceManager pm = PMF.get().getPersistenceManager(); Query q = pm.newQuery(Address.class, ip == ipParam code == uidParam); q.declareParameters(Long ipParam, String uidParam); ListAddress result = (ListAddress) q.execute(ipNo, uid); if (result.isEmpty()) { Address a = new Address(ipNo, uid); pm.makePersistent(a); } Cookie c = new Cookie(poap_uid,uid); c.setPath(/); c.setDomain(http://poaphost.appspot.com;); c.setMaxAge(60*60*24*365); resp.setContentType(text/xml); resp.setCharacterEncoding(ISO-8859-1); resp.addCookie(c); Date d = new Date(); Long i = d.getTime(); Double f = i.doubleValue() / 1000; StringBuilder sb = new StringBuilder(); Formatter formatter = new Formatter(sb, Locale.US); formatter.format(%11.4f, f); resp.getWriter().println( ?xml version=\1.0\ encoding=\ISO-8859-1\?); resp.getWriter().println(response); resp.getWriter().println(actionlogon/action); resp.getWriter().println(result1/result); resp.getWriter().println(error0/error); resp.getWriter().println(time + sb.toString() + /time); resp.getWriter().println(timeOffset0/timeOffset); resp.getWriter().println(uid + uid + /uid); resp.getWriter().println(/response); } } poaphost.PMF file package guestbook; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManagerFactory; public final class PMF { private static final PersistenceManagerFactory pmfInstance = JDOHelper.getPersistenceManagerFactory(transactions- optional); private PMF() {} public static PersistenceManagerFactory get() { return pmfInstance; } } file poaphost.iphandler package poaphost; public class Iphandler { public static long ip2long( String aIpAddress ) { long ip = 0; String[] t = aIpAddress.split(\\.); ip = Long.parseLong(t[0]) * 256 * 256 * 256; ip += Long.parseLong(t[1]) * 256 * 256; ip += Long.parseLong(t[2]) * 256; ip += Long.parseLong(t[3]);
[appengine-java] New issue tracker template for production issues
Hi Everyone. Just a note that Googler replies may be slower over the next couple of weeks as we take a short pause to welcome the new year. During this break, we will be piloting a new issue tracker template for speedier resolution of production issues. In the rare event that your app experiences an urgent production-related issue that requires App Engine team assistance, such as a stuck index, quota denials, or other serving issues that aren't recorded in the error logs, please head to the issue tracker, click the New issue link, and choose Production issue from the list of available templates. http://code.google.com/p/googleappengine/issues/entry?template=Production%20issue Note that this is not for general bugs -- you should continue using the Python defect or Java defect templates for these -- and we will be closing issues that are not production related with the expectation that you will report your issue in the discussion groups or file a new bug. We're piloting this so we can more quickly help applications that require the App Engine team's direct attention, so please try to file your issues appropriately. Have a happy (and safe!) holiday, and we'll check in again soon. -- 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-j...@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] Re: logging debug on dev appserver
By default, loggind.debug are not printed. You can change this or use logging.info which is printed by default. Regards. On Dec 28, 11:21 am, djidjadji djidja...@gmail.com wrote: Look in the window where you are running the dev-server. The logging messages are printed there. 2009/12/27 dhruvg dhruv.g...@gmail.com: is there a way to view logs on the development server? i am using the standard logging framework, but currently, i need to upload my app to the web to see the logs in the admin console. is there a way to view logs locally, so I can make sure everything is working locally rather than uploading the app to the web? -- 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 athttp://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.
Re: [google-appengine] Re: Need Help with Datastore Query
expensive instruction to redo or question is int(self.request.get('id')) so avoid casting for 1 2009/12/28 Ms. Jen blackpho...@gmail.com: I tried the Meta and DjangoForms and it still did not work. On another attempt, I tried this with the Meta djangoforms: id = int(self.request.get('id')) band_id = Band.getBandByID(id) query = Band.gql(WHERE ID = :1, 'band_id') band_edit = query.get() self.response.out.write(template.render('editband.html', {'band_edit': band_edit })) which will render the page but not the form between the {% for band in band_band %} {% endfor %} in the template and it is not displaying the Band.db entity properties. If I add : for band in band_edit: self.response.out.write(template.render('editband.html', {'band_edit': band_edit })) I then get the error: TypeError: 'NoneType' object is not iterable Which leads me to think that the id as band_id is not being passed to the query. Anyone? -- 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. -- 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 make SetKey persistent?
No, not at all. makePersistent() means the object is managed by persistent manager. All changes made to this object should be stored. The save call is pm.close(). And it works this way for fields like String. If I have class class Dummy{ @Persistent String name; @Persistent ListLong list; } and run this code Dummy d = new Dummy(); d.setName(name); pm.makePersistent(d); d.setName(new name); pm.close(); name new name will be stored. What is correct. But any modifications to list made after pm.makePersistent(d); are lost. This is a problem. On Dec 28, 5:30 pm, Ikai L (Google) ika...@google.com wrote: This actually sounds like it is working correctly. makePersistent() is the save call. You should not be calling this until all the changes you intend on making have been made to the object you are persisting. Another option you have is to detach the object, but this has its own gotchas as well. On Sat, Dec 26, 2009 at 11:55 AM, ailinykh ailin...@gmail.com wrote: Ok. I narrowed down the problem. What I want is to maintain unowned relationship. I have simple class with set of Long (they are supposed to be ids of other objects): @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Dummy { �...@override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(id); sb.append(, Keys ); sb.append(idSet); return sb.toString(); } �...@primarykey �...@persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; �...@persistent SetLong idSet = new HashSetLong(); public void addId(Long id){ idSet.add(id); } public Key getKey(){ return id; } } The problem is- if I create new object of class Dummy and make it persistent @Test public void testIt(){ Dummy p = new Dummy(); PersistenceManager pm = PMF.get().getPersistenceManager(); p.addId((long)1); pm.makePersistent(p); p.addId((long)2); Key id = p.getKey(); pm.close(); pm = PMF.get().getPersistenceManager(); Dummy pp = pm.getObjectById(Dummy.class, id); System.out.println(pp); } it ignores all changes to idSet made after makePersistent() call. So, for code above I have: Dummy(1), Keys [1] Key 2 is lost. But when I restore by pm.getObjectById(Dummy.class, id); everything looks good. I can add and more ids and restore them successfully: @Test public void testIt(){ Dummy p = new Dummy(); PersistenceManager pm = PMF.get().getPersistenceManager(); p.addId((long)1); pm.makePersistent(p); p.addId((long)2); Key id = p.getKey(); pm.close(); pm = PMF.get().getPersistenceManager(); Dummy pp = pm.getObjectById(Dummy.class, id); System.out.println(pp); pp.addId((long)3); pp.addId((long)4); System.out.println(pp); pm.close(); pm = PMF.get().getPersistenceManager(); Dummy ppp = pm.getObjectById(Dummy.class, id); System.out.print(ppp); } here I have what I'm supposed to have: Dummy(1), Keys [1] Dummy(1), Keys [1, 3, 4] Dec 26, 2009 1:43:29 PM org.datanucleus.ObjectManagerImpl close INFO: Outstanding nontx update being committed to datastore Dummy(1), Keys [1, 3, 4] So, it looks like it is not possible to maintain unowned relationship. Did anybody create unowned relationship? Thank you, Andrey On Dec 26, 12:10 am, ailinykh ailin...@gmail.com wrote: Hello, everybody! I try to achieve simple thing - storing a set of keys. I have two classes: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Account { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; �...@persistent(mappedBy=account) ListLabel labels = new ArrayListLabel(); @Persistent SetKey ids = new HashSetKey(); } @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Label { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; �...@persistent private Account account; } I created new Account Account a = new Account(); then added two Labels to Account, then added Label's keys to ids set. As result I have for ids: [Account(1)/Label(4), Account(1)/Label(3)] which looks correct. Then I called pm.makePersistent(a), pm.close(); I created new instance
[google-appengine] Forking new process from within app engine?
Hi everybody. I need to invoke an external process in one of my app engine pages like so: import subprocess p = subprocess.Popen(ls -la, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for line in p.stdout.readlines(): self.response.out.write(line) retval = p.wait() This code works fine in regular python but app engine says AttributeError: 'module' object has no attribute 'Popen' wondering if calling an external application or forking a process is possible. I'm doubtful because of the security implications, but im also a newbie at python. Thanks Y'all -- 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] Google App Engine Launcher on Mac OS -- access from external interface
It seems I can only access the GAE Launcher using the localhost interface (e.g. http://localhost:9001) from the machine hosting GAE Launcher. If I use the actual IP address of the machine (http: 192.168.2.3:9001) there is no connection. Anyone know how to hook up the external interface to localhost? -- 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 is the point of the PostalAddressProperty?
If you cannot query on or sort on the individual fields of the address it is rather useless. I could just store the field as text. I assume that the major advantage is that you can export the item in the gd: XML namespace with out doing any extra work. That being said, I would think exporting the address in a way that google contacts can read the address is far less important that being able to sort by zip code, state, city, etc... For those searching for an answer to the question of querying on a zip filed in a PostalAddressProperty or sorting on a field in a PostalAddressProperty, the overwhelming answer I have come across is you cannot. It would seem that the best solution is to store the address fields in individual variables and when a request for a gd: address or full address is made, construct the PostalAddressProperty on the fly. Perhaps the PostalAddressProperty is not documented in a way that allows me to see the value, or all of the sample applications simply make no use of addresses and I am just missing the point. If others have any examples of the value of this object please do respond. -- 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.
Re: [google-appengine] Re: how to make SetKey persistent?
My experience with JPA in general has always been that operations were wrapped in a transaction and changes were persisted on the commit() call of the transaction object, not on the closing of the PersistenceManager/EntityManager. When a transaction object is not used, App Engine docs state this: Referring to makePersistent: The call to makePersistent() is synchronous, and doesn't return until the object is saved and indexes are updated. It's when you update an object that close() is used to flush the object to persistent store: One way to update an object with JDO is to fetch the object, then modify it while the PersistenceManager that returned the object is still open. Changes are persisted when the PersistenceManager is closed. This is from this URL: http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html On Tue, Dec 29, 2009 at 6:47 AM, ailinykh ailin...@gmail.com wrote: No, not at all. makePersistent() means the object is managed by persistent manager. All changes made to this object should be stored. The save call is pm.close(). And it works this way for fields like String. If I have class class Dummy{ @Persistent String name; @Persistent ListLong list; } and run this code Dummy d = new Dummy(); d.setName(name); pm.makePersistent(d); d.setName(new name); pm.close(); name new name will be stored. What is correct. But any modifications to list made after pm.makePersistent(d); are lost. This is a problem. On Dec 28, 5:30 pm, Ikai L (Google) ika...@google.com wrote: This actually sounds like it is working correctly. makePersistent() is the save call. You should not be calling this until all the changes you intend on making have been made to the object you are persisting. Another option you have is to detach the object, but this has its own gotchas as well. On Sat, Dec 26, 2009 at 11:55 AM, ailinykh ailin...@gmail.com wrote: Ok. I narrowed down the problem. What I want is to maintain unowned relationship. I have simple class with set of Long (they are supposed to be ids of other objects): @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Dummy { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(id); sb.append(, Keys ); sb.append(idSet); return sb.toString(); } @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent SetLong idSet = new HashSetLong(); public void addId(Long id){ idSet.add(id); } public Key getKey(){ return id; } } The problem is- if I create new object of class Dummy and make it persistent @Test public void testIt(){ Dummy p = new Dummy(); PersistenceManager pm = PMF.get().getPersistenceManager(); p.addId((long)1); pm.makePersistent(p); p.addId((long)2); Key id = p.getKey(); pm.close(); pm = PMF.get().getPersistenceManager(); Dummy pp = pm.getObjectById(Dummy.class, id); System.out.println(pp); } it ignores all changes to idSet made after makePersistent() call. So, for code above I have: Dummy(1), Keys [1] Key 2 is lost. But when I restore by pm.getObjectById(Dummy.class, id); everything looks good. I can add and more ids and restore them successfully: @Test public void testIt(){ Dummy p = new Dummy(); PersistenceManager pm = PMF.get().getPersistenceManager(); p.addId((long)1); pm.makePersistent(p); p.addId((long)2); Key id = p.getKey(); pm.close(); pm = PMF.get().getPersistenceManager(); Dummy pp = pm.getObjectById(Dummy.class, id); System.out.println(pp); pp.addId((long)3); pp.addId((long)4); System.out.println(pp); pm.close(); pm = PMF.get().getPersistenceManager(); Dummy ppp = pm.getObjectById(Dummy.class, id); System.out.print(ppp); } here I have what I'm supposed to have: Dummy(1), Keys [1] Dummy(1), Keys [1, 3, 4] Dec 26, 2009 1:43:29 PM org.datanucleus.ObjectManagerImpl close INFO: Outstanding nontx update being committed to datastore Dummy(1), Keys [1, 3, 4] So, it looks like it is not possible to maintain unowned relationship. Did anybody create unowned relationship? Thank you, Andrey On Dec 26, 12:10 am, ailinykh
Re: [google-appengine] Forking new process from within app engine?
From here: http://code.google.com/appengine/docs/python/runtime.html#The_Sandbox http://code.google.com/appengine/docs/python/runtime.html#The_Sandbox An App Engine application cannot: - write to the filesystem. Applications must use the App Engine datastorehttp://code.google.com/appengine/docs/python/datastore/ for storing persistent data. Reading from the filesystem is allowed, and all application files uploaded with the application are available. - open a socket or access another host directly. An application can use the App Engine URL fetch servicehttp://code.google.com/appengine/docs/python/urlfetch/ to make HTTP and HTTPS requests to other hosts on ports 80 and 443, respectively. - spawn a sub-process or thread. A web request to an application must be handled in a single process within a few seconds. Processes that take a very long time to respond are terminated to avoid overloading the web server. - make other kinds of system calls. On Mon, Dec 28, 2009 at 9:08 PM, AL amle...@gmail.com wrote: Hi everybody. I need to invoke an external process in one of my app engine pages like so: import subprocess p = subprocess.Popen(ls -la, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for line in p.stdout.readlines(): self.response.out.write(line) retval = p.wait() This code works fine in regular python but app engine says AttributeError: 'module' object has no attribute 'Popen' wondering if calling an external application or forking a process is possible. I'm doubtful because of the security implications, but im also a newbie at python. Thanks Y'all -- 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. -- Ikai Lan Developer Programs Engineer, Google 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-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.
Re: [google-appengine] Google App Engine Launcher on Mac OS -- access from external interface
There should be an option to force the launcher to bind to 0.0.0.0, which means bind to all addresses on this interface. From the command line it is -a 0.0.0.0. There should be an option to specify command line options for applications launched from the GUI launcher where you can add this. On Mon, Dec 28, 2009 at 8:40 PM, Bruce S bruce.schwa...@gmail.com wrote: It seems I can only access the GAE Launcher using the localhost interface (e.g. http://localhost:9001) from the machine hosting GAE Launcher. If I use the actual IP address of the machine (http: 192.168.2.3:9001) there is no connection. Anyone know how to hook up the external interface to localhost? -- 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. -- Ikai Lan Developer Programs Engineer, Google 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-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] Modules and .getSimpleName()
Hello. I have an abstract class that some of my modules descend from, and when i include those modules into web pages, i insert them into divs with the id coinciding with the name of the class. I tried to do something like RootPanel.get(this.getClass().getSimpleName()).add(stuffToAdd); But it didn't compile. Is there another way to get the class's simple name? Thank you in advance, Timofey Danshin. -- 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: Updating an object fails when accessing application through Twilio
Look in your twilio account, in the debugger it will tell you what the twilio api is doing and what url it is acting on. I have a few apps using twilio and GAE. On Dec 28, 3:39 pm, Ikai L (Google) ika...@google.com wrote: I'm not familiar with Twilio. Is it their client that is doing the GET or POST? It's possible they are not passing the parameters correctly if it works for you in a normal browser connected directly to your application. Can you log the incoming parameters and URI string with their request on the server side? On Sat, Dec 26, 2009 at 5:53 PM, Kelvin krsc2...@gmail.com wrote: Hi, I have an application that receives parameters two parameters using GET method. The parameters are: Caller, Digits Using those two parameters it actually updates an object in the datastore. The problem I'm having is that if I use a web browser to access the link which receives the parameters everything works fine, the records are updated. However, when I point my Twilio phone number to the application it actually looks like it is working fine over the phone, the process goes as it's supposed to look but the record never gets updated (i'm passing the exact same parameters. I have tried switching from POST to GET and back and forth but no luck so far. Any ideas as to why this is happening? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google 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-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.
Re: [google-appengine] Building indexes stuck?
Harlan, what is your app ID? On Tue, Dec 29, 2009 at 9:07 AM, Harlan Crystal harlan.crys...@gmail.comwrote: Hi all! I made the mistake of requesting an index that I don't need on a on a fairly large table. The index has been building for over 12 hours and has barely made any progress at all. The info on this index building process is: Building Queued: 3139 Running: 39 Completed: 92 Total: 3270 Is there a way I can cancel the request to build this index? I don't think I need it. On another (probably releated) issue, I also need to create a different index on that same table and it hasn't appeared to have even begun building in the last 6 hours. Is there anything I need to do to kick it off? Here's the info on that index building process: Building Queued: 9 Running: 0 Completed: 0 Total: 9 thank you, -harlan -- 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. -- Ikai Lan Developer Programs Engineer, Google 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-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: Google App Engine Launcher on Mac OS -- access from external interface
Thanks! Invoking the launcher from the command line with the flag you recommended worked. I couldn't figure out how to get the Google App Engine Launcher for Mac OS to do it though. On Dec 29, 10:14 am, Ikai L (Google) ika...@google.com wrote: There should be an option to force the launcher to bind to 0.0.0.0, which means bind to all addresses on this interface. From the command line it is -a 0.0.0.0. There should be an option to specify command line options for applications launched from the GUI launcher where you can add this. On Mon, Dec 28, 2009 at 8:40 PM, Bruce S bruce.schwa...@gmail.com wrote: It seems I can only access the GAE Launcher using the localhost interface (e.g.http://localhost:9001) from the machine hosting GAE Launcher. If I use the actual IP address of the machine (http: 192.168.2.3:9001) there is no connection. Anyone know how to hook up the external interface to localhost? -- 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. -- Ikai Lan Developer Programs Engineer, Google 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-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.
Re: [google-appengine] Re: Updating an object fails when accessing application through Twilio
plez dont seand to me any email mor On Tue, Dec 29, 2009 at 1:58 PM, dreadjr drea...@gmail.com wrote: Look in your twilio account, in the debugger it will tell you what the twilio api is doing and what url it is acting on. I have a few apps using twilio and GAE. On Dec 28, 3:39 pm, Ikai L (Google) ika...@google.com wrote: I'm not familiar with Twilio. Is it their client that is doing the GET or POST? It's possible they are not passing the parameters correctly if it works for you in a normal browser connected directly to your application. Can you log the incoming parameters and URI string with their request on the server side? On Sat, Dec 26, 2009 at 5:53 PM, Kelvin krsc2...@gmail.com wrote: Hi, I have an application that receives parameters two parameters using GET method. The parameters are: Caller, Digits Using those two parameters it actually updates an object in the datastore. The problem I'm having is that if I use a web browser to access the link which receives the parameters everything works fine, the records are updated. However, when I point my Twilio phone number to the application it actually looks like it is working fine over the phone, the process goes as it's supposed to look but the record never gets updated (i'm passing the exact same parameters. I have tried switching from POST to GET and back and forth but no luck so far. Any ideas as to why this is happening? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com . To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google 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-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] URL slugs
Hi All, Just wrote a little post on implementing pretty URL slugs with the routes package, for my GAE application at www.braineos.com. I'd be interested to know if anyone else has done this? Cheers, Luc -- 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: Need Help with Datastore Query
Avoid casting for what? The number 1 or for an id? Are you saying that one should not be attempting to request a datastore ID from a URL? From a search of this and other groups, over a year ago there was a bug in getting by the ID, but it is not a bug anymore. If I take out the in(self.request.get('id')), then I get an error that says: BadValueError: Unsupported type for property : type 'builtin_function_or_method' Do you have another way that you prefer to pass an identifier in the URL path that then the identifier may be passed to the next datastore search? If so, please send link. -- 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] quota is not changed
We tried to increase quota but 3 hours passed and quota is not changed. We are uploading our data to appegine and that is we need more recourses. -- 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: Google App Engine Launcher on Mac OS -- access from external interface
greetings bruce! i was just discussing your situation with Ikai and found the solution. pull up the GUI launcher, select the app you wish to modify with the flag, click right-mouse or double-click it if you only have a 1-button mouse. a dialog will pop open. go down to the Extra Flags text field and enter the -a 0.0.0.0 option (obviously without the quotes), click update to close the dialog, then stop and restart your app. it should then be accessible either via localhost or an assigned IP address! hope this helps! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wesc+...@google.com developer relations :: google app engine On Dec 29, 11:36 am, Bruce S bruce.schwa...@gmail.com wrote: Thanks! Invoking the launcher from the command line with the flag you recommended worked. I couldn't figure out how to get the Google App Engine Launcher for Mac OS to do it though. On Dec 29, 10:14 am, Ikai L (Google) ika...@google.com wrote: There should be an option to force the launcher to bind to 0.0.0.0, which means bind to all addresses on this interface. From the command line it is -a 0.0.0.0. There should be an option to specify command line options for applications launched from the GUI launcher where you can add this. On Mon, Dec 28, 2009 at 8:40 PM, Bruce S bruce.schwa...@gmail.com wrote: It seems I can only access the GAE Launcher using the localhost interface (e.g.http://localhost:9001) from the machine hosting GAE Launcher. If I use the actual IP address of the machine (http: 192.168.2.3:9001) there is no connection. Anyone know how to hook up the external interface to localhost? -- 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%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google 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-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: Forking new process from within app engine?
Even though App Engine doesn't allow spawning new threads, you could expose each subprocess on its own URI and run them asynchronously with urlfetch: http://code.google.com/appengine/docs/python/urlfetch/asynchronousrequests.html On Dec 28, 9:08 pm, AL amle...@gmail.com wrote: Hi everybody. I need to invoke an external process in one of my app engine pages like so: import subprocess p = subprocess.Popen(ls -la, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for line in p.stdout.readlines(): self.response.out.write(line) retval = p.wait() This code works fine in regular python but app engine says AttributeError: 'module' object has no attribute 'Popen' wondering if calling an external application or forking a process is possible. I'm doubtful because of the security implications, but im also a newbie at python. Thanks Y'all -- 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.
Re: [google-appengine] Re: Need Help with Datastore Query
Hi Jen, have you considered using a key name instead of an id? Then instead of needing to use an int, your id can be a string? Robert On Tue, Dec 29, 2009 at 2:51 PM, Ms. Jen blackpho...@gmail.com wrote: Avoid casting for what? The number 1 or for an id? Are you saying that one should not be attempting to request a datastore ID from a URL? From a search of this and other groups, over a year ago there was a bug in getting by the ID, but it is not a bug anymore. If I take out the in(self.request.get('id')), then I get an error that says: BadValueError: Unsupported type for property : type 'builtin_function_or_method' Do you have another way that you prefer to pass an identifier in the URL path that then the identifier may be passed to the next datastore search? If so, please send link. -- 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. -- 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: Need Help with Datastore Query
howdy jen... great to see you on App Engine! as far as your problem goes, have you checked to see just what *are* the IDs of the objects you've stored? you seem to be trying to select them, but perhaps their values are not what you're expecting (hence the query failures). i would just like to see a query that pulls up your data entities then displays their IDs if 'id' is a property of your object. if you're just creating and storing them with put, you're taking the default ID that App Engine assigns, so in these cases, you need to fetch an entity's key in order to get to its ID... something like this: bands = Band.gql('') for band in bands: self.response.out.write('br%s: %sp\n' % (band.key().id_or_name (), band.band)) let us know what you get! cheers, -wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wesc+...@google.com developer relations :: google app engine On Dec 27, 10:33 pm, Ms. Jen blackpho...@gmail.com wrote: Hello All(), I have been struggling with attempting to run a datastore query and keep getting the same error even though I have read through all the docs on Queries and Keys, watching several of the Google I/O videos, as well as looking at a number other apps' source code to see how they are done. The error I get is: Traceback (most recent call last): File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/ext/webapp/__init__.py, line 507, in __call__ handler.get(*groups) File /Users/msjen/Dev/alex/alexsbarbooking/editband.py, line 41, in get self._displayEditBandPage() File /Users/msjen/Dev/alex/alexsbarbooking/editband.py, line 32, in _displayEditBandPage raise ValueError, 'Band with ID %d does not exist.' % id ValueError: Band with ID 2 does not exist. My code is: id = int(self.request.get('id')) band_id = Band.get(db.Key.from_path('Band', id)) if band_id: band_query = Band.gql(WHERE ID = , id) band = band_query.fetch(1) self.response.out.write('Band query successful. %s : %d' % band.band_name, id) if not band_edit: raise ValueError, 'Band query with ID %d did not get the info from the datastore.' % id if not band_id: raise ValueError, 'Band with ID %d does not exist.' % id I have imported the db.model of band: from band import Band The other error I get if I use other code samples is that the global variable of 'band' is not recognized, even though I have imported the model. the URL path that I am requesting the id from is:http://localhost:8080/editband/?id=2 And I am able to run a self.write.reponse to write out the requested id from the path. The problem seems to lie in passing the requested path id into the query where I want to filter it by the requested id. Please, please, tell me that another set of eyes can spot what I am doing wrong here Thanks in advance, Jen -- 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: Need Help with Datastore Query
On Dec 28, 6:33 am, Ms. Jen blackpho...@gmail.com wrote: I have been struggling with attempting to run a datastore query and keep getting the same error even though I have read through all the docs on Queries and Keys, watching several of the Google I/O videos, as well as looking at a number other apps' source code to see how they are done. This bit doesn't make sense: id = int(self.request.get('id')) band_id = Band.get(db.Key.from_path('Band', id)) Band.get(key) returns a model, not an 'id'. But there is an easier way: a_band_instance = Band.get_by_id(id) Given the above, this next section doesn't make sense because you already have a band object: if band_id: band_query = Band.gql(WHERE ID = , id) band = band_query.fetch(1) Unless you specifically created an 'ID' attribute in your Band model, you are probably mistaking it for the built-in '__key__' attribute, which is what get() and get_by_id() use in the first example. if not band_instance: # The 'id' you are passing in is wrong. # Where did you get it from? You could log in to the admin interface and use the data browser to double-check what Band models you have saved. -- 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] Billing Administrator change
My account is now showing a billing administrator. I would like to add a billing admin so I can transfer the billing to someone else without experiencing down time. Any suggestions? Thanks, Vaughn -- 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: Need Help with Datastore Query
A previous version of the AppEngine docs claimed that key_name values couldn't be numbers (or start with numbers). Perhaps that is related to the year old bug you describe? The current AppEngine docs have been revised (only the double underscore case remains), and a quick test confirms that 'numeric' key_name are allowed (as long as they are expressed as strings). o = Model.get_by_id( 42 ) o = Model.get_by_key_name( '56' ) The source of the value doesn't matter (URL, whatever). The type does matter. o = Model.get_by_id( int( v ) ) o = Model.get_by_key_name( str( v ) ) Deciding which to use, from a mixed source (ids and key_names), can still be tricky. :) -- G Ms. Jen wrote: Avoid casting for what? The number 1 or for an id? Are you saying that one should not be attempting to request a datastore ID from a URL? From a search of this and other groups, over a year ago there was a bug in getting by the ID, but it is not a bug anymore. If I take out the in(self.request.get('id')), then I get an error that says: BadValueError: Unsupported type for property : type 'builtin_function_or_method' Do you have another way that you prefer to pass an identifier in the URL path that then the identifier may be passed to the next datastore search? If so, please send link. -- 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] A simple search against a datastore. (Newbie to AppEngine, currently PHP/MySQL).
In trying to make a transition from a purely PHP/MySQL background to AppEngine's Python/Datastore I find myself not quite getting done what I need. Currently I have a web application in which a user chooses multiple search criteria via an HTML form and passes those variables to a PHP script that in turn queries a MySQL database and then displays the results based on what they were looking for. The data is largely static in that it doesn't get changed or added to very often but the specifics that a user searches on can vary greatly, eg., SELECT * FROM widgets WHERE color = 'blue'; or SELECT * FROM widgets WHERE color = 'orange' weight 3; etc. (From the search form the user can choose from 1 to 20 different criteria). I've been doing a lot of reading and a LOT of Google searching looking for an example of what I am trying to accomplish, which one wouldn't think would be difficult to get results since I'm just basically wanting to submit multiple search criteria against the datastore and retrieving the relevant results. At this point I would ask and greatly appreciate a pointer, an example, a link to somewhere or anything that could help me in my endeavor so I may get myself back on track. Will go back to reading the docs and I thank you for your time, Q. -- 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.
Re: [google-appengine] A simple search against a datastore. (Newbie to AppEngine, currently PHP/MySQL).
This page is pretty much required reading: http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html That covers the low level queries, how exactly you do it within the context of your application, is very hard to say, because we dont know the specifics. 2009/12/29 Diligent qpwoeir...@comcast.net: In trying to make a transition from a purely PHP/MySQL background to AppEngine's Python/Datastore I find myself not quite getting done what I need. Currently I have a web application in which a user chooses multiple search criteria via an HTML form and passes those variables to a PHP script that in turn queries a MySQL database and then displays the results based on what they were looking for. The data is largely static in that it doesn't get changed or added to very often but the specifics that a user searches on can vary greatly, eg., SELECT * FROM widgets WHERE color = 'blue'; or SELECT * FROM widgets WHERE color = 'orange' weight 3; etc. (From the search form the user can choose from 1 to 20 different criteria). I've been doing a lot of reading and a LOT of Google searching looking for an example of what I am trying to accomplish, which one wouldn't think would be difficult to get results since I'm just basically wanting to submit multiple search criteria against the datastore and retrieving the relevant results. At this point I would ask and greatly appreciate a pointer, an example, a link to somewhere or anything that could help me in my endeavor so I may get myself back on track. Will go back to reading the docs and I thank you for your time, Q. -- 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. -- 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] Google App Engine admin not logging in to Google Apps Account.
My Google Apps domain is dvir.us, and my username on it is min, so my Google Apps Account is m...@dvir.us. My Google Account is also m...@dvir.us. I wrote an app in Google App Engine with my Google Apps Account. I made an administrator page using Google's authentication mechanism. When I log in, it tells me that I am unauthorized, which is possibly because it logs in to my Google Account, m...@dvir.us, that is not in any way linked to my Google Apps Account (I wish it was). I can't register my Google Account as an admin/developer because m...@dvir.us (the Google Apps Account) is already an admin and it says that m...@dvir.us is already an admin. I added another unrelated email account as an admin, and unregistered my Google Apps Account (m...@dvir.us) from admin. I tried to resend an admin invitation to m...@dvir.us, and within the email, it asks me whether this is a Google Account or a Google Apps account. When I select the Google Account option, it makes my Google Apps Account admin instead of my Google Account. I think the best and most elegant way to fix this is to allow account linking, and to automatically link the Google Account and Google Apps Account. However, I believe that my Google Account should be equivalent to my Google Apps Account. -- 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.
Re: [google-appengine] A simple search against a datastore. (Newbie to AppEngine, currently PHP/MySQL).
2009/12/29 Diligent qpwoeir...@comcast.net: In trying to make a transition from a purely PHP/MySQL background to AppEngine's Python/Datastore I find myself not quite getting done what I need. Currently I have a web application in which a user chooses multiple search criteria via an HTML form and passes those variables to a PHP script that in turn queries a MySQL database and then displays the results based on what they were looking for. The data is largely static in that it doesn't get changed or added to very often but the specifics that a user searches on can vary greatly, eg., SELECT * FROM widgets WHERE color = 'blue'; or SELECT * FROM widgets WHERE color = 'orange' weight 3; etc. (From the search form the user can choose from 1 to 20 different criteria). I've been doing a lot of reading and a LOT of Google searching looking for an example of what I am trying to accomplish, which one wouldn't think would be difficult to get results since I'm just basically wanting to submit multiple search criteria against the datastore and retrieving the relevant results. At this point I would ask and greatly appreciate a pointer, an example, a link to somewhere or anything that could help me in my endeavor so I may get myself back on track. Will go back to reading the docs and I thank you for your time, Q. djangoforms are very good and a legacy sync would be remote api or quickfixed your own http tunnel for the technical effort sql⇌gql heuristically from java/php/mysql/xml next implementation in yaml and gql factor 10 cleanliness improvement and superior readibility overall technically selfevident choice lucrative unsaid. -- 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.
Re: [google-appengine] A simple search against a datastore. (Newbie to AppEngine, currently PHP/MySQL).
2 most helpful for legacy connections and refactoring links djangoform and remote_api http://code.google.com/appengine/articles/djangoforms.html http://code.google.com/appengine/articles/remote_api.html -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-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.
Re: [google-appengine] URL slugs
2009/12/29 lucrussell russell@googlemail.com: Hi All, Just wrote a little post on implementing pretty URL slugs with the routes package, for my GAE application at www.braineos.com. I'd be interested to know if anyone else has done this? Cheers, Luc Agreed like key().id(),defaultfilters.slugify(mymodel.title) -- 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.
Re: [google-appengine] Re: Updating an object fails when accessing application through Twilio
On Tue, Dec 29, 2009 at 12:38 PM, mazen samir maze...@gmail.com wrote: plez dont seand to me any email mor What does this phrase mean? Where you having any issues with Twilio? -- 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] New issue tracker template for production issues
Hi Everyone. Just a note that Googler replies may be slower over the next couple of weeks as we take a short pause to welcome the new year. During this break, we will be piloting a new issue tracker template for speedier resolution of production issues. In the rare event that your app experiences an urgent production-related issue that requires App Engine team assistance, such as a stuck index, quota denials, or other serving issues that aren't recorded in the error logs, please head to the issue tracker, click the New issue link, and choose Production issue from the list of available templates. http://code.google.com/p/googleappengine/issues/entry?template=Production%20issue Note that this is not for general bugs -- you should continue using the Python defect or Java defect templates for these -- and we will be closing issues that are not production related with the expectation that you will report your issue in the discussion groups or file a new bug. We're piloting this so we can more quickly help applications that require the App Engine team's direct attention, so please try to file your issues appropriately. Have a happy (and safe!) holiday, and we'll check in again soon. -- 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 send massive emails and avoid being suspended?
It is unlikely someone would mark as spam an e-card from somebody they know. Maybe some company use your service to send spam ? Make sure users of your service need to create an account(with a captcha) and set a daily limit for number of e-card sent. On Dec 23, 5:30 pm, Krystox krys...@gmail.com wrote: We have a service to let user to send greeting cards to their friends. Soon we realize people might mark those emails as spam. As a result, the account used to do mail.send() is easily suspended for abuse. My question is GAE mail quota allows sending thousands of emails per day, even the free quota is 2000. How it is possible to not being marked as abuse? Again, we have no intention to spam. Just want to know what is the correct way to use this email service. 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-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] Is this suitable for GAE Application Gallery?
Hello, It's a game demo written using GWT: http://dropzap.appspot.com Does it make sense to submit an application to this gallery if it doesn't use the GAE in any interesting way? This demo could have been put on Google Sites if that service supported GWT apps. Amir -- 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: Need Help with Datastore Query
Hi Wesley! I have been putting about GAE for a year now, but only in the last few months have hit a wall trying to combine what I know Python can do vs. what the docs say GAE can do. One of the first things I did was to make sure that the first two lines of code were actually able to get and call the ID in question. I had a test logging line that was able to get the accurate ID #. So the real issue I am having is will GAE allow me to pass a dynamic variable into the datastore? Most all of the examples in the docs are literal strings, thus I was not sure if I should be encasing the variable in quotes or not. -- 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: Need Help with Datastore Query
Thanks all for your replies and input. I was avoiding using the entity Key, as it is such a mix of alphanumeric and the entity ID is a straight iterative integer, which makes for a cleaner URL. I will try the above in the morning and report back how it goes. -- 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.