[google-appengine] Re: Does SDK datastore data upload with appcfg.py?

2009-01-02 Thread Alexander Kojevnikov
> Pardon what should be an obvious question, but I have been unable to > find a simple declarative answer.  Is the development data in the dev > server datastore uploaded by appcfg.py? > No, to upload the data you will need to use the bulk data uploader or Gaebar: * http://code.google.com/appengi

[google-appengine] Re: Adding property to a Model

2009-01-02 Thread Alexander Kojevnikov
> I can insert new rows fine, and see them in the Development server > datastore viewer. But when I try to access the new property contains > "NoneType: None". > You can assign a default value to the property, it will be used when an entity has no value for the property: boat = db.StringPropert

[google-appengine] Can not import my data model class in another **.py file ???

2009-01-02 Thread Youngfe
I have a file(xPhotoHandler.py) with following codes inside: from google.appengine.ext import webapp from google.appengine.api import users from xphoto import xPhoto class xPhotoHandler(webapp.RequestHandler): def get(self): pass I have defined xPhoto class in file(xphoto.py) in the m

[google-appengine] Re: Does SDK datastore data upload with appcfg.py?

2009-01-02 Thread kang
no On Sat, Jan 3, 2009 at 2:48 AM, 84dory wrote: > > Pardon what should be an obvious question, but I have been unable to > find a simple declarative answer. Is the development data in the dev > server datastore uploaded by appcfg.py? > > Thanks! > > > > -- Stay hungry,Stay foolish. --~--~-

[google-appengine] Re: lower case string query

2009-01-02 Thread Webweave
In SQL, you simply compare the data value as lower or upper case, which is the approach that is most often used to do a case-insensitive match. So you'd have something like: WHEN UPPER(Mytable.myfield) = UPPER(?) Or in Cake conditions, you'd do something like: '(UPPER(Mytable.myfield))' => st

[google-appengine] Adding property to a Model

2009-01-02 Thread murexconsult...@googlemail.com
I have an existing application that is in production (volvooceanracegamehelp.appspot.com). I would like to add to one of my entities an additional property. I have done this in the python by just adding the line: boat=db.StringProperty() to my class that inherits from db.Model. I can insert ne

[google-appengine] Re: Over Quota: Datastore Indices Count

2009-01-02 Thread Panos
Hi Marzia, Happy new I encounter the same issues at pckidsis.appspot.com. Could you please fix it if it is your issue or let me know how to fix it on my end? Thanks, Panos On Dec 22 2008, 9:03 am, Marzia Niccolai wrote: > Hi, > > If you reply to me with your app id, I will be able to fix this

[google-appengine] Does SDK datastore data upload with appcfg.py?

2009-01-02 Thread 84dory
Pardon what should be an obvious question, but I have been unable to find a simple declarative answer. Is the development data in the dev server datastore uploaded by appcfg.py? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[google-appengine] Re: Access app.yaml values at run time

2009-01-02 Thread DocDay
Robin, that's exactly what I wanted! Clearly I need to take a more serious look at the docs. Thanks so much. Doc On Jan 1, 7:37 pm, Robin B wrote: > See the environment section of the guide: > > http://code.google.com/appengine/docs/python/theenvironment.html > > I think you want: APPLICATION_

[google-appengine] Re: Problem with PDF as a static file

2009-01-02 Thread warreninaustintexas
Yes - I forgot about the 1MB limit. I can probably break it down into two files and get them each under 1MB. Thanks! w. On Dec 31 2008, 12:12 am, Gert-Jan wrote: > Hi Warren, > > Did your pdf-file exceed 1 MB? > > Greetings, > > Gert-Jan --~--~-~--~~~---~--~~ Yo

[google-appengine] Re: currency or comma in float numbers format

2009-01-02 Thread warreninaustintexas
I wrote my own function to convert since I couldn't find a Django filter or Python library to do so. I convert to a summary style format instead of full-precision currency: if abs(what_number) > 10: return_string = str(round(float(what_number)/10,places)) + "B" elif abs(w

[google-appengine] Re: Newbie Help needed - Administration Interface broken?

2009-01-02 Thread fiXedd
Brilliant!!! Worked like a charm. You're a lifesaver, thanks. On Jan 2, 3:08 pm, Alexander Kojevnikov wrote: > Do you use a Google Apps email? Try logging in with this > URL:http://appengine.google.com/a// > > On Jan 2, 2:04 pm, fiXedd wrote: > > > I created a new app and it isn't showing up.

[google-appengine] Re: Timeouts

2009-01-02 Thread Xavier Mathews
Place it in the issue tracker. On 01/02/2009, Alexander Kojevnikov wrote: > >> My application is getting a very high number of data store timeouts. >> >> Is there an unreported issue going on right now? >> > The status monitor doesn't show anything unusual: > http://code.google.com/status/appeng

[google-appengine] currency or comma in float numbers format

2009-01-02 Thread Shay Ben Dov
Hi, Anyone knows how to implement in GAE currency formating of floating numbers like: {{ value|floatformat:2 }} built_in filter Shay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post t

[google-appengine] Re: why java

2009-01-02 Thread magixman
Java as a language vs. Python as a language? Both are serious languages that can get the job done. The real advantage of Java is that just about any component you care to think of has already been done in Java. Python is not there yet and what is worse is that the concept of "pure python" is r

[google-appengine] Re: Timeouts

2009-01-02 Thread Alexander Kojevnikov
> My application is getting a very high number of data store timeouts. > > Is there an unreported issue going on right now? > The status monitor doesn't show anything unusual: http://code.google.com/status/appengine/detail/datastore/2009/01/02 --~--~-~--~~~---~--~~

[google-appengine] Re: Newbie Help needed - Administration Interface broken?

2009-01-02 Thread Alexander Kojevnikov
Do you use a Google Apps email? Try logging in with this URL: http://appengine.google.com/a// On Jan 2, 2:04 pm, fiXedd wrote: > I created a new app and it isn't showing up. Every time I go to > appengine.google.com it asks me to create a new project... even after > I've created several. Howeve

[google-appengine] Re: Global Time Synchronisation Guarantees

2009-01-02 Thread Bryan A. Pendleton
If you really just care about consistency, and you're actually thinking of using external requests (which, because of propagation delays would still not provide a very strong guarantee), why not just bite the bullet and use a single object to synchronize transaction? This will force you to write y

[google-appengine] Re: Timeouts

2009-01-02 Thread Xavier Mathews
Nope no that we know of.be sure that it is not a server time out and that there is no bug in the app preventing it to load correctly! It may just be loading time or the save time could be to long..space issue! ETC Xavier A. Mathews Student/Browser Specialist/Developer/Web-Master Client Bas

[google-appengine] Re: Global Time Synchronisation Guarantees

2009-01-02 Thread James Ashley
On Jan 1, 12:17 pm, Andy Freeman wrote: > > For a number of possible reasons (including the consistency of a > > running balance), an accounts engine might have a basic specification > > requirement that invoices are generated in sequence with ascending > > invoice numbers *and* ascending invoic

[google-appengine] Re: urlencode in app engine templates

2009-01-02 Thread ctran
Look at the source instead of what the browser tells you: you'll see that is encoded (with %20) On Jan 1, 4:54 am, Remis B wrote: > Hi Everyone > > I need to url encode an string in the template. In django template > language reference I saw documentation for filter "URLENCODE" which > "Escapes

[google-appengine] Re: Validating UTF-8 securely

2009-01-02 Thread Ross Ridge
Alexander Konovalenko wrote: > Did those who implemented str.decode() and the codecs module design > them to handle any possible malicious UTF-8 input correctly? The UTF-8 decoder is designed to convert UTF-8 to Unicode and to treat any input that's not valid UTF-8 as an error. > Unicode is comp

[google-appengine] Re: maximum number of versions

2009-01-02 Thread bFlood
Marzia- this is happening again, it was working fine all morning and then all of a sudden I keep getting that error again cheers brian On Dec 22 2008, 10:36 am, bFlood wrote: > just wanted to reply to the group for future users. the app started > working again about an hour after Marzia posted

[google-appengine] SMS: through python AIM/gtalk libraries?

2009-01-02 Thread mclovin
I wanted to test out some SMS web app, where I can communicate w/ the application from my phone. I was wondering if the App Engine allows me to do this through the use of either AIM libraries or Gtalk Libraries written in python. Thanks --~--~-~--~~~---~--~~ You r

[google-appengine] three web proxy sites on Google app Engine(proxypy, go2, web-proxy), which is better?

2009-01-02 Thread auzhuang
I found three web proxy sites on Google app : http://proxypy.appspot.com/ http://go2.appspot.com/ http://web-proxy.appspot.com/ which is better? Is it open source? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[google-appengine] Timeouts

2009-01-02 Thread Aaron
My application is getting a very high number of data store timeouts. Is there an unreported issue going on right now? -Aaron O'Brien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To pos

[google-appengine] Newbie Help needed - Administration Interface broken?

2009-01-02 Thread fiXedd
I created a new app and it isn't showing up. Every time I go to appengine.google.com it asks me to create a new project... even after I've created several. However, if I try and upload my app (using one of the names I created) it works fine and is available @ appname.appspot.com. Can anyone help?

[google-appengine] Should I use App Engine Patch

2009-01-02 Thread Ray Malone
I'm not sure of the benefits of using the Patch. I have been able to build two good sized apps (1000+ lines of code each) using the App Engine defaults. I know my code is not best practice yet, so I'm looking to learn more and make my next app better. While I like how the models are setup, the

[google-appengine] Re: one application multiple alias domain

2009-01-02 Thread gops
thanks , that just didn't occur to me...rocking!! one more question :: How can i handle multiple google apps account from same interface ? ... basically i have multiple clients , and as a admin , it is quite tadious to logout and login for different admin ... and as it occurs to me ,

[google-appengine] Re: "RuntimeError: maximum recursion depth exceeded" when accessing User object (app engine patch)

2009-01-02 Thread reyjexter
after further investigating the problem, i noticed that the email field on the User model is causing the problem. Here is the last few lines of the trace: File "/home/jexter/pythonworkspace/myproject/common/appenginepatch/ ragendja/auth/models.py", line 40, in __str__ return unicode(self).en

[google-appengine] Re: Validating UTF-8 securely

2009-01-02 Thread Alexander Konovalenko
On Fri, Jan 2, 2009, Ross Ridge wrote: > Alexander Konovalenko wrote: > > > But is that secure? > > [...] > > The official Python documentation does not explicitly say that. > > The documentation for str.decode() is explict: > >Decodes the string using the codec registered for encoding. [...]

[google-appengine] "RuntimeError: maximum recursion depth exceeded" when accessing User object (app engine patch)

2009-01-02 Thread reyjexter
i'm not sure if this is the correct place to post this problem. anyway my problem seems to occur when trying to access the user object. even when logging the user object stored on request using this simple code: import logging logging.debug(request.user) and even after adding the code: import

[google-appengine] Re: Validating UTF-8 securely

2009-01-02 Thread Ross Ridge
Alexander Konovalenko wrote: > try: > safe_unicode = unsafe_user_input.decode('utf8') > except UnicodeDecodeError: > # the input is not valid UTF-8 > response.write(escape(safe_unicode)) # this is safe now. Or is it? > > But is that secure? Is it guaranteed that the UnicodeDecodeErro

[google-appengine] dev_appserver.py Encountered error loading module

2009-01-02 Thread Toney
I get the following errors when I access any page of my application, can anyone tell me what i may be missing? Strange thing is the pages for the apps loads fine, the error below comes from the server console. ERROR2009-01-02 13:58:20,155 dev_appserver.py] Encountered error loading module

[google-appengine] Validating UTF-8 securely

2009-01-02 Thread Alexander Konovalenko
This is a question to Google developers who are working on the Python runtime. Before I get to the subject matter let me start with a two-paragraph introduction to provide a common background for all readers. There is an interesting kind of XSS vulnerability involving malformed UTF-8. Sometimes a

[google-appengine] return a variable value from html form to python

2009-01-02 Thread thebrianschott
I cannot retrieve the value of the variable "g_place" in the following python script back from "add_place.html". "g_place" is effectively sent to "add_place.html" in the "def get(self)" section of class AddPlace, but "g_place" is not returned to the python script in the "def post(self)" section of

[google-appengine] Re: How to query through multiple models?

2009-01-02 Thread Rodrigo Moraes
On Fri, Jan 2, 2009 at 9:25 AM, djidjadji wrote: > parents = db.get([Entity.parent.get_value_for_datastore(entity) for > entity in result]) > > Is more efficient because you only do 1 call to the datastore, for > multiple objects. Awesome... I thought it was not possible to get the key from a Ref

[google-appengine] Re: Memcache Question

2009-01-02 Thread Toney
Thank you djidja, that was very helpful On Jan 1, 4:02 am, djidjadji wrote: > A snippet from the code for google.appengine.api.users > -- >   A nickname is a human-readable string which uniquely identifies a Google >   user, akin to a username. It will be an email address for some users,

[google-appengine] Re: How to query through multiple models?

2009-01-02 Thread djidjadji
parents = db.get([Entity.parent.get_value_for_datastore(entity) for entity in result]) Is more efficient because you only do 1 call to the datastore, for multiple objects. 2009/1/2 Rodrigo Moraes : > > On Fri, Jan 2, 2009 at 1:59 AM, Tiago S. wrote: >> I´m facing the exactly same problem. I thou

[google-appengine] Re: How to query through multiple models?

2009-01-02 Thread Rodrigo Moraes
On Fri, Jan 2, 2009 at 1:59 AM, Tiago S. wrote: > I´m facing the exactly same problem. I thought about querying all(with > a fetch(100), in my case) the children with name 'Joe', and then put > all the parent keys in a list(with a list comprehension, maybe). With > all the keys, query the Parent u

[google-appengine] Re: A newbie's site

2009-01-02 Thread lookon
我已经做了不少修改了,现在支持RSS了已经,并且在图片的内容页会显示随机图片。CSS也优化过了 On Dec 8 2008, 4:04 pm, lookon wrote: > I've built a google app engine site based on the simpleviewer example > and FriendFeed Share Bookmarklet. The url ishttp://images.kangye.org/ > > It's a website to let people shareimagesthey saw on the Intern