Changes between Version 4 and Version 5 of DeveloperGuidelines
- Timestamp:
- 12/20/08 03:41:16 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines
v4 v5 121 121 SQLField('modified_on','datetime'), # Used by T2 to do edit conflict-detection 122 122 123 AAA124 Controller125 Each controller which incldues protected functions needs this:126 {{{127 def login():128 response.view='login.html'129 return dict(form=t2.login())130 def logout(): t2.logout(next='login')131 def register():132 response.view='register.html'133 return dict(form=t2.register())134 Each protected function needs this:135 @t2.requires_login('login')136 def function():137 }}}138 139 123 How to add a new module? 140 124 - copy existing & edit! … … 155 139 Sahana3 uses a separate table for each lookup list 156 140 141 DeveloperGuidelinesAAA 142 157 143 DeveloperGuidelinesAdvanced