summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 09234a7)
raw | patch | inline | side by side (parent: 09234a7)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 9 Sep 2002 04:43:10 +0000 (04:43 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 9 Sep 2002 04:43:10 +0000 (04:43 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1097 57a73879-2fb5-44c3-a270-3262357dd7e2
diff --git a/TODO.txt b/TODO.txt
index 014f1eb95d9616970729be4dc0970b7fe8943794..e9bf053747a940b8c0c8819ab032a8ce94412b9e 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
is settled) ... including relevant file names in customisation doc
pending admin: have roundup-admin "set" command be applicable to all items
in a class
+pending dist: include the HTML in docs
bug: request.url is incorrect in cgi-bin environments
bug: query editing not translated to new templating
diff --git a/doc/installation.txt b/doc/installation.txt
index 5ab4af2eb123c4d287aae3e74f03664e5ffac02e..00a29c0431e85233af6a948f6dc4e3821b6d8dd4 100644 (file)
--- a/doc/installation.txt
+++ b/doc/installation.txt
Installing Roundup
==================
-:Version: $Revision: 1.20 $
+:Version: $Revision: 1.21 $
.. contents::
support:*:1002:jblaine,samh,geezer,mail,apache
+The instance "db" directory should be chmod'ed g+sw so that the group can
+write to the database, and any new files created in the database will be owned
+by the group.
+
An alternative to the above is to create a new user who has the sole
responsibility of running roundup. This user:
4. optionally has no login password so that nobody but the "root" user
may actually login and play with the roundup setup.
-
Internet Setup
~~~~~~~~~~~~~~
diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py
index 0e8f25cc472f30143ba487911e5a26ba2541b815..a0c55271b1d30ef0d409ad646858c1548806fbd4 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
-# $Id: client.py,v 1.22 2002-09-09 03:20:09 richard Exp $
+# $Id: client.py,v 1.23 2002-09-09 04:43:10 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
from roundup.cgi.templating import getTemplate, HTMLRequest, NoTemplate
from roundup.cgi import cgitb
-from PageTemplates import PageTemplate
+from roundup.cgi.PageTemplates import PageTemplate
class Unauthorised(ValueError):
pass
if self.form.has_key(':template'):
self.template = self.form[':template'].value
-
# see if we were passed in a message
if self.form.has_key(':ok_message'):
self.ok_message.append(self.form[':ok_message'].value)
index 52094425a16de44d7ada7cb1ca2db3cb3b294020..40dff5942d91fb4c5c1e9a4a5c518a6cfd87a3a8 100644 (file)
__traceback_supplement__ = (PageTemplate.PageTemplateTracebackSupplement, self)
if self._v_errors:
- raise PTRuntimeError, 'Page Template %s has errors.' % self.id
+ raise PageTemplate.PTRuntimeError, \
+ 'Page Template %s has errors.' % self.id
# figure the context
classname = classname or client.classname
diff --git a/roundup/templates/classic/html/_generic.help b/roundup/templates/classic/html/_generic.help
index af36b036f8eff1ba5bbc66bbe2f518c05f87596d..bced017b165aeb0c4078754e8269c9ae92283a19 100644 (file)
-<table tal:define="props python:request.form['properties'].value.split(',')"
- border=1 cellspacing=0 cellpadding=2>
-<tr>
- <th align=left tal:repeat="prop props" tal:content="prop"></th>
-</tr>
-<tr tal:repeat="item klass/list">
- <td align="left" valign="top" tal:repeat="prop props"
- tal:content="python:item[prop]"></td>
+<html>
+<head>
+<link rel="stylesheet" type="text/css" href="_file/style.css">
+</head>
+<body class="body" marginwidth="0" marginheight="0">
+
+<table class="classhelp"
+ tal:define="props python:request.form['properties'].value.split(',')">
+<tr><th tal:repeat="prop props" tal:content="prop"></th></tr>
+<tr tal:repeat="item context/list">
+ <td tal:repeat="prop props" tal:content="python:item[prop]"></td>
</tr>
</table>
+</body>
index be47a15e2957e6363de6324fdeb5d9ed49d28707..225ef2fdab4e9411215b225054bb3ec845bb36de 100644 (file)
<form method="POST" onSubmit="return submit_once()"
enctype="multipart/form-data">
+<input type="hidden" name=":template" value="item">
<input type="hidden" name=":required" value="title">
<table class="form">
<tr>
<th nowrap>Assigned To</th>
- <td tal:content="structure context/assignedto/menu">
- assignedto menu
- </td>
+ <td tal:content="structure context/assignedto/menu">assignedto menu</td>
<td> </td>
<td> </td>
</tr>
<tal:block tal:condition="context/id">
<table class="messages" tal:condition="context/messages">
- <tr><th colspan=2 class="header">Messages</th></tr>
+ <tr><th colspan=3 class="header">Messages</th></tr>
<tal:block tal:repeat="msg context/messages/reverse">
<tr>
+ <th><a tal:attributes="href string:msg${msg/id}"
+ tal:content="string:msg${msg/id}"></a></th>
<th tal:content="string:Author: ${msg/author}">author</th>
<th tal:content="string:Date: ${msg/date}">date</th>
</tr>
<tr>
- <td colspan="2"><pre tal:content="msg/content">content</pre></td>
+ <td colspan="3"><pre tal:content="msg/content">content</pre></td>
</tr>
</tal:block>
</table>
index c712193a1e5b322c86f16fa6c79795442a368ead..96f1a0c359b24ddc3a2ab196d1408f835e5c3c64 100644 (file)
</head>
<body class="body" marginwidth="0" marginheight="0">
-<table border=0 cellspacing=0 cellpadding=0>
+<table class="body">
<tr>
<td class="page-header-left"> </td>
index 10a31efdaac7f80749f4c734134cf0e5bac7ed7f..f6477170b28e40ee1460da286e47ae1d104fbd04 100644 (file)
/* main page styles */
-.body {
+body.body {
font-family: sans-serif, Arial, Helvetica;
color: #333333;
}
a:link { text-decoration: none; }
a { text-decoration: none; }
-.page-header-left {
+table.body {
+ border: 0;
+ padding: 0;
+ border-spacing: 0px;
+ border-collapse: separate;
+}
+
+td.page-header-left {
background-color: #cccc88;
padding: 5px;
}
-.page-header-top {
+td.page-header-top {
background-color: #cccc88;
border-bottom: 1px solid #dddd99;
padding: 5px;
font-weight: bold;
font-style: italic;
color: #333333;
+ empty-cells: show;
}
table.form td {
color: #333333;
+ empty-cells: show;
}
table.form td.html {
color: #777777;
+ empty-cells: show;
}
/* style for lists */
}
table.list td.normal {
+ empty-cells: show;
}
table.list td.alt {
background-color: #efefef;
+ empty-cells: show;
}
table.list td:first-child {
border-left: 1px solid #404070;
border-right: 1px solid #404070;
+ empty-cells: show;
}
table.list th:first-child {
border-left: 1px solid #404070;
border-right: 1px solid #404070;
+ empty-cells: show;
}
border-top: 1px solid #afafaf;
border-bottom: 1px solid #afafaf;
color: black;
+ empty-cells: show;
}
/* style for file displays */
table.files td {
font-family: monospace;
+ empty-cells: show;
}
/* style for history displays */
table.history td {
font-size: 90%;
vertical-align: top;
+ empty-cells: show;
}
/* style for "other" displays */
text-align: left;
}
+
+/* style for class help display */
+table.classhelp {
+ border-spacing: 0px;
+ border-collapse: separate;
+ width: 100%;
+}
+
+table.classhelp th {
+ font-weight: bold;
+ text-align: left;
+ color: #707040;
+}
+
+table.classhelp td {
+ padding: 2 2 2 2;
+ border: 1px solid black;
+ text-align: left;
+ vertical-align: top;
+ empty-cells: show;
+}
+
+