Skip to content

Commit 84803c3

Browse files
author
Richard Jones
committed
documentation cleanup
1 parent 16381ab commit 84803c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+580
-534
lines changed

TODO.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
This file has been re-purposed to contain specifically the items that need
22
doing before the next release:
33

4+
- sessions, otks and indexing in RDBMSes
45
- add tests for group-by-multilink so I finally implement it for the RDBMSes
56
- full coverage analysis for unit tests
6-
- migrate to numeric ID values (fixes bug 817217)
7+
- s/getnode/getitem in backends (and s/Node/Item)
8+
- activity_by meta-property
79

10+
- migrate to numeric ID values (fixes bug 817217)

doc/.cvsignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ features.html
1111
upgrading.html
1212
glossary.html
1313
design.html
14-
maintenance.html
14+
admin_guide.html
1515
overview.html
1616
mysql.html
1717
postgresql.html

doc/admin_guide.txt

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

5-
:Version: $Revision: 1.1 $
5+
:Version: $Revision: 1.2 $
66

77
.. contents::
88

@@ -23,7 +23,7 @@ There's two "installations" that we talk about when using Roundup:
2323
Support files
2424
<python dir>\share\roundup\...
2525

26-
and on *nix (eg. Linux):
26+
and on Unix-like systems (eg. Linux):
2727

2828
Scripts
2929
<python root>/bin/...
@@ -84,7 +84,7 @@ Maintenance of Roundup can involve one of the following:
8484
1. `tracker backup`_
8585
2. `software upgrade`_
8686
3. `migrating backends`_
87-
3. `moving a tracker`_
87+
4. `moving a tracker`_
8888

8989

9090
Tracker Backup

roundup/__init__.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: __init__.py,v 1.26 2004-01-20 00:05:07 richard Exp $
18+
# $Id: __init__.py,v 1.27 2004-02-11 23:55:08 richard Exp $
1919

20-
''' Roundup - issue tracking for knowledge workers.
20+
'''Roundup - issue tracking for knowledge workers.
2121
2222
This is a simple-to-use and -install issue-tracking system with
2323
command-line, web and e-mail interfaces.
@@ -43,11 +43,11 @@
4343
| Storage Layer |
4444
-------------------------------------------------------------------------
4545
46-
The first layer represents the users (chocolate).
47-
The second layer is the Roundup interface to the users (vanilla).
48-
The third and fourth layers are the internal Roundup database storage
49-
mechanisms (strawberry).
50-
The final, lowest layer is the underlying database storage (rum).
46+
1. The first layer represents the users (chocolate).
47+
2. The second layer is the Roundup interface to the users (vanilla).
48+
3. The third and fourth layers are the internal Roundup database storage
49+
mechanisms (strawberry).
50+
4. The final, lowest layer is the underlying database storage (rum).
5151
5252
These are implemented in the code in the following manner::
5353
@@ -66,6 +66,7 @@
6666
written by Ka-Ping Yee in the "doc" directory. If nothing else, it has a
6767
much prettier cake :)
6868
'''
69+
__docformat__ = 'restructuredtext'
6970

7071
__version__ = '0.7.0b1'
7172

roundup/admin.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: admin.py,v 1.61 2003-11-13 04:12:10 richard Exp $
19+
# $Id: admin.py,v 1.62 2004-02-11 23:55:08 richard Exp $
2020

2121
'''Administration commands for maintaining Roundup trackers.
2222
'''
23+
__docformat__ = 'restructuredtext'
2324

2425
import sys, os, getpass, getopt, re, UserDict, shutil, rfc822
2526
from roundup import date, hyperdb, roundupdb, init, password, token, rcsv
@@ -826,6 +827,7 @@ def do_table(self, args):
826827
specified, all properties are displayed. By default, the column widths
827828
are the width of the largest value. The width may be explicitly defined
828829
by defining the property as "name:width". For example::
830+
829831
roundup> table priority id,name:10
830832
Id Name
831833
1 fatal-bug
@@ -834,7 +836,8 @@ def do_table(self, args):
834836
4 feature
835837
836838
Also to make the width of the column the width of the label,
837-
leave a trailing : without a width on the property. E.G.
839+
leave a trailing : without a width on the property. For example::
840+
838841
roundup> table priority id,name:
839842
Id Name
840843
1 fata

roundup/backends/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: __init__.py,v 1.25 2003-10-25 22:53:26 richard Exp $
18+
# $Id: __init__.py,v 1.26 2004-02-11 23:55:08 richard Exp $
1919

20-
''' Container for the hyperdb storage backend implementations.
20+
'''Container for the hyperdb storage backend implementations.
2121
2222
The __all__ variable is constructed containing only the backends which are
2323
available.
2424
'''
25+
__docformat__ = 'restructuredtext'
2526

2627
__all__ = []
2728

roundup/backends/back_anydbm.py

Lines changed: 37 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.134 2003-12-10 01:40:51 richard Exp $
19-
'''
20-
This module defines a backend that saves the hyperdatabase in a database
21-
chosen by anydbm. It is guaranteed to always be available in python
18+
#$Id: back_anydbm.py,v 1.135 2004-02-11 23:55:08 richard Exp $
19+
'''This module defines a backend that saves the hyperdatabase in a
20+
database chosen by anydbm. It is guaranteed to always be available in python
2221
versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several
2322
serious bugs, and is not available)
2423
'''
24+
__docformat__ = 'restructuredtext'
2525

2626
try:
2727
import anydbm, sys
@@ -50,10 +50,10 @@ class Database(FileStorage, hyperdb.Database, roundupdb.Database):
5050
'''A database for storing records containing flexible data types.
5151
5252
Transaction stuff TODO:
53-
. check the timestamp of the class file and nuke the cache if it's
54-
modified. Do some sort of conflict checking on the dirty stuff.
55-
. perhaps detect write collisions (related to above)?
56-
53+
54+
- check the timestamp of the class file and nuke the cache if it's
55+
modified. Do some sort of conflict checking on the dirty stuff.
56+
- perhaps detect write collisions (related to above)?
5757
'''
5858
def __init__(self, config, journaltag=None):
5959
'''Open a hyperdatabase given a specifier to some storage.
@@ -92,14 +92,15 @@ def __init__(self, config, journaltag=None):
9292
self.lockfile.flush()
9393

9494
def post_init(self):
95-
''' Called once the schema initialisation has finished.
95+
'''Called once the schema initialisation has finished.
9696
'''
9797
# reindex the db if necessary
9898
if self.indexer.should_reindex():
9999
self.reindex()
100100

101101
def refresh_database(self):
102-
"Rebuild the database"
102+
"""Rebuild the database
103+
"""
103104
self.reindex()
104105

105106
def reindex(self):
@@ -1366,8 +1367,11 @@ def destroy(self, nodeid):
13661367
WARNING: this method should never be used except in extremely rare
13671368
situations where there could never be links to the node being
13681369
deleted
1370+
13691371
WARNING: use retire() instead
1372+
13701373
WARNING: the properties of this node will not be available ever again
1374+
13711375
WARNING: really, use retire() instead
13721376
13731377
Well, I think that's enough warnings. This method exists mostly to
@@ -1418,14 +1422,15 @@ def getkey(self):
14181422
return self.key
14191423

14201424
def labelprop(self, default_to_id=0):
1421-
''' Return the property name for a label for the given node.
1425+
'''Return the property name for a label for the given node.
14221426
14231427
This method attempts to generate a consistent label for the node.
14241428
It tries the following in order:
1425-
1. key property
1426-
2. "name" property
1427-
3. "title" property
1428-
4. first property from the sorted property name list
1429+
1430+
1. key property
1431+
2. "name" property
1432+
3. "title" property
1433+
4. first property from the sorted property name list
14291434
'''
14301435
k = self.getkey()
14311436
if k:
@@ -1597,21 +1602,23 @@ def getnodeids(self, db=None):
15971602

15981603
def filter(self, search_matches, filterspec, sort=(None,None),
15991604
group=(None,None), num_re = re.compile('^\d+$')):
1600-
''' Return a list of the ids of the active nodes in this class that
1601-
match the 'filter' spec, sorted by the group spec and then the
1602-
sort spec.
1603-
1604-
"filterspec" is {propname: value(s)}
1605-
"sort" and "group" are (dir, prop) where dir is '+', '-' or None
1606-
and prop is a prop name or None
1607-
"search_matches" is {nodeid: marker}
1608-
1609-
The filter must match all properties specificed - but if the
1610-
property value to match is a list, any one of the values in the
1611-
list may match for that property to match. Unless the property
1612-
is a Multilink, in which case the item's property list must
1613-
match the filterspec list.
1614-
'''
1605+
"""Return a list of the ids of the active nodes in this class that
1606+
match the 'filter' spec, sorted by the group spec and then the
1607+
sort spec.
1608+
1609+
"filterspec" is {propname: value(s)}
1610+
1611+
"sort" and "group" are (dir, prop) where dir is '+', '-' or None
1612+
and prop is a prop name or None
1613+
1614+
"search_matches" is {nodeid: marker}
1615+
1616+
The filter must match all properties specificed - but if the
1617+
property value to match is a list, any one of the values in the
1618+
list may match for that property to match. Unless the property
1619+
is a Multilink, in which case the item's property list must
1620+
match the filterspec list.
1621+
"""
16151622
cn = self.classname
16161623

16171624
# optimise filterspec

roundup/backends/back_bsddb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_bsddb.py,v 1.28 2003-11-14 00:11:18 richard Exp $
19-
'''
20-
This module defines a backend that saves the hyperdatabase in BSDDB.
18+
#$Id: back_bsddb.py,v 1.29 2004-02-11 23:55:08 richard Exp $
19+
'''This module defines a backend that saves the hyperdatabase in BSDDB.
2120
'''
21+
__docformat__ = 'restructuredtext'
2222

2323
import bsddb, os, marshal
2424
from roundup import hyperdb, date

roundup/backends/back_bsddb3.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_bsddb3.py,v 1.21 2003-11-14 00:11:18 richard Exp $
19-
'''
20-
This module defines a backend that saves the hyperdatabase in BSDDB3.
18+
#$Id: back_bsddb3.py,v 1.22 2004-02-11 23:55:08 richard Exp $
19+
'''This module defines a backend that saves the hyperdatabase in BSDDB3.
2120
'''
21+
__docformat__ = 'restructuredtext'
2222

2323
import bsddb3, os, marshal
2424
from roundup import hyperdb, date

0 commit comments

Comments
 (0)