[web2py] Difference between crud.create and SQLFORM

2011-05-25 Thread rixder
Hi! First of all... I love web2py framework :-) Problem: I've made modification: http://www.web2pyslices.com/main/slices/take_slice/113 and now if I use: form=crud.create(db.table) everything is ok. But if I use form=SQLFORM(db.table) nothing is happen, any error and any new record. I want ajax for

[web2py] Re: CODE, syntax higlighting and missing spaces

2011-05-09 Thread rixder
Solved... I've added: div.comment table tbody tr td pre { white-space: pre !important; } I think it should be in inline styles in CODE helper. Best Regards. On 9 Maj, 10:35, rixder wrote: > I have comments form with ckeditor and custom button "Paste python > code"

[web2py] CODE, syntax higlighting and missing spaces

2011-05-09 Thread rixder
I have comments form with ckeditor and custom button "Paste python code". Pasted (or typed) code is sending to server via Ajax POST and from server is returned html code: def code_py(): raw = request.vars['content'] return CODE(raw, language='python').xml() The returned html is inserted to

[web2py] SQLFORM, represents etc.

2011-04-13 Thread rixder
Hi, I can't find solution..: I have in model: db.define_table('categories', Field('name', 'string', length=512, requires=(IS_SLUG())), Field('title', 'string', length=512, required=True), Field('description', 'text', default=""), Field('created_on', 'datetime', defau

[web2py] First name and Last Name readonly (how)

2011-04-07 Thread rixder
Hi! Is there a quick solution to make fields "First Name" and "Last Name" readonly in Profile form? Best Regards!