# HG changeset patch # User Richard Jones # Date 1031712596 0 # Node ID a95428868bf422fca452d5a791db9101d99cb7d2 # Parent 70f187da3cf29f52df86d3352baba4c2941a3393 Added the missing keyword/topic interface to classic template (blush) Cleaned up the classhelp API Fixed some stuff in the customisation doc example. diff -r 70f187da3cf2 -r a95428868bf4 TODO.txt --- a/TODO.txt Wed Sep 11 02:20:35 2002 +0000 +++ b/TODO.txt Wed Sep 11 02:49:56 2002 +0000 @@ -45,8 +45,6 @@ pending web: UNIX init.d script for roundup-server pending web: rewritten documentation (can come after the beta though so stuff is settled) ... including relevant file names in customisation doc -pending admin: have "set" command be applicable to all items in a class -pending admin: add "unset" command pending dist: include the HTML in docs bug web: request.url is incorrect in cgi-bin environments @@ -78,6 +76,8 @@ done web: daemonify roundup-server (fork, logfile, pidfile) done web: modify cgitb to display PageTemplate errors better done web: have roundup.cgi pick up instance config from the environment +done admin: have "set" command be applicable to all items in a class, and also + be able to unset properties (ie. set to None) rejected instance: the use of non-Python configuration files (ConfigParser) diff -r 70f187da3cf2 -r a95428868bf4 doc/customizing.txt --- a/doc/customizing.txt Wed Sep 11 02:20:35 2002 +0000 +++ b/doc/customizing.txt Wed Sep 11 02:49:56 2002 +0000 @@ -2,7 +2,7 @@ Customising Roundup =================== -:Version: $Revision: 1.27 $ +:Version: $Revision: 1.28 $ .. This document borrows from the ZopeBook section on ZPT. The original is at: http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx @@ -974,7 +974,7 @@ Superseder - +
View: @@ -982,7 +982,7 @@ Nosy List - + @@ -1293,7 +1293,7 @@ and put a nice big header on it so the user has an idea what is happening:: - + Next we need the actual field that the user is going to enter the new category. The "context.name.field(size=60)" bit tells roundup to generate a @@ -1303,7 +1303,7 @@ will be created with that name:: - + @@ -1326,10 +1326,10 @@
Category
Category
NameName name
- + - + @@ -1362,8 +1362,7 @@ First we define a nice header so that the user knows what the next section diff -r 70f187da3cf2 -r a95428868bf4 roundup/cgi/templating.py --- a/roundup/cgi/templating.py Wed Sep 11 02:20:35 2002 +0000 +++ b/roundup/cgi/templating.py Wed Sep 11 02:49:56 2002 +0000 @@ -348,17 +348,24 @@ for x in self._klass.filter(None, filterspec, sort, group)] return l - def classhelp(self, properties, label='?', width='400', height='400'): - '''pop up a javascript window with class help + def classhelp(self, properties=None, label='list', width='500', + height='400'): + ''' Pop up a javascript window with class help - This generates a link to a popup window which displays the - properties indicated by "properties" of the class named by - "classname". The "properties" should be a comma-separated list - (eg. 'id,name,description'). + This generates a link to a popup window which displays the + properties indicated by "properties" of the class named by + "classname". The "properties" should be a comma-separated list + (eg. 'id,name,description'). Properties defaults to all the + properties of a class (excluding id, creator, created and + activity). - You may optionally override the label displayed, the width and - height. The popup window will be resizable and scrollable. + You may optionally override the label displayed, the width and + height. The popup window will be resizable and scrollable. ''' + if properties is None: + properties = self._klass.getprops(protected=0).keys() + properties.sort() + properties = ','.join(properties) return ''\ '(%s)'%(self.classname, properties, width, height, label) diff -r 70f187da3cf2 -r a95428868bf4 roundup/templates/classic/dbinit.py --- a/roundup/templates/classic/dbinit.py Wed Sep 11 02:20:35 2002 +0000 +++ b/roundup/templates/classic/dbinit.py Wed Sep 11 02:49:56 2002 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: dbinit.py,v 1.27 2002-09-11 01:18:24 richard Exp $ +# $Id: dbinit.py,v 1.28 2002-09-11 02:49:56 richard Exp $ import os @@ -93,7 +93,7 @@ # SECURITY SETTINGS # # new permissions for this schema - for cl in 'issue', 'file', 'msg', 'user': + for cl in 'issue', 'file', 'msg', 'user', 'keyword': db.security.addPermission(name="Edit", klass=cl, description="User is allowed to edit "+cl) db.security.addPermission(name="View", klass=cl, @@ -101,7 +101,7 @@ # Assign the access and edit permissions for issue, file and message # to regular users now - for cl in 'issue', 'file', 'msg': + for cl in 'issue', 'file', 'msg', 'keyword': p = db.security.getPermission('View', cl) db.security.addPermissionToRole('User', p) p = db.security.getPermission('Edit', cl) diff -r 70f187da3cf2 -r a95428868bf4 roundup/templates/classic/html/home --- a/roundup/templates/classic/html/home Wed Sep 11 02:20:35 2002 +0000 +++ b/roundup/templates/classic/html/home Wed Sep 11 02:49:56 2002 +0000 @@ -6,6 +6,6 @@ --> diff -r 70f187da3cf2 -r a95428868bf4 roundup/templates/classic/html/issue.index --- a/roundup/templates/classic/html/issue.index Wed Sep 11 02:20:35 2002 +0000 +++ b/roundup/templates/classic/html/issue.index Wed Sep 11 02:49:56 2002 +0000 @@ -5,6 +5,7 @@ + @@ -22,6 +23,7 @@ + - - + + diff -r 70f187da3cf2 -r a95428868bf4 roundup/templates/classic/html/issue.search --- a/roundup/templates/classic/html/issue.search Wed Sep 11 02:20:35 2002 +0000 +++ b/roundup/templates/classic/html/issue.search Wed Sep 11 02:49:56 2002 +0000 @@ -35,6 +35,21 @@ + + + + + + + + diff -r 70f187da3cf2 -r a95428868bf4 roundup/templates/classic/html/page --- a/roundup/templates/classic/html/page Wed Sep 11 02:20:35 2002 +0000 +++ b/roundup/templates/classic/html/page Wed Sep 11 02:49:56 2002 +0000 @@ -34,12 +34,19 @@ Issues
New Issue
- Unassigned Issues
- All Issues
+ Unassigned Issues
+ All Issues
Search Issues

+ Keywords
+ New Keyword
+

+ +

Admin
Class List
@@ -59,7 +66,7 @@

Hello,
username
- My Issues
+ My Issues
My Details
Logout

Category
Category
NameName name
Category - + Priority ID ActivityTopic Title Status Created By title diff -r 70f187da3cf2 -r a95428868bf4 roundup/templates/classic/html/issue.item --- a/roundup/templates/classic/html/issue.item Wed Sep 11 02:20:35 2002 +0000 +++ b/roundup/templates/classic/html/issue.item Wed Sep 11 02:49:56 2002 +0000 @@ -22,7 +22,7 @@ Superseder - +
View: @@ -31,15 +31,18 @@
Nosy List - +
Assigned To assignedto menu  Topics + + +
Topic: + +
Created: