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
    type = 'string',
    native = 'geopt',
    encoder = (lambda x: x[1:-1] if x else None), 
    decoder = (lambda x: "(%r, %r)"%(x.lat, x.lon) if x else None)
)


#store
db.define_table('store',
  db.version_info,
  Field('name', length=500, notnull=True, requires=IS_NOT_EMPTY()),
  Field('address_coords', geo_point),
  migrate=migrate
)

i seem to recall having similar issues trying to just use the geo point 
property.

i can give the code murray3 posted if that is supported....

Reply via email to