wow, I am incredibly stupid. I didn't import the db.Model subclass..
that explains everything. Thanks alot Andy!
Also, for anyone else coming across this thread:
use childTable.all().ancestor(parent_key) to query an entity to find
its parents (instead of querying the parent table for children)
oH lan, thank´s
- Original Message -
From: Ian Lewis
To: google-appengine@googlegroups.com
Sent: Wednesday, March 18, 2009 10:45 PM
Subject: [google-appengine] Re: from google.appengine.ext
Gustavo,
google.appengine.ext contains a number of things not the least of which
There is 2 question to use gwt in gae:
1:often one page written by hand == 6-7 pages plus 3-4 jpg files
created by GWT
this question is that will waste a lot of resource limited by gae(1K
static file limit)
2:dose get support templete language such danjo?
thanks for you advice
On Mar 18, 12:
Hello,
I created a python application in using eclipse for app engine,I
imported a third party library PIL(Python Image Library),my code goes
like this...
from PIL import Image
im = Image.open("blue hills.jpg")
print im.format, im.size, im.mode
i create my project in D:/Projects/,this example i
Sorry,
When i save my file (holamundo.py) editor "Intype" is
in "ANSI FILE" and CR...
Incorrect: "CR"
Correct: "CR + LF"
Now my litle project is run.
Thank´s
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Go
Hello!
Where are my error?
: invalid syntax (holamundo.py, line 1)
args = ('invalid syntax',
(r'd:\google\trabajos\holamundo\holamundo.py', 1, 40, 'from
google.appengine.ext import webapp\rfrom goo...iAplicacion)\r\t\rif __name__
== "__main__":\r\tmain()'))
filename = r'd:\google\tra
In addition to that, one of the things I have noticed is that the ID/
Name of my records are all one except for the User table. I checked my
datastore on development server and its not generating same ID/Name
On Mar 19, 4:55 pm, reyjexter wrote:
> I have noticed a certain record from my database
does gwt support django tag?
On Mar 18, 12:07 am, Pavel Byles wrote:
> Well, you can use django (or not) to convert your data from the
> datastore to json format. Not _actually_ pass the objects themselves.
>
> On Mar 17, 9:57 am, Amr Ellafi wrote:
>
> > Pavel,
> > that's a good idea, you mean
Correction
2:dose gae support templete language such as django?
On Mar 19, 5:16 pm, Coonay wrote:
> There is 2 question to use gwt in gae:
> 1:often one page written by hand == 6-7 pages plus 3-4 jpg files
> created by GWT
>
> this question is that will waste a lot of resource limited by gae(1
Hi,
I have some strings which I have no trouble storing and retrieving
from the table.
The problem is querying the string with an apostrophe.
I am using the command;
x = db.GqlQuery("SELECT * FROM sometable where x = :1 AND y =:2 AND z
=:3",a,b,c)
at this stage it is z with the string that conta
You can eliminate the batch get when iterating the query, by fetching
all the itemAs in one call.
If you will process ALL the objects from a query, get them ALL, and
then iterate.
def myQuery():
query = A.all().filter('intProperty', val).filter('date >=', date).fetch(1000)
itemBkeys = [A.type
You can put an entity in the memcache without serialize (pickle) it.
It works.
I've tested with many object and it is useless to serialized it
before.
The memcache API does it for us I think.
On Mar 19, 12:32 am, Tim Hoffman wrote:
> Having a read of the docs would be a good idea, as all this
I think currently there is a no "simple" way to check if the
get_or_insert() method does a "get" OR an "insert".
from google.appengine.ext import db
>>> class Pet(db.Model):
name = db.StringProperty()
>>p = Pet.get_or_insert('titi')
>>p.is_saved()
True
The is_saved() method returns always Tru
and you have to rename your main.html to base.html
2009/3/10 kd :
>
> Hi Morten,
>
> Not sure if it's a typo or not, but the issue might be the template
> you're rendering with MainHandler. Try template.render
> ('content.html',''))
>
> On Mar 9, 12:05 am, Morten Bruhn wrote:
>> Hi Guys,
>>
>> F
I have noticed a certain record from my database which got it's pk
appended with "-DA" causing my application to throw a template not
found error. A while ago while testing, i noticed that the "-DA" was
not yet present but what could have possibly caused this problem?
Thanks
--~--~-~--~
Thanks for the question.
It's built over an independent authentication system, so you have an
independent user base from google, for enhanced portability,
independence, etc.
On Mar 18, 5:51 am, Luca wrote:
> Is it built over the Google authentication API's or have you
> reimplemented a thisapp
Hi all
I am using google app engine patch sample [latest]. I want to use
django user authentication with the user table in my datastore so for
this do I need to use
@login_Required attribute on my views.py functions? I have given a try
for this and when I invoke the url related to this particular
you should read:
http://appengine-cookbook.appspot.com/recipe/efficient-use-of-get_or_insert/
--~--~-~--~~~---~--~~
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-a
I've noticed several of my Web App Wednesday apps[1] generating errors
that aren't classified as such by the log viewer.
Case in point, the Insultr[2] dashboard says I've had four errors to
'/' in the last seven hours. The logs don't show any such thing when
you set the minimum severity to 'Error
If I create an app in gae. Can I charge people for use. I didn't fully read
term of use.
--~--~-~--~~~---~--~~
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
Thank you for this info. I will use this idiom.
On Mar 19, 3:00 pm, dafire wrote:
> you should
> read:http://appengine-cookbook.appspot.com/recipe/efficient-use-of-get_or_...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hello,
In my application, I have a 'Contact Us' page for my users to fill in
if they want to send any feedback to me. It requiers the user to fill
in a number of fields and to provide his/her email address. A button
'Send' is used to send the user's filled form to me.
I am using the mail api to
Can you show me how to do this?
Thanks!
On Mar 17, 2:14 am, Nash-t wrote:
> if all you really have to do is read the file you could just put it in
> a .py file and import it.
> Store it as a dictionary or an array or an object. Whatever works.
>
> On Mar 16, 12:31 am, djidjadji wrote:
>
> > Why
Hi there
Just wondering if there is a way to dynamically include content from
within a global template like index.html. I'm hoping to serve
navigation elements from the database to this template while rendering
page specific content through another template. Does this make sense?
If there isn'
So suppose I want to go over the limit of 657,000 calls per day, or
3,000 calls/minute. How much would I be charged for each URL fetch? I
read the FAQ and quota page over and over and cannot figure this out.
I found the following table regarding pricing but it's not related to
URL fetch. Any ideas
Hi,
I am trying to deploy my sample application on Google App Engine
restricted by corporate firewall, and getting the following error,
Before deploying the application, I have set the following
set HTTP_PROXY=http://user:passw...@proxy_ip:port
When I do ping on the appspot.com, it gives the fo
Hi,
I am also facing the same problem as stated by Sunita.
Note: I am trying to upload in an corporate environment. I am setting
both HTTP and HTTPS_PROXY as http://userid:p...@ipaddress:port
When I run the appcfg.py update myapp it gives me the following
stacktrace..
2009-03-19 15:53:38,625 ERRO
Hi,
I have trying a lot a create an appengine app with the name
'getbhavcopy'. However I face the same issue that most others are
facing that ID already exists.
When i was trying to create the app few days back the 'Check
Availability' button used to report that the ID exists, however now a
days
I signed up Google App Engine, verified the SMS code and created a app
"onlinehelpdesk911". But when I sign in each time, it keeps asking me
to create application. I can't access dashboard.
Please help me!
Thanks.
--~--~-~--~~~---~--~~
You received this message b
:) I was kidding. You are using Gmail, so it should already be notifying you
of misspelled words (by underlining them in red - assuming you are using a
browser and sending in rich text/html form).
Good Luck with the app.
Peace Hugs
On Thu, Mar 19, 2009 at 11:34 AM, jeffkyjin wrote:
>
> Can you
Hi,
You need to access your application through
appengine.google.com/a/gotoservers.com
-Marzia
On Thu, Mar 19, 2009 at 7:21 AM, zli wrote:
>
> I signed up Google App Engine, verified the SMS code and created a app
> "onlinehelpdesk911". But when I sign in each time, it keeps asking me
> to cre
Hi,
Please see this section of the docs:
http://code.google.com/appengine/docs/quotas.html#UrlFetch
To go over 657,000 URLFetch calls you need to enable billing. At which
point we enable 46,000,000 URLFetch calls for your account.
The quota you will consume for URLFetch is primarily the bandwid
Hi,
There is a known issue where the 'Check Availability' returns a false
positive on availability, and we are working on addressing this issue. If
you can not reserve the id when attempting to save the 'Create an
Application' form, the id is not available.
Please note that sending an email to a
Hi,
My response to your email bounced. So I'm posting it here:
I see what the issue is here, and unfortunately, there isn't much that can
be done in this case.
If you have an account that is a Google Apps account, App Engine will always
treat this account as a Google Apps account even if it is
Hi,
More information is needed, this works as expected for me:
class TestPage(webapp.RequestHandler):
def get(self):
model = TestModel(mystring="hello's")
model.put()
retr = db.GqlQuery("SELECT * FROM TestModel WHERE mystring = :1",
"hello's").get()
self.response.out.write(retr.
Hi,
While the dev_appserver needs PIL installed to use the Google App Engine
images API, you can not use PIL in your application. See the following
section for more information:
http://code.google.com/appengine/docs/python/images/overview.html
-Marzia
On Thu, Mar 19, 2009 at 2:46 AM, Venky wro
Hello,
As I haven't used data stores before, I am unable to imagine how it is
going to behave:) I have some text files and I want to store its
contents in datastores. Do I load the datastore at the beginning and
then upload my application and use the data in the datastore from
there? Or do we fi
On Mar 18, 6:19 pm, Big Stu wrote:
> I'm having a problem with my App Engine Patch project where if I
> dumpdata from my app engine server using:
> ./manage.py dumpdata --format json > data.json
>
> Then reset the servers data:
> ./manage.py reset
>
> And then try to reload that data:
> ./manage.
How i can get ip visitor and http reffer in Google App Engine in a var?,
thanks guys
--
Saludos Cordiales
Eduardo Águila
Visitame http://eduardoaguila.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google Ap
Pretty simple. Here I printed out some variables that contains
probably everything you need: http://www.chartle.net/debug
On Mar 19, 7:12 pm, Eduardo Aguila wrote:
> How i can get ip visitor and http reffer in Google App Engine in a var?,
> thanks guys
>
> --
> Saludos Cordiales
>
> Eduardo Águi
Isn't this only a problem if you don't require users to log in? Could
you elaborate?
On Mar 18, 9:19 pm, gops wrote:
> anybody can easily add our application to their google apps services.
>
> and may eat all our resources.
>
> How do we prevent that ?
--~--~-~--~~~--
Hey everyone,
I've been watching App Engine for the last year with much interest,
but definitely from the sidelines as I had a whole bunch of issues
that I was unsure about the service. But after the meetup the other
night in Palo Alto, I'm going to be enthusiastically jumping into
developing fo
For statistical reasons I would like to store the time and IP/Email of
people logging in at the time of login. How do I do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to t
Hi,
The documentation for entity-groups and transactions say that entities
must all be in the same eneity group for transaction operations to
work. But it does not specifically say how to put entities in the
same entity group, other than some mention of setting the same parent,
which it also doe
Why do you need a transaction for this operation?
To create B objects that are children of some A use
a=A()
a.put() # create the parent object
bObjs = [B(parent=a, somestring=s) for s in somelist]
db.put(bObjs)
2009/3/19 Anonymous Coderrr :
>
> Hi,
>
> The documentation for entity-groups and t
Data integrity - I want this to be atomic.. I do not want either A
or the list of B's saved if the other fails to save.
On Mar 19, 3:16 pm, djidjadji wrote:
> Why do you need a transaction for this operation?
> To create B objects that are children of some A use
>
> a=A()
> a.put() # create
Thanks for your response Marzia.
This was my mistake.
Problem was when I take a value from the url that has an apostrophe,
it replaces the apostrophe with %27.
All good now, until the next time.
On Mar 19, 1:49 pm, Marzia Niccolai wrote:
> Hi,
>
> More information is needed, this works as exp
Hi Andy,
> Let me suggest that this is a Chinese problem that Chinese will have to
solve.
Let's say Chinese need help from the world to deal with this Chinese
problem, and especially from the only super power and flag bearer of freedom
and democracy. If Google can go a step forward from 'do no ev
> Let's say Chinese need help from the world to deal with this Chinese
> problem, and especially from the only super power and flag bearer of freedom
> and democracy.
He didn't ask for help fixing China. He asked for a Google person to
wine and dine a Chinese govt official. He asked Google to d
I play appengine in China for fun, but I will not play it for bussiness.
2009/3/20 Andy Freeman
>
> > Let's say Chinese need help from the world to deal with this Chinese
> > problem, and especially from the only super power and flag bearer of
> freedom
> > and democracy.
>
> He didn't ask for h
since the data quote seems to be 1GB, i am trying to upload a database
to gae.
but the difficult is the speed is too slow. say a table size is 10MB,
300,000 rows,
if i use buldloader.py , when uploaded 20,000+ rows, get a "ERROR
bulkloader.py] Error in worker [Thread-9]: "
and when i re-run it, i
You can add any application on your domain very easily given you know
application id. and that too , without owner's permission.
i.e. if you have xyz application id ,
you can directly add that to your domain via google apps. i.e. as
www.yourdomain.com can point to xyz application id.
how to pre
hey richard,
I haven't tried this out, but here's an idea:
For your login link use:
=
real_destination = link_to_current_page
statistics_dest = link_to_statistics_page+"?
real_destination="+real_destination
create_login_url(statistics_dest)
Then run your script to get ip and oth
I don't know the quicker way for uploading data, but I successfully
re-ran my uploader.
You must have "sqlite3" module to re-run uploading. You also should set
the option "--db_filename=" for bulkloader.py
I hope you upload your data successfully ;)
neoedmund wrote:
> since the data quote see
I found My app sometimes rais a error "This Google App Engine application is
temporarily over its serving quota. Please try again later.'
But I only use 13.17 of 46.30 CPU hours and 0.34 of 1.00 GBytes , could
anyone tell me what happen? Thks
My app is http://yiqichao.appspot.com/
--~--~
Ok.
Now I found a method to do it.
instead of reading a static file use os.file.
We can use the urllib.urlopen or urllib2.urlopen to get the static
file, then read it.
url = 'http://xxx.appspot.com/myfile.txt'
raw = urlopen(url).read()
or how to change the url to a local address ? 'localhost' ?
Hi,
I have a table that has values stored on the hour, stored in a
DATETIME field. I'm trying to write a query where the date is
irrellevant, it's the time it was stored that matters (for example, to
extract the value at midnight every day).
I've tried the following with no success - dateindex
On Thu, Mar 19, 2009 at 4:12 PM, Dieter Krachtus <
dieter.krach...@googlemail.com> wrote:
>
> Pretty simple. Here I printed out some variables that contains
> probably everything you need: http://www.chartle.net/debug
Really, thanks a lot. have a nice day
>
> On Mar 19, 7:12 pm, Eduardo Aguila
You probably want to sort based on the dateindex, your Model is named Trend24Hr.
Your best shot is to add a Integer property that just describes the
hour, values [0..23].
Expanding your schema is not hard. Follow the directions in [1].
Make sure you first update the code that adds new values to us
OK, thanks, I guess that is easier -- just extending the schema. I'll
wait to see if anyone has any other ideas, but this could be the
easiest approach.
Appreciate the suggestion.
On Mar 20, 5:44 pm, djidjadji wrote:
> You probably want to sort based on the dateindex, your Model is named
> Tr
60 matches
Mail list logo