summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 86283ce)
raw | patch | inline | side by side (parent: 86283ce)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 27 Mar 2004 00:12:11 +0000 (00:12 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 27 Mar 2004 00:12:11 +0000 (00:12 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2221 57a73879-2fb5-44c3-a270-3262357dd7e2
doc/customizing.txt | patch | blob | history | |
doc/index.txt | patch | blob | history | |
roundup/roundupdb.py | patch | blob | history |
diff --git a/doc/customizing.txt b/doc/customizing.txt
index 3e56a82a2fe9aa39711727db864f0cfd0c947ee4..8d91204dcf01cf89b4c8896bfe3af987b9abd838 100644 (file)
--- a/doc/customizing.txt
+++ b/doc/customizing.txt
Customising Roundup
===================
-:Version: $Revision: 1.126 $
+:Version: $Revision: 1.127 $
.. This document borrows from the ZopeBook section on ZPT. The original is at:
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
A tracker schema defines what data is stored in the tracker's database.
Schemas are defined using Python code in the ``dbinit.py`` module of your
-tracker. The "classic" schema looks like this (see below for the meaning
+tracker.
+
+The ``dbinit.py`` module
+------------------------
+
+The ``dbinit.py`` module contains two functions:
+
+**open**
+ This function defines what your tracker looks like on the inside, the
+ **schema** of the tracker. It defines the **Classes** and **properties**
+ on each class. It also defines the **security** for those Classes. The
+ next few sections describe how schemas work and what you can do with
+ them.
+**init**
+ This function is responsible for setting up the initial state of your
+ tracker. It's called exactly once - but the ``roundup-admin initialise``
+ command. See the start of the section on `database content`_ for more
+ info about how this works.
+
+
+The "classic" schema
+--------------------
+
+The "classic" schema looks like this (see below for the meaning
of ``'setkey'``)::
pri = Class(db, "priority", name=String(), order=String())
diff --git a/doc/index.txt b/doc/index.txt
index 1c8be02c8651fcb76e48f128e3039ed71f1924e5..30955096e534fec4feec75095a1a307213c64b11 100644 (file)
--- a/doc/index.txt
+++ b/doc/index.txt
Eddie Parker,
Thomas Arendsen Hein,
Anthony Baxter,
+Bo Berglund,
Cameron Blackwood,
Jeff Blaine,
Duncan Booth,
Titus Brown,
Godefroid Chapelle,
Roch'e Compaan,
+Joe Cooper,
Kelley Dagley,
Paul F. Dubois,
Jeff Epler,
Will Partain,
Ewout Prangsma,
Bernhard Reiter,
+Roy Rapoport,
John P. Rouillard,
Ollie Rutherfurd,
Florian Schulze,
diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py
index 98310fc9413863af11bffa363e9e39c6899ace5b..35ff9239b376c772ec5c4f8b9956e4b42cb350ea 100644 (file)
--- a/roundup/roundupdb.py
+++ b/roundup/roundupdb.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: roundupdb.py,v 1.104 2004-03-26 23:45:34 richard Exp $
+# $Id: roundupdb.py,v 1.105 2004-03-27 00:12:11 richard Exp $
"""Extending hyperdb with types specific to issue-tracking.
"""
# If there is no class 'user' or current user doesn't have timezone
# property or that property is not numeric assume he/she lives in
# Greenwich :)
- timezone = self.config.get('DEFAULT_TIMEZONE', 0)
+ timezone = getattr(self.config, 'DEFAULT_TIMEZONE', 0)
return timezone
def confirm_registration(self, otk):