Mercurial > p > roundup > code
comparison roundup/backends/rdbms_common.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 | c70068162e64 |
| children | 378081f066cc |
comparison
equal
deleted
inserted
replaced
| 1441:2b20294b934a | 1442:b42fa71754c9 |
|---|---|
| 1 # $Id: rdbms_common.py,v 1.33 2003-02-14 00:31:45 richard Exp $ | 1 # $Id: rdbms_common.py,v 1.34 2003-02-18 01:57:39 richard Exp $ |
| 2 ''' Relational database (SQL) backend common code. | 2 ''' Relational database (SQL) backend common code. |
| 3 | 3 |
| 4 Basics: | 4 Basics: |
| 5 | 5 |
| 6 - map roundup classes to relational tables | 6 - map roundup classes to relational tables |
| 1975 '''Fire all registered reactors. | 1975 '''Fire all registered reactors. |
| 1976 ''' | 1976 ''' |
| 1977 for react in self.reactors[action]: | 1977 for react in self.reactors[action]: |
| 1978 react(self.db, self, nodeid, oldvalues) | 1978 react(self.db, self, nodeid, oldvalues) |
| 1979 | 1979 |
| 1980 class FileClass(Class): | 1980 class FileClass(Class, hyperdb.FileClass): |
| 1981 '''This class defines a large chunk of data. To support this, it has a | 1981 '''This class defines a large chunk of data. To support this, it has a |
| 1982 mandatory String property "content" which is typically saved off | 1982 mandatory String property "content" which is typically saved off |
| 1983 externally to the hyperdb. | 1983 externally to the hyperdb. |
| 1984 | 1984 |
| 1985 The default MIME type of this data is defined by the | 1985 The default MIME type of this data is defined by the |
