Revision 864
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/db_xml.py | ||
---|---|---|
36 | 36 |
elif child_name == name: return child |
37 | 37 |
return None |
38 | 38 |
|
39 |
def get(db, node, pkeys=None, limit=None): |
|
39 |
def get(db, node, pkeys=None, limit=None, start=None):
|
|
40 | 40 |
if pkeys == None: pkeys = {} |
41 | 41 |
def pkey(table): return sql.pkey(db, pkeys, table) |
42 | 42 |
|
... | ... | |
55 | 55 |
if id_ != '': conds[pkey(table)] = id_ # replace any existing pkey value |
56 | 56 |
if fields == []: fields.append(pkey_) |
57 | 57 |
|
58 |
return sql.select(db, table, fields, conds, limit) |
|
58 |
return sql.select(db, table, fields, conds, limit, start)
|
|
59 | 59 |
|
60 | 60 |
def put(db, node, pkeys=None, row_ct_ref=None, on_error=exc.raise_, |
61 | 61 |
store_ids=False, parent_id=None): |
Also available in: Unified diff
db_xml.py: Added start option to get() that passes through to sql.select()