diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-10-05 20:54:00 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-10-05 20:54:00 +0200 |
| commit | 4cce2e3737a78ffca41ada15b3f0d38968b60900 (patch) | |
| tree | cca06cd75a1197d0e9bb2f3ab93a1ffbe2e3ab72 | |
| parent | c1ff46d12a3a9d43d84bb337fa1795d0795a7a15 (diff) | |
adapt DBO_load_node_set_by_id_attribute to DBO_load_node_set_by_attribute
| -rw-r--r-- | src-py/db_controller.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-py/db_controller.py b/src-py/db_controller.py index d72c7bc4..2c3eb873 100644 --- a/src-py/db_controller.py +++ b/src-py/db_controller.py @@ -180,11 +180,11 @@ class DBO_load_node_set_by_attribute(DB_op): class DBO_load_node_set_by_id_attribute(DBO_load_node_set_by_attribute): def __init__(self, id_set): """ - convenience op for load a set of nodes by their 'id' attribute != DB node id + convenience op: load a set of nodes by their 'id' attribute != DB node id """ assert isinstance(id_set, list) - super(DBO_load_node_set_by_id_attribute, self).__init__('id', id_set) + super(DBO_load_node_set_by_id_attribute, self).__init__({'id': id_set}) class DB_Controller: """ |
