I have this code that works well on localhost.

from plugin_ckeditor import CKEditor
ckeditor.define_tables()
track_changes(True)

db = DAL( "postgres://mauricewaka:b3t1232a##@localhost:5432/wakadb")#, 
migrate=False)

auth = Auth(db, hmac_key=Auth.get_or_create_key())
auth.define_tables(username=True, signature=False)
crud, service, plugins = Crud(db), Service(), PluginManager()
current.db = db
current.auth = auth

def widget(**kwargs):
    return lambda field, value, kwargs=kwargs: 
SQLFORM.widgets[field.type].widget(field, value, **kwargs)

db.define_table( "books",
                Field('name', 'string'),
                Field('definitions', 'text', length= 1000000, 
default="We'll update soon.", notnull=True, widget=ckeditor.widget, 
represent=lambda content, row: XML(content, sanitize=True)),
                #Field('definitions', 'text', length= 1000000, 
default="We'll update soon.", notnull=True), #Field is available for 
edit/posting data
                )

When I try the app on 'pythonanywhere.com' the fields are hidden from the 
user and cant edit. When I remove the widget, then the fields is available. 
Obviously there is an issue with ckEditor. The version I used is ckEditor4.
What could be the issue?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/e412f46b-cb8a-42af-9a16-29b0ad1ee303n%40googlegroups.com.

Reply via email to