comparison roundup/hyperdb.py @ 1840:91a4619b1a14

hyperdb grows a refresh_database() method. There will be a future roundup-admin command to invoke this. XXXX Unit tests do _not_ cover large slabs of the hyperdb backend code, it seems. :-(
author Anthony Baxter <anthonybaxter@users.sourceforge.net>
date Tue, 07 Oct 2003 11:58:58 +0000
parents d2801a2b0a77
children 969a14faf707
comparison
equal deleted inserted replaced
1839:06f5b36b201b 1840:91a4619b1a14
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: hyperdb.py,v 1.88 2003-09-04 00:47:01 richard Exp $ 18 # $Id: hyperdb.py,v 1.89 2003-10-07 11:58:57 anthonybaxter Exp $
19 19
20 """ 20 """
21 Hyperdatabase implementation, especially field types. 21 Hyperdatabase implementation, especially field types.
22 """ 22 """
23 23
186 Class.set(), and Class.retire() methods are disabled. 186 Class.set(), and Class.retire() methods are disabled.
187 """ 187 """
188 raise NotImplementedError 188 raise NotImplementedError
189 189
190 def post_init(self): 190 def post_init(self):
191 """Called once the schema initialisation has finished.""" 191 """Called once the schema initialisation has finished.
192 If 'refresh' is true, we want to rebuild the backend
193 structures.
194 """
195 raise NotImplementedError
196
197 def refresh_database(self):
198 """Called to indicate that the backend should rebuild all tables
199 and structures. Not called in normal usage."""
192 raise NotImplementedError 200 raise NotImplementedError
193 201
194 def __getattr__(self, classname): 202 def __getattr__(self, classname):
195 """A convenient way of calling self.getclass(classname).""" 203 """A convenient way of calling self.getclass(classname)."""
196 raise NotImplementedError 204 raise NotImplementedError

Roundup Issue Tracker: http://roundup-tracker.org/