comparison roundup/hyperdb.py @ 557:dfac856502d1

brief docco on the do_journal argument
author Richard Jones <richard@users.sourceforge.net>
date Mon, 21 Jan 2002 03:01:29 +0000
parents 5fd94347c6f2
children 62febbd7ffec
comparison
equal deleted inserted replaced
556:50359de2800b 557:dfac856502d1
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.50 2002-01-19 13:16:04 rochecompaan Exp $ 18 # $Id: hyperdb.py,v 1.51 2002-01-21 03:01:29 richard Exp $
19 19
20 __doc__ = """ 20 __doc__ = """
21 Hyperdatabase implementation, especially field types. 21 Hyperdatabase implementation, especially field types.
22 """ 22 """
23 23
61 return '<%s to "%s">'%(self.__class__, self.classname) 61 return '<%s to "%s">'%(self.__class__, self.classname)
62 62
63 class Multilink: 63 class Multilink:
64 """An object designating a Multilink property that links 64 """An object designating a Multilink property that links
65 to nodes in a specified class. 65 to nodes in a specified class.
66
67 "classname" indicates the class to link to
68
69 "do_journal" indicates whether the linked-to nodes should have
70 'link' and 'unlink' events placed in their journal
66 """ 71 """
67 def __init__(self, classname, do_journal='no'): 72 def __init__(self, classname, do_journal='no'):
68 self.classname = classname 73 self.classname = classname
69 self.do_journal = do_journal == 'yes' 74 self.do_journal = do_journal == 'yes'
70 def __repr__(self): 75 def __repr__(self):
1053 cl.create(name=option[i], order=i) 1058 cl.create(name=option[i], order=i)
1054 return hyperdb.Link(name) 1059 return hyperdb.Link(name)
1055 1060
1056 # 1061 #
1057 # $Log: not supported by cvs2svn $ 1062 # $Log: not supported by cvs2svn $
1063 # Revision 1.50 2002/01/19 13:16:04 rochecompaan
1064 # Journal entries for link and multilink properties can now be switched on
1065 # or off.
1066 #
1058 # Revision 1.49 2002/01/16 07:02:57 richard 1067 # Revision 1.49 2002/01/16 07:02:57 richard
1059 # . lots of date/interval related changes: 1068 # . lots of date/interval related changes:
1060 # - more relaxed date format for input 1069 # - more relaxed date format for input
1061 # 1070 #
1062 # Revision 1.48 2002/01/14 06:32:34 richard 1071 # Revision 1.48 2002/01/14 06:32:34 richard

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