Skip to content

Commit 6f6a669

Browse files
author
Richard Jones
committed
*** empty log message ***
1 parent 1c81231 commit 6f6a669

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

doc/customizing.txt

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

5-
:Version: $Revision: 1.126 $
5+
:Version: $Revision: 1.127 $
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
@@ -317,7 +317,30 @@ Note: if you modify the schema, you'll most likely need to edit the
317317

318318
A tracker schema defines what data is stored in the tracker's database.
319319
Schemas are defined using Python code in the ``dbinit.py`` module of your
320-
tracker. The "classic" schema looks like this (see below for the meaning
320+
tracker.
321+
322+
The ``dbinit.py`` module
323+
------------------------
324+
325+
The ``dbinit.py`` module contains two functions:
326+
327+
**open**
328+
This function defines what your tracker looks like on the inside, the
329+
**schema** of the tracker. It defines the **Classes** and **properties**
330+
on each class. It also defines the **security** for those Classes. The
331+
next few sections describe how schemas work and what you can do with
332+
them.
333+
**init**
334+
This function is responsible for setting up the initial state of your
335+
tracker. It's called exactly once - but the ``roundup-admin initialise``
336+
command. See the start of the section on `database content`_ for more
337+
info about how this works.
338+
339+
340+
The "classic" schema
341+
--------------------
342+
343+
The "classic" schema looks like this (see below for the meaning
321344
of ``'setkey'``)::
322345

323346
pri = Class(db, "priority", name=String(), order=String())

doc/index.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,15 @@ project and those who just report bugs:
6565
Eddie Parker,
6666
Thomas Arendsen Hein,
6767
Anthony Baxter,
68+
Bo Berglund,
6869
Cameron Blackwood,
6970
Jeff Blaine,
7071
Duncan Booth,
7172
Seb Brezel,
7273
Titus Brown,
7374
Godefroid Chapelle,
7475
Roch'e Compaan,
76+
Joe Cooper,
7577
Kelley Dagley,
7678
Paul F. Dubois,
7779
Jeff Epler,
@@ -100,6 +102,7 @@ Luke Opperman,
100102
Will Partain,
101103
Ewout Prangsma,
102104
Bernhard Reiter,
105+
Roy Rapoport,
103106
John P. Rouillard,
104107
Ollie Rutherfurd,
105108
Florian Schulze,

roundup/roundupdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: roundupdb.py,v 1.104 2004-03-26 23:45:34 richard Exp $
18+
# $Id: roundupdb.py,v 1.105 2004-03-27 00:12:11 richard Exp $
1919

2020
"""Extending hyperdb with types specific to issue-tracking.
2121
"""
@@ -56,7 +56,7 @@ def getUserTimezone(self):
5656
# If there is no class 'user' or current user doesn't have timezone
5757
# property or that property is not numeric assume he/she lives in
5858
# Greenwich :)
59-
timezone = self.config.get('DEFAULT_TIMEZONE', 0)
59+
timezone = getattr(self.config, 'DEFAULT_TIMEZONE', 0)
6060
return timezone
6161

6262
def confirm_registration(self, otk):

0 commit comments

Comments
 (0)