From c9e46f5700bb319acc389498e7ec904a4ac7ed11 Mon Sep 17 00:00:00 2001 From: richard Date: Sat, 27 Mar 2004 00:12:11 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2221 57a73879-2fb5-44c3-a270-3262357dd7e2 --- doc/customizing.txt | 27 +++++++++++++++++++++++++-- doc/index.txt | 3 +++ roundup/roundupdb.py | 4 ++-- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/doc/customizing.txt b/doc/customizing.txt index 3e56a82..8d91204 100644 --- a/doc/customizing.txt +++ b/doc/customizing.txt @@ -2,7 +2,7 @@ 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 @@ -317,7 +317,30 @@ Note: if you modify the schema, you'll most likely need to edit the 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 1c8be02..3095509 100644 --- a/doc/index.txt +++ b/doc/index.txt @@ -65,6 +65,7 @@ project and those who just report bugs: Eddie Parker, Thomas Arendsen Hein, Anthony Baxter, +Bo Berglund, Cameron Blackwood, Jeff Blaine, Duncan Booth, @@ -72,6 +73,7 @@ Seb Brezel, Titus Brown, Godefroid Chapelle, Roch'e Compaan, +Joe Cooper, Kelley Dagley, Paul F. Dubois, Jeff Epler, @@ -100,6 +102,7 @@ Luke Opperman, 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 98310fc..35ff923 100644 --- a/roundup/roundupdb.py +++ b/roundup/roundupdb.py @@ -15,7 +15,7 @@ # 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. """ @@ -56,7 +56,7 @@ class Database: # 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): -- 2.30.2