[google-appengine] Re: Shrink Javascript with Python..?
You can use app-engine-patch. It has an integrated medie generator which combines all of your css/javascript code to one single file. On the development sever your javascript code does not get shrinked to allow debugging but on the production server it gets shrinked automatically while uploading your app to google. Bye Thomas On May 4, 3:24 pm, richardcur...@googlemail.com richardcur...@googlemail.com wrote: I dynamically generate a lot of Javascript on appengine before I serve it to the user as part of the website. Can I somehow obfuscate/shrink this Javascript from Python to improve page loading times? thx.ricky. --~--~-~--~~~---~--~~ 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: email issue with Google Apps e-mail Group
Sylvain I am having this same problem. Did you find any solution? thx Srid On May 5, 8:05 am, Sylvain sylvain.viv...@gmail.com wrote: I don't think we are talking about the same thing. You are talking about Post a message. I just want to send a mail Here is a picture about what I'm talking. http://img206.imageshack.us/my.php?image=gappgroup.jpg Sylvain On 5 mai, 13:57, Sylvain sylvain.viv...@gmail.com wrote: Yes, this group is correctly parameter. I'm just testing to send a mail to support@domain.com with my gmail adress and many other e-mail adresses (hotmail,... etc,...). And all my tests work. So there is only an issue with mails from GAE. Sylvain On 5 mai, 13:42, Nick Johnson (Google) nick.john...@google.com wrote: Hi Sylvain, Even for groups that are marked 'public', they generally require that the sender be a member of the group before they can post. In addition to setting the group as public, you also need to select anyone can post under who can post messages? on the Access tab of the group's settings. -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: Using PyCrypto
from Crypto.Cipher import DES obj=DES.new('abcdefgh', DES.MODE_ECB) Try executing those two lines in the same request on shell.appspot.com. Rather than press enter after the import, try shift-enter and then try the call to DES.new(). ..mike On Tue, May 5, 2009 at 3:25 PM, Devel63 danstic...@gmail.com wrote: Has anyone used PyCrypto successfully with App Engine (http:// code.google.com/appengine/docs/python/tools/libraries.html#PyCrypto)? I've run into 2 obstacles - 1) Since there's no distribution with App Engine SDK, does anyone know a safe source of the library for use on a Windows development machine? 2) Trying to use it on http://shell.appspot.com, I get errors from Crypto.Cipher import DES obj=DES.new('abcdefgh', DES.MODE_ECB) --all sorts of traceback errors mentioning pickling --~--~-~--~~~---~--~~ 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: Whoa!! What happened to cron?
I had a same problem :( I had a holy days then return to my office Big surprise!! Error log is full of cron what happened? My cron job send email and send sms My client complain for sms bombing On 5월3일, 오전10시18분, MajorProgamming sefira...@gmail.com wrote: Nope. But now it's fixed. Must've been a fluke. On May 1, 3:33 am, 风笑雪 kea...@gmail.com wrote: You can check the logs and make sure it runs every seconds. I think you may just has a loop in your script that looks always running. 2009/5/1 MajorProgamming sefira...@gmail.com I don't know if it's only happening by me but my crons are running every second!!! Here is a copy of my cron.yaml: cron: - description: send at night url: /cron/night schedule: every sun,mon,tue,wed,thu,fri of apr,may,jun 1:30 - description: send by day url: /cron/day schedule: every sun,mon,tue,wed,thu,fri of apr,may,jun 15:30 But it's currently generating constant requests! Help! --~--~-~--~~~---~--~~ 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] Datastore query error: not initialized: missing field: multiple
From 05-05 05:31PM 58.369 I start having this error in my application: == not initialized: missing field: multiple Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py, line 503, in __call__ handler.post(*groups) File /base/data/home/apps/citazionitk/12.332523150282054816/fb.py, line 355, in post citazioni = citazionitk.Citazione2.all().search(testo).fetch (fb_citazionitk.search_limit+1,ctk_offset) File /base/python_lib/versions/1/google/appengine/ext/db/ __init__.py, line 1390, in fetch raw = self._get_query().Get(limit, offset) File /base/python_lib/versions/1/google/appengine/api/ datastore.py, line 942, in Get return self._Run(limit, offset)._Next(limit) File /base/python_lib/versions/1/google/appengine/api/ datastore.py, line 886, in _Run _ToDatastoreError(err) File /base/python_lib/versions/1/google/appengine/api/ datastore.py, line 1965, in _ToDatastoreError raise errors[err.application_error](err.error_detail) BadRequestError: not initialized: missing field: multiple == I've changed nothing in my code. How can I fix it? Thanks. Mike --~--~-~--~~~---~--~~ 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] BadRequestError: not initialized: missing field: multiple
From 05-05 05:31PM 58.369 I'm getting this error. I've changed nothing in my code. === not initialized: missing field: multiple Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py, line 503, in __call__ handler.post(*groups) File /base/data/home/apps/citazionitk/12.332523150282054816/fb.py, line 355, in post citazioni = citazionitk.Citazione2.all().search(testo).fetch (fb_citazionitk.search_limi t+1,ctk_offset) File /base/python_lib/versions/1/google/appengine/ext/db/ __init__.py, line 1390, in fetch raw = self._get_query().Get(limit, offset) File /base/python_lib/versions/1/google/appengine/api/ datastore.py, line 942, in Get return self._Run(limit, offset)._Next(limit) File /base/python_lib/versions/1/google/appengine/api/ datastore.py, line 886, in _Run _ToDatastoreError(err) File /base/python_lib/versions/1/google/appengine/api/ datastore.py, line 1965, in _ToDatastoreError raise errors[err.application_error](err.error_detail) BadRequestError: not initialized: missing field: multiple === How could this be fixed? 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: A problem of deploying the Java code ---SAXException
I have solved this program. change the content of the file :datastore-indexes-auto.xml the old content: !-- Indices written at 09-5-6 8:01 -- datastore-indexes/ --- after change : !-- Indices written at 09-5-6 8:01 -- datastore-indexes / you need to add a space before the /. That will be ok! On 4月20日, 下午8时15分, worldstar.ch...@gmail.com worldstar.ch...@gmail.com wrote: When I test the guestbook application without posting any message, there is no problem of deploying the Java code. However, after input some messages and then deploy the Java code, I encountered the following information. How do I solve this problem? An internal error occurred during: Deploying guestbook to Google. Received SAXException parsing the input stream for C:/workspace/ JavaAppOnGoogle/guestbook/war\WEB-INF/datastore-indexes.xml Thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: A problem of deploying the Java code ---SAXException
I had met this error. On 4月20日, 下午8时15分, worldstar.ch...@gmail.com worldstar.ch...@gmail.com wrote: When I test the guestbook application without posting any message, there is no problem of deploying the Java code. However, after input some messages and then deploy the Java code, I encountered the following information. How do I solve this problem? An internal error occurred during: Deploying guestbook to Google. Received SAXException parsing the input stream for C:/workspace/ JavaAppOnGoogle/guestbook/war\WEB-INF/datastore-indexes.xml Thanks a lot. --~--~-~--~~~---~--~~ 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] Cannot insert Calendar event, getting 401L error
I figured I would ask for help rather than search endlessly on google for hours on end. Here is the error from my web app: Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py, line 503, in __call__ handler.post(*groups) File /base/data/home/apps/nyplcal/1.333293544899328919/nyplcal.py, line 105, in post new_event = calendar_service.InsertEvent(event, '/calendar/feeds/ default/private/full') File /base/data/home/apps/nyplcal/1.333293544899328919/gdata/ calendar/service.py, line 159, in InsertEvent converter=gdata.calendar.CalendarEventEntryFromString) File /base/data/home/apps/nyplcal/1.333293544899328919/gdata/ service.py, line 1151, in Post media_source=media_source, converter=converter) File /base/data/home/apps/nyplcal/1.333293544899328919/gdata/ service.py, line 1271, in PostOrPut 'reason': server_response.reason, 'body': result_body} RequestError: {'status': 401L, 'body': 'HTML\nHEAD \nTITLEAuthorization required/TITLE\n/HEAD\nBODY BGCOLOR=#FF TEXT=#00\nH1Authorization required/H1 \nH2Error 401/H2\n/BODY\n/HTML\n', 'reason': ''} Line 105 refers to this: new_event = calendar_service.InsertEvent(event, '/calendar/feeds/ default/private/full') Based on the gdata API documentation, I thought I was using the right Calendar feed URL but apparently, this is not the case. In my searches online, I came across the Google Data Feed Fetcher and found my Calendar Feed URL, something like: /calendar/feeds/default/owncalendars/full/john.doe%40gmail.com That did not work, does anybody know what this 401 error is about? Also, I have a gripe about the gdata, I installed it via python setup.py install but that install step was not necessary, I could have just copied over the /atom and /gdata directories to my app source directory. Can the documentation be updated to reflect this unnecessary step? --~--~-~--~~~---~--~~ 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] Dilemma with selecting records
The app I am creating is a trivia app. One feature I would like to implement is a way for the user to find a question they have not answered before. This is easy without fetch limits and such, but I'm not sure how I should go about doing this. If I have 10,000 questions, and the user has answered 5,000, I would like the user to be able to find a random question from the remaining 5,000 that have not been answered. I have not committed to a schema for storing which questions have been answered, so your replies/ suggestions are not limited by this. So how can I perform this task within the limits of gae's fetch? --~--~-~--~~~---~--~~ 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 iterate a json string using dictionary
I would also do it in this manner. On May 6, 9:35 am, ray ie.raym...@gmail.com wrote: Arnie, I'm assuming you want to iterate over the json in Python? Once you get the json string converted to a Python dictionary using simplejson, you can use the dictionary's iteritems() method to iterate over it in a python forloop like so: from django.utils import simplejson #jsonStr is your json string in Python #convert to dict using simplejson: jsonAsDict = simplejson.loads( jsonStr ) #jsonAsDict is now a python dict object for i in jsonAsDict.iteritems(): i[0] #is the key i[1] #is the value Hope that helps. --~--~-~--~~~---~--~~ 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: Customizing sender name when sending out emails
Same for me here ... my email is i...@domain.com and only info appears in the From field ... P. On Apr 9, 8:59 am, Vm vee...@gmail.com wrote: I read in the Message Fields API that: The sender address must be the email address only. Now, when emails are being sent out, the only the email address will appear in the From field in the email. Shouldn't the registered name associated with the email address (admin/logged in user) be in the From field as well? Or is there any way of customizing the name portion for the sender when sending out an email? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Can't deploy application to the app engine (Java)
Hi, I got activated on the Java engine see below (Thanks for signing up to try Google App Engine for Java! Your account has now been activated, so you can begin building applications with our new Java runtime. I created a new application (and I can go to the dashboard) and when I try to deploy the sample / first application (Guestbook) I get the exception below simhaapp is the name of the application registered on the app engine and I use the same name in appengine-web.xml file. Am I missing anything else? Thanks for your help! Nick EXCEPTION Unable to upload: java.io.IOException: Error posting to URL: http://appengine.google.com/api/appversion/create?app_id=simhaappversion=1; 400 Bad Request Invalid runtime specified. at com.google.appengine.tools.admin.ServerConnection.send (ServerConnection.java:114) at com.google.appengine.tools.admin.ServerConnection.post (ServerConnection.java:66) at com.google.appengine.tools.admin.AppVersionUpload.send (AppVersionUpload.java:345) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction (AppVersionUpload.java:159) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:68) at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:41) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy (AppEngineBridgeImpl.java:203) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace (DeployProjectJob.java:97) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) java.io.IOException: Error posting to URL: http://appengine.google.com/api/appversion/create?app_id=simhaappversion=1; 400 Bad Request Invalid runtime specified. --~--~-~--~~~---~--~~ 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] Cann't use my appengine product with Goolge Apps acounts
urls: http://bongelstest.appspot.com/ - does not require authentication and show someinfo http://bongelstest.appspot.com/l - requires authentication, if the user has not been authenticated, he is redirected to the authentication page, which shows the dump program: Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py, line 501, in __call__ handler.get(*groups) File /base/python_lib/versions/1/google/appengine/ext/webapp/ util.py, line 54, in check_login self.redirect(users.create_login_url(self.request.uri)) File /base/python_lib/versions/1/google/appengine/api/users.py, line 176, in create_login_url raise NotAllowedError NotAllowedError --~--~-~--~~~---~--~~ 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: Cann't deploy my app to another domain after enable billing
I have an application that doesn't have billing turned on, and I am getting the same error. So it is not because of billing. I've also ensured that the app domain email I signed in with was added as a developer on my application, just in case that was a problem. And I double checked the app domain user I sign in with is an administrator. Anyone else having this issue? --~--~-~--~~~---~--~~ 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: Invalid runtime specified.
Did you get a resolution to this - I am getting the same even after I received the e-mail saying that iI have been activated on the Java run time On Apr 8, 1:42 pm, adate...@gmail.com adate...@gmail.com wrote: java.io.IOException: Error posting to URL:http://appengine.google.com/api/appversion/create?app_id=myretailserv... 400 Bad RequestInvalidruntimespecified. can someone help me debug this ? thx --~--~-~--~~~---~--~~ 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: email issue with Google Apps e-mail Group
No, I've posted a question on the Google Apps help forum. And there is no good answer (spf ?) So I'm waiting for a googler with a solution else I will fill a bug. But I don't know where is the issue : GAE or Google Apps, so it is very difficult. Regards. On 5 mai, 18:46, Srid ban...@gmail.com wrote: Sylvain I am having this same problem. Did you find any solution? thx Srid On May 5, 8:05 am, Sylvain sylvain.viv...@gmail.com wrote: I don't think we are talking about the same thing. You are talking about Post a message. I just want to send a mail Here is a picture about what I'm talking. http://img206.imageshack.us/my.php?image=gappgroup.jpg Sylvain On 5 mai, 13:57, Sylvain sylvain.viv...@gmail.com wrote: Yes, this group is correctly parameter. I'm just testing to send a mail to support@domain.com with my gmail adress and many other e-mail adresses (hotmail,... etc,...). And all my tests work. So there is only an issue with mails from GAE. Sylvain On 5 mai, 13:42, Nick Johnson (Google) nick.john...@google.com wrote: Hi Sylvain, Even for groups that are marked 'public', they generally require that the sender be a member of the group before they can post. In addition to setting the group as public, you also need to select anyone can post under who can post messages? on the Access tab of the group's settings. -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: Another Server Error (500)
Oh, yes, my appid is medina-albaida. --~--~-~--~~~---~--~~ 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] Another Server Error (500)
Ok, I tried to upload my application using 'appcfg.py update /my/dir' as always. I got the so well-known error and fixed it changing the version from app.yaml. All right so far. The problem is that I can't neither change the default version nor delete it (because it's default, goddamnit batman!) Is there any way I can get over this pain in the back or should i just wait until the error is gone? --~--~-~--~~~---~--~~ 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: DatastoreNeedIndexException: no matching index found after app uploaded to Google
I got the same error. My problem was that the index that was auto generated for my query was still being built. Check the Datastore Indexes page in your Dashboard. On May 5, 12:25 am, JY jy2...@gmail.com wrote: I have a very simple java web app, tested on local 127.0.0.1, without any problem, but got error on Google. The model is plain pojo, and the function is straight forward ListMyModel results = new ArrayList(); PersistenceManager pm = PersistenceManagerSingeton.instance ().getPersistenceManager(); int startId = pageNumber*pageSize; int endId = startId+pageSize+1; Query query = pm.newQuery(MyModel.class); query.setOrdering(id desc); query.setRange(startId, endId); try { results = (List MyModel ) query.execute(); } finally { query.closeAll(); pm.close(); } The id is the PK @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id; This works fine on my local testing (Eclipse+App-Engine-Plug-in) Today, I got account approval email from Google, and uploaded this app to app-engine. However when I was testing it, always got below error: com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found. at com.google.appengine.api.datastore.DatastoreApiHelper.translateError (DatastoreApiHelper.java:34) at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall (DatastoreApiHelper.java:55) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl.runQuery(DatastoreServiceImpl.java:310) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl.access$100(DatastoreServiceImpl.java:240) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl$1.iterator(DatastoreServiceImpl.java:269) at org.datanucleus.store.appengine.query.RuntimeExceptionWrappingIterable.iterator (RuntimeExceptionWrappingIterable.java:42) at org.datanucleus.store.appengine.query.StreamingQueryResult.init (StreamingQueryResult.java:72) at org.datanucleus.store.appengine.query.DatastoreQuery.fulfillEntityQuery (DatastoreQuery.java:253) at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute (DatastoreQuery.java:220) at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute (JDOQLQuery.java:85) at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute (JDOQLQuery.java:31) at org.datanucleus.store.query.Query.executeQuery(Query.java:1466) at org.datanucleus.store.query.Query.executeWithArray(Query.java: 1340) at org.datanucleus.store.query.Query.execute(Query.java:1313) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:218) My understanding is that query as simple as above, should not need manual index. I noticed there was nothing the generated datastore-indexes-auto.xml, just datastore-indexes/. It makes sense since all my operations are save, delete and select-all-type of query I even tried creating manually the datastore-index.xml with below: ?xml version=1.0 encoding=utf-8? datastore-indexes xmlns=http://appengine.google.com/ns/datastore-indexes/1.0; autoGenerate=true datastore-index kind=WordeePuzzle ancestor=false property name=id direction=desc / /datastore-index /datastore-indexes Tested on Google, and got same error. Please help 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: PyCrypto Access
This seems to be problem with shell.appspot.com (it tries to persist the DES object in session). On 5 Maj, 23:53, Devel63 danstic...@gmail.com wrote: Doesn't seem to work onhttp://shell.appspot.com I can import a module (e.g., from Crypto.Cipher import DES), but when I try to use it I get all sorts of errors about not being able to pickle it (e.g., obj=DES.new('abcdefgh', DES.MODE_ECB). I picked those 2 lines (and others) because they are straight out of the pycrypto examples. On May 5, 1:24 pm, Devel63 danstic...@gmail.com wrote: OK, I hear what you all are saying: I need to install the libraries on my dev server, but not upload them to my workspace because they will already be accessible there. However, I don't know why people on this thread keep saying that this is the way it works with all the other 3rd party libraries. To the contrary, antlr3, django v0.96, webob, and yaml ... everything else mentioned onhttp://code.google.com/appengine/docs/python/tools/libraries.html ... gets installed with the SDK under the lib directory. I guess I can give it a go and see what happens, but it seems weird to me that Google would make a custom version, tell us it is not based on the latest release of the public version, and then not distribute it with the SDK as they have with every other incorporated library (unless there's some security reason not to do so). So I guess we have to get it working locally, then upload and hope that it works with their modified and reduced functionality module, which we have no way of examining beforehand. On May 5, 12:57 pm, Wooble geoffsp...@gmail.com wrote: The libraries are installed on the App Engine production servers. They are not part of the SDK, so they're not on your machine unless you installed them, the same as the other third party libraries usable with App Engine. On May 5, 1:38 pm, Devel63 danstic...@gmail.com wrote: What?? How does this reconcile with the 1.2.1 announcement: App Engine includes a custom version of the Python Cryptography Toolkit, also known as PyCrypto. The version included with App Engine is based on pycrypto 2.0.1. This is not the latest version, but should be largely compatible with more recent versions. http://code.google.com/appengine/docs/python/tools/libraries.html On May 5, 7:54 am, Nick Johnson (Google) nick.john...@google.com wrote: PyCrypto is a third-party library. If it is installed, it will be in your Python install's site-packages directory, not under the App Engine SDK. -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] cannot upload application, anyone can help?
2009-05-07 20:48:58,403 ERROR appcfg.py:1235 An unexpected error occurred. Aborting. Traceback (most recent call last): File C:\Program Files\Google\google_appengine\google\appengine\tools \appcfg.py, line 1213, in DoUpload missing_files = self.Begin() File C:\Program Files\Google\google_appengine\google\appengine\tools \appcfg.py, line 1009, in Begin version=self.version, payload=self.config.ToYAML()) File C:\Program Files\Google\google_appengine\google\appengine\tools \appengine_rpc.py, line 303, in Send f = self.opener.open(req) File C:\Python26\lib\urllib2.py, line 389, in open response = meth(req, response) File C:\Python26\lib\urllib2.py, line 502, in http_response 'http', request, response, code, msg, hdrs) File C:\Python26\lib\urllib2.py, line 427, in error return self._call_chain(*args) File C:\Python26\lib\urllib2.py, line 361, in _call_chain result = func(*args) File C:\Python26\lib\urllib2.py, line 510, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 403: Forbidden Error 403: --- begin server output --- You do not have permission to modify this app (app_id=u'shudu'). --- end server output --- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: store files to datastore in a folder like structure?
A blob with a key pointing back to the folder -Brian On May 6, 8:00 am, Shedokan shedok...@gmail.com wrote: Tim: I don't quite understand most of what you said because I kinda really new to python programming I know only php and python, but what I do understand I will try to do. What type do you people suggest I'll use for the file content? On 6 מאי, 06:16, Pranav Prakash pra...@gmail.com wrote: class Folder(db.Model): name = db.StringProperty() subfolders = db.ListProperty(File) parent = db.SelfReferenceProperty() This is how folder can be implemented. A folder must know what all files are child. Also a folder must know the parent folder (folders in case of cyclic dir structure). Apart from this, you might also implement Linux inode system in a model, for book keeping. On May 6, 5:41 am, Tim Hoffman zutes...@gmail.com wrote: You will need to create a Folder entity It will need to know it's children, and you will need to support some form of url traversability to walk the folder heirarchy. I am doing that with zope3 components on gae Django doesn't normally do url traversing, but has a regex match to method Do you really need a folder heirarchy, have you gone down that path because you are just trying to replicate a filesystem, with out really needing those semantics ? If you really want this sort of functionality you might want to look at repoze.bfg it is just been made useable under gae (and is zope 3 based though much simpler) and does support inherintly the notion of url traversal over an object model/graph Rgds T On May 6, 6:34 am, Shedokan shedok...@gmail.com wrote: I am porting my WebOS(Shedokan OS) to python from php so I can use it og GAE and I came to the stage where I need to read and write files. And after a lot of searching I found out that I cannot create files or write to files. here is my code: from google.appengine.ext import db class File(db.Model): filename = db.StringProperty(multiline=False) filedata = db.BlobProperty date = db.DateTimeProperty(auto_now_add=True) def createFile(fileName, content): if fileName=='' or content=='': return file = File() file.filedata = content file.filename = fileName file.put() def getFile(fileName): if fileName=='': return return db.GqlQuery('SELECT * FROM File WHERE filename= :1',fileName) any way to make this work with a folder structure? also I want to note that I started learning python just about 3 days ago, so I think I'm a begginer. 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: Customizing sender name when sending out emails
Unfortunately, no, it's not possible to change the contents of the From field of emails you send using the mail API. -Nick Johnson On Wed, May 6, 2009 at 5:24 PM, philippe.chret...@gmail.com philippe.chret...@gmail.com wrote: Same for me here ... my email is i...@domain.com and only info appears in the From field ... P. On Apr 9, 8:59 am, Vm vee...@gmail.com wrote: I read in the Message Fields API that: The sender address must be the email address only. Now, when emails are being sent out, the only the email address will appear in the From field in the email. Shouldn't the registered name associated with the email address (admin/logged in user) be in the From field as well? Or is there any way of customizing the name portion for the sender when sending out an email? --~--~-~--~~~---~--~~ 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 my files; Can I download them back?
Hi, I accidentally deleted the files for my app off of my local computer. Is there a way to download those files back from the appengine server? --~--~-~--~~~---~--~~ 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 my files; Can I download them back?
Ummm What do I do then? --~--~-~--~~~---~--~~ 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 my files; Can I download them back?
Never mind, I got them back. --~--~-~--~~~---~--~~ 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 my files; Can I download them back?
add this : http://manatlan.com/blog/zipme___download_sources_of_your_gae_website__as_a_zip_file It can help Regards. On 7 mai, 16:45, Wiiboy jordon...@gmail.com wrote: Never mind, I got them back. --~--~-~--~~~---~--~~ 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: Too many indexed properties for entity
If you put the description in a BlobProperty? Maybe that is not indexed by SearchableModel 2009/5/6 Ben bhym...@gmail.com: Hello, i have implemented a relatively basic app using app engine and so far most htings are working well. however i am having some problems using search.SearchableModel. I have an model that is a SearchableModel, in it i have defined several properties including Title and description. Title is a stringProperty and description is a textProperty. Now this seemed to work in the development environment, but when i deployed it i seem to get the Too many indexed properties for entity error when trying to save the item to the datastore if i have more than about a line of text in the description. I have not manually defined any indexes and am simply letting the development environment create them before deploying. I don't necessarily need to search the description, but i definitely need to search the title, anyone know what i am doing wrong or how i can accomplish this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: I have my Google Apps domain - under the hood is Appengine. How do I get the appengine domain?
Yes. It's fundamental to how the Python API functions. -Nick Johnson On Wed, May 6, 2009 at 4:24 PM, richardcur...@googlemail.com richardcur...@googlemail.com wrote: I guess this will stay there forever and ever? and not disappear suddenly? On May 6, 4:10 pm, Nick Johnson (Google) nick.john...@google.com wrote: Actually, scratch my last. You can access your application's ID with os.environ['APPLICATION_ID']. -Nick Johnson On Wed, May 6, 2009 at 3:09 PM, Nick Johnson (Google) nick.john...@google.com wrote: Hi Ricky, Unfortunately, there's no way to do this, short of encoding your app ID in your application's configuration. -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: BadRequestError: not initialized: missing field: multiple
Hi, There was a temporary error that caused this problem for some of our users. It should now be fixed. Are you still experiencing this issue? -Nick Johnson On Wed, May 6, 2009 at 12:08 PM, Mike citazi...@gmail.com wrote: From 05-05 05:31PM 58.369 I'm getting this error. I've changed nothing in my code. === not initialized: missing field: multiple Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py, line 503, in __call__ handler.post(*groups) File /base/data/home/apps/citazionitk/12.332523150282054816/fb.py, line 355, in post citazioni = citazionitk.Citazione2.all().search(testo).fetch (fb_citazionitk.search_limi t+1,ctk_offset) File /base/python_lib/versions/1/google/appengine/ext/db/ __init__.py, line 1390, in fetch raw = self._get_query().Get(limit, offset) File /base/python_lib/versions/1/google/appengine/api/ datastore.py, line 942, in Get return self._Run(limit, offset)._Next(limit) File /base/python_lib/versions/1/google/appengine/api/ datastore.py, line 886, in _Run _ToDatastoreError(err) File /base/python_lib/versions/1/google/appengine/api/ datastore.py, line 1965, in _ToDatastoreError raise errors[err.application_error](err.error_detail) BadRequestError: not initialized: missing field: multiple === How could this be fixed? 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: 'Entity' object has no attribute '_Entity__unindexed_properties'
On May 6, 7:35 pm, DarkCoiote darkcoi...@gmail.com wrote: Alternativaly can I just clear the cache? yup, that will work too, but we have the fix out, so you shouldn't need to do either that or the workaround. thanks again for the report. please post back and let us know if you see this again! Thanks for the support! On May 6, 10:48 pm, ryan ryanb+appeng...@google.com wrote: sorry for the trouble, all, this is our fault. we're canarying the upcoming 1.2.2 release, and it looks like entities that were memcached from 1.2.1 aren't compatible with 1.2.2. we're investigating and working on a fix right now. as a short term workaround, try adding this line after you pull an entity e (an instance of a Model or Expando subclass) out of memcache: e._entity = None that will force it to rebuild its inner datastore.Entity instance, which might prevent the error. --~--~-~--~~~---~--~~ 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: BadRequestError: not initialized: missing field: multiple
mike, it looks like you're using a version of SearchableModel. are you using it from google.appengine.ext.search directly? or are you using a modified version? if so, the modified version probably needs to be updated. would you mind pointing me to the modified version you're using, and ideally whoever wrote it, so i can help them update it? in the meantime, switching your model class to use google.appengine.ext.search.SearchableModel should fix the error. --~--~-~--~~~---~--~~ 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] Chat Time transcript: May 6th, 2009
Last evening (PDT), the App Engine team held its most recent Chat Time IRC office hour session. The next session will take place May 20th from 9:00-10:00 a.m. in the #appengine channel on irc.freenode.net. A transcript of yesterday's session and a summary of the topics covered is provided below. - A very small percentage of datastore operations will fail, and your applications have to catch these occasional exceptions; Google helps mitigate this by retrying individual puts and deletes as well as transactions [7:02] - Java will support unique user identities soon, and it's reasonable to expect feature parity between the Python and Java runtimes [7:05] - You will be able to update to the new Java SDK (when it's available) directly in Eclipse if you installed it via the Google Plugin for Eclipse [7:10] - A concurrency-related error when committing a transaction will result in a ConcurrentModificationException being thrown; if the datastore is in read-only mode, a general DatastoreFailureException is thrown [7:13, 7:15] - Applications cannot share datastores currently; if an application utilizes multiple projects for modularity/implementing a common API for multiple projects, contact us so we can work through any TOS issues [7:22] - The next Python SDK update will include, among other things, unindexed properties, ie disabling indexing on a per property basis, and keys-only queries, both of which are faster and much cheaper than the existing options [7:26] - To clear your local datastore using the SDK for Java, delete WEB-INF/ local_db.bin [7:28] - Fetching a group of entities in the low-level Java datastore API does NOT throw an exception if one of the entities doesn't exist, similar to how batch gets work in Python [7:33] - http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Core_Value_Types lists the core data types that can be stored in App Engine's datastore, similar to the types allowed in Python, and these can be used with the low-level Java datastore API [7:37] - If you won't need to query a text-based field, it makes sense to use the Text type instead of String since writes will be both faster and cheaper since Text properties aren't indexed [7:43] - A more scalable offline processing solution than cron is in the works and we're looking forward to opening it up soon [7:49] - SSL can't be supported for third-party domains until browser security policies are updated; see http://googleappengine.blogspot.com/2008/10/announcing-https-support-for-appspotcom.html [7:50, 7:53] - Versioning in the datastore likely won't be coming soon but there are third party object versioning libraries for both Python and Java that should be easy to plug in [7:56] - App Engine DOES automatically gzip dynamic requests in both Java and Python if the client indicates that they can accept gzipped responses [7:59] - Datastore viewer for Java is coming [8:00] [7:02pm] Jason_Google: Hi Everyone. Welcome to Chat Time! I and a few other Googlers will be in the channel for the next hour or so to answer your App Engine questions. [7:02pm] DocSavage: I had a question on the expected timeout/error rate for datastore queries. Should we expect some low level % of ops to fail? [7:03pm] DocSavage: Something like 0.1%? [7:03pm] maxr_google: I can't give you an exact percentage, but it's reasonable to expect a small percentage to fail. [7:04pm] ryan_google: yes, 0.1% is about right [7:04pm] ryan_google: we're continually working on lowering that [7:04pm] DocSavage: Are you looking into a way to handle retries on the server side? [7:05pm] ryan_google: we do retry puts and deletes outside of txes server side [7:05pm] ryan_google: and we retry txes client side [7:05pm] ryan_google: we have some similar features to increase read availability eventually [7:05pm] Kardax: Python got permanent unique user identities recently... is there any chance Java is getting this valuable feature? [7:06pm] maxr_google: Yes [7:06pm] DocSavage: Ryan, so right now if we get a timeout on a put/ delete, it's actually gone through some retries already? [7:06pm] ryan_google: correct [7:06pm] maxr_google: Ideally we will release new features to both runtimes at the same time. [7:06pm] maxr_google: But that won't always happen. [7:07pm] Kardax: I imagine getting Java out there in the first place was quite an undertaking [7:07pm] Jack2009: I have a question about user access. I have a user who has a @post.harvard.edu email address, but when he signs in, he gets signed in under a gmail.com address but he wants email to be sent (via my app) as @post.harvard.edu. But if I force my app to send it as @post.harvard.edu, I get an IllegalSenderException [7:07pm] maxr_google: But unless there's something particularly language specific about a feature it's reasonable to expect that there will be eventual parity. [7:07pm] maxr_google: [7:07pm] Jason_Google: Kardax: An update to the Java SDK will be coming shortly that will address a number of issues and
[google-appengine] Re: Datastore query error: not initialized: missing field: multiple
followups in another thread, http://groups.google.com/group/google-appengine/browse_thread/thread/8e9267e3c9346317# --~--~-~--~~~---~--~~ 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: Over Quota: Datastore Indices Count
I'm running into the same problem, can you please reset my quota too? my app id is myclimbs Thanks a lot, Fred On May 5, 5:48 am, Jason (Google) apija...@google.com wrote: Hi Paul. Thanks for adding the issue. Your quota has been reset. - Jason On Fri, May 1, 2009 at 11:57 AM, Paul pwid...@gmail.com wrote: Hi Jeff, I've opened a ticket on this issue to help with tracking. http://code.google.com/p/googleappengine/issues/detail?id=1161 Please could you reset the quota on appid matchmatchy Thanks, Paul. On Apr 16, 1:52 pm, Jeff S (Google) j...@google.com wrote: Hi Fred and Jose, I've reset the index count for your apps, so the issue should be alleviated. John P, Could you post or email your app ID? Thank you, Jeff On Apr 14, 9:53 pm, johnP j...@thinkwave.com wrote: I have 54indices, and am getting a warning that am exceeding aquota. johnP On Apr 11, 8:20 pm, fedestabile stabile.feder...@gmail.com wrote: Same happen to me, and I just developing the application, I don't have any indexes defined My app ID is: myclimbs Thanks a lot! Fred On Mar 2, 5:08 am, Jose Florido joseflor...@gmail.com wrote: Hi, I also have the same message. I only use 50 indexes, so it's under the limit. The ID of my app is: museliusweb thanks! On 5 ene, 18:52, Marzia Niccolai ma...@google.com wrote: Hi, Thequotalimit is 100, but there is currently an issue where vacuumed indexes don't get credited back when vacuumed. I have fixed this issue with yourquotafor now. -Marzia On Sat, Jan 3, 2009 at 8:09 AM, dloomer dloo...@gmail.com wrote: Is the indexquotalimit actually 50? I don't see that listed on my QuotaDetails page or here: http://code.google.com/appengine/articles/quotas.html. Anyway, just today I started seeing that warning in my dashboard even though I have only 45indices(no more than nine for any given entity kind). What's strange is, I had never seen this warning before in spite of the fact that up until yesterday, when I did some cleanup, I had 13 additionalindiceson top of the current 45. Incidentally, late last night I was getting 500 server errors on the index update portion of my deployments (no further details on the nature of the error were given). I haven't quite nailed down the security model of my app yet, so I don't want to make the app ID public here -- I can provide that in a private e-mail. On Dec 20 2008, 1:40 am, paptimus papti...@gmail.com wrote: Hi, GAE team. I encountered Your application is exceeding aquota:Datastore IndicesCount on dashboard. The number of indeces is under 50, but one model has about 30 indeces. So I think this one is the point ofoverquotawarning and vacuumed these indeces. Vacuume_index was completed and there is no index of that model. But the warging ofoverquotaramainsover24 hours and the status of a new index remains building. I hope you check my index and change the status to Error if my index has problems, please. 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: Datastore query error: not initialized: missing field: multiple
I'm sorry for the double posting, but the two posts were not published for many hours. I'm going to reply on the other thread. Thanks. Mike On May 7, 2:11 pm, ryan ryanb+appeng...@google.com wrote: followups in another thread,http://groups.google.com/group/google-appengine/browse_thread/thread/... --~--~-~--~~~---~--~~ 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: BadRequestError: not initialized: missing field: multiple
Fixed!! I've added the line 263: prop.set_multiple(len(keywords) 1) and now it works. Thanks for pointing me in the right direction! Regards, Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: store files to datastore in a folder like structure?
No, I mean the content of a file so if it's a text file then it'll contain text. I found this to add to the File class: contents = db.BlobProperty() and this when I set it: file.contents = db.Blob(content) but when I retrive it from the data store I can't find a way to get the value. And for the os like folder and file structure, wouldn't it be better to store the path of the folder to the data store instead of saving only the parents key? because if I would want to get a file with this path: Folder/Folder 2/File.txt then I would just search for a file named File.txt with a path Folder/ Folder 2, instead of searching for a folder called Folder and the searching in it for a folder named Folder 2 and then searching in it a file named File.txt. just want your opinion because you all clearly have much more experience than me with database structure etc. On 7 מאי, 16:26, slink3r slin...@gmail.com wrote: A blob with a key pointing back to the folder -Brian On May 6, 8:00 am, Shedokan shedok...@gmail.com wrote: Tim: I don't quite understand most of what you said because I kinda really new to python programming I know only php and python, but what I do understand I will try to do. What type do you people suggest I'll use for the file content? On 6 מאי, 06:16, Pranav Prakash pra...@gmail.com wrote: class Folder(db.Model): name = db.StringProperty() subfolders = db.ListProperty(File) parent = db.SelfReferenceProperty() This is how folder can be implemented. A folder must know what all files are child. Also a folder must know the parent folder (folders in case of cyclic dir structure). Apart from this, you might also implement Linux inode system in a model, for book keeping. On May 6, 5:41 am, Tim Hoffman zutes...@gmail.com wrote: You will need to create a Folder entity It will need to know it's children, and you will need to support some form of url traversability to walk the folder heirarchy. I am doing that with zope3 components on gae Django doesn't normally do url traversing, but has a regex match to method Do you really need a folder heirarchy, have you gone down that path because you are just trying to replicate a filesystem, with out really needing those semantics ? If you really want this sort of functionality you might want to look at repoze.bfg it is just been made useable under gae (and is zope 3 based though much simpler) and does support inherintly the notion of url traversal over an object model/graph Rgds T On May 6, 6:34 am, Shedokan shedok...@gmail.com wrote: I am porting my WebOS(Shedokan OS) to python from php so I can use it og GAE and I came to the stage where I need to read and write files. And after a lot of searching I found out that I cannot create files or write to files. here is my code: from google.appengine.ext import db class File(db.Model): filename = db.StringProperty(multiline=False) filedata = db.BlobProperty date = db.DateTimeProperty(auto_now_add=True) def createFile(fileName, content): if fileName=='' or content=='': return file = File() file.filedata = content file.filename = fileName file.put() def getFile(fileName): if fileName=='': return return db.GqlQuery('SELECT * FROM File WHERE filename= :1',fileName) any way to make this work with a folder structure? also I want to note that I started learning python just about 3 days ago, so I think I'm a begginer. 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] BadArgumentError - started getting these about an hour ago
BadArgumentError: First ordering property must be the same as inequality filter property, if specified for this query; received __key__, expected position We started getting these errors about an hour ago. We haven't deployed since Monday. Have there been any changes to the datastore that have affect us? App ID: eh2009-9 Kim --~--~-~--~~~---~--~~ 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] my app suddenly shows an error! yesterday, everything OK
All of a sudden, a page in my app stopped functioning This is weird, as I have not deployed anything new, and it was working great yeasterday... Could it be an internal change that drove to this error? A web page in my app doesn't load... it's handler is practice.py it uses an access to datastore, where it fails.. I can't seem to understand where the error comes in order to prevent it! Can anyone help? thanks in advance.. :D This is the traceback: Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py, line 501, in __call__ handler.get(*groups) File /base/data/home/apps/*/6.333284999050902755/ decorators.py, line 38, in onlyLogged func(*args, **keyargs) File /base/data/home/apps/*/6.333284999050902755/ practice.py, line 290, in get users = users.fetch(usersppage, offset) File /base/python_lib/versions/1/google/appengine/ext/db/ __init__.py, line 1426, in fetch raw = self._get_query().Get(limit, offset) File /base/data/home/apps/*/6.333284999050902755/ bookmark.py, line 289, in _get_query self.__query = super(Query, self)._get_query (_query_class=BookmarkQuery) File /base/python_lib/versions/1/google/appengine/ext/db/ __init__.py, line 1591, in _get_query keys_only=self._keys_only) TypeError: __init__() got an unexpected keyword argument 'keys_only' I'm using a custom Query class called BookmarkQuery everything was working quite OK with it until today (the error seems to be related to it) any ideas of why this is happening? I repeat, the error appeared out of nowhere... yesterday my app was working perfectly Thanks! Manuel --~--~-~--~~~---~--~~ 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: BadArgumentError - started getting these about an hour ago
We managed a work-around by removing the inequality filter. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: store files to datastore in a folder like structure?
maybe a linux inode book keeping will help with search On May 8, 5:07 am, Shedokan shedok...@gmail.com wrote: No, I mean the content of a file so if it's a text file then it'll contain text. I found this to add to the File class: contents = db.BlobProperty() and this when I set it: file.contents = db.Blob(content) but when I retrive it from the data store I can't find a way to get the value. And for the os like folder and file structure, wouldn't it be better to store the path of the folder to the data store instead of saving only the parents key? because if I would want to get a file with this path: Folder/Folder 2/File.txt then I would just search for a file named File.txt with a path Folder/ Folder 2, instead of searching for a folder called Folder and the searching in it for a folder named Folder 2 and then searching in it a file named File.txt. just want your opinion because you all clearly have much more experience than me with database structure etc. On 7 מאי, 16:26, slink3r slin...@gmail.com wrote: A blob with a key pointing back to the folder -Brian On May 6, 8:00 am, Shedokan shedok...@gmail.com wrote: Tim: I don't quite understand most of what you said because I kinda really new to python programming I know only php and python, but what I do understand I will try to do. What type do you people suggest I'll use for the file content? On 6 מאי, 06:16, Pranav Prakash pra...@gmail.com wrote: class Folder(db.Model): name = db.StringProperty() subfolders = db.ListProperty(File) parent = db.SelfReferenceProperty() This is how folder can be implemented. A folder must know what all files are child. Also a folder must know the parent folder (folders in case of cyclic dir structure). Apart from this, you might also implement Linux inode system in a model, for book keeping. On May 6, 5:41 am, Tim Hoffman zutes...@gmail.com wrote: You will need to create a Folder entity It will need to know it's children, and you will need to support some form of url traversability to walk the folder heirarchy. I am doing that with zope3 components on gae Django doesn't normally do url traversing, but has a regex match to method Do you really need a folder heirarchy, have you gone down that path because you are just trying to replicate a filesystem, with out really needing those semantics ? If you really want this sort of functionality you might want to look at repoze.bfg it is just been made useable under gae (and is zope 3 based though much simpler) and does support inherintly the notion of url traversal over an object model/graph Rgds T On May 6, 6:34 am, Shedokan shedok...@gmail.com wrote: I am porting my WebOS(Shedokan OS) to python from php so I can use it og GAE and I came to the stage where I need to read and write files. And after a lot of searching I found out that I cannot create files or write to files. here is my code: from google.appengine.ext import db class File(db.Model): filename = db.StringProperty(multiline=False) filedata = db.BlobProperty date = db.DateTimeProperty(auto_now_add=True) def createFile(fileName, content): if fileName=='' or content=='': return file = File() file.filedata = content file.filename = fileName file.put() def getFile(fileName): if fileName=='': return return db.GqlQuery('SELECT * FROM File WHERE filename= :1',fileName) any way to make this work with a folder structure? also I want to note that I started learning python just about 3 days ago, so I think I'm a begginer. 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: my app suddenly shows an error! yesterday, everything OK
hi manuel! we pushed a new version of our API code to production recently in preparation for an upcoming release, which has caused problems for people who use forked versions of some of our API code, like the problem described in http://groups.google.com/group/google-appengine/browse_thread/thread/8e9267e3c9346317 , or code that reaches below our API layer, which it sounds like BookmarkQuery does. i don't have the BookmarkQuery source, so i don't know the exact fix you need, but the problem stems from a new optional keyword argument that we added to the Query classes' constructors. try adding a keys_only=None parameter to BookmarkQuery's constructor and see if that helps. --~--~-~--~~~---~--~~ 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: BadArgumentError - started getting these about an hour ago
hi kim! sorry for the trouble. we did push a new version of our API code to production recently in preparation for an upcoming release, which has caused problems for people who use forked versions of some of our API code or code that reaches below our API layer. See http://groups.google.com/group/google-appengine/browse_thread/thread/9c239de6ddfeb41d for a similar problem. are you using a custom query class? maybe BookmarkQuery? if so, whatever it is, it will need to be updated. you might want to ping them and let them know, or feel free to just post contact info here and we can try to help them. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---