web2py 1.56.4 is out
http://www.web2py.com
It is the web framework used by PyCon 2009 for registration.
It a very easy and very powerful Python web framework.
It is fast and rock solid. It has a very clean design and it is strong on security.
Includes a web based development environment, maintenance environment, and database administrative interface.
Includes a Database Abstraction Layer that works with SQLite, MySQL, PostgreSQL, FireBird, MSSQL, Oracle, AND the Google App Engine. The DAL does migrations.
Includes a pure Python based template language with no indentation requirements.
Includes jQuery, simplejson, markdown, feedparser, PyRSS2, nicEdit, EditArea and a lot more.
Runs on any platform that runs python. The binary versions can even run off a USB drive without dependences.
The same apps can run on a PC with Oracle or on the Google App Engine or on Windows Mobile, without changes, including DB API.
## in model db.py
from gluon.tools import *
db=SQLDB('sqlite://storage.db')
db.define_table('puppy', db.Field('name'),
db.Field('image','upload')) auth=Auth(globals(),db) auth.define_tables() crud=Crud(globals(),db)
## in controller default.py
def user():
" to expose register, login, logout, etc "
return dict(form=auth())
@auth.requires_login()
def data():
" to expose select, create, update, delete, etc "
return dict(form=crud())
@auth.requires_login()
def download():
" for downloading uploaded images "
return response.download(request,db)
## in view default/user.html
{{extend 'layout.html'}}
<div>{{=form}}</div>
## in view default/data.html
{{extend 'layout.html'}}
<div>{{=form}}</div>
This code will allow to register, login, change password, upload images of puppies (with relative names), select puppies, edit records, read and preview images, enforce authorization, and more.
* Attila Csipa (cron job)
* Bill Ferrett (modular DAL design)
* CJ Lazell (tester)
* DenesL (validators)
* Douglas Andrade (2.6 compliance, docstrings)
* Francisco Gama (bug fixing)
* Fran Boon (authorization and authentication)
* Fred Yanowski (XHTML compliance)
* Jonathan Benn (is_url validator and tests)
* Jose Jachuf (Firebird support)
* Kyle Smith (javascript)
* Limodou (winservice)
* Marcel Leuthi (Oracle support)
* Mark Larsen (taskbar widget)
* Mark Moore (databases and daemon scripts)
* Markus Gritsch (bug fixing)
* Martin Hufsky (expressions in DAL)
* Mateusz Banach (stickers)
* Michael Willis (shell)
* Nathan Freeze (admin design)
* Niall Sweeny (MSSQL support)
* Niccolo Polo (epydoc)
* Ondrej Such (MSSQL support)
* Pai (internationalization)
* Phyo Arkar Lwin (web hosting and Jython tester)
* Robin Bhattacharyya (Google App Engine support)
* Sharriff Aina (tester and PyAMF integration)
* Sterling Hankins (tester)
* Stuart Rackham (MSSQL support)
* Telman Yusupov (Oracle support)
* Timothy Farrell (python 2.6 compliance, windows support)
* Yarko Tymciurak (design)
* Younghyun Jo (internationalization)
python-announce-list@python.org