Skip to content

Commit 8be7af3

Browse files
author
Richard Jones
committed
clarifications
1 parent e44cc8a commit 8be7af3

File tree

3 files changed

+46
-17
lines changed

3 files changed

+46
-17
lines changed

doc/customizing.txt

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.62 $
5+
:Version: $Revision: 1.63 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -437,9 +437,12 @@ case though, so be careful to use the right one.
437437
the create() methods.
438438

439439
**Changing content after tracker initialisation**
440-
Use the roundup-admin interface's create, set and retire methods to add,
441-
alter or remove items from the classes in question.
440+
As the "admin" user, click on the "class list" link in the web interface
441+
to bring up a list of all database classes. Click on the name of the class
442+
you wish to change the content of.
442443

444+
You may also use the roundup-admin interface's create, set and retire
445+
methods to add, alter or remove items from the classes in question.
443446

444447
See "`adding a new field to the classic schema`_" for an example that requires
445448
database content changes.
@@ -585,6 +588,16 @@ Example Scenarios
585588
normal "User" Role minus the "Web Access" Permission. This will allow users
586589
to send in emails to the tracker, but not access the web interface.
587590

591+
**let some users edit the details of all users**
592+
Create a new Role called "User Admin" which has the Permission for editing
593+
users::
594+
595+
db.security.addRole(name='User Admin', description='Managing users')
596+
p = db.security.getPermission('Edit', 'user')
597+
db.security.addPermissionToRole('User Admin', p)
598+
599+
and assign the Role to the users who need the permission.
600+
588601

589602
Web Interface
590603
=============
@@ -1030,7 +1043,6 @@ The following variables are available to templates.
10301043
`hyperdb class wrapper`_ or a `hyperdb item wrapper`_
10311044
**request**
10321045
Includes information about the current request, including:
1033-
- the url
10341046
- the current index information (``filterspec``, ``filter`` args,
10351047
``properties``, etc) parsed out of the form.
10361048
- methods for easy filterspec link generation
@@ -1193,7 +1205,8 @@ The property wrapper has some useful attributes:
11931205
Attribute Description
11941206
=============== =============================================================
11951207
_name the name of the property
1196-
_value the value of the property if any
1208+
_value the value of the property if any - this is the actual value
1209+
retrieved from the hyperdb for this property
11971210
=============== =============================================================
11981211

11991212
There are several methods available on these wrapper objects:
@@ -1237,7 +1250,6 @@ Variable Holds
12371250
=========== =================================================================
12381251
form the CGI form as a cgi.FieldStorage
12391252
env the CGI environment variables
1240-
url the current URL path for this request
12411253
base the base URL for this tracker
12421254
user a HTMLUser instance for this user
12431255
classname the current classname (possibly None)

doc/installation.txt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Installing Roundup
33
==================
44

5-
:Version: $Revision: 1.36 $
5+
:Version: $Revision: 1.37 $
66

77
.. contents::
88

@@ -84,7 +84,8 @@ Basic Installation Steps
8484
------------------------
8585

8686
1. To install the Roundup support code into your Python tree and
87-
Roundup scripts into /usr/local/bin. You need to have write permissions
87+
Roundup scripts into /usr/local/bin (substitute that path for whatever is
88+
appropriate on your system). You need to have write permissions
8889
for these locations, eg. being root on unix::
8990

9091
python setup.py install
@@ -319,8 +320,8 @@ To test the mail gateway on unix systems, try::
319320

320321
echo test |mail -s '[issue] test' support@YOUR_DOMAIN_HERE
321322

322-
As a regular cron job using a mailbox source
323-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
323+
As a regular job using a mailbox source
324+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
324325

325326
Set ``roundup-mailgw`` up to run every 10 minutes or so. For example::
326327

@@ -330,16 +331,18 @@ Where the ``mail_spool_file`` argument is the location of the roundup submission
330331
user's mail spool. On most systems, the spool for a user "issue_tracker"
331332
will be "``/var/mail/issue_tracker``".
332333

333-
As a regular cron job using a POP source
334-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
334+
As a regular job using a POP source
335+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
335336

336-
To retrieve from a POP mailbox, use a similar cron entry to the mailbox one::
337+
To retrieve from a POP mailbox, use a *cron* entry to the mailbox one::
337338

338339
10 * * * * /usr/local/bin/roundup-mailgw /opt/roundup/trackers/support pop <pop_spec>
339-
340+
340341
where pop_spec is "``username:password@server``" that specifies the roundup
341342
submission user's POP account name, password and server.
342343

344+
On windows, you would set up the command using the windows scheduler.
345+
343346

344347
Shared Environment Steps
345348
------------------------

doc/user_guide.txt

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
User Guide
33
==========
44

5-
:Version: $Revision: 1.11 $
5+
:Version: $Revision: 1.12 $
66

77
.. contents::
88

@@ -129,7 +129,21 @@ propname selects the values the item properties given by propname
129129
Access Controls
130130
---------------
131131

132-
XXX
132+
User access is controlled through Permissions. These are are grouped into
133+
Roles, and users have a comma-separated list of Roles assigned to them.
134+
135+
Permissions divide access controls up into answering questions like:
136+
137+
- may the user edit issues ("Edit", "issue")
138+
- is the user allowed to use the web interface ("Web Access")
139+
- may the user edit other user's Roles through the web ("Web Roles")
140+
141+
Any number of new Permissions and Roles may be created as described in the
142+
customisation documentation. Examples of new access controls are:
143+
144+
- only managers may sign off issues as complete
145+
- don't give users who register through email web access
146+
- let some users edit the details of all users
133147

134148

135149
E-Mail Gateway
@@ -385,4 +399,4 @@ command-line.
385399
Back to `Table of Contents`_
386400

387401
.. _`Table of Contents`: index.html
388-
402+
.. _`customisation documentation`: customizing.html

0 commit comments

Comments
 (0)