Skip to content

Commit 5bab9d1

Browse files
committed
Attempt to clarify hyperdb.Proptree meaning
1 parent 1329214 commit 5bab9d1

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

roundup/hyperdb.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,12 @@ def splitDesignator(designator, dre=re.compile(r'([^\d]+)(\d+)')):
293293
return m.group(1), m.group(2)
294294

295295
class Proptree(object):
296-
""" Simple tree data structure for optimizing searching of
297-
properties. Each node in the tree represents a roundup Class
298-
Property that has to be navigated for finding the given search
299-
or sort properties. The need_for attribute is used for
300-
distinguishing nodes in the tree used for sorting, searching or
301-
retrieval: The attribute is a dictionary containing one or several
302-
of the values 'sort', 'search', 'retrieve'.
296+
""" Simple tree data structure for property lookup. Each node in
297+
the tree is a roundup Class Property that has to be navigated to
298+
find given property. The need_for attribute is used to mark nodes
299+
that are used for sorting, searching or retrieval: The attribute
300+
is a dictionary containing one or several of the values 'sort',
301+
'search', 'retrieve'.
303302
304303
The Proptree is also used for transitively searching attributes for
305304
backends that do not support transitive search (e.g. anydbm). The

0 commit comments

Comments
 (0)