[google-appengine] ValueError on PhoneNumberProperty

2009-03-21 Thread Laran Evans
I'm using the app-enging django helper Here are my models as defined in models.py. class PhoneInfo(BaseModel): name = db.StringProperty() phone = db.PhoneNumberProperty() class Person(BaseModel): is_verified = db.BooleanProperty() verification_token

[google-appengine] Re: quick data upload?

2009-03-21 Thread neoedmund
On Mar 20, 10:20 pm, Kugutsumen kugutsu...@gmail.com wrote: Out of curiosity what is your upload bandwidth? Have you ever tried uploading a video on youtube or Google Video for example. For example in Indonesia, the best internet access you can get is via cable. They give you  3 mbit

[google-appengine] Re: Data Storage Size - multiplier per object

2009-03-21 Thread neoedmund
On Mar 11, 1:28 am, Jonathan Ultis jonathan.ul...@gmail.com wrote: I created a model with fixed content that requires ~250b serialized, including all field names, the key, and the kind name, and parent (None). I added 312000 of those to the datastore, for 75 megs of rawdata. There are 8

[google-appengine] How to do editing??

2009-03-21 Thread arnie
I have created a very simple django project that is using google datastore. In there I have created a simple user form with first name, last name, address fields. When user clicks on submit button then be able to save these entries in datastore table. What I want to do is to open the form in edit

[google-appengine] why doesn't GQL where clause doesn't match

2009-03-21 Thread Versluys Sander
I have a model: class Page(db.Model): title = db.StringProperty(required=True) uri = db.TextProperty(required=True) created = db.DateTimeProperty(auto_now_add=True) modified = db.DateTimeProperty(auto_now=True) content = db.TextProperty() And I've added an entity with '/work' as uri

[google-appengine] Re: ValueError on PhoneNumberProperty

2009-03-21 Thread Tim Hoffman
HI ListProperty tan take basic properties as contained types, i.e. str, db.Key, Int, but not model objects (se ethe docs for the full list) See http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html and have a look at the value type of ListProperty You are trying

[google-appengine] Re: why doesn't GQL where clause doesn't match

2009-03-21 Thread Tim Hoffman
One thing to check Your query as pasted is page = db.GqlQuery('SELECT * FROM Page WHERE uri=:uri', request.path).get() I think it should read page = db.GqlQuery('SELECT * FROM Page WHERE uri=:uri', uri=request.path).get() or page = db.GqlQuery('SELECT * FROM Page WHERE uri=:1',

[google-appengine] Re: why doesn't GQL where clause doesn't match

2009-03-21 Thread Versluys Sander
Yes that idd correct, i provided a wrong sample. But even when using correct named or positional parameters, it does nog match. Is it possible it has todo with escaping. The uri contains '\work'. I've used Django Forms the generate a form for the Page entity. Does it auto escape? Thanks! On

[google-appengine] Re: why doesn't GQL where clause doesn't match

2009-03-21 Thread Tim Hoffman
Do you mean \work' or '/work' '\' is an escaping character T On Mar 21, 8:19 pm, Versluys Sander versluyssan...@gmail.com wrote: Yes that idd correct, i provided a wrong sample. But even when using correct named or positional parameters, it does nog match. Is it possible it has todo with

[google-appengine] Re: why doesn't GQL where clause doesn't match

2009-03-21 Thread Tim Hoffman
Just to test what is actually in I would do the following Page.all(): and iteraterate through the items and do a repr on the url to just check what is actually stored. And alternatley try us the above approach rather than gql as in Page.all().filter('uri = ',uri) Rgds T and iterate through

[google-appengine] Re: why doesn't GQL where clause doesn't match

2009-03-21 Thread Versluys Sander
Again, you're right. This is getting really embarrassing :-) Yes i'm mean forward slashes as used in urls, so '/work'. Thanks! On 21 mrt, 12:37, Tim Hoffman zutes...@gmail.com wrote: Do you mean \work' or '/work' '\' is an escaping character T On Mar 21, 8:19 pm, Versluys Sander

[google-appengine] Re: why doesn't GQL where clause doesn't match

2009-03-21 Thread Tim Hoffman
In fact you should do a manual loop comparison for i in Page.all(): if i.uri == uri: do something This will provide that uri you have and the value in the model match. T On Mar 21, 8:41 pm, Tim Hoffman zutes...@gmail.com wrote: Just to test what is actually in I would do the

[google-appengine] Re: App Engine Patch - dumpdata then loaddata

2009-03-21 Thread Waldemar Kornewald
On Mar 20, 3:31 pm, Big Stu stu.dohe...@gmail.com wrote: Hi Waldemar,   Thanks for following up, and thanks for all your hard work with App Engine Patch.  I'm having a lot of fun learning about app engine and django in my spare time, and hope to one day move my full time career into this

[google-appengine] Can't access my application

2009-03-21 Thread Brandon Thomson
When I try to access my application I get the following message: We're sorry... ... but your query looks similar to automated requests from a computer virus or spyware application. To protect our users, we can't process your request right now. We'll restore your access as quickly

[google-appengine] Cant Access My App - 403 Forbidden

2009-03-21 Thread Arun Shanker Prasad
Hi, I cannot my Application I am getting a Google error message saying, ... but your query looks similar to automated requests from a computer virus or spyware application. To protect our users, we can't process your request right now. Can anyone please help me?? Thanks, Arun Shanker Prasad

[google-appengine] Google Bot Blocker

2009-03-21 Thread Paul Kinlan
Hi Guys, I am slightly frustrated at the moment :) Google seems to be blocking all my requests with a: We're sorry... ... but your query looks similar to automated requests from a computer virus or spyware application. To protect our users, we can't process your request right now. So this

[google-appengine] Re: Cant Access My App - 403 Forbidden

2009-03-21 Thread Paul Kinlan
I am getting these too. 2009/3/21 Arun Shanker Prasad arunshan...@qburst.com Hi, I cannot my Application I am getting a Google error message saying, ... but your query looks similar to automated requests from a computer virus or spyware application. To protect our users, we can't process

[google-appengine] Re: Google Bot Blocker

2009-03-21 Thread gops
ditto , same problem here... but it is working good on some other pc , it is bad only on my testing pc -- where i test website robot like. -- and it is taking forever to restore.. :( On Mar 21, 5:17 pm, Paul Kinlan paul.kin...@gmail.com wrote: Hi Guys, I am slightly frustrated at the moment

[google-appengine] Re: why doesn't GQL where clause doesn't match

2009-03-21 Thread Versluys Sander
Tim, that's great advice. I'm still getting used to having a interactive console for this debug sort of thing. With following code the console print my '/work' uri so, this way i get a match. from pages import models for i in models.Page.all(): if i.uri == '/work': print i.uri But when

[google-appengine] Re: quick data upload?

2009-03-21 Thread Kugutsumen
On Mar 21, 2:53 pm, neoedmund neoedm...@gmail.com wrote: On Mar 20, 10:20 pm,Kugutsumenkugutsu...@gmail.com wrote: Out of curiosity what is your upload bandwidth? Have you ever tried uploading a video on youtube or Google Video for example. For example in Indonesia, the best internet

[google-appengine] Re: ValueError on PhoneNumberProperty

2009-03-21 Thread Laran Evans
Oh boy! That certainly puts the brakes on some of my ideas. Wow. That solves my immediate problem though. Thanks for the answer. On Mar 21, 5:44 am, Tim Hoffman zutes...@gmail.com wrote: HI ListProperty tan take basic properties as contained types, i.e. str, db.Key, Int, but not model

[google-appengine] Re: why doesn't GQL where clause doesn't match

2009-03-21 Thread Tim Hoffman
Hi On Mar 21, 9:38 pm, Versluys Sander versluyssan...@gmail.com wrote: Tim, that's great advice. I'm still getting used to having a interactive console for this debug sort of thing. No probs Now I am really stumped ;-) Can you do a filter on any other attribute of that entity and see if

[google-appengine] Re: ValueError on PhoneNumberProperty

2009-03-21 Thread Tim Hoffman
Not knowing what you are trying to achive but Have you considered putting a refrence property in the phoneinfo that references the person The in the person you can get all the phoninfo entities by person.phoneinfo_set.all() Which returns all items referencing the Person. See ya T On Mar

[google-appengine] Re: raise NotImplementedError(Only tempfile.TemporaryFile is available for use)

2009-03-21 Thread Mahmoud
Venkat, You should try Miha's patch here: http://persistent.info/files/twitter_appengine.patch It patches twitter.py to work with GAE's restrictions. -Mahmoud On Mar 20, 8:19 am, venkat rambotla venkatrambo...@gmail.com wrote: hey hi tim, my twitter.py code goes like this

[google-appengine] Re: Cant Access My App - 403 Forbidden

2009-03-21 Thread Brandon Thomson
Any idea if there is a workaround? On Mar 21, 8:17 am, Paul Kinlan paul.kin...@gmail.com wrote: I am getting these too. 2009/3/21 Arun Shanker Prasad arunshan...@qburst.com Hi, I cannot my Application I am getting a Google error message saying, ... but your query looks similar to

[google-appengine] Re: appcfg errno 13: Permission Denied

2009-03-21 Thread Versluys Sander
You should look at the stacktrace and look which files trigger the error. Depending on what the problem files are, rename/backup them temporary, and try again to see if this solves anything. I'm using Windows, I think it had something to do with user/group permissions on the file, but still not

[google-appengine] Re: why doesn't GQL where clause doesn't match

2009-03-21 Thread Versluys Sander
I've added you as developer just so you could write a GQL query or add entities yourself, if you want to... http://beta.nekudo.com/pages anyway thanks, you've already narrowed it down... On 21 mrt, 15:36, Tim Hoffman zutes...@gmail.com wrote: Hi On Mar 21, 9:38 pm, Versluys Sander

[google-appengine] Re: why doesn't GQL where clause doesn't match

2009-03-21 Thread Tim Hoffman
Ahhh I had wondered how you had defined it, but was thinking that maybe the indexes hadn't been built yet or something like that. Cheers T On Mar 22, 3:06 am, Versluys Sander versluyssan...@gmail.com wrote: Tim, couple minutes after I invited you as developer and while trying some queries,

[google-appengine] Re: Random error in access to db: Error! class 'google.appengine.api.datastore_errors.Timeout'

2009-03-21 Thread djidjadji
I have these types of errors and guido suggested that they might be datastore time outs in disguise. To fix the problem put a try catch around the get() call and execute the statement again by using a while loop and an attempt counter, this counter is incremented in the catch clause. attempt = 1

[google-appengine] Re: Cant Access My App - 403 Forbidden

2009-03-21 Thread Tim Hoffman
I was getting this last night just reading Google Andriod docs. I wonder if it wasn't some hiccup in googles infrastructure. 10 min later I could read the same docs . T On Mar 22, 2:05 am, Brandon Thomson gra...@gmail.com wrote: Any idea if there is a workaround? On Mar 21, 8:17 am, Paul

[google-appengine] Re: Cant Access My App - 403 Forbidden

2009-03-21 Thread Arun Shanker Prasad
Hi, I also think there was a disruption in Google's service. There was no indication of that in the Status site. I got the App back up again after an hour or so. Are you guys getting your apps now? Thanks, Arun Shanker Prasad. -- From: Tim

[google-appengine] Blocking bad IPs

2009-03-21 Thread Sargis Dallakyan
I've got a user with 61.175.215.214 IP address (registered in China) tring to hack my app and I was wandering what would be the best way to handle this kind of users? I've searched and found issue 718: http://code.google.com/p/googleappengine/issues/detail?id=718 But, for now, I'm thinking of

[google-appengine] my GAE domain is being redirected to an empty Google Sites homepage...

2009-03-21 Thread William
Anyone ever have this happen? I have a web app running on Google App Engine. I want to host it using a custom domain name. I set this up following the instructions available at http://www.google.com/support/a/bin/answer.py?hl=enanswer=91077#verified ... I actually did it for 3 different