[google-appengine] Re: why does Foo.all.filter get nothing?

2009-01-20 Thread Qian Qiao
On Tue, Jan 20, 2009 at 15:58, dd wrote: > > Qian Qiao 写道: >>> Have you tried the using the same filter like this? >>> >>> db.Query(Foo) >>> query.filter(your_filter) >>> >>> HTH. >>> >>> -- Joe > yh. > i have a record like : > c = Cat(name='c',year=2009,month=1) > , i want to query and get this

[google-appengine] Re: what is wrong with Category.all().filter("c_name=",'ddd'),return nothing?

2009-01-20 Thread djidjadji
Category.all().filter("c_name =",ddd) Watch the space character after c_name --~--~-~--~~~---~--~~ 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@googlegro

[google-appengine] Re: why does Foo.all.filter get nothing?

2009-01-20 Thread djidjadji
query = Cat.all().filter('name =','c').filter('year =',2009).filter('month =',1) Gives a Query object as return, not a []. you have to fetch() or get() from this query query.fetch(limit=100) query.get() # get the first one 2009/1/20 dd : > i have a record like : > c = Cat(name='c',year=2009,

[google-appengine] Re: Rendring data on django from ulrfetch

2009-01-20 Thread djidjadji
Have you tried it with a smaller/shorter 'full_page_content'? template_values = {'full_page_content': 'My Test String', } The doc in the example is pretty big. Or after your conversion it is big. Python complains that the data is too large for a string. > page_content = '%s' > My test_page_date.h

[google-appengine] Re: what is wrong with Category.all().filter("c_name=",'ddd'),return nothing?

2009-01-20 Thread dd
djidjadji 写道: > Category.all().filter("c_name =",ddd) > > Watch the space character after c_name > yes ,you are right. In the first instance i ignore the space character , And think it is not important. Is there anyother one like me ? This is my fault.and luckily i find it. thank djidjadji! --

[google-appengine] Re: why does Foo.all.filter get nothing?

2009-01-20 Thread Qian Qiao
On Tue, Jan 20, 2009 at 18:36, dd wrote: > what means LGTM?what is your suggestion about this query? > i know django can test in dos commandline, > how can gae run in commandline? LGTM = looks good to me. You can fire up the dev server, then point your browser to http://localhost:8080/_ah/admin

[google-appengine] Re: why does Foo.all.filter get nothing?

2009-01-20 Thread dd
Qian Qiao 写道: > Hmm, the query LGTM, I can't think of anything wrong with it. Try run > the same query in the the development console and see if that give you > anything? > > -- Joe > what means LGTM?what is your suggestion about this query? i know django can test in dos commandline, how can ga

[google-appengine] Re: why does Foo.all.filter get nothing?

2009-01-20 Thread dd
Qian Qiao 写道: > LGTM = looks good to me. > You can fire up the dev server, then point your browser to > http://localhost:8080/_ah/admin to see the development console, you > can then your query there to see the results and, if any, error > messages. > oh,actually i do not know this skill,it it

[google-appengine] how to do both filter and order

2009-01-20 Thread lookon
I got this error: BadArgumentError: First ordering property must be the same as inequality filter property, if specified for this query; received liked, expected date The things I want to do is getting hot items. My query is q.filter('date >',yesterday).order("-liked") So, the error message tol

[google-appengine] Re: Google login in a lightbox?

2009-01-20 Thread gops
Cool Idea !! On Jan 18, 11:34 pm, emi420 wrote: > I want to show the Google login form in a lightbox, like this: > > http://microbloog.appspot.com/ > > It works, but isn't an elegant solution. > > Any suggestions? > > Thanks! --~--~-~--~~~---~--~~ You received th

[google-appengine] Re: Can I See Google Product Ideas Code?

2009-01-20 Thread Barry Hunter
'Product ideas' seems to be just an adaptation of Google Moderator http://moderator.appspot.com/ And AFAIK appspot.com is App Engine, so everything thats a subdomain of appspot is almost certainly App Engine based. See: http://googleappengine.blogspot.com/2008/09/introducing-google-moderator-on

[google-appengine] Re: hiding private key

2009-01-20 Thread thebrianschott
Dave, Excellent question. Thanks. I have been putting my code on the google svn service. And in principle I would like my code to be public for this project. I have been reading in the docs about using the urlfetch.Fetch() method to get movies from a static file and thought I might adapt that m

[google-appengine] Re: how to do both filter and order

2009-01-20 Thread Barry Hunter
Its not strictly a gql limitation, but rather a datastore limitation. http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Restrictions_on_Queries If your 'date' property really is a date, and not a date+time, you should be ok. 2009/1/20 lookon : > > I got this error: >

[google-appengine] Re: how to do both filter and order

2009-01-20 Thread kang
date is an datetime property... I've read the article, does it mean that SELECT * FROM Image WHERE date > :yesterday ORDER BY date, liked will be OK? On Tue, Jan 20, 2009 at 6:05 AM, Barry Hunter wrote: > > Its not strictly a gql limitation, but rather a data

[google-appengine] Re: how to do both filter and order

2009-01-20 Thread kang
I use q.filter('date >',yesterday) .order("date").order("-liked") it's ok..but the result confused me.. On Tue, Jan 20, 2009 at 6:15 AM, kang wrote: > date is an datetime property... > I've read the article, does it mean that > > SELECT * FROM Image WHERE date > :yesterday >

[google-appengine] Re: "Ancestor is" performance

2009-01-20 Thread Tony Arkles
On Jan 19, 5:42 pm, Alexander Kojevnikov wrote: > From your second link: > >   All entities in a group are stored in the same datastore node. > > I guess this means that entities from the same group are stored close > to each other. When your query uses "ANCESTOR IS", the query engine > can tak

[google-appengine] Re: Having a strange problem viewing my app

2009-01-20 Thread SpuriousGrowth
Sorry for the duplicate post, it wasn't showing up in the groups view. On Jan 19, 11:01 am, SpuriousGrowth wrote: > Hi appengine users, I'm experiencing a strange problem in which > following uploading my app it is displaying ... nothing. I've been > developing the app on the test appserver with

[google-appengine] Re: Hosting question

2009-01-20 Thread Barry Hunter
As far as I know that should work. just remember to set app.yaml appropriately to associate the second handler with url pattern. 2009/1/20 arnie : > > hi all > There is an already hosted wsgi application [with some user interface] > using the datastore tables. I have created another wsgi applicat

[google-appengine] Streaming support?

2009-01-20 Thread alokiN
Hi all. In the 1.7 SDK version docs, there were explicit notes indicating that the streaming was not supported. The new version indicates only that a certain type of streaming isn't supported because no data can be sent to the user before the handler exits. Does this mean that there is a way to

[google-appengine] Re: Having a strange problem viewing my app

2009-01-20 Thread csellengoapplika...@gmail.com
Hi, I am experiencing a similar problem: When after some time of inactivity I load one page of the application, it displays nothing. After a reload it does display correctly. After some time of inactivity the result again is empty. and on reload it is correct. and so on. On the log I can see th

[google-appengine] Re: Model field value choices - can the list be generated dynamically?

2009-01-20 Thread Janne Kuuskeri
> You can use a custom ModelChoiceField and override itslabel_from_instance() > method: > > class SizeOptionChoiceField(ModelChoiceField): >     deflabel_from_instance(self, obj): >         return obj.code Sorry, I'm a bit late to the game but i just ran into this thread and wanted to ask that

[google-appengine] Re: How does this CPU limit stuff really work?

2009-01-20 Thread Marzia Niccolai
Hi, Please also read this FAQ: http://code.google.com/appengine/kb/general.html#highcpu -Marzia On Fri, Jan 16, 2009 at 8:41 PM, Josh Heitzman wrote: > > http://code.google.com/p/googleappengine/issues/detail?id=240 is an > issue related to the issue you raised in your post. > > On Jan 16, 1:3

[google-appengine] Re: Can not delete entity using Data Viewer and a GQL query.

2009-01-20 Thread Marzia Niccolai
Hi, We determined the issue here was that the carriage returns in the data viewer were not being validated when the delete request was called. Removing the return in the query fixed the issue. -Marzia On Sat, Jan 17, 2009 at 10:15 AM, James Ashley wrote: > > This sounds to me like something th

[google-appengine] Re: Why still get DownloadError exception when fetch a large file?

2009-01-20 Thread Marzia Niccolai
Hi, This error indicates that the download is taking too long to complete. -Marzia On Sat, Jan 17, 2009 at 6:22 PM, Teng Yao wrote: > > Here is my test code: > > #!/usr/bin/evn python > # -*- coding: utf8 -*- > > from google.appengine.api import urlfetch > > data = urlfetch.fetch('http://www.k

[google-appengine] Re: exploring appengine cron

2009-01-20 Thread Jason C
> Interestingly, the SDK's antlr definitions are incompatible with the version > of antlr invluded in the sdk, so I had to rename lib/antlr3 and install > 3.1.1 from http://www.antlr.org/download/Python In my case, this statement is misleading. lib/antlr3 is included in the .google_appengine/lib

[google-appengine] Re: Google Apps dashboard not recognizing Google App Engine/CNAME record

2009-01-20 Thread Marzia Niccolai
Hi, You must remove the mapping from the Google Apps personalized start page before attempting to add the 'www' mapping for your App Engine app. After it is removed, you should be able to add the mapping successfully for your app. -Marzia On Mon, Jan 19, 2009 at 9:41 AM, Benjamin Tseng wrote:

[google-appengine] Re: Having a strange problem viewing my app

2009-01-20 Thread Rodrigo Moraes
On Tue, Jan 20, 2009 at 1:20 PM, csellengoapplikacio wrote: > When after some time of inactivity I load one page of the application, > it displays nothing. After a reload it does display correctly. > > ... > > does anybody have some idea what could this be? this is a really common issue and shoul

[google-appengine] Re: Google Apps & GAE - will not register to www

2009-01-20 Thread Marzia Niccolai
Hi, Please follow the directions here for deleting the sites 'www' mapping from Google Apps before adding the 'www' mapping for your App Engine app: http://groups.google.com/group/google-appengine/web/deleting-existing-www-mapping-from-google-apps -Marzia On Mon, Jan 19, 2009 at 5:09 PM, JMerre

[google-appengine] Re: Having a strange problem viewing my app

2009-01-20 Thread Rodrigo Moraes
On Tue, Jan 20, 2009 at 3:52 PM, Rodrigo Moraes wrote: > this is a really common issue and should be added to the FAQ if it is > not there already (sorry, i didn't check). uh, an update. it is in the FAQ [1]. see: Q: The first time I load my application, it is blank. After that it works fine.

[google-appengine] app-engine-patch : 'User' has no attribute 'objects' ?

2009-01-20 Thread peterk
Hey there, I've been playing around with app-engine-patch for Django on AE, and I've been pretty happy with it so far. But I've run into a bit of bump on the road. As per the Django documentation, I'm trying to create a User like so: from django.contrib.auth.models import User ... user = User

[google-appengine] Re: memcache get_stats(), what do they mean?

2009-01-20 Thread Marzia Niccolai
Hi, On Google App Engine servers, to prevent wasted work, items are not evicted from memcache's memory until there is memory pressure (it shouldn't return expired results, but the item still might be in the cache, as it seems to be the case here). This is what oldest_item_age measures: oldest_i

[google-appengine] Re: Rendring data on django from ulrfetch

2009-01-20 Thread anand
Hi! Thanks for reply. Yes I tried with smaller content and it works. However I would also need a bigger content. I would be happy to remove the double tag if that will solve my issue. Also I would like to tell that if I store the content of my doc to dataStore then my django can easy render th

[google-appengine] Re: Deadline Exceeded, but not in my app code?

2009-01-20 Thread Marzia Niccolai
Hi, This same message is discussed in this thread: http://groups.google.com/group/google-appengine/browse_thread/thread/fc589cb2247c2806/4c8ec6aacc80873b It's basically the warm up cost of loading a non-standard Django edition. Brett C. seems to have had with trimming the Django Zip file and us

[google-appengine] Re: Exploding Index

2009-01-20 Thread Marzia Niccolai
Hi, >From what you have explained, it doesn't appear as though you will have an issue with exploding indexes, provided you don't start running queries on multiple StringListProperties, and your overall entity definition does not have a lot of properties. This is typically where applications star

[google-appengine] Reminder: App Engine chat time, tomorrow (1/21) 9-10AM

2009-01-20 Thread Marzia Niccolai
Details, as always, can be found here: http://groups.google.com/group/google-appengine/browse_thread/thread/8ea64f610b5ed428 Look forward to chatting with you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google

[google-appengine] Silicon Valley App Engine meetup *tonight*

2009-01-20 Thread Bill
Topic: Hacking App Engine (or how to dig into lower level APIs and customize them to your needs) Speaker: Jens Scheffler (author of App Engine Fan blog), http://blog.appenginefan.com/ Also Pete Koomen, Product Manager of App Engine, will talk about new features and provide an update on the platfo

[google-appengine] Re: How does this CPU limit stuff really work?

2009-01-20 Thread boson
Hi Marzia, thanks for responding. I've read that a few times actually and it's part of what is confusing. See: 1. Re: http://code.google.com/appengine/kb/general.html#highcpu That link describes a message that says: "This request used a high amount of CPU, and was roughly X times over the a

[google-appengine] Re: How does this CPU limit stuff really work?

2009-01-20 Thread boson
Well as to point #1 below, wouldn't you know as I wrote that post I got my first warning in the logs. I see it is different from the exclamation icon. 01-20 12:29PM 15.424 /regions/ 200 1601ms 3270ms-cpu 7kb 69.63.176.230 - - [20/Jan/2009:12:29:17 -0800] "POST /regions/ HTTP/ 1.1" 200 7612 - - W

[google-appengine] Re: hiding private key

2009-01-20 Thread David Symonds
On Wed, Jan 21, 2009 at 1:02 AM, thebrianschott wrote: > Dave, > > Excellent question. Thanks. > > I have been putting my code on the google svn service. And in > principle I would like my code to be public for this project. > > I have been reading in the docs about using the urlfetch.Fetch() >

[google-appengine] Re: "Ancestor is" performance

2009-01-20 Thread ryan
On Jan 19, 7:10 am, Tony Arkles wrote: > > In a thread [1], and in the documentation [2], it says that setting > ancestors doesn't affect performance, but I'm not sure that this is > the case. ... > The measured "ms-cpu" in the request logs comes out WAY smaller for > the "ANCESTOR IS" query (rou

[google-appengine] Re: how to do both filter and order

2009-01-20 Thread ryan
On Jan 20, 6:05 am, "Barry Hunter" wrote: > Its not strictly a gql limitation, but rather a datastore limitation. > > http://code.google.com/appengine/docs/python/datastore/queriesandinde... correct. if you have both inequality filter(s) and sort order(s), the first sort order must be on the sam

[google-appengine] 50% of requests to gae lost

2009-01-20 Thread ten_foot_ninja
Hello, I am using a Flash client to connect to GAE and am noticing about half of my requests seems to disappear. Looking at my app log I see the requests in question: 26.81.3.12 - - [20/Jan/2009:13:37:56 -0800] "POST /gae HTTP/1.1" 200 0 "file:///C|/work/Projects/dev/appEngine/test/static/pyTest.

[google-appengine] Re: app-engine-patch : 'User' has no attribute 'objects' ?

2009-01-20 Thread ryan
On Jan 20, 10:28 am, peterk wrote: ... > AttributeError: type object 'User' has no attribute 'objects' out of curiosity, are you importing the app engine User class after the django User class? e.g. something like: from django.contrib.auth.models import User ... from appengine.api.users import U

[google-appengine] Re: how to do both filter and order

2009-01-20 Thread Barry Hunter
2009/1/20 ryan: > > On Jan 20, 6:05 am, "Barry Hunter" wrote: > >> If your 'date' property really is a date, and not a date+time, you >> should be ok. > > actually, this limitation is unrelated to property type. (hopefully > i'm just misunderstanding your point here...) Ah, I was just saying if

[google-appengine] Re: 50% of requests to gae lost

2009-01-20 Thread Alexander Kojevnikov
See the last question in the community FAQ: http://knol.google.com/k/marce/app-engine-community-faqs/vkzeph4si12v/1# On Jan 21, 8:59 am, ten_foot_ninja wrote: > Hello, > I am using a Flash client to connect to GAE and am noticing about half > of my requests seems to disappear. Looking at my app

[google-appengine] Re: app-engine-patch : 'User' has no attribute 'objects' ?

2009-01-20 Thread peterk
Hey Ryan, Thanks for the reply :) I'm not importing the app engine user class at all. This is what my forms file looks like, for this custom form: from django import forms from django.contrib.auth.models import User class RegistrationForm(forms.ModelForm): class Meta: model = User

[google-appengine] Re: Rendring data on django from ulrfetch

2009-01-20 Thread djidjadji
If I fetch the given page I get a HTML file of size ~51000 bytes. If I just save the text of the document I need ~11000 bytes. If you find this on the development server you can edit the django file and insert some debug. What are the 'bits' that need to be joined? There individual length? How man

[google-appengine] dev_appserver.py missing after an GAE update

2009-01-20 Thread pjesi
Hi GAE was automatically updated today. Since then I can no longer run dev_appserver.py on my Mac.Any ideas? Thanks Viðar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this g

[google-appengine] Re: hiding private key

2009-01-20 Thread thebrianschott
Dave, You seem to be saying that there is no easy way to protect a private key short of writing some code to automate the process of removing and replacing the key from my .py when I upload to the svn and remembering to do so each time. I am not familiar with writing a little script like you sugg

[google-appengine] Re: dev_appserver.py missing after an GAE update

2009-01-20 Thread Dan Sanderson
Start the GoogleAppEngineLauncher application. It will re-create the symlinks. (Annoying, I know. I believe the issue has to do with the permissions the updater has when it runs.) -- Dan On Tue, Jan 20, 2009 at 1:43 PM, pjesi wrote: > > Hi > > GAE was automatically updated today. Since then I

[google-appengine] Re: Fetch callback

2009-01-20 Thread djidjadji
And don't forget the '?' character test = urlfetch.fetch('http://yourappid.appspot.com/check?'+check) 2009/1/19 Gipsy Gopinathan : > I think you have to use the absolute path in your fetch call > ie test = urlfetch.fetch('http://yourappid.appspot.com/check'+check) --~--~-~--~~

[google-appengine] Re: what is wrong with Category.all().filter("c_name=",'ddd'),return nothing?

2009-01-20 Thread djidjadji
2009/1/20 dd : > yes ,you are right. In the first instance i ignore the space character , > And think it is not important. > Is there anyother one like me ? I also fell for this bug. I asked this group and got this answer. I think they added a note for this in the documentation fir filter() after

[google-appengine] Re: Ok I know it's something really dumb but how to upload

2009-01-20 Thread James Ashley
Those are all fine options. But the real answer is to write 2 or 3 .BAT files (start your server, upload, and *save to source control* <-- that's the most important one) and install the Windows "Command Prompt Here" extension. :-/ Good luck, James On Jan 19, 6:10 pm, djidjadji wrote: > You ca

[google-appengine] Re: how to do both filter and order

2009-01-20 Thread kang
Then, how can I do the hot thing? The image class has a datetime property 'date' and a int property 'liked'. I need to get the images after yesterday and then order them by liked. Thanks. On Tue, Jan 20, 2009 at 1:58 PM, ryan > wrote: > > On Jan 20, 6:05 am, "Barry Hunter" > wrote: > > Its not

[google-appengine] CPUHotWarning Pattern

2009-01-20 Thread boson
Hey guys, I came up with this pattern to use when pages might need to create a few objects, and such creations would (sadly) exceed the page's CPU limit and go against your quota. It's a way to ask the browser to redirect back to the same page as each object is created, but without cluttering yo

[google-appengine] is gaeutilities sessions the only 3rd party session manager?

2009-01-20 Thread jeremy
can anyone recommend / mention a session manager other than the one in gaeutilities? --~--~-~--~~~---~--~~ 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@goo

[google-appengine] Re: is gaeutilities sessions the only 3rd party session manager?

2009-01-20 Thread Ian Bicking
On Tue, Jan 20, 2009 at 10:40 PM, jeremy wrote: > can anyone recommend / mention a session manager other than the one in > gaeutilities? > Beaker works with GAE: http://beaker.groovie.org/ -- Ian Bicking | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You

[google-appengine] Re: is gaeutilities sessions the only 3rd party session manager?

2009-01-20 Thread Alexander Kojevnikov
> can anyone recommend / mention a session manager other than the one in > gaeutilities? app-engine-patch [1] supports Django sessions [2] [1] http://code.google.com/p/app-engine-patch/ [2] http://docs.djangoproject.com/en/dev/topics/http/sessions/ --~--~-~--~~~---~--

[google-appengine] Re: Model.put() Override?

2009-01-20 Thread Bill
The most recent SDK (1.1.8) now allows hooks, and that seems to be the best way to hack datastore puts. Jens (http://blog.appenginefan.com/) has started to blog about use of the hook feature and gave two examples at our local App Engine meetup tonight. Stay tuned to his blog for a good explanati