Hi all !
First of all, I am a newbie in web2py.
I am working on a project and need to install an editor plugin in my web2py
app named "editor". After hours of search I got ck_editor4 plugin
<http://www.web2pyslices.com/slice/show/1952/ck-editor4-plugin> , installed
it and then made some changes in models and views of my application.
Changes were made in :
1: editor/models/db1.py
Contents are :
# -*- coding: utf-8 -*-
from plugin_ckeditor import CKEditor
ckeditor = CKEditor(db)
ckeditor.define_tables()
db.define_table('content', Field('title', length=255),
Field('public', 'boolean', default=True),
Field('text', 'text', widget=ckeditor.widget) )
2: editor/views/default/index.html
Contents are:
{{=ckeditor.edit_in_place('.editable', URL())}}
After opening the index page in browser a ticket was raised which says this:
Traceback (most recent call last):
File "gluon/restricted.py", line 224, in restricted
File "C:/Users/Ramashish
Gaurav/Downloads/web2py_win/web2py/applications/editor/models/db1.py"
<http://127.0.0.1:8000/admin/default/edit/editor/models/db1.py>, line 4, in
<module>
ckeditor.define_tables()
File "applications\editor\modules\plugin_ckeditor.py", line 59, in
define_tables
fake_migrate = fake_migrate,
File "gluon/dal.py", line 8414, in define_table
File "gluon/dal.py", line 8430, in lazy_define_table
File "gluon/dal.py", line 8952, in __init__
File "gluon/dal.py", line 8119, in check_reserved_keyword
SyntaxError: invalid table/column name "length" is a "ALL" reserved SQL/NOSQL
keyword
Please help me regarding this issue (May be I am not placing the right code
at right place).
(I don't know whether this editor will support programming languages like
C, C++ etc, so if you have got any new simple programming language based
editor for web2py app, I'll be happy to install that)
--
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].
For more options, visit https://groups.google.com/d/optout.