added tagcloud

This commit is contained in:
Massimo Di Pierro
2011-11-23 01:14:19 -06:00
parent 332c53c5e3
commit e9fadbc40b
132 changed files with 6645 additions and 1 deletions
@@ -0,0 +1,6 @@
### Community Sources
- [[web2pybrasil http://www.web2pybrasil.com.br popup]]
- Apostila em português [[Download http://dl.dropbox.com/u/830444/apostila_web2py_basico.pdf popup]] e [[Online http://web2pybrasil.appspot.com/init/plugin_wiki/page/curso-web2py-000 popup]]
- [[Sitio en español http://www.web2py.com.ar popup]]
- [[Documentación en español http://www.web2py.com.ar/examples/default/docs popup]]
@@ -0,0 +1,4 @@
## web2py``TM``:sup Documentation & Resources
Here is a list of known sources of documentation and other resources for web2py.
You can submit your own source [[here contact]].
@@ -0,0 +1,23 @@
### More Resources
#### Social
- [[User Groups http://www.web2py.com/examples/default/usergroups popup]]
- [[Live Chat (IRC) http://webchat.freenode.net/?channels=web2py popup]]
- [[Twitter http://twitter.com/#!/web2py]]
- [[User Voice http://web2py.uservoice.com/ popup]]
#### Learning
- [[Interactive Demo http://www.web2py.com/demo_admin popup]]
- [[Quick Examples http://www.web2py.com/examples/default/examples]]
- [[Videos http://www.web2py.com/examples/default/videos/]]
- [[FAQ http://www.web2py.com/AlterEgo popup]]
#### Code
- [[web2pyslices (recipes) http://www.web2pyslices.com popup]]
- [[Layouts http://www.web2py.com/layouts popup]]
- [[Plugins http://www.web2py.com/plugins popup]]
- [[More Plugins http://dev.s-cubism.com/web2py_plugins]]
- [[Appliances http://www.web2py.com/appliances popup]]
- [[web2py utils http://packages.python.org/web2py_utils/ popup]]
#### [[Sites Powered by web2py http://www.web2py.com/poweredby popup]]
@@ -0,0 +1,7 @@
### Official Documentation
- [[**web2py Online Book (english)** http://web2py.com/book popup]]
- [[web2py Online Book (spanish) http://www.latinuxpress.com/books/drafts/web2py/ popup]]
- [[Buy E-book/Printed Version http://stores.lulu.com/web2py popup]]
- [[API http://web2py.com/book/default/chapter/04#API popup]]
- [[Epydoc (source code documentation) http://www.web2py.com/examples/static/epydoc/index.html popup]]
@@ -0,0 +1,7 @@
## web2py``TM``:sup Web Framework
-------
[[Bossie Awards 2011 for Best Open Source Development Software http://bit.ly/o2G0Ik]]
------
Free open source full-stack framework for rapid development of fast, scalable, [[secure http://www.web2py.com/book/default/chapter/01#security popup]] and portable database-driven web-based applications. Written and programmable in [[Python http://www.python.org popup]]. [[LGPLv3 License http://www.gnu.org/licenses/lgpl.html]]
@@ -0,0 +1,89 @@
## What is web2py?
- **Created by a community of professionals** and University professors in Computer Science and Software Engineering.
- **Always backward compatible.** We have not broken backward compatibility since version 1.0 in 2007, and we pledge not to break it in the future.
- **Easy to run.** It requires no installation and no configuration.
- **Runs on** Windows, Mac, Unix/Linux, Google App Engine, Amazon EC2, and almost any web hosting via Python 2.5/2.6/2.7, or Java with Jython.
- **Runs with** Apache, Lighttpd, Cherokee and almost any other web server via CGI, FastCGI, WSGI, mod_proxy, and/or mod_python. It can embed third party WSGI apps and middleware.
- **Talks to** SQLite, PostgreSQL, MySQL, MSSQL, FireBird, Oracle, IBM DB2, Informix, Ingres, and Google App Engine.
- **Secure** [[It prevents the most common types of vulnerabilities http://web2py.com/examples/default/security]] including Cross Site Scripting, Injection Flaws, and Malicious File Execution.
- **Enforces good Software Engineering practices** (Model-View-Controller design, Server-side form validation, postbacks) that make the code more readable, scalable, and maintainable.
- **Speaks multiple protocols** HTML/XML, RSS/ATOM, RTF, PDF, JSON, AJAX, XML-RPC, CSV, REST, WIKI, Flash/AMF, and Linked Data (RDF).
- **Includes** a SSL-enabled and streaming-capable web server, a relational database, a web-based integrated development environment and web-based management interface, a Database Abstraction Layer that writes SQL for you in real time, internationalization support, multiple authentication methods, role based access control, an error logging and ticketing system, multiple caching methods for scalability, the jQuery library for AJAX and effects. [[Read more... http://web2py.com/examples/default/what]]
The best way to understand web2py is to try it; try it online [[here http://www.web2py.com/demo_admin]]. (We have disabled some functions for security.)
**web2py makes it easier** to develop, read and maintain web applications.
web2py, like Ruby on Rails, focuses on rapid development and follows a Model-View-Controller design.
Unlike Rails, web2py is based on Python for speed and scalability. web2py's complete web-based administrative interface eliminates shell commands unless you wish to use them. web2py also includes libraries for more protocols (for example XML-RPC and RSS feeds), and runs on the Google App Engine.
web2py, like Django, generates forms from database tables and includes an extensive set of validators. web2py is more compact than Django, easier to learn and has no project-level configuration files.
web2py is less verbose than Java-based frameworks and its syntax is much cleaner than PHP-based frameworks.
[[Here http://www.web2py.com/examples/static/web2py_vs_others.pdf]] you can compare features of web2py and other popular web frameworks.
You can download a source code version for any Operating System that runs Python, or get a binary version for OSX and Windows. After that, you do not need to install web2py.Just unzip it, click on it, choose a one-time administrator password and you're done. web2py then opens your browser at the administrative interface.
You can do everything via the admin interface:
- create a new application
- design an application
- maintain an existing application
- pack and download an application
- upload a packed application, or
- bytecode-compile an application
Use the admin interface for everyday maintenance tasks. Edit your application files,
clear temp files, browse past tickets/errors, run
tests or work with the database.
You can also interact with web2py via the Operating System shell or the Python shell.
For more power, customize your applications to use your preferred web-server (for example Apache) and your preferred database engine (for example PostgreSQL or Oracle). Create your own models, views and controllers.
web2py application Models describe the data representation, Views describe the data presentation, Controllers describe the business logic and workflow. Cron Jobs regularly run background jobs. web2py Modules are collections of reusable classes and functions and Static Files are images, scripts, stylesheets and the like.
Controllers consist of functions associated with a URL. web2py calls the function when the user visits the URL. web2py executes an application's models before calling the function, independent of the visited URL. web2py calls views when the function returns data other than a string, and renders the data in the proper format, such as html.
A web2py application can be as simple as a single file (controllers/default.py) containing:
``
def index(): return "Hello World"
``
When http://localhost:8000/app/default/index is visited the function is called and it displays the message "Hello World".
Here is a more complex complete application that lets the visitor upload images into a database:
### In Model
``
db=DAL('sqlite://storage.db')
db.define_table('image',
Field('name'),
Field('file','upload'))
``:code_python
### In Controller
``
def index():
form = SQLFORM(db.image)
if form.process().accepted:
response.flash = 'image uploaded'
return dict(form = form)""",counter=None,_class='boxCode')}}
``:code_python
### In View
``
{{extend 'layout.html'}}
<h1>Image upload form</h1>
{{form}}
``:code_python
Uploaded images are safely renamed to avoid directory traversal vulnerabilities, stored on the filesystem (or database) and a corresponding entry is inserted in the database, linking the file.
A built-in mechanism prevents involuntary double form submission. All DB IO is transaction-safe by default. Any exception in the code causes the transaction to rollback.
@@ -0,0 +1,42 @@
# web2py usergroups
## International Group (English)
Main group managed by Massimo Di Pierro
- [[https://groups.google.com/forum/?fromgroups#!forum/web2py/ https://groups.google.com/forum/?fromgroups#!forum/web2py/ popup]]
``web2py``:groupdates
## Brazilian Group
Portuguese speakers group
- [[https://groups.google.com/forum/?fromgroups#!forum/web2py-users-brazil https://groups.google.com/forum/?fromgroups#!forum/web2py-users-brazil popup]]
``web2py-users-brazil``:groupdates
## French Group
French speakers group
- [[https://groups.google.com/forum/?fromgroups#!forum/web2py-fr https://groups.google.com/forum/?fromgroups#!forum/web2py-fr popup]]
``web2py-fr``:groupdates
## Japanese Group
Japanese speakers group
- [[https://groups.google.com/forum/?fromgroups#!forum/web2py-japan https://groups.google.com/forum/?fromgroups#!forum/web2py-japan popup]]
``web2py-japan``:groupdates
## Spanish Group
Spanish speakers group
- [[https://groups.google.com/forum/?fromgroups#!forum/web2py-usuarios https://groups.google.com/forum/?fromgroups#!forum/web2py-usuarios popup]]
``web2py-usuarios``:groupdates
@@ -0,0 +1,76 @@
## What is web2py?
- **Created by a community of professionals** and University professors in Computer Science and Software Engineering.
- **Always backward compatible.** We have not broken backward compatibility since version 1.0 in 2007, and we pledge not to break it in the future.
- **Easy to run.** It requires no installation and no configuration.
- **Runs on** Windows, Mac, Unix/Linux, Google App Engine, Amazon EC2, and almost any web hosting via Python 2.5/2.6/2.7, or Java with Jython.
- **Runs with** Apache, Lighttpd, Cherokee and almost any other web server via CGI, FastCGI, WSGI, mod_proxy, and/or mod_python. It can embed third party WSGI apps and middleware.
- **Talks to** SQLite, PostgreSQL, MySQL, MSSQL, FireBird, Oracle, IBM DB2, Informix, Ingres, and Google App Engine.
- **Secure** [[It prevents the most common types of vulnerabilities http://web2py.com/examples/default/security]] including Cross Site Scripting, Injection Flaws, and Malicious File Execution.
- **Enforces good Software Engineering practices** (Model-View-Controller design, Server-side form validation, postbacks) that make the code more readable, scalable, and maintainable.
- **Speaks multiple protocols** HTML/XML, RSS/ATOM, RTF, PDF, JSON, AJAX, XML-RPC, CSV, REST, WIKI, Flash/AMF, and Linked Data (RDF).
- **Includes** a SSL-enabled and streaming-capable web server, a relational database, a web-based integrated development environment and web-based management interface, a Database Abstraction Layer that writes SQL for you in real time, internationalization support, multiple authentication methods, role based access control, an error logging and ticketing system, multiple caching methods for scalability, the jQuery library for AJAX and effects. [[Read more... http://web2py.com/examples/default/what]]
The best way to understand web2py is to try it.
You can try it online [[here http://www.web2py.com/demo_admin]].
This online version is identical to the actual web2py although some functions are disabled for security reasons.
web2py was inspired by Ruby on Rails and, as Rails, it focuses on rapid development and follows a Model View Controller design. web2py differs from Rails because it is based on Python (thus it is faster and more scalable), because it provides a comprehensive web-based administrative interface (thus there is no need to ever type shell commands unless you wish), includes libraries to handle more protocols (for example XML-RPC and RSS feeds), and can run on the Google App Engine.
web2py was also inspired by Django and, as Django, it has the ability to generate forms from database tables and it includes an extensive set of validators. web2py differs from Django because it is more compact, easier to learn and does not have any project-level configuration files.
web2py is less verbose than Java-based frameworks and its syntax is much cleaner than PHP-based frameworks. This makes applications simpler to develop, and easier to read
and maintain.
[[Here http://www.web2py.com/examples/static/web2py_vs_others.pdf]] is a features comparison of web2py vs other popular web frameworks.
web2py comes in source code version (for any Operating System that runs Python) and in binary versions for OSX and Windows. web2py does not need to be installed. You unzip it, click on it, and choose a one-time administrator password. It then opens the browser for you and directs you to the administrative interface. Everything it needs to make this happen (the Python interpreter, the web-server, the relational database, etc.) is already packaged with web2py. If you need more power you customize your applications to use your preferred web-server (for example Apache) and your preferred database engine (for example PostgreSQL or Oracle).
Via the admin interface you can upload a packed application, create a new application, design an application, maintain an existing application, bytecode-compile an application, pack and download an application. Everything can be done via the web-based admin interface, including editing the files that comprise your applications, clearing temp files, browsing past tickets/errors, run tests, interact with the database. If you so choose, it is also possible to interact with web2py via the Operating System shell or the Python shell.
Any web2py application is comprised of Models (files that contain a description of the data representation), Views (files that contain a description of the data presentation), Controllers (files that contain a description of the business logic and workflow), Cron Jobs (tasks that need to be executed regularly in background), Modules (collections of reusable classes and functions), and Static Files (images, scripts, stylesheets, etc.).
Controllers consist of functions that are associated to a URL and are called when the associated URL is visited. Models are executed before the function is called, independently on the visited URL (for each app). Views are called when the function returns data other than a string, and renders the data in the proper format (for example html).
A web2py application can be as simple as a single file (controllers/default.py) containing:
``
def index(): return "Hello World"
``
When http://localhost:8000/app/default/index is visited the function is called and it displays the message "Hello World".
Here is a more complex complete application that lets the visitor upload images into a database:
### In Model
``
db=DAL('sqlite://storage.db')
db.define_table('image',
Field('name'),
Field('file','upload'))
``:code_python
### In Controller
``
def index():
form = SQLFORM(db.image)
if form.process().accepted:
response.flash = 'image uploaded'
return dict(form = form)""",counter=None,_class='boxCode')}}
``:code_python
### In View
``
{{extend 'layout.html'}}
<h1>Image upload form</h1>
{{form}}
``:code_python
Uploaded images are safely renamed to avoid directory traversal vulnerabilities, stored on the filesystem (or database) and a corresponding entry is inserted in the database, linking the file. A built-in mechanism prevents involuntary double form submission. All DB IO is transaction safe by default. Any exception in the code causes the transaction to rollback.