web2py AlterEgo
rock solid framework for agile and secure web applications
home
search
Edit page
Title:
Security Code:
Body:
(use
this
wiki markup)
We really like web.py but web2py has nothing to do with it. Really. The name is similar by accident. They are very very different beasts although you can translate web.py code into web2py code. This is an example of web.py code (not us) import web urls = ( '/(.*)', 'hello' ) class hello: def GET(self, name): i = web.input(times=1) if not name: name = 'world' for c in range(int(i.times)): print 'Hello,', name+'!' if __name__ == "__main__": web.run(urls, globals()) which we could translate in web2py as ### in routes.py (optional) routes_in=(('/.*','/myapp/default/hello'),) ### in controller default.py def hello(): return dict(times=request.vars.times or 1,name=request.vars.name or 'world') ### in view default/hello.py {{extend 'layout.html'}} {{for i in range(int(times)):}}Hello, {{=name}}!{{pass}} Although we would never write code like this where input is not validated! web2py has objects/helpers to build secure validated forms.
Resources
Home
Version 1.51 (2008-11-19 14:48:02)
Examples
|
API
|
ORM
Compare
|
Django
|
TG
|
Rails
|
PHP
|
Java
Tutorial
|
Book
|
epydocs
Screencast short
|
long
|
shell
|
GAE
Online Demo
Interactive FAQ (AlterEgo)
Repository of free web2py apps
KPAX (the web2py CMS)
Model Builder
|
Layout Builder
Central Authentication Service
Users Group (free to join)
Development Trunk (svn)
Contact
Massimo Di Pierro
School of Computing
DePaul University
243 S. Wabash Ave
Chicago, IL 60604 (USA)
mdipierro@cs.depaul.edu