Code

Corrected customizing url (patch #791963).
[roundup.git] / doc / FAQ.txt
1 ===========
2 Roundup FAQ
3 ===========
5 :Version: $Revision: 1.15 $
7 .. contents::
10 Installation
11 ------------
13 Living without a mailserver
14 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 Remove the nosy reactor, means delete the tracker file
17 ``detectors/nosyreactor.py`` from your tracker home.
20 The cgi-bin is very slow!
21 ~~~~~~~~~~~~~~~~~~~~~~~~~
23 Yep, it sure is. It has to start up Python and load all of the support
24 libraries for *every* request.
26 The solution is to use the built in server.
28 To make Roundup more seamless with your website, you may place the built
29 in server behind apache and link it into your web tree
32 How do I put Roundup behind Apache
33 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35 We have a project (foo) running on ``foohost.com:8888``.
36 We want ``http://foohost.com/FooIssues`` to use the roundup server, so we 
37 set that up on port 8888 on ``foohost.com`` with the ``config.py`` line::
39   TRACKER_WEB = 'http://foohost.com/FooIssues/'
41 We have a "foo_issues" tracker and we run the server with::
43   roundup-server -p 8888 foo_issues=/home/roundup/trackers/foo_issues 
45 Then, on the Apache machine (eg. redhat 7.3 with apache 1.3), in
46 ``/etc/httpd/conf/httpd.conf`` uncomment::
48   LoadModule proxy_module       modules/libproxy.so
50 and::
52   AddModule mod_proxy.c
54 Then add::
56   # roundup stuff (added manually)
57   <IfModule mod_proxy.c>
59   RewriteEngine on
60   
61   # General Roundup
62   RewriteRule ^/Roundup$  Roundup/    [R]
63   RewriteRule ^/Roundup/(.*) http://foohost.com:8888/$1   [P]
64   
65   # Redirect to Foo Issues
66   RewriteRule ^/Roundup/foo_issues(.*) FooIssues$1    [R]
67   
68   # Handle Foo Issues
69   RewriteRule ^/FooIssues$  FooIssues/    [R]
70   RewriteRule ^/FooIssues/(.*) http://foohost.com:8888/foo_issues/$1 [P]
71   
72   </IfModule>
74 Then restart Apache. Now Apache will proxy the request on to the
75 roundup-server.
77 You need to add the last 3 RewriteRule lines for each tracker that you have.
79 You can now firewall off port 8888 from the rest of the world.
82 Roundup runs very slowly on my XP machine when accessed from the Internet
83 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
85 The issue is probably related to host name resolution for the client
86 performing the request. You can turn off the resolution of the names
87 when it's so slow like this. To do so, edit the module
88 roundup/scripts/roundup_server.py around line 77 to add the following
89 to the RoundupRequestHandler class:
91      def address_string(self):
92          return self.client_address[0]
95 Templates
96 ---------
98 What is that stuff in the tracker html directory?
99 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101 This is the template code that Roundup uses to display the various pages.
102 This is based upon the template markup language in Zope called, oddly
103 enough "Zope Page Templates". There's documentation in the Roundup
104 customisation_ documentation. For more information have a look at:
106    http://www.zope.org/Documentation/Books/ZopeBook/current/contents
108 specifically chapter 5 "Using Zope Page Templates" and chapter 9 "Advanced
109 Page Templates".
112 But I just want a select/option list for ....
113 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
115 Really easy... edit ``html/issue.item``. For 'nosy', change line 53 from::
117   <span tal:replace="structure context/nosy/field" />
119 to::
121   <span tal:replace="structure context/nosy/menu" />
123 For 'assigned to', change line 61 from::
125   <td tal:content="structure context/assignedto/field">assignedto menu</td>
127 to::
129   <td tal:content="structure context/assignedto/menu">assignedto menu</td>
133 Great! But now the select/option list is too big
134 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
136 Thats a little harder (but only a little ;^)
138 Again, edit ``html/issue.item``. For nosy, change line 53 from:
140   <span tal:replace="structure context/nosy/field" />
142 to::
144   <span tal:replace="structure python:context.nosy.menu(height=3)" />
146 for more information, go and read about Zope Page Templates.
149 Using Roundup
150 -------------
152 I got an error and I cant reload it!
153 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
155 If you're using Netscape/Mozilla, try holding shift and pressing reload.
156 If you're using IE then install Mozilla and try again ;^)
159 I keep getting logged out
160 ~~~~~~~~~~~~~~~~~~~~~~~~~
162 Make sure that the TRACKER_WEB setting in your tracker's config.py is set
163 to the URL of the tracker.
166 -----------------
168 Back to `Table of Contents`_
170 .. _`Table of Contents`: index.html
171 .. _`customisation`: customizing.html