|
8 | 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
9 | 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
10 | 10 | # |
11 | | -# $Id: test_htmltemplate.py,v 1.14 2002-05-15 06:37:31 richard Exp $ |
| 11 | +# $Id: test_htmltemplate.py,v 1.15 2002-07-08 06:39:00 richard Exp $ |
12 | 12 |
|
13 | 13 | import unittest, cgi, time |
14 | 14 |
|
@@ -43,13 +43,15 @@ def get(self, nodeid, attribute, default=None): |
43 | 43 | return 'hello\nworld' |
44 | 44 | def list(self): |
45 | 45 | return ['1', '2'] |
| 46 | + def filter(self, search_matches, filterspec, sort, group): |
| 47 | + return ['1', '2'] |
46 | 48 | def getprops(self): |
47 | 49 | return {'string': String(), 'date': Date(), 'interval': Interval(), |
48 | 50 | 'link': Link('other'), 'multilink': Multilink('other'), |
49 | 51 | 'password': Password(), 'html': String(), 'key': String(), |
50 | 52 | 'novalue': String(), 'filename': String(), 'multiline': String(), |
51 | 53 | 'reldate': Date()} |
52 | | - def labelprop(self): |
| 54 | + def labelprop(self, default_to_id=0): |
53 | 55 | return 'key' |
54 | 56 |
|
55 | 57 | class Database: |
@@ -353,6 +355,9 @@ def suite(): |
353 | 355 |
|
354 | 356 | # |
355 | 357 | # $Log: not supported by cvs2svn $ |
| 358 | +# Revision 1.14 2002/05/15 06:37:31 richard |
| 359 | +# ehem and the unit test |
| 360 | +# |
356 | 361 | # Revision 1.13 2002/04/03 05:54:31 richard |
357 | 362 | # Fixed serialisation problem by moving the serialisation step out of the |
358 | 363 | # hyperdb.Class (get, set) into the hyperdb.Database. |
|
0 commit comments