December 2009
2 posts
Implementing a Rails-like scaffolding in web2py...
Sometimes I want to create a better administration panel for our clients. With this hack you can create an add/edit/delete panel for every table you like and extend it easily. in order to use it you just go inside the controllers and add: @scaffold(None) def authors(): pass this will create an admin page (authors) that has all the properties from the table “authors”. if you have...
Dec 26th
Uploading files using CKEditor in web2py
This is the second part of integrating CKEditor in web2py. I should warn you that quotes are messed up in the blog so you can check at web2pyslices for the updated (and ready for copy-paste) version. What it needs to be done in order to have ckeditor uploading works. First, it needs a “file browser” url. That’s just a form with an upload field where we can use to find and upload...
Dec 18th