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
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
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,
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
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!
--
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
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
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
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
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
'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
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
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:
>
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
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
>
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
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
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
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
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
> 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
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
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
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
> 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
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:
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
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
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.
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
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
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
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
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
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
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
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
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
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()
>
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
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
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.
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
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
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
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
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
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
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
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
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)
--~--~-~--~~
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
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
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
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
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
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
> 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/
--~--~-~--~~~---~--
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
59 matches
Mail list logo