Latest frustration....
Now I have some validation questions.
In my model I have a field defined as notnull=True. If I submit a
blank field using just a regular textarea, I get the expected result
that the field is not accepted and an error generated. However, when I
submit a blank field using ckeditor, it goes thru and writes the blank
field to the DB.
I put in a cpl print stmts in the controller to see what the
request.vars were holding and what form.accepts(request.vars)
returned.
Here's where I'm lost... This is the output with the regular textarea:
<Storage {}>
False
<Storage {'_formkey': 'eb7de4fd-8f22-4641-83a8-8a952e1e970b',
'list_id': '3', '_formname': 'list_item_create', 'name': 'junk',
'description': ''}>
False
Here's the output from the same form using ckeditor:
<Storage {}>
False
<Storage {'_formkey': '7944510a-fdda-4e7b-9454-3854e16ab59c',
'list_id': '3', '_formname': 'list_item_create', 'name': 'junk',
'description': ''}>
True
So, nothing at all different in the request.vars sent. Yet with
ckeditor, form.accepts(request.vars) returns True even though the
description field is empty (set to nutnull=True and
db.table.description.requires=IS_NOT_EMPTY())
Any ideas?
thanks!