[web2py] HOWTO: Submit form using Ractive

2015-06-21 Thread M.C. Botha
How do I get the FORM rendered by Ractive to submit? *CONTROLLER* def get_form(): try: user = db.auth_user(auth.user.id) fields = ['first_name', 'last_name', 'gender', 'email', 'phone'] rslt = SQLFORM(db.auth_user, user, fields=fields, showid=False, formname='auth_form

[web2py] Re: Bootstrap modal for insert, update and delete

2015-01-29 Thread M.C. Botha
I have tried that but it does not reload the form. -- 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

[web2py] Bootstrap modal for insert, update and delete

2015-01-19 Thread M.C. Botha
Creating new records and updating the component to show the newly created record works. What does not work is to load a new record into the bootstrap modal form. What am I doing wrong in the post.load views and then in the comments.py.get_comment code? *models/tables.py* db.define_table('comme

[web2py] Old bug, supposedly updated still occuring - unsupported format character

2014-10-13 Thread M.C. Botha
Line 50 with the error is not in my code and thus I would assume inserted by the framework. I am running the latest version. How do I resolve this? Error ticket for "button" Ticket ID 127.0.0.1.2014-10-13.08-20-54.0005b39b-3509-4030-8641-07be3a8e83ad unsupported format character ':' (0x3a) a

[web2py] Re: how can i write a PIL image object to response

2014-10-03 Thread M.C. Botha
> > This does not work on appengine, there is no save method. > What is the appengine way of doing this? > from PIL import Image > def image(): > image = Image.new("RGB", (800, 600)) > response.headers['Content-Type']="image/png" > image.save(response.body, "PNG") > r