Mercurial > p > roundup > code
comparison doc/customizing.txt @ 3290:3b03f0981f4d maint-0.8
*** empty log message ***
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 20 Apr 2005 06:33:50 +0000 |
| parents | 2e143b885cd7 |
| children | 90e711aa1be6 |
comparison
equal
deleted
inserted
replaced
| 3288:2e143b885cd7 | 3290:3b03f0981f4d |
|---|---|
| 1 =================== | 1 =================== |
| 2 Customising Roundup | 2 Customising Roundup |
| 3 =================== | 3 =================== |
| 4 | 4 |
| 5 :Version: $Revision: 1.161.2.14 $ | 5 :Version: $Revision: 1.161.2.15 $ |
| 6 | 6 |
| 7 .. This document borrows from the ZopeBook section on ZPT. The original is at: | 7 .. This document borrows from the ZopeBook section on ZPT. The original is at: |
| 8 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx | 8 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx |
| 9 | 9 |
| 10 .. contents:: | 10 .. contents:: |
| 2520 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 2520 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2521 | 2521 |
| 2522 Create a new action class in your tracker's ``extensions`` directory, for | 2522 Create a new action class in your tracker's ``extensions`` directory, for |
| 2523 example ``myaction.py``:: | 2523 example ``myaction.py``:: |
| 2524 | 2524 |
| 2525 from roundup.cgi.actions import Action | |
| 2526 | |
| 2525 class MyAction(Action): | 2527 class MyAction(Action): |
| 2526 def handle(self): | 2528 def handle(self): |
| 2527 ''' Perform some action. No return value is required. | 2529 ''' Perform some action. No return value is required. |
| 2528 ''' | 2530 ''' |
| 2529 | 2531 |
