comparison roundup/hyperdb.py @ 1442:b42fa71754c9

don't attempt to create FileClass items if no content is supplied
author Richard Jones <richard@users.sourceforge.net>
date Tue, 18 Feb 2003 01:57:39 +0000
parents 6c24a86a12ae
children 9ccd69fbe33e
comparison
equal deleted inserted replaced
1441:2b20294b934a 1442:b42fa71754c9
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.84 2002-10-07 00:52:51 richard Exp $ 18 # $Id: hyperdb.py,v 1.85 2003-02-18 01:57:38 richard Exp $
19 19
20 """ 20 """
21 Hyperdatabase implementation, especially field types. 21 Hyperdatabase implementation, especially field types.
22 """ 22 """
23 23
558 558
559 def index(self, nodeid): 559 def index(self, nodeid):
560 '''Add (or refresh) the node to search indexes 560 '''Add (or refresh) the node to search indexes
561 ''' 561 '''
562 raise NotImplementedError 562 raise NotImplementedError
563
564 class FileClass:
565 ''' A class that requires the "content" property and stores it on
566 disk.
567 '''
568 pass
563 569
564 class Node: 570 class Node:
565 ''' A convenience wrapper for the given node 571 ''' A convenience wrapper for the given node
566 ''' 572 '''
567 def __init__(self, cl, nodeid, cache=1): 573 def __init__(self, cl, nodeid, cache=1):

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