|
2 | 2 | Customising Roundup |
3 | 3 | =================== |
4 | 4 |
|
5 | | -:Version: $Revision: 1.194 $ |
| 5 | +:Version: $Revision: 1.195 $ |
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 |
@@ -2920,27 +2920,25 @@ If you haven't initialised the database with the ``roundup-admin`` |
2920 | 2920 | Add:: |
2921 | 2921 |
|
2922 | 2922 | category = db.getclass('category') |
2923 | | - category.create(name="scipy", order="1") |
2924 | | - category.create(name="chaco", order="2") |
2925 | | - category.create(name="weave", order="3") |
| 2923 | + category.create(name="scipy") |
| 2924 | + category.create(name="chaco") |
| 2925 | + category.create(name="weave") |
2926 | 2926 |
|
2927 | 2927 | If the database has already been initalised, then you need to use the |
2928 | 2928 | ``roundup-admin`` tool:: |
2929 | 2929 |
|
2930 | 2930 | % roundup-admin -i <tracker home> |
2931 | 2931 | Roundup <version> ready for input. |
2932 | 2932 | Type "help" for help. |
2933 | | - roundup> create category name=scipy order=1 |
| 2933 | + roundup> create category name=scipy |
2934 | 2934 | 1 |
2935 | | - roundup> create category name=chaco order=1 |
| 2935 | + roundup> create category name=chaco |
2936 | 2936 | 2 |
2937 | | - roundup> create category name=weave order=1 |
| 2937 | + roundup> create category name=weave |
2938 | 2938 | 3 |
2939 | 2939 | roundup> exit... |
2940 | 2940 | There are unsaved changes. Commit them (y/N)? y |
2941 | 2941 |
|
2942 | | -TODO: explain why order=1 in each case. |
2943 | | - |
2944 | 2942 |
|
2945 | 2943 | Setting up security on the new objects |
2946 | 2944 | :::::::::::::::::::::::::::::::::::::: |
@@ -3148,8 +3146,10 @@ table to lay things out. It doesn't matter where in the table we add new |
3148 | 3146 | stuff, it is entirely up to your sense of aesthetics:: |
3149 | 3147 |
|
3150 | 3148 | <th>Category</th> |
3151 | | - <td><span tal:replace="structure context/category/field" /> |
3152 | | - <span tal:replace="structure db/category/classhelp" /> |
| 3149 | + <td> |
| 3150 | + <span tal:replace="structure context/category/field" /> |
| 3151 | + <span tal:replace="structure python:db.category.classhelp('name', |
| 3152 | + property='category', width='200')" /> |
3153 | 3153 | </td> |
3154 | 3154 |
|
3155 | 3155 | First, we define a nice header so that the user knows what the next |
|
0 commit comments