Index: roundup/doc/customizing.txt =================================================================== RCS file: /var/lib/cvs/roundup/roundup/doc/customizing.txt,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -B -c -I$Id: -I$Revision: -s -r1.1.1.1 -r1.2 *** roundup/doc/customizing.txt 3 Jun 2003 06:27:14 -0000 1.1.1.1 --- roundup/doc/customizing.txt 4 Jun 2003 06:12:28 -0000 1.2 *************** *** 2127,2165 **** be looking for a ``issue.search`` file to display. So that is indeed the file that we are going to change. ! If you look at this file it should be starting to seem familiar. It is a ! simple HTML form using a table to define structure. You can add the new ! category search code anywhere you like within that form:: ! ! Category: ! ! ! ! ! ! - Most of this is straightforward to anyone who knows HTML. It is just - setting up a select list followed by a checkbox and a couple of radio - buttons. - - The ``tal:repeat`` part repeats the tag for every item in the "category" - table and setting "s" to be each category in turn. - - The ``tal:attributes`` part is setting up the ``value=`` part of the option tag - to be the name part of "s" which is the current category in the loop. - - The ``tal:content`` part is setting the contents of the option tag to be the - name part of "s" again. For objects more complex than category, obviously - you would put an id in the value, and the descriptive part in the content; - but for category they are the same. Adding category to the default view ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- 2127,2175 ---- be looking for a ``issue.search`` file to display. So that is indeed the file that we are going to change. ! If you look at this file it should be starting to seem familiar, although it ! does use some new macros. You can add the new category search code anywhere you ! like within that form:: ! ! ! Priority: ! ! ! ! ! ! The definitions in the opening tag are used by the macros: ! ! - search_select expands to a drop-down box with all categories using db_klass ! and db_content. ! - column_input expands to a checkbox for selecting what columns should be ! displayed. ! - sort_input expands to a radio button for selecting what property should be ! sorted on. ! - group_input expands to a radio button for selecting what property should be ! group on. ! ! The category search code above would expand to the following:: ! ! ! Category: ! ! ! ! ! ! Adding category to the default view ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Index: roundup/roundup/cgi/templating.py =================================================================== RCS file: /var/lib/cvs/roundup/roundup/roundup/cgi/templating.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -B -c -I$Id: -I$Revision: -s -r1.1.1.1 -r1.2 *** roundup/roundup/cgi/templating.py 3 Jun 2003 06:27:16 -0000 1.1.1.1 --- roundup/roundup/cgi/templating.py 4 Jun 2003 06:12:28 -0000 1.2 *************** *** 1492,1507 **** ''' Parse the URL for query args, and update my attributes using the values. ''' ! self.form = {} ! for name, value in cgi.parse_qsl(url): ! if self.form.has_key(name): ! if isinstance(self.form[name], type([])): ! self.form[name].append(cgi.MiniFieldStorage(name, value)) ! else: ! self.form[name] = [self.form[name], ! cgi.MiniFieldStorage(name, value)] ! else: ! self.form[name] = cgi.MiniFieldStorage(name, value) self._post_init() def update(self, kwargs): --- 1492,1500 ---- ''' Parse the URL for query args, and update my attributes using the values. ''' ! env = {'QUERY_STRING': url} ! self.form = cgi.FieldStorage(environ=env) ! self._post_init() def update(self, kwargs): Index: roundup/templates/classic/html/issue.search.html =================================================================== RCS file: /var/lib/cvs/roundup/roundup/templates/classic/html/issue.search.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -B -c -I$Id: -I$Revision: -s -r1.1.1.1 -r1.2 *** roundup/templates/classic/html/issue.search.html 3 Jun 2003 06:27:17 -0000 1.1.1.1 --- roundup/templates/classic/html/issue.search.html 4 Jun 2003 06:12:28 -0000 1.2 *************** *** 9,18 **** --- 9,23 ----
 
*************** *** 22,180 **** ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! --- 27,170 ---- ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! + ! Index: roundup/templates/classic/html/page.html =================================================================== RCS file: /var/lib/cvs/roundup/roundup/templates/classic/html/page.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -B -c -I$Id: -I$Revision: -s -r1.1.1.1 -r1.2 *** roundup/templates/classic/html/page.html 3 Jun 2003 06:27:17 -0000 1.1.1.1 --- roundup/templates/classic/html/page.html 4 Jun 2003 06:12:27 -0000 1.2 *************** *** 102,104 **** --- 102,138 ---- + + + + + + + + + +
 Group on
All text*: !    
Title: 
Topic: ! !
ID: 
Creation date:
Creator: ! !
Activity: 
Priority: ! !
Status: ! !
Assigned To: ! !
Pagesize:
Start With:
Sort Descending:
Group Descending:
Query name**: !
 
 Group on
All text*:   
Title: 
Topic:
ID: 
Creation Date:
Creator: ! !
Activity: 
Priority: ! !
Status: ! ! ! ! !
Assigned to: ! ! ! ! !
Pagesize:
Start With:
Sort Descending:
Group Descending:
Query name**:
  + + + + + + + + + +