[web2py] Re: gae ReferenceProperty

2011-11-05 Thread dlypka
In the latest dal.py around line 3010 (may float a bit, I am looking at the trunk) if self.dbengine == 'google:datastore' in globals(): Change it to if self.dbengine == 'google:datastore': and the exception will go away The issue is that 'GoogleDatastoreAdapter' is in globals(), not 'google:datast

[web2py] Re: gae ReferenceProperty

2011-11-05 Thread dlypka
In the latest dal.py around line 3010 (may float a bit, I am looking at the trunk) if self.dbengine == 'google:datastore' in globals():http:// groups.google.com/group/web2py/browse_thread/thread/ 33b722be4316472a#Change it toif self.dbengine == 'google:datastore':and the exception will go away The

[web2py] Re: gae ReferenceProperty

2011-11-03 Thread howesc
is it even supported to just throw a semi-random type into the Field() call? i did this to use the geo point property type: from gluon.dal import SQLCustomType from google.appengine.ext.db import GeoPtProperty db._adapter.types['geopt'] = GeoPtProperty geo_point = SQLCustomType( # GAE GeoPt

[web2py] Re: gae ReferenceProperty

2011-11-03 Thread Massimo Di Pierro
I need your help debugging this. In File "C:\iargu\gluon\dal.py", line 3464, in insert tmp = table._tableobj(**dfields) what's dfields when the error occurs? Massimo On Nov 3, 6:11 pm, Murray3 wrote: > sorry for delayed response, I now get the following when I used latest > dal.py > from

[web2py] Re: gae ReferenceProperty

2011-11-03 Thread Murray3
sorry for delayed response, I now get the following when I used latest dal.py from trunk: Traceback (most recent call last): File "C:\Program Files\Google\google_appengine\google\appengine\ext \admin\__init__.py", line 295, in post exec(compiled_code, globals()) File "", line 21, in Fil

[web2py] Re: gae ReferenceProperty

2011-11-03 Thread Massimo Di Pierro
I think I just fixed this in trunk, please check. On Nov 3, 9:34 am, Murray3 wrote: > I thought this would work with custom SQL > Using latest version of web2py in gae interactive console  I have for > testing purposes: > > from gluon.contrib.gql import gae > from gluon.dal import * > db = DAL('