Mercurial > p > roundup > code
comparison doc/customizing.txt @ 3652:3a19d31be628
add in note about perms
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 10 Aug 2006 23:21:42 +0000 |
| parents | 12633662ff63 |
| children | cfa7fa2c5e0f |
comparison
equal
deleted
inserted
replaced
| 3651:5004aeed5a3a | 3652:3a19d31be628 |
|---|---|
| 1 =================== | 1 =================== |
| 2 Customising Roundup | 2 Customising Roundup |
| 3 =================== | 3 =================== |
| 4 | 4 |
| 5 :Version: $Revision: 1.200 $ | 5 :Version: $Revision: 1.201 $ |
| 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:: |
| 3290 timelog = Class(db, "timelog", period=Interval()) | 3290 timelog = Class(db, "timelog", period=Interval()) |
| 3291 | 3291 |
| 3292 Note that we automatically get the date of the time log entry | 3292 Note that we automatically get the date of the time log entry |
| 3293 creation through the standard property "creation". | 3293 creation through the standard property "creation". |
| 3294 | 3294 |
| 3295 You will need to grant "Creation" permission to the users who are | |
| 3296 allowed to add timelog entries. You may do this with: | |
| 3297 | |
| 3298 db.security.addPermissionToRole('User', 'Create', 'timelog') | |
| 3299 db.security.addPermissionToRole('User', 'View', 'timelog') | |
| 3300 | |
| 3301 If users are also able to *edit* timelog entries, then also include: | |
| 3302 | |
| 3303 db.security.addPermissionToRole('User', 'Edit', 'timelog') | |
| 3304 | |
| 3295 2. Link to the new class from your issue class (again, in | 3305 2. Link to the new class from your issue class (again, in |
| 3296 ``schema.py``):: | 3306 ``schema.py``):: |
| 3297 | 3307 |
| 3298 issue = IssueClass(db, "issue", | 3308 issue = IssueClass(db, "issue", |
| 3299 assignedto=Link("user"), topic=Multilink("keyword"), | 3309 assignedto=Link("user"), topic=Multilink("keyword"), |
