Mercurial > p > roundup > code
comparison roundup/hyperdb.py @ 490:59e87f7b7916
oops
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 07 Jan 2002 10:42:23 +0000 |
| parents | 05a46da7293a |
| children | dce4c75bef5a |
comparison
equal
deleted
inserted
replaced
| 489:5db2dad23f09 | 490:59e87f7b7916 |
|---|---|
| 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.45 2002-01-02 04:18:17 richard Exp $ | 18 # $Id: hyperdb.py,v 1.46 2002-01-07 10:42:23 richard Exp $ |
| 19 | 19 |
| 20 __doc__ = """ | 20 __doc__ = """ |
| 21 Hyperdatabase implementation, especially field types. | 21 Hyperdatabase implementation, especially field types. |
| 22 """ | 22 """ |
| 23 | 23 |
| 976 ''' A convenience wrapper for the given node | 976 ''' A convenience wrapper for the given node |
| 977 ''' | 977 ''' |
| 978 def __init__(self, cl, nodeid, cache=1): | 978 def __init__(self, cl, nodeid, cache=1): |
| 979 self.__dict__['cl'] = cl | 979 self.__dict__['cl'] = cl |
| 980 self.__dict__['nodeid'] = nodeid | 980 self.__dict__['nodeid'] = nodeid |
| 981 self.cache = cache | 981 self.__dict__['cache'] = cache |
| 982 def keys(self, protected=1): | 982 def keys(self, protected=1): |
| 983 return self.cl.getprops(protected=protected).keys() | 983 return self.cl.getprops(protected=protected).keys() |
| 984 def values(self, protected=1): | 984 def values(self, protected=1): |
| 985 l = [] | 985 l = [] |
| 986 for name in self.cl.getprops(protected=protected).keys(): | 986 for name in self.cl.getprops(protected=protected).keys(): |
| 1025 cl.create(name=option[i], order=i) | 1025 cl.create(name=option[i], order=i) |
| 1026 return hyperdb.Link(name) | 1026 return hyperdb.Link(name) |
| 1027 | 1027 |
| 1028 # | 1028 # |
| 1029 # $Log: not supported by cvs2svn $ | 1029 # $Log: not supported by cvs2svn $ |
| 1030 # Revision 1.45 2002/01/02 04:18:17 richard | |
| 1031 # hyperdb docstrings | |
| 1032 # | |
| 1030 # Revision 1.44 2002/01/02 02:31:38 richard | 1033 # Revision 1.44 2002/01/02 02:31:38 richard |
| 1031 # Sorry for the huge checkin message - I was only intending to implement #496356 | 1034 # Sorry for the huge checkin message - I was only intending to implement #496356 |
| 1032 # but I found a number of places where things had been broken by transactions: | 1035 # but I found a number of places where things had been broken by transactions: |
| 1033 # . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename | 1036 # . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename |
| 1034 # for _all_ roundup-generated smtp messages to be sent to. | 1037 # for _all_ roundup-generated smtp messages to be sent to. |
