Publishing a folder Publishing a folder Consider the problem of sharing a folder (and subfolders) on the web. web2py makes this very easy. You just need a controller like this:...
Query , Set , Rows Query , Set , Rows Let’s consider again the table defined (and dropped) previously and insert three records: >>> db . define_table ( 'person' , Field (...
Component plugins Component plugins Component plugins are plugins that define components. Components usually access the database and define with their own models. Here we turn...
API API Models, controllers, and views are executed in an environment where the following objects are already imported for us: Global Objects: request , response , session...
jQuery effects Form events Keyboard events Mouse events Effects Methods and attributes Conditional fields in forms Confirmation on delete jQuery effects The basic effect...
Restful Web Services parse_as_rest (experimental) smart_query (experimental) Access Control Restful Web Services REST stands for “REpresentational State Transfer” and it i...
Generating raw sql Generating raw sql Sometimes you need to generate the SQL but not execute it. This is easy to do with web2py since every command that performs database IO ha...
Streaming virtual files Streaming virtual files It is common for malicious attackers to scan web sites for vulnerabilities. They use security scanners like Nessus to explore th...
Other operators like , ilike , regexp , startswith , endswith , contains , upper , lower year , month , day , hour , minutes , seconds belongs sum , avg , min , max and len ...