[google-appengine] Re: Design consideration

2009-01-31 Thread djidjadji
The strength of GAE is to handle many simultaneous requests (scalability). If they only read objects then there is absolutely no lock problem. If multiple requests want to write-to/update a single object/entity-group you can get collisions. They are resolved by executing your code in a transaction

[google-appengine] Re: ModelFormSets?

2009-01-31 Thread Waldemar Kornewald
Hi, On Jan 31, 2:11 am, Hawke wrote: > I'm trying to setup a quick and easy means for editing several rows of > the database at once. Using ModelForm I can easily get a single entry > setup and I see on the django has a ModelFormSet that would allow me > to take a query and edit multiple entries

[google-appengine] Re: Local Django Slow: Could not import "strop": Disallowed C-extension or built-in module...

2009-01-31 Thread Waldemar Kornewald
Hi, On Jan 29, 10:55 pm, boson wrote: > Running Django + app-engine-patch locally... Frequently on requests > (can't determine why/when) I get these two log items: > > DEBUG Could not import "strop": Disallowed C-extension or built-in > module > DEBUG Could not import "fcntl": Disallowed C-exten

[google-appengine] File Upload with Django1.0.2 problem - 'NoneType' object has no attribute 'validate'

2009-01-31 Thread wonglik
Hi I have problem validating uploaded file using Django 1.0.2. I have : class Create_profile(djangoforms.ModelForm): clubs = db.GqlQuery("Select * from Club") C = [(x.key(), x.name) for x in clubs] club = forms.ChoiceField(choices=C) class Meta: model=Profile because bl

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

2009-01-31 Thread emi420
realgt, Now you can see the "open in new window" in http://microbloog.appspot.com/ Thanks!!! On Jan 21, 11:16 am, realgt wrote: > I agree, great UI implementation, and for people who wouldn't use it > add a link "open in new window". phishing concerns for first time > users would be resolved o

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

2009-01-31 Thread David Wilson
2009/1/18 emi420 : > > 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. Hi there, As much as I'm happy to hear this works because I've been wanting to use something like it myself, I'm surprised that it

[google-appengine] Re: ModelFormSets?

2009-01-31 Thread Hawke
I didn't realize it would... all the talk about it handles models different made me assume, I'll try that out, thanks! On Jan 31, 5:39 am, Waldemar Kornewald wrote: > Hi, > > On Jan 31, 2:11 am, Hawke wrote: > > > I'm trying to setup a quick and easy means for editing several rows of > > the da

[google-appengine] Datastore overhead

2009-01-31 Thread Adi
The app I'm currently working on would have to store for every user a few (3-4) integers for every minute of the day. Should I store each minute for a user as an entity in the datastore, or would this be too much overhead? Perhaps another solution would be to store a list for every hour, the list

[google-appengine] error (on vista)

2009-01-31 Thread hbaydarov
i just copied what is written in getting started page. and while i run the program on the command line like that \Program Files\Google \google_appengine\dev_apserver.py helloworld the error occured like that Traceback (most recent call last): File "C:\Program Files\Google\google_appengine\dev_a

[google-appengine] Having trouble with sharded-counters

2009-01-31 Thread cdub
Hello. I am new to Google App Engine, Django and Python. I was able to get the sharded-counter example found here to work: http://code.google.com/p/google-app-engine-samples/source/browse/#svn/trunk/sharded-counters But when I try to re-use the general counter in my own program, I get the foll

[google-appengine] can't get helloworld to work...

2009-01-31 Thread sparechangepayme...@gmail.com
Just starting out and I get this error when trying to run on windows vista with python 2.5. Any ideas? c:\>dev_appserver.py helloworld\ Traceback (most recent call last): File "C:\Program Files\Google\google_appengine\dev_appserver.py", line 60, in run_file(__file__, globals()) File "C:

[google-appengine] Re: Datastore overhead

2009-01-31 Thread boson
One thing to consider is that if you are never searching on the integers themselves, then keeping them out of indexed properties should reduce some overhead in creating/updating indexes (which automatically exist for all Integer and List fields!). So if you went with your hourly entity approach,

[google-appengine] Can I separate py file?

2009-01-31 Thread Pikaurd Chen
Hi guys, Now, I have to add all my handler in a 'main.py', like this application = webapp.WSGIApplication([('/', MainPage), (r'/([0-9]+).html', MainPage), (r'/res/(.*).html/(.*)', ResPage),

[google-appengine] Re: error (on vista)

2009-01-31 Thread Geoffrey Spear
On Jan 31, 8:08 am, hbaydarov wrote: > i just copied what is written in getting started page. and while i run > the program on the command line like that \Program Files\Google > \google_appengine\dev_apserver.py helloworld  the error occured like > that > > Traceback (most recent call last): >

[google-appengine] Re: Can I separate py file?

2009-01-31 Thread Barry Hunter
Perhaps you looking to add multiple entries too app.yaml http://code.google.com/appengine/docs/python/tools/configuration.html That way you can point the application server at the correct py file. 2009/2/1 Pikaurd Chen : > Hi guys, > Now, I have to add all my handler in a 'main.py', like this

[google-appengine] Re: Having trouble with sharded-counters

2009-01-31 Thread Pikaurd Chen
I haven't all your code, so I think something wrong in "self.app_label = model.__module__.split('.')>>>[-2]<<<" Because "IndexError: list index out of range". In my opinion there are something's length less than 2. I'm a freshman, too. On Feb 1, 2009, at 5:18 AM, cdub wrote: > > Hello. > >

[google-appengine] Can't understand this error :-

2009-01-31 Thread ramu
Seems like urlfetch is not at all working on SDK with internet connectivity behind a proxy server .. Please help me.What else I need to do ??? Here are the error logs :- Traceback (most recent call last): File "C:\ProgramFiles2\Google\google_appengine\test.py", line 5, in result = urlfetc

[google-appengine] Data sort problem(GQL)

2009-01-31 Thread Pikaurd Chen
Hi guys, I want sort some data by date and put some thing out. My gql like this ("SELECT * FROM Messages WHERE nickname != :1 ORDER BY date DESC", 'Owner') As we known "First ordering property must be the same as inequality filter property" So how can I sorting by date and list 'Owner' only?

[google-appengine] self.request.get(???) - for data POSTed as actionscript bytearray

2009-01-31 Thread tom s
Hi, I'm trying to send a bytearray from a Flash app to GAE, and store it as a db.BlobProperty. I think I have the actionscript correct (see below), but I don't know how to get a reference the object in GAE. So when I write: self.request.get(???) I don't know what to put in '???'. When I have be