Changes between Version 3 and Version 4 of DeveloperGuidelines


Ignore:
Timestamp:
12/20/08 03:22:12 (16 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines

    v3 v4  
    1 Web2Py:
    2  - http://mdp.cti.depaul.edu/examples/static/cookbook.pdf
    3  - http://mdp.cti.depaul.edu/examples/static/web2py_cheatsheet.pdf
     1== Web2Py ==
     2 * http://mdp.cti.depaul.edu/examples/static/cookbook.pdf
     3 * http://mdp.cti.depaul.edu/examples/static/web2py_cheatsheet.pdf
    44
    5 MVC (like Rails)
     5This is an MVC environment (like Rails).
    66
    7   Model
    8    Defines databases in: /models/db.py   (equivalent of inst/mysql-dbcreate.sql)
     7=== Model ===
     8Defines databases in: {{{/models/module.py}}}   (equivalent of inst/mysql-dbcreate.sql)
    99
    10   Controller
    11    Python functions in /controllers/module.py
    12    e.g.
     10=== Controller ===
     11Python functions in /controllers/module.py
     12e.g.
    1313{{{
    1414   def list_records():
     
    1616       return dict (list=list)
    1717}}}   
    18   View
    19    HTML/Javascript templates in /views/module/function.html
     18
     19=== View ===
     20HTML/Javascript templates in /views/module/function.html
    2021   - these are normal HTML/JS files with the ability to add in Python code (e.g. variables) surrounded by brackets: {{ interpreted python here }}
    2122   - there should be an .html file available for each function in the module (name normally being the same as the function)