|
2 | 2 | Customising Roundup |
3 | 3 | =================== |
4 | 4 |
|
5 | | -:Version: $Revision: 1.62 $ |
| 5 | +:Version: $Revision: 1.63 $ |
6 | 6 |
|
7 | 7 | .. This document borrows from the ZopeBook section on ZPT. The original is at: |
8 | 8 | http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx |
@@ -437,9 +437,12 @@ case though, so be careful to use the right one. |
437 | 437 | the create() methods. |
438 | 438 |
|
439 | 439 | **Changing content after tracker initialisation** |
440 | | - Use the roundup-admin interface's create, set and retire methods to add, |
441 | | - alter or remove items from the classes in question. |
| 440 | + As the "admin" user, click on the "class list" link in the web interface |
| 441 | + to bring up a list of all database classes. Click on the name of the class |
| 442 | + you wish to change the content of. |
442 | 443 |
|
| 444 | + You may also use the roundup-admin interface's create, set and retire |
| 445 | + methods to add, alter or remove items from the classes in question. |
443 | 446 |
|
444 | 447 | See "`adding a new field to the classic schema`_" for an example that requires |
445 | 448 | database content changes. |
@@ -585,6 +588,16 @@ Example Scenarios |
585 | 588 | normal "User" Role minus the "Web Access" Permission. This will allow users |
586 | 589 | to send in emails to the tracker, but not access the web interface. |
587 | 590 |
|
| 591 | +**let some users edit the details of all users** |
| 592 | + Create a new Role called "User Admin" which has the Permission for editing |
| 593 | + users:: |
| 594 | + |
| 595 | + db.security.addRole(name='User Admin', description='Managing users') |
| 596 | + p = db.security.getPermission('Edit', 'user') |
| 597 | + db.security.addPermissionToRole('User Admin', p) |
| 598 | + |
| 599 | + and assign the Role to the users who need the permission. |
| 600 | + |
588 | 601 |
|
589 | 602 | Web Interface |
590 | 603 | ============= |
@@ -1030,7 +1043,6 @@ The following variables are available to templates. |
1030 | 1043 | `hyperdb class wrapper`_ or a `hyperdb item wrapper`_ |
1031 | 1044 | **request** |
1032 | 1045 | Includes information about the current request, including: |
1033 | | - - the url |
1034 | 1046 | - the current index information (``filterspec``, ``filter`` args, |
1035 | 1047 | ``properties``, etc) parsed out of the form. |
1036 | 1048 | - methods for easy filterspec link generation |
@@ -1193,7 +1205,8 @@ The property wrapper has some useful attributes: |
1193 | 1205 | Attribute Description |
1194 | 1206 | =============== ============================================================= |
1195 | 1207 | _name the name of the property |
1196 | | -_value the value of the property if any |
| 1208 | +_value the value of the property if any - this is the actual value |
| 1209 | + retrieved from the hyperdb for this property |
1197 | 1210 | =============== ============================================================= |
1198 | 1211 |
|
1199 | 1212 | There are several methods available on these wrapper objects: |
@@ -1237,7 +1250,6 @@ Variable Holds |
1237 | 1250 | =========== ================================================================= |
1238 | 1251 | form the CGI form as a cgi.FieldStorage |
1239 | 1252 | env the CGI environment variables |
1240 | | -url the current URL path for this request |
1241 | 1253 | base the base URL for this tracker |
1242 | 1254 | user a HTMLUser instance for this user |
1243 | 1255 | classname the current classname (possibly None) |
|
0 commit comments