source: trunk/HACKING@ 6464

Last change on this file since 6464 was 6338, checked in by RIck van der Zwet, 16 years ago

Document descripion some basic of the 'framework' emplemented

File size: 1.3 KB
Line 
1# In order to be more flexible an have a more consistent view on every page
2# (and avoid repeating code) a little 'framework' has been setup, which is
3# implemented in the folowing way:
4
5The basic is the function GenericHandler() in exodus/views.py which uses the
6default template in exodus/templates/genericForm.html is the base
7implementation of the logic, while extending remind to take a look a the
8implemented classes which shows a variaty of options possible, some hightlights
9which uses the model class FOO as example:
10
11* FOOHandler(GenericHandler): will be the default way to call the extention,
12 this is needed due the fact that more includes/classes are depending on this
13 naming scheme
14* adding/edit/deleting is allowed to be overwritten by the custom class,
15 allowing logic which might needs doing after submitting
16* custom django HTML could be used to extended the genericForm using the
17 following scheme exodus/templates/<action>FOO.html
18
19When it comes of creating config files, place them at
20exodus/templates/<version>/<file> and you will be allowed to call them useing
21the url exodus/config/<version>/node/<file>
22
23Any futher questions? Feel free to ask at the techniek mailinglist at
24techniek@lijst.wirelessleiden.nl
25Web-subscribe: http://lijst.wirelessleiden.nl/mailman/listinfo/techniek
26
27Happy hacking!
28/Rick <rick@wirelessleiden.nl>
Note: See TracBrowser for help on using the repository browser.