Good day
My dal was:
db.define_table('category',
Field('name','string'),
format='%(name)s'
)
db.category.name.requires = IS_NOT_IN_DB(db, db.category.name)
The error ocurrs in db.category.name.requires = IS_NOT_IN_DB(db,
db.category.name).
I removed this for the moment.
Thanks for any advice.
On Thu, Sep 23, 2010 at 9:38 PM, Napoleon Moreno <[email protected]>wrote:
> Good night
>
> i have a simple form to input data in hebrew
>
> I works ok in in sqlLite.
>
> in GAE it returns:
>
> return ' AND '.join([str(filter) for filter in self.filters])
> UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-11:
> ordinal not in range(128)
>
> db.define_table('category',
> Field('name','string'),
> format='%(name)s'
> )
>
> this is the form:
>
> form = crud.create(db.category, next=URL('category'),
> message=T("record created"))
> categories = crud.select(db.category, fields=['name'],
> headers={'category.name': 'Name'})
> return dict(form=form, categories=categories)
>