comparison roundup/hyperdb.py @ 6412:a0c0ee3ed8b1

Tests for Link expressions .. and fixes for anydbm backend, this now passes all the new tests.
author Ralf Schlatterbeck <rsc@runtux.com>
date Mon, 17 May 2021 17:35:50 +0200
parents 66ccddb034f2
children 7b1b6dffc7ed
comparison
equal deleted inserted replaced
6411:978820fc88de 6412:a0c0ee3ed8b1
583 """ 583 """
584 filterspec = {} 584 filterspec = {}
585 exact_match_spec = {} 585 exact_match_spec = {}
586 for p in self.children: 586 for p in self.children:
587 if 'search' in p.need_for: 587 if 'search' in p.need_for:
588 if p.children: 588 x = [c for c in p.children if 'search' in c.need_for]
589 if x:
589 p.search(sort=False) 590 p.search(sort=False)
590 if getattr(p.propclass,'rev_property',None): 591 if getattr(p.propclass,'rev_property',None):
591 pn = p.propclass.rev_property.name 592 pn = p.propclass.rev_property.name
592 cl = p.propclass.rev_property.cls 593 cl = p.propclass.rev_property.cls
593 if not isinstance(p.val, type([])): 594 if not isinstance(p.val, type([])):
2120 cl = Class(db, name, name=String(), order=String()) 2121 cl = Class(db, name, name=String(), order=String())
2121 for i in range(len(options)): 2122 for i in range(len(options)):
2122 cl.create(name=options[i], order=i) 2123 cl.create(name=options[i], order=i)
2123 return Link(name) 2124 return Link(name)
2124 2125
2125 # vim: set filetype=python sts=4 sw=4 et si :

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