[google-appengine] Re: Query and Batch limits?

2009-02-03 Thread ryan

On Feb 2, 11:05 am, Robin B  wrote:
>
> And I assume you are saying there is no limit on # keys/models for
> batch get/put/delete.

actually, we do have limits on those: 1000 keys per batch get and 500
entities/keys per batch put/delete.

> What about when using cron?  Will the same rules apply?

without getting too much into cron itself, yes, any app engine code
that uses the datastore will generally be subject to these per-
operation limits.

> On Feb 2, 11:44 am, Marzia Niccolai  wrote:
>
> > There is no 'maximum' for queries per request or maximum number of
> > entities per request, these things rely heavily on the size and shape
> > of the data you are querying.

this is true. by "30 queries per request," i'm guessing robin actually
meant 30 subqueries per query. this happens with the IN and !=
operators, which are implemented in pure python, in user land, by
running multiple subqueries and merging the results. these kinds of
queries are limited to at most 30 subqueries. this is mentioned in the
"Note" on 
http://code.google.com/appengine/docs/python/datastore/gqlreference.html
.

we're planning to publish a more comprehensive document with all of
these limits soon. thanks for the nudge!
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem with models & Google App Engine Helper for Django

2009-02-03 Thread Ian Lewis
cw,

What's the directory where models.py with your Quiz model in it? More
accurately what is the python module with your Quiz model in it?

2009/2/3 cdub 

>
> I have my application up and running with the Google App Engine Helper
> for Django.
>
> But when I went to add a simple model:
>
> models.py
> --
>
> from appengine_django.models import BaseModel
> from google.appengine.ext import db
>
> class Quiz(BaseModel):
>question = db.StringProperty()
>
> I started getting the following error:
>
> IndexError at /
> list index out of range
> Request Method: GET
> Request URL:http://localhost:8080/
> Exception Type: IndexError
> Exception Value:list index out of range
> Exception Location: /Users/carlin/Documents/Personal/Programming/
> mysite/appengine_django/models.py in __init__, line 51
>
> Any ideas?
>
> Thanks,
> cw
> >
>


-- 
===
株式会社ビープラウド  イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianmle...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
===

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: The API call datastore_v3.Delete() required more quota than is

2009-02-03 Thread Ian Lewis
You likely need to wait a day or so to have the quotas reset themselves. It
looks like you using too much of one of the appengine quotas.

2009/2/3 Ilia Lobsanov 

>
> Correction, it's datastore_v3.Get() not Delete()
>
> The exact traceback is:
>
> Traceback (most recent call last):
>  File "/base/python_lib/versions/1/google/appengine/ext/bulkload/
> __init__.py", line 376, in LoadEntities
>new_entities = loader.CreateEntity(columns, key_name=key_name)
>  File "/base/python_lib/versions/1/google/appengine/ext/bulkload/
> __init__.py", line 235, in CreateEntity
>entities = self.HandleEntity(entity)
>  File "/base/data/home/apps/govtenders/107.331152630405006468/
> loader.py", line 30, in HandleEntity
>old_contract = Contract.get_by_key_name(old_key_name)
>  File "/base/python_lib/versions/1/google/appengine/ext/db/
> __init__.py", line 837, in get_by_key_name
>return get(*keys)
>  File "/base/python_lib/versions/1/google/appengine/ext/db/
> __init__.py", line 1032, in get
>entities = datastore.Get(keys)
>  File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 215, in Get
>apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Get', req, resp)
>  File "/base/python_lib/versions/1/google/appengine/api/
> apiproxy_stub_map.py", line 68, in MakeSyncCall
>apiproxy.MakeSyncCall(service, call, request, response)
>  File "/base/python_lib/versions/1/google/appengine/api/
> apiproxy_stub_map.py", line 240, in MakeSyncCall
>stub.MakeSyncCall(service, call, request, response)
>  File "/base/python_lib/versions/1/google/appengine/runtime/
> apiproxy.py", line 183, in MakeSyncCall
>rpc.CheckSuccess()
>  File "/base/python_lib/versions/1/google/appengine/api/
> apiproxy_rpc.py", line 107, in CheckSuccess
>raise self.exception
> OverQuotaError: The API call datastore_v3.Get() required more quota
> than is available.
>
>
>
>
> On Feb 3, 1:10 am, Ilia Lobsanov  wrote:
> > I've ran into the error "The API call datastore_v3.Delete() required
> > more quota than is available. "
> >
> > What I'm doing is using the bulkload_client.py to load 4 entities at a
> > time.
> > eg. "INFO 2009-02-03 01:03:42,049 bulkload_client.py] Importing 4
> > entities in 953 bytes"
> >
> >  After ~174 such imports, I get the quota error.
> >
> > The loader HandleEntity is doing the following:
> > 1) lookup an entity A by key name
> > 2) delete entity A if found
> > 3) lookup an entity A by another key name
> > 4) create a SearchableEntity based on the entity
> > 5) lookup an entity B by key name
> > 6) update entity B if found and put() it
> > 7) lookup an entity C by key name
> > 8) update entity C if found and put() it
> > 9) return the SearchableEntity
> >
>


-- 
===
株式会社ビープラウド  イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianmle...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
===

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] date range in query

2009-02-03 Thread arnie

For a datastore table with two db.DateTimeProperty columns start_date
and end_date, i need to use a date range in query but below given
query is not working
current_date=datetime.datetime.strptime(self.request.get
('current_date'), '%Y-%m-%dT%H:%M:%S')

db.GqlQuery('SELECT * FROM myTable where start_date>=:cdate and
end_date<=:cdate',cdate=current_date)
in the parameters I am passing current_date=2009-01-10T00:00:00
Should we not compare dates this way?
But this is not working
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: date range in query

2009-02-03 Thread niklasr

gql as below works.
SELECT * FROM Image where added > DATETIME(2009,1,1,0,0,0) and added <
DATETIME(2009,2,1,0,0,0)
we must use the integer form (the manual lists b0rked forms)
http://code.google.com/p/googleappengine/issues/detail?id=878
cheers
niklas

On Feb 3, 12:02 pm, arnie  wrote:
> For a datastore table with two db.DateTimeProperty columns start_date
> and end_date, i need to use a date range in query but below given
> query is not working
> current_date=datetime.datetime.strptime(self.request.get
> ('current_date'), '%Y-%m-%dT%H:%M:%S')
>
> db.GqlQuery('SELECT * FROM myTable where start_date>=:cdate and
> end_date<=:cdate',cdate=current_date)
> in the parameters I am passing current_date=2009-01-10T00:00:00
> Should we not compare dates this way?
> But this is not working
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: BadValueError: Property fAmount must be a str or unicode instance, not a float

2009-02-03 Thread Mark Hachey
Thank you Alex. That took care of the issue.

On Mon, Feb 2, 2009 at 8:35 PM, Alexander Kojevnikov <
alexan...@kojevnikov.com> wrote:

>
> On Feb 3, 11:11 am, Mark  wrote:
> > My app is working fine locally on dev_appserver, but I am getting the
> > error in the subject line after I do an "appcfg update".
> >
> > The error occurs on a query that happens on the welcome page of the
> > app.
> >
> > I think I uploaded a version that had FloatProperty in one of my
> > databases, but I can't remember my exact order of operations that led
> > to this error. Now, I've changed my application locally so that that
> > field in my database is a StringProperty (I'll deal with the
> > "floatness" of it later) and I get an error after I do appcfg update.
> >
> You probably still have entities in the datastore with float property
> values. If you have few of them, go to the Data Viewer and edit the
> values manually. There is an option to change the type of the property
> values.
>
> If you have a lot of them, you will need to write a data migration
> script, see this article for some pointers:
> http://code.google.com/appengine/articles/update_schema.html
>
> > I also tried using Python 3.0 (I got an error message from the
> > appserver that said I can't use FloatProperty with 2.5), but I got an
> > error in dev_appserver.py because execfile() is obsolete (is there a
> > workaround for this, yet?)
> >
> Python 3.0 is not supported by the App Engine, you need to use Python
> 2.5. Star this issue if Python 3.0 support is important for you:
> http://code.google.com/p/googleappengine/issues/detail?id=909
>
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: ReferenceListProperty

2009-02-03 Thread mcobrien

Hi, I'm not sure if it's what you're looking for, but parent-child
relationships are best modeled by using a property on the child
entity, which adds a new property to the parent.

So for:

class Company:
   pass

class Employee:
   name = db.StringProperty()
   company = db.ReferenceProperty(Company,
collection_name="employees")

... instances of Company will have an "employees" property which will
result in a query for all Employee instances the reference the
company.

The article below has some great details on creating entity
relationships:
http://code.google.com/appengine/articles/modeling.html

thanks
M

On Feb 2, 2:39 pm, dbikard  wrote:
> Is there something like a ReferenceListProperty? Is there a way to
> have in a model a property which would be a list of references to
> other model entities? If it's not possible, is there a way to achieve
> the same thing differently?
>
> Thx a lot!
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: The API call datastore_v3.Delete() required more quota than is

2009-02-03 Thread Ilia Lobsanov

What I'd like to know is what I'm doing wrong here...

On Feb 3, 4:17 am, Ian Lewis  wrote:
> You likely need to wait a day or so to have the quotas reset themselves. It
> looks like you using too much of one of the appengine quotas.
>
> 2009/2/3 Ilia Lobsanov 
>
>
>
>
>
> > Correction, it's datastore_v3.Get() not Delete()
>
> > The exact traceback is:
>
> > Traceback (most recent call last):
> >  File "/base/python_lib/versions/1/google/appengine/ext/bulkload/
> > __init__.py", line 376, in LoadEntities
> >new_entities = loader.CreateEntity(columns, key_name=key_name)
> >  File "/base/python_lib/versions/1/google/appengine/ext/bulkload/
> > __init__.py", line 235, in CreateEntity
> >entities = self.HandleEntity(entity)
> >  File "/base/data/home/apps/govtenders/107.331152630405006468/
> > loader.py", line 30, in HandleEntity
> >old_contract = Contract.get_by_key_name(old_key_name)
> >  File "/base/python_lib/versions/1/google/appengine/ext/db/
> > __init__.py", line 837, in get_by_key_name
> >return get(*keys)
> >  File "/base/python_lib/versions/1/google/appengine/ext/db/
> > __init__.py", line 1032, in get
> >entities = datastore.Get(keys)
> >  File "/base/python_lib/versions/1/google/appengine/api/
> > datastore.py", line 215, in Get
> >apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Get', req, resp)
> >  File "/base/python_lib/versions/1/google/appengine/api/
> > apiproxy_stub_map.py", line 68, in MakeSyncCall
> >apiproxy.MakeSyncCall(service, call, request, response)
> >  File "/base/python_lib/versions/1/google/appengine/api/
> > apiproxy_stub_map.py", line 240, in MakeSyncCall
> >stub.MakeSyncCall(service, call, request, response)
> >  File "/base/python_lib/versions/1/google/appengine/runtime/
> > apiproxy.py", line 183, in MakeSyncCall
> >rpc.CheckSuccess()
> >  File "/base/python_lib/versions/1/google/appengine/api/
> > apiproxy_rpc.py", line 107, in CheckSuccess
> >raise self.exception
> > OverQuotaError: The API call datastore_v3.Get() required more quota
> > than is available.
>
> > On Feb 3, 1:10 am, Ilia Lobsanov  wrote:
> > > I've ran into the error "The API call datastore_v3.Delete() required
> > > more quota than is available. "
>
> > > What I'm doing is using the bulkload_client.py to load 4 entities at a
> > > time.
> > > eg. "INFO 2009-02-03 01:03:42,049 bulkload_client.py] Importing 4
> > > entities in 953 bytes"
>
> > >  After ~174 such imports, I get the quota error.
>
> > > The loader HandleEntity is doing the following:
> > > 1) lookup an entity A by key name
> > > 2) delete entity A if found
> > > 3) lookup an entity A by another key name
> > > 4) create a SearchableEntity based on the entity
> > > 5) lookup an entity B by key name
> > > 6) update entity B if found and put() it
> > > 7) lookup an entity C by key name
> > > 8) update entity C if found and put() it
> > > 9) return the SearchableEntity
>
> --
> ===
> 株式会社ビープラウド  イアン・ルイス
> 〒150-0012
> 東京都渋谷区広尾1-11-2アイオス広尾ビル604
> email: ianmle...@beproud.jp
> TEL:03-5795-2707
> FAX:03-5795-2708http://www.beproud.jp/
> ===
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: App Engine Datastore loses data?

2009-02-03 Thread Tarek

I've confirmed that re-putting those entities fixed my problem.
Thanks for the help.

-Tarek
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] availibity of gcc

2009-02-03 Thread minorproject...@gmail.com

Is gcc available in the server provided by the appengine?

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Dynamic list in django form for a pull-down menu

2009-02-03 Thread Brian

I've been trying to figure this out for hours across a couple of days,
and can not get it to work. I've been everywhere. I'll continue trying
to figure it out, but was hoping for a quicker solution. I'm using App
Engine datastore + Django.

Using a query in a view and custom forms, I was able to get a list to
the form but then I was not able to post. I have been trying to figure
out how to dynamically add the choices as part of the Django form...
I've tried various ways with no success. Help!

Below are the two models and my form. In InfoForm, I’d like to display
a list of address_id from the Locations db for the current user. By
the way, I realize I need to use some other sort of property for
address_id, and have tried several recommendations, but have not been
able to figure out the right approach yet.

class Info(db.Model):
user = db.UserProperty()
address_id = db.StringProperty()
info = db.StringProperty()
created = db.DateTimeProperty(auto_now_add=True)
modified = db.DateTimeProperty(auto_now=True)

class Locations(db.Model):
user = db.UserProperty()
address_id = db.StringProperty()
address = db.StringProperty()

class InfoForm(djangoforms.ModelForm):
address_id = forms.ChoiceField()
info = forms.ChoiceField(choices=INFO_CHOICES)  class Meta:
model = Info
exclude = ['user','created','modified']

Example of data in Locations:
user = t...@example.com
address_id = home
address = 999 washington st, somecity, CA

user = t...@example.com
address_id = work
address = 123 lincoln st, somecity, CA

So, if t...@example.com is logged in, I’d like to display home and
work in the address_id (pull-down menu) field of InfoForm.

Thanks

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] inequality filters on two different properties

2009-02-03 Thread Rick

I'm confused. If this statement (GQL query is not allowed, because it
uses inequality filters on two different properties in the same query)
holds then how am I to do a Calendar type app and query the DataStore
for all events that occur within a 30 day window?  Isn't that
something like:

Select * from Calendar where beginDate >= beginofDateRange and endDate
<= endofDateRange

How could I do that? How does Google Calendar do that?

Thanks,
Rick

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem with models & Google App Engine Helper for Django

2009-02-03 Thread Carlin Wiegner

Right now my models.py is in the root directory of "mysite".

Here's the output of that directory:

total 160
-rw-r--r--@  1 carlin  admin   3203 Feb  2 22:56 CHANGES
-rw-r--r--@  1 carlin  admin  11358 Feb  2 22:56 COPYING
-rw-r--r--@  1 carlin  admin323 Feb  2 22:56 KNOWN_ISSUES
-rw-r--r--@  1 carlin  admin   6900 Feb  2 22:56 README
-rw-r--r--@  1 carlin  admin 33 Feb  2 22:56 VERSION
-rw-r--r--@  1 carlin  admin  0 Feb  2 22:56 __init__.py
-rw-r-@  1 carlin  admin139 Feb  2 23:00 app.yaml
drwxr-xr-x@ 16 carlin  admin544 Feb  2 23:00 appengine_django
-rw-r-   1 carlin  admin471 Feb  2 23:00 index.yaml
-rwxr-x---@  1 carlin  admin   1386 Feb  2 22:56 main.py
-rwxr-xr-x@  1 carlin  admin   1220 Feb  2 22:56 manage.py
-rw-r--r--   1 carlin  admin142 Feb  2 23:03 models.py
-rw-r--r--   1 carlin  admin533 Feb  2 23:01 models.pyc
-rw-r--r--@  1 carlin  admin   3583 Feb  2 22:56 settings.py
-rw-r--r--   1 carlin  admin   1849 Feb  2 23:00 settings.pyc
-rw-r--r--@  1 carlin  admin819 Feb  2 23:01 urls.py
-rw-r--r--   1 carlin  admin306 Feb  2 23:01 urls.pyc
-rw-r--r--   1 carlin  admin781 Feb  2 23:02 views.py
-rw-r--r--   1 carlin  admin   1409 Feb  2 23:01 views.pyc

I don't have it wrapped in a module aside from the fact it's in a file
called models.py.

Thanks for the help!
cw

On Tue, Feb 3, 2009 at 1:15 AM, Ian Lewis  wrote:
>
> cw,
>
> What's the directory where models.py with your Quiz model in it? More 
> accurately what is the python module with your Quiz model in it?
>
> 2009/2/3 cdub 
>>
>> I have my application up and running with the Google App Engine Helper
>> for Django.
>>
>> But when I went to add a simple model:
>>
>> models.py
>> --
>>
>> from appengine_django.models import BaseModel
>> from google.appengine.ext import db
>>
>> class Quiz(BaseModel):
>>question = db.StringProperty()
>>
>> I started getting the following error:
>>
>> IndexError at /
>> list index out of range
>> Request Method: GET
>> Request URL:http://localhost:8080/
>> Exception Type: IndexError
>> Exception Value:list index out of range
>> Exception Location: /Users/carlin/Documents/Personal/Programming/
>> mysite/appengine_django/models.py in __init__, line 51
>>
>> Any ideas?
>>
>> Thanks,
>> cw
>>
>
>
>
> --
> ===
> 株式会社ビープラウド  イアン・ルイス
> 〒150-0012
> 東京都渋谷区広尾1-11-2アイオス広尾ビル604
> email: ianmle...@beproud.jp
> TEL:03-5795-2707
> FAX:03-5795-2708
> http://www.beproud.jp/
> ===
>
> >



--
Carlin Wiegner
CEO & Co-founder
CubeTree

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem with models & Google App Engine Helper for Django

2009-02-03 Thread Matt Brown

Hi Carlin,
Carlin Wiegner wrote:
> Right now my models.py is in the root directory of "mysite".

As I believe Ian was hinting at in his response, the helper (and Django)
expect your models to be within a Django application (basically a
subfolder) of your Django project (your Django project == your App
Engine application, confusing I know ;p).

So you need to create a directory, say called "myapp" and place your
models.py in that (don't forget to also add __init__.py). Then you list
"myapp" in the INSTALLED_APPS section of settings.py and you should be
good to go.

Cheers


Matt Brown

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Reminder: App Engine chat time, tomorrow (2/4) 7-8PM

2009-02-03 Thread Marzia Niccolai

More details:
http://groups.google.com/group/google-appengine/browse_thread/thread/8ea64f610b5ed428

-Marzia

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem with models & Google App Engine Helper for Django

2009-02-03 Thread Carlin Wiegner
I give it a whirl tonight and see if that works. I've seen a couple examples
that did that but didn't understand it was required.

Thank you both. :) GAE/Django/Python is pretty exciting but there isn't tons
of sample code/books/etc out there yet so the help is really appreciated.

Take care,
cw

On Tue, Feb 3, 2009 at 9:33 AM, Matt Brown  wrote:

>
> Hi Carlin,
> Carlin Wiegner wrote:
> > Right now my models.py is in the root directory of "mysite".
>
> As I believe Ian was hinting at in his response, the helper (and Django)
> expect your models to be within a Django application (basically a
> subfolder) of your Django project (your Django project == your App
> Engine application, confusing I know ;p).
>
> So you need to create a directory, say called "myapp" and place your
> models.py in that (don't forget to also add __init__.py). Then you list
> "myapp" in the INSTALLED_APPS section of settings.py and you should be
> good to go.
>
> Cheers
>
>
> Matt Brown
>
> >
>


-- 
Carlin Wiegner
CEO & Co-founder
CubeTree

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Giftag authentication

2009-02-03 Thread Bret

How is Best Buy's Giftag using custom authentication?

http://www.giftag.com
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: availibity of gcc

2009-02-03 Thread Dan Sanderson
No.
-- Dan

On Tue, Feb 3, 2009 at 1:47 AM, minorproject...@gmail.com <
minorproject...@gmail.com> wrote:

>
> Is gcc available in the server provided by the appengine?
>
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 网页中有汉字 ,就会产生错误,不知是啥原因

2009-02-03 Thread Alexandra Zhang
同学们都太激动了,水太大了. 其实前面kang回答了.


On Feb 2, 6:59 pm, Rolkey马海军  wrote:
> 有人捧场没人上台,有问题没解决可不爽,我已经自己找到解决方法了,就是在.py文件的最前面加上# -*- coding: utf-8
> -*-即可!!这又是在GOOGLE里找到的
>
> 2009/2/2 Junkie o0o :
>
> > happy 牛 year!
> > 哈哈
>
> > 2009/2/2 yu ping322 
>
> >> 在这里混的中国人挺多的,只是很多人的英语也很牛,说英语显摆。
>
> >> 2009/2/2 kang :
> >> > 一直有中文的啊,新年快乐~
>
> >> > 2009/1/31 trydofor 
>
> >> >> 哥们们,
>
> >> >> 总算在列表里看到中文啦 :)
> >> >> 兴奋啊,祝新年快乐,牛年牛B
>
> >> >> kang wrote:
> >> >> > 在文件开始加上#coding=utf-8
>
> >> >> > 2009/1/22 网页中有汉字,就会产生错误,不知是啥原因  >> >> > >
>
> >> >> > this code right in local development environment, but error on
> >> >> > update
> >> >> > to server.
>
> >> >> > import wsgiref.handlers
> >> >> > from google.appengine.ext import webapp
>
> >> >> > class MainPage(webapp.RequestHandler):
> >> >> >  def get(self):
> >> >> >self.response.headers['Content-Type'] = 'text/html;
> >> >> > charset=utf-8'
> >> >> >self.response.out.write('Hello, have no thing,有
> >> >> > 了汉字就不
> >> >> > 灵了?')
>
> >> >> --
> >> >> /\__/\___/\/\/\
> >> >> _/\/\/\/\__/\__/\__/\/\/\/\_/\/\_/\__/\
> >> >> __/\__/\_/\_/\__/\___/\_/\/\__/\___/\__/\/\/\__/\___/\__/\_/\__
> >> >> _/\__/\__/\/\__/\/\__/\___/\__/\__/\___/\__/\__
> >> >> /\/\/\/\/\/\/\_/\/\_/\/\___
> >> >> _/\/\/\
> >> >> _/ trydofor.com / a9text.sf.net / a9w3.sf.net /
>
> >> > --
> >> > Stay hungry,Stay foolish.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem with models & Google App Engine Helper for Django

2009-02-03 Thread Carlin Wiegner
Couldn't wait to try. Works great - thank you both!
cw

On Tue, Feb 3, 2009 at 10:09 AM, Carlin Wiegner  wrote:

> I give it a whirl tonight and see if that works. I've seen a couple
> examples that did that but didn't understand it was required.
>
> Thank you both. :) GAE/Django/Python is pretty exciting but there isn't
> tons of sample code/books/etc out there yet so the help is really
> appreciated.
>
> Take care,
> cw
>
>
> On Tue, Feb 3, 2009 at 9:33 AM, Matt Brown  wrote:
>
>>
>> Hi Carlin,
>> Carlin Wiegner wrote:
>> > Right now my models.py is in the root directory of "mysite".
>>
>> As I believe Ian was hinting at in his response, the helper (and Django)
>> expect your models to be within a Django application (basically a
>> subfolder) of your Django project (your Django project == your App
>> Engine application, confusing I know ;p).
>>
>> So you need to create a directory, say called "myapp" and place your
>> models.py in that (don't forget to also add __init__.py). Then you list
>> "myapp" in the INSTALLED_APPS section of settings.py and you should be
>> good to go.
>>
>> Cheers
>>
>>
>> Matt Brown
>>
>> >>
>>
>
>
> --
> Carlin Wiegner
> CEO & Co-founder
> CubeTree
>
>


-- 
Carlin Wiegner
CEO & Co-founder
CubeTree

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: memcache.add => RuntimeError: maximum recursion depth exceeded

2009-02-03 Thread Chris Tan

If you have deeply nested data, you can work around it by:
1. flattening your data
2. using a patched pickle module which does not have the recursion
limit:
http://gist.github.com/22217

To be honest, I don't see why the above code would be causing this.
If you still have problems with this, it may be a good idea to post
the source for the entire module.

Chris

On Feb 1, 3:48 pm, MatthewRudy  wrote:
> I've got a recursion error in both my local code, and when deployed.
> But it doesn't make much sense.
>
> At first I thought it was to do with mixing unicode strings in
> dictionaries.
> But I've ironed that out.
>
> Hopefully this is a simple mistake?
>
> @@@ python
>
> splashes = [
>   {
>   'url':           splash.url,
>   'title':         splash.title(),
>   'thumbnail_url': splash.thumbnail_url()
>   }
>   for splash in record.url_records()
> ]
> logging.info("setting values: %s" % splashes)
> memcache.add(cache_key, splashes, 60)
>
> @@@
>
> and the log output when it breaks;
>
> @@@ log
>
> INFO     2009-02-01 23:32:05,256 splashto.py] setting values: [{'url':
> u'http://code.google.com/apis/ajaxsearch/documentation',
> 'thumbnail_url': u'http://images.websnapr.com/?
> size=S&key=69wD353Q05qN&url=http%3A%2F%2Fcode.google.com%2Fapis
> %2Fajaxsearch%2Fdocumentation', 'title': u'Developer'sGuide -
> Google AJAX Search API - Google Code'}, {'url': u'http://
> facebook.com', 'thumbnail_url': u'http://images.websnapr.com/?
> size=S&key=69wD353Q05qN&url=http%3A%2F%2Ffacebook.com', 'title':
> u'http://facebook.com'}]
>
> ERROR    2009-02-01 23:32:05,336 __init__.py] maximum recursion depth
> exceeded
> Traceback (most recent call last):
>   File "/usr/local/lib/google_appengine/google/appengine/ext/webapp/
> __init__.py", line 498, in __call__
>     handler.get(*groups)
>   File "/home/matthew/code/splashTo/splashto.py", line 39, in get
>     splashes = get_splashes(key)
>   File "/home/matthew/code/splashTo/splashto.py", line 66, in
> get_splashes
>     memcache.add(cache_key, splashes, 60)
>   File "/usr/local/lib/google_appengine/google/appengine/api/memcache/
> __init__.py", line 557, in add
>     return self._set_with_policy(MemcacheSetRequest.ADD, key, value,
> time=time)
>   File "/usr/local/lib/google_appengine/google/appengine/api/memcache/
> __init__.py", line 602, in _set_with_policy
>     stored_value, flags = _validate_encode_value(value,
> self._do_pickle)
>   File "/usr/local/lib/google_appengine/google/appengine/api/memcache/
> __init__.py", line 170, in _validate_encode_value
>     stored_value = do_pickle(value)
>   File "/usr/local/lib/google_appengine/google/appengine/api/memcache/
> __init__.py", line 274, in DoPickle
>     self._pickler_instance.dump(value)
>   File "/usr/lib/python2.5/pickle.py", line 224, in dump
>     self.save(obj)
>   File "/usr/lib/python2.5/pickle.py", line 286, in save
>     f(self, obj) # Call unbound method with explicit self
> ...
> (this goes on for hundreds of lines)
> ...
> File "/usr/lib/python2.5/pickle.py", line 419, in save_reduce
>     save(state)
>   File "/usr/lib/python2.5/pickle.py", line 286, in save
>     f(self, obj) # Call unbound method with explicit self
>   File "/usr/lib/python2.5/pickle.py", line 649, in save_dict
>     self._batch_setitems(obj.iteritems())
>   File "/usr/lib/python2.5/pickle.py", line 681, in _batch_setitems
>     save(v)
>   File "/usr/lib/python2.5/pickle.py", line 286, in save
>     f(self, obj) # Call unbound method with explicit self
>   File "/usr/lib/python2.5/pickle.py", line 725, in save_inst
>     save(stuff)
>   File "/usr/lib/python2.5/pickle.py", line 286, in save
>     f(self, obj) # Call unbound method with explicit self
>   File "/usr/lib/python2.5/pickle.py", line 649, in save_dict
>     self._batch_setitems(obj.iteritems())
>   File "/usr/lib/python2.5/pickle.py", line 681, in _batch_setitems
>     save(v)
>   File "/usr/lib/python2.5/pickle.py", line 286, in save
>     f(self, obj) # Call unbound method with explicit self
>   File "/usr/lib/python2.5/pickle.py", line 496, in save_unicode
>     self.write(BINUNICODE + pack(" RuntimeError: maximum recursion depth exceeded
>
> @@@
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: inequality filters on two different properties

2009-02-03 Thread ryan

On Feb 3, 7:59 am, Rick  wrote:
> I'm confused. If this statement (GQL query is not allowed, because it
> uses inequality filters on two different properties in the same query)
> holds then how am I to do a Calendar type app and query the DataStore
> for all events that occur within a 30 day window?  Isn't that
> something like:
>
> Select * from Calendar where beginDate >= beginofDateRange and endDate
> <= endofDateRange

as you've written it, this query is probably more expressive than you
need it to be. if you s/endDate/beginDate/, ie compare beginDate to
*both* of the range endpoints, you'll be able to run it. if you
absolutely need to query for events that occur entirely within the
endpoints, you could do the same query and post-process the results by
filtering out entities with endDate > endofDateRange in memory. if you
don't want to post-process, though, you're right, you can't do this
exact query entirely within the datastore.

> How could I do that? How does Google Calendar do that?

google calendar doesn't run on app engine, so it's not subject to the
same limitations as app engine. i'd also reiterate that while the app
engine datastore is based on bigtable, they're still very different
beasts. the datastore provides many additional (and different)
features, guarantees, and capabilities, including the query planner
and API. details in 
http://sites.google.com/site/io/under-the-covers-of-the-google-app-engine-datastore
.

>
> Thanks,
> Rick
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: python problems - HTTPSHandler

2009-02-03 Thread Alexander Artemenko

I have found, that if you are working with macports, than you need to
install py25-socket-ssl module:

sudo port install py25-socket-ssl

I suggest, if you are working on the "debian like" linux, then you
should try something like that first:

apt-cache search python ssl

Or, as a last resort, make sudo easy_install ssl (i should download
and install ssl module from the http://pypi.python.org/pypi/ssl/)

On 2 фев, 21:57, Robert  wrote:
> Interestingly, things work just fine on my Mac. I was having problems
> with the Linux setup.

Good luck

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] UnicodeEncodeError and Django templates

2009-02-03 Thread Scott

Hello,

I'm seeing the following message when trying to render a template
using Unicode characters:

UnicodeDecodeError at /index.html
'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in
range(128)

I have both these settings using Unicode:

DEFAULT_CHARSET = 'utf-8'
FILE_CHARSET = 'utf-8'

As well as the meta in the header:



Finally, I have verified that the django.po files are properly encoded
as UTF-8 (they don't make it through the 'compilemessages' command if
they are not).

I'm not sure how Django is getting the idea that it should use an
ASCII codec, any ideas how I could get these templates rendering
correctly would be greatly appreciated.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] code project svn initialization

2009-02-03 Thread thebrianschott

How do I upload my first code to my GAE code project? I have created
the project, but this is the result of my attempt to upload the code.

terminal session below *
 svn checkout https://simplifyconnections.googlecode.com/svn/trunk/
simplifyconnections --username schott.brian
Error validating server certificate for 'https://
simplifyconnections.googlecode.com:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: googlecode.com
 - Valid: from May 28 15:48:13 2008 GMT until Jun 21 13:09:43 2010 GMT
 - Issuer: Certification Services Division, Thawte Consulting cc, Cape
Town, Western Cape, ZA
 - Fingerprint: b1:3a:d5:38:56:27:52:9f:ba:6c:70:1e:a9:ab:4a:1a:
8b:da:ff:ec
(R)eject, accept (t)emporarily or accept (p)ermanently? t
subversion/libsvn_ra_dav/util.c:826: (apr_err=175002)
svn: PROPFIND request failed on '/svn/trunk'
subversion/libsvn_ra_dav/util.c:296: (apr_err=175002)
svn: PROPFIND of '/svn/trunk': Could not read status line: Secure
connection truncated (https://simplifyconnections.googlecode.com)
terminal session above *

Thanks, in advance

Brian in Atlanta
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] manually validate an ASCID ticket

2009-02-03 Thread Jason C

We use Google Accounts for our application, which is a Django(trunk) /
app-engine-helper application.

Normally, on our views, we can just use

  @require_login

decorator, and everything works out.

However, in some cases, we are not able to pass the cookie that makes
this stuff work out well.

Is there a mechanism that we can use the ASCID ticket value and
validate that it is a valid login?

Imagine that we pass thie ASCID value as a request param and hit an
undecorated view like this:

  def my_view(request, ascid):
auth.validate_ticket(ascid) # does some programmatic call like
this exist

Is there some way to programmatically validate the auth token for a
Google Account?

Aside: this is coming up because of a bug in Flash where the cookies
are not propagated when it posts back and so the auth fails.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem with models & Google App Engine Helper for Django

2009-02-03 Thread Ian Lewis
Yup,

The appengine_django/models.py has a funny little piece of code that
requires your models module to not be a top level module.

class ModelOptions(object):
  ...
  def __init__(self, cls):
self.object_name = cls.__name__
self.module_name = self.object_name.lower()
model_module = sys.modules[cls.__module__]
self.app_label = model_module.__name__.split('.')[-2]
self.abstract = False

The fourth line of __init__ there breaks if you have a modules with models
in a top level module. Go figure.

Ian

2009/2/4 Carlin Wiegner 

> Couldn't wait to try. Works great - thank you both!
> cw
>
>
> On Tue, Feb 3, 2009 at 10:09 AM, Carlin Wiegner  wrote:
>
>> I give it a whirl tonight and see if that works. I've seen a couple
>> examples that did that but didn't understand it was required.
>>
>> Thank you both. :) GAE/Django/Python is pretty exciting but there isn't
>> tons of sample code/books/etc out there yet so the help is really
>> appreciated.
>>
>> Take care,
>> cw
>>
>>
>> On Tue, Feb 3, 2009 at 9:33 AM, Matt Brown  wrote:
>>
>>>
>>> Hi Carlin,
>>> Carlin Wiegner wrote:
>>> > Right now my models.py is in the root directory of "mysite".
>>>
>>> As I believe Ian was hinting at in his response, the helper (and Django)
>>> expect your models to be within a Django application (basically a
>>> subfolder) of your Django project (your Django project == your App
>>> Engine application, confusing I know ;p).
>>>
>>> So you need to create a directory, say called "myapp" and place your
>>> models.py in that (don't forget to also add __init__.py). Then you list
>>> "myapp" in the INSTALLED_APPS section of settings.py and you should be
>>> good to go.
>>>
>>> Cheers
>>>
>>>
>>> Matt Brown
>>>
>>>
>>>
>>
>>
>> --
>> Carlin Wiegner
>> CEO & Co-founder
>> CubeTree
>>
>>
>
>
> --
> Carlin Wiegner
> CEO & Co-founder
> CubeTree
>
>
> >
>


-- 
===
株式会社ビープラウド  イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianmle...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
===

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: manually validate an ASCID ticket

2009-02-03 Thread Jason C

Shoot, of course I meant ACSID ticket. There goes the keyword
search

On Feb 3, 2:17 pm, Jason C  wrote:
> We use Google Accounts for our application, which is a Django(trunk) /
> app-engine-helper application.
>
> Normally, on our views, we can just use
>
>   @require_login
>
> decorator, and everything works out.
>
> However, in some cases, we are not able to pass the cookie that makes
> this stuff work out well.
>
> Is there a mechanism that we can use the ASCID ticket value and
> validate that it is a valid login?
>
> Imagine that we pass thie ASCID value as a request param and hit an
> undecorated view like this:
>
>   def my_view(request, ascid):
>     auth.validate_ticket(ascid) # does some programmatic call like
> this exist
>
> Is there some way to programmatically validate the auth token for a
> Google Account?
>
> Aside: this is coming up because of a bug in Flash where the cookies
> are not propagated when it posts back and so the auth fails.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: pricing / additional app slots

2009-02-03 Thread David Wilson

2009/2/2 jeremy :
>
> will additional app slots be part of the pricing model?
> >
>

Why pay for something you can have for free? :-)

If you have exhausted the allocation of applications for your account,
possibly (like so many, it seems) by creating a bunch of test
applications, then you can follow this trick to get rid of them:

 * Create a new account.
 * Invite the new account to be developer for each application you want to shed.
 * Confirm all the invitations for the new account.
 * Log in as the new account, and remove your 'real' account from the
developer list for each application.
 * Log out, log back using your real account. Observe applications are
gone, and you can create more.

I think this trick is semi-officially sanctioned, so I doubt you'll
get kicked off the service for doing it (at least during the preview
period :).


David

-- 
It is better to be wrong than to be vague.
  — Freeman Dyson

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: pricing / additional app slots

2009-02-03 Thread Barry Hunter

2009/2/4 David Wilson :
>
> 2009/2/2 jeremy :
>>
>> will additional app slots be part of the pricing model?
>> >
>>
>
> Why pay for something you can have for free? :-)
>
> If you have exhausted the allocation of applications for your account,
> possibly (like so many, it seems) by creating a bunch of test
> applications, then you can follow this trick to get rid of them:
>
>  * Create a new account.

What if you only have one mobile phone number... :(

>  * Invite the new account to be developer for each application you want to 
> shed.
>  * Confirm all the invitations for the new account.
>  * Log in as the new account, and remove your 'real' account from the
> developer list for each application.
>  * Log out, log back using your real account. Observe applications are
> gone, and you can create more.
>
> I think this trick is semi-officially sanctioned, so I doubt you'll
> get kicked off the service for doing it (at least during the preview
> period :).
>
>
> David
>
> --
> It is better to be wrong than to be vague.
>  — Freeman Dyson
>
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Inconsistency between dev_server and production server on sharded counter behaviour.

2009-02-03 Thread Qian Qiao

Hi,

Following the article on sharded counter, I decided to extended it a
bit to add a function that returns the current count and increments
the counter.

Here's the function:

def get_count_and_increment(name):
  config = GeneralCounterShardConfig.get_or_insert(name, name=name)
  def txn():
total = memcache.get(name)
if total is None:
  total = 0
  for i in range(1, config.num_shards):
counter = GeneralCounterShard.get_by_key_name(name + str(i))
if counter is not None:
  total += counter.count
  memcache.add(name, str(total), 60)

index = random.randint(0, config.num_shards - 1)
shard_name = name + str(index)
counter = GeneralCounterShard.get_by_key_name(shard_name)
if counter is None:
  counter = GeneralCounterShard(key_name=shard_name, name=name)
counter.count += 1
counter.put()
memcache.incr(name)
return total

  return db.run_in_transaction(txn)

It works fine on the dev_server but on the production servers it
throws the following error:
BadRequestError: can't operate on multiple entity groups in a single
transaction.

Can anyone give me a pointer?

Thanks

-- Joe

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: pricing / additional app slots

2009-02-03 Thread David Wilson

2009/2/4 Barry Hunter :
>
> 2009/2/4 David Wilson :
>>
>> 2009/2/2 jeremy :
>>>
>>> will additional app slots be part of the pricing model?
>>> >
>>>
>>
>> Why pay for something you can have for free? :-)
>>
>> If you have exhausted the allocation of applications for your account,
>> possibly (like so many, it seems) by creating a bunch of test
>> applications, then you can follow this trick to get rid of them:
>>
>>  * Create a new account.
>
> What if you only have one mobile phone number... :(
>

Hrm. I can say at least that you don't need a new phone number when
inviting a Google Apps account to develop. I have no idea about the
non-apps workflow.


David

>>  * Invite the new account to be developer for each application you want to 
>> shed.
>>  * Confirm all the invitations for the new account.
>>  * Log in as the new account, and remove your 'real' account from the
>> developer list for each application.
>>  * Log out, log back using your real account. Observe applications are
>> gone, and you can create more.
>>
>> I think this trick is semi-officially sanctioned, so I doubt you'll
>> get kicked off the service for doing it (at least during the preview
>> period :).
>>
>>
>> David
>>
>> --
>> It is better to be wrong than to be vague.
>>  — Freeman Dyson
>>
>> >
>>
>
>
>
> --
> Barry
>
> - www.nearby.org.uk - www.geograph.org.uk -
>
> >
>



-- 
It is better to be wrong than to be vague.
  — Freeman Dyson

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem with models & Google App Engine Helper for Django

2009-02-03 Thread Carlin Wiegner
Compared to Rails or Tomcat, I love the simplicity of starting with fewer
files and just getting rolling. This would be a great little new user item
for them to fix. ;)

Thanks again.
cw

On Tue, Feb 3, 2009 at 4:08 PM, Ian Lewis  wrote:

> Yup,
>
> The appengine_django/models.py has a funny little piece of code that
> requires your models module to not be a top level module.
>
> class ModelOptions(object):
>   ...
>   def __init__(self, cls):
> self.object_name = cls.__name__
> self.module_name = self.object_name.lower()
> model_module = sys.modules[cls.__module__]
> self.app_label = model_module.__name__.split('.')[-2]
> self.abstract = False
>
> The fourth line of __init__ there breaks if you have a modules with models
> in a top level module. Go figure.
>
> Ian
>
> 2009/2/4 Carlin Wiegner 
>
>> Couldn't wait to try. Works great - thank you both!
>> cw
>>
>>
>> On Tue, Feb 3, 2009 at 10:09 AM, Carlin Wiegner wrote:
>>
>>> I give it a whirl tonight and see if that works. I've seen a couple
>>> examples that did that but didn't understand it was required.
>>>
>>> Thank you both. :) GAE/Django/Python is pretty exciting but there isn't
>>> tons of sample code/books/etc out there yet so the help is really
>>> appreciated.
>>>
>>> Take care,
>>> cw
>>>
>>>
>>> On Tue, Feb 3, 2009 at 9:33 AM, Matt Brown  wrote:
>>>

 Hi Carlin,
 Carlin Wiegner wrote:
 > Right now my models.py is in the root directory of "mysite".

 As I believe Ian was hinting at in his response, the helper (and Django)
 expect your models to be within a Django application (basically a
 subfolder) of your Django project (your Django project == your App
 Engine application, confusing I know ;p).

 So you need to create a directory, say called "myapp" and place your
 models.py in that (don't forget to also add __init__.py). Then you list
 "myapp" in the INSTALLED_APPS section of settings.py and you should be
 good to go.

 Cheers


 Matt Brown



>>>
>>>
>>> --
>>> Carlin Wiegner
>>> CEO & Co-founder
>>> CubeTree
>>>
>>>
>>
>>
>> --
>> Carlin Wiegner
>> CEO & Co-founder
>> CubeTree
>>
>>
>>
>>
>
>
> --
> ===
> 株式会社ビープラウド  イアン・ルイス
> 〒150-0012
> 東京都渋谷区広尾1-11-2アイオス広尾ビル604
> email: ianmle...@beproud.jp
> TEL:03-5795-2707
> FAX:03-5795-2708
> http://www.beproud.jp/
> ===
>
> >
>


-- 
Carlin Wiegner
CEO & Co-founder
CubeTree

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Proper way to handle DownloadError: ApplicationError: 5

2009-02-03 Thread MajorProgamming

Is this the proper way to handle Download Errors from urlfetch (which
happen quite often in my app)?

try:
  result = urlfetch.fetch(url=url)
except DownloadError:
  #return an error


Basically a coding/python question

Also, would it work to except, and try again within that same test?

For example,

except DownloadError:
  result = urlfetch.fetch(url=url)
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: code project svn initialization

2009-02-03 Thread thebrianschott

The error message has stopped, so maybe the system needed more time to
process my initial requests. I still got the same error message asking
me the following.

> (R)eject, accept (t)emporarily or accept (p)ermanently?

So I replied "p" and got some more positive response. I then fumbled
through the rest of the process which was very awkward and required
many failed tries requiring me to go from one directory to another
before I entered certain commands. Where is there some good
explanation of how to do the initial setup of a svn, please?

Brian in Atlanta
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Dynamic list in django form for a pull-down menu

2009-02-03 Thread Brian

I finally figured this out. I used the tasks sample project as a
model. My approach might not be perfect, but it is working. I created
a function on Locations db to get a list of address_id for the current
user. I call this function from the view for the page with the form,
and then created a custom django form... pulling in the select options
from the address_id list. I tried this general approach previously but
could not get it to work. This might have been due to the fact that I
was not including a (hidden) field in my custom form.

On Feb 3, 8:36 am, Brian  wrote:
> I've been trying to figure this out for hours across a couple of days,
> and can not get it to work. I've been everywhere. I'll continue trying
> to figure it out, but was hoping for a quicker solution. I'm using App
> Engine datastore + Django.
>
> Using a query in a view and custom forms, I was able to get a list to
> the form but then I was not able to post. I have been trying to figure
> out how to dynamically add the choices as part of the Django form...
> I've tried various ways with no success. Help!
>
> Below are the two models and my form. In InfoForm, I’d like to display
> a list of address_id from the Locations db for the current user. By
> the way, I realize I need to use some other sort of property for
> address_id, and have tried several recommendations, but have not been
> able to figure out the right approach yet.
>
> class Info(db.Model):
>     user = db.UserProperty()
>     address_id = db.StringProperty()
>     info = db.StringProperty()
>     created = db.DateTimeProperty(auto_now_add=True)
>     modified = db.DateTimeProperty(auto_now=True)
>
> class Locations(db.Model):
>     user = db.UserProperty()
>     address_id = db.StringProperty()
>     address = db.StringProperty()
>
> class InfoForm(djangoforms.ModelForm):
>     address_id = forms.ChoiceField()
>     info = forms.ChoiceField(choices=INFO_CHOICES)      class Meta:
>             model = Info
>             exclude = ['user','created','modified']
>
> Example of data in Locations:
> user = t...@example.com
> address_id = home
> address = 999 washington st, somecity, CA
>
> user = t...@example.com
> address_id = work
> address = 123 lincoln st, somecity, CA
>
> So, if t...@example.com is logged in, I’d like to display home and
> work in the address_id (pull-down menu) field of InfoForm.
>
> Thanks
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Proper way to handle DownloadError: ApplicationError: 5

2009-02-03 Thread Alexander Kojevnikov

On Feb 4, 1:08 pm, MajorProgamming  wrote:
> Is this the proper way to handle Download Errors from urlfetch (which
> happen quite often in my app)?
>
> try:
>   result = urlfetch.fetch(url=url)
> except DownloadError:
>   #return an error
>
> Basically a coding/python question
>
Yes, just don't forget to add this to your imports:

from google.appengine.api.urlfetch import DownloadError

> Also, would it work to except, and try again within that same test?
>
> For example,
>
> except DownloadError:
>   result = urlfetch.fetch(url=url)

Check this thread: http://tr.im/eh8e

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: code project svn initialization

2009-02-03 Thread Alexander Kojevnikov

You will probably get better response on the Google Code support site:
http://code.google.com/p/support/

They've got two groups, look for the links on the right.


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: date range in query

2009-02-03 Thread Arun Shanker Prasad

Hi,

db.GqlQuery('SELECT * FROM myTable where start_date>=:cdate and
end_date<=:cdate',cdate=current_date)

You are trying to use in-equality filters on two properties in a
single query.. Does this not raise an Exception?

There was a post on how to do this more efficiently in the groups
somewhere, but in your case I think you need to query based on one
date from the datastore and do some logic in the view.

> SELECT * FROM Image where added > DATETIME(2009,1,1,0,0,0) and added <
> DATETIME(2009,2,1,0,0,0)

In this example both are applied to the same property.

Thanks,
Arun Shanker Prasad.

On Feb 3, 4:17 pm, niklasr  wrote:
> gql as below works.
> SELECT * FROM Image where added > DATETIME(2009,1,1,0,0,0) and added <
> DATETIME(2009,2,1,0,0,0)
> we must use the integer form (the manual lists b0rked 
> forms)http://code.google.com/p/googleappengine/issues/detail?id=878
> cheers
> niklas
>
> On Feb 3, 12:02 pm, arnie  wrote:
>
> > For a datastore table with two db.DateTimeProperty columns start_date
> > and end_date, i need to use a date range in query but below given
> > query is not working
> > current_date=datetime.datetime.strptime(self.request.get
> > ('current_date'), '%Y-%m-%dT%H:%M:%S')
>
> > db.GqlQuery('SELECT * FROM myTable where start_date>=:cdate and
> > end_date<=:cdate',cdate=current_date)
> > in the parameters I am passing current_date=2009-01-10T00:00:00
> > Should we not compare dates this way?
> > But this is not working
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: availibity of gcc

2009-02-03 Thread minor project
Oh.We are trying to develop a C IDE on the cloud using the
Appengine.Apparently our program demands a gcc compiler to be a part of the
server so as to compile the program.So is there any way you can help us?

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: availibity of gcc

2009-02-03 Thread Ian Lewis
I'm very sure that a C compiler will not be available any time in the near
future, (if ever) on appengine.

2009/2/4 minor project 

> Oh.We are trying to develop a C IDE on the cloud using the
> Appengine.Apparently our program demands a gcc compiler to be a part of the
> server so as to compile the program.So is there any way you can help us?
>
>
> >
>


-- 
===
株式会社ビープラウド  イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianmle...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
===

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: The API call datastore_v3.Delete() required more quota than is

2009-02-03 Thread Ian Lewis
The you are simply using too much of a quota on appengine. You will need to
check the admin interface at www.appspot.com to see what quotas you are
going over.

2009/2/4 Ilia Lobsanov 

>
> What I'd like to know is what I'm doing wrong here...
>
> On Feb 3, 4:17 am, Ian Lewis  wrote:
> > You likely need to wait a day or so to have the quotas reset themselves.
> It
> > looks like you using too much of one of the appengine quotas.
> >
> > 2009/2/3 Ilia Lobsanov 
> >
> >
> >
> >
> >
> > > Correction, it's datastore_v3.Get() not Delete()
> >
> > > The exact traceback is:
> >
> > > Traceback (most recent call last):
> > >  File "/base/python_lib/versions/1/google/appengine/ext/bulkload/
> > > __init__.py", line 376, in LoadEntities
> > >new_entities = loader.CreateEntity(columns, key_name=key_name)
> > >  File "/base/python_lib/versions/1/google/appengine/ext/bulkload/
> > > __init__.py", line 235, in CreateEntity
> > >entities = self.HandleEntity(entity)
> > >  File "/base/data/home/apps/govtenders/107.331152630405006468/
> > > loader.py", line 30, in HandleEntity
> > >old_contract = Contract.get_by_key_name(old_key_name)
> > >  File "/base/python_lib/versions/1/google/appengine/ext/db/
> > > __init__.py", line 837, in get_by_key_name
> > >return get(*keys)
> > >  File "/base/python_lib/versions/1/google/appengine/ext/db/
> > > __init__.py", line 1032, in get
> > >entities = datastore.Get(keys)
> > >  File "/base/python_lib/versions/1/google/appengine/api/
> > > datastore.py", line 215, in Get
> > >apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Get', req, resp)
> > >  File "/base/python_lib/versions/1/google/appengine/api/
> > > apiproxy_stub_map.py", line 68, in MakeSyncCall
> > >apiproxy.MakeSyncCall(service, call, request, response)
> > >  File "/base/python_lib/versions/1/google/appengine/api/
> > > apiproxy_stub_map.py", line 240, in MakeSyncCall
> > >stub.MakeSyncCall(service, call, request, response)
> > >  File "/base/python_lib/versions/1/google/appengine/runtime/
> > > apiproxy.py", line 183, in MakeSyncCall
> > >rpc.CheckSuccess()
> > >  File "/base/python_lib/versions/1/google/appengine/api/
> > > apiproxy_rpc.py", line 107, in CheckSuccess
> > >raise self.exception
> > > OverQuotaError: The API call datastore_v3.Get() required more quota
> > > than is available.
> >
> > > On Feb 3, 1:10 am, Ilia Lobsanov  wrote:
> > > > I've ran into the error "The API call datastore_v3.Delete() required
> > > > more quota than is available. "
> >
> > > > What I'm doing is using the bulkload_client.py to load 4 entities at
> a
> > > > time.
> > > > eg. "INFO 2009-02-03 01:03:42,049 bulkload_client.py] Importing 4
> > > > entities in 953 bytes"
> >
> > > >  After ~174 such imports, I get the quota error.
> >
> > > > The loader HandleEntity is doing the following:
> > > > 1) lookup an entity A by key name
> > > > 2) delete entity A if found
> > > > 3) lookup an entity A by another key name
> > > > 4) create a SearchableEntity based on the entity
> > > > 5) lookup an entity B by key name
> > > > 6) update entity B if found and put() it
> > > > 7) lookup an entity C by key name
> > > > 8) update entity C if found and put() it
> > > > 9) return the SearchableEntity
> >
> > --
> > ===
> > 株式会社ビープラウド  イアン・ルイス
> > 〒150-0012
> > 東京都渋谷区広尾1-11-2アイオス広尾ビル604
> > email: ianmle...@beproud.jp
> > TEL:03-5795-2707
> > FAX:03-5795-2708http://www.beproud.jp/
> > ===
> >
>


-- 
===
株式会社ビープラウド  イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianmle...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
===

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] SQLite with Google APP Engine

2009-02-03 Thread S.I

Hi,

We have the application configured in our local server and store the
application data in SQLite database . I want to push the data from our
local SQLite database to Google App Engine datastore. I don't know how
to upload the SQLite data to Google App Engine datastore.
Kindly help me.



--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] how to set timezone to china beijing in DatetimeProperty

2009-02-03 Thread ajaxer

the default timezone have offset to my local time.
is there any way to change the timezone to my local timezone?
thx
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: SQLite with Google APP Engine

2009-02-03 Thread Ian Lewis
You will probably need to convert the data for each table into CSV files and
use the bulkload_client.py script that is present in the root directory of
the google appengine SDK. You can look up online how to use it or run
"python bulkload_client.py" to see the options.

Ian


2009/2/4 S.I 

>
> Hi,
>
> We have the application configured in our local server and store the
> application data in SQLite database . I want to push the data from our
> local SQLite database to Google App Engine datastore. I don't know how
> to upload the SQLite data to Google App Engine datastore.
> Kindly help me.
>
>
>
> >
>


-- 
===
株式会社ビープラウド  イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianmle...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
===

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: SQLite with Google APP Engine

2009-02-03 Thread Ian Lewis
BTW, there is a server side component to the bulk uploader so you will need
to look up how to set that up.

Ian

2009/2/4 Ian Lewis 

> You will probably need to convert the data for each table into CSV files
> and use the bulkload_client.py script that is present in the root directory
> of the google appengine SDK. You can look up online how to use it or run
> "python bulkload_client.py" to see the options.
>
> Ian
>
>
> 2009/2/4 S.I 
>
>
>> Hi,
>>
>> We have the application configured in our local server and store the
>> application data in SQLite database . I want to push the data from our
>> local SQLite database to Google App Engine datastore. I don't know how
>> to upload the SQLite data to Google App Engine datastore.
>> Kindly help me.
>>
>>
>>
>> >>
>>
>
>
> --
> ===
> 株式会社ビープラウド  イアン・ルイス
> 〒150-0012
> 東京都渋谷区広尾1-11-2アイオス広尾ビル604
> email: ianmle...@beproud.jp
> TEL:03-5795-2707
> FAX:03-5795-2708
> http://www.beproud.jp/
> ===
>



-- 
===
株式会社ビープラウド  イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianmle...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
===

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: UnicodeEncodeError and Django templates

2009-02-03 Thread Jarek Zgoda

If you call unicode() on unicode object such weirdness will happen.

Position 0 suggests it's a very beginning of the text. Open index.html
with hex editor and look for e3 byte value.


On 3 Lut, 22:54, Scott  wrote:
> Hello,
>
> I'm seeing the following message when trying to render a template
> using Unicode characters:
>
> UnicodeDecodeError at /index.html
> 'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in
> range(128)
>
> I have both these settings using Unicode:
>
> DEFAULT_CHARSET = 'utf-8'
> FILE_CHARSET = 'utf-8'
>
> As well as the meta in the header:
>
> 
>
> Finally, I have verified that the django.po files are properly encoded
> as UTF-8 (they don't make it through the 'compilemessages' command if
> they are not).
>
> I'm not sure how Django is getting the idea that it should use an
> ASCII codec, any ideas how I could get these templates rendering
> correctly would be greatly appreciated.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---