Revision c6a2c16e lib/locking.py
b/lib/locking.py | ||
---|---|---|
1527 | 1527 |
""" |
1528 | 1528 |
return self._monitor.QueryLocks(fields) |
1529 | 1529 |
|
1530 |
def OldStyleQueryLocks(self, fields): |
|
1531 |
"""Queries information from all locks, returning old-style data. |
|
1532 |
|
|
1533 |
See L{LockMonitor.OldStyleQueryLocks}. |
|
1534 |
|
|
1535 |
""" |
|
1536 |
return self._monitor.OldStyleQueryLocks(fields) |
|
1537 |
|
|
1538 | 1530 |
def _names(self, level): |
1539 | 1531 |
"""List the lock names at the given level. |
1540 | 1532 |
|
... | ... | |
1808 | 1800 |
|
1809 | 1801 |
# Prepare query response |
1810 | 1802 |
return query.GetQueryResponse(qobj, ctx) |
1811 |
|
|
1812 |
def OldStyleQueryLocks(self, fields): |
|
1813 |
"""Queries information from all locks, returning old-style data. |
|
1814 |
|
|
1815 |
@type fields: list of strings |
|
1816 |
@param fields: List of fields to return |
|
1817 |
|
|
1818 |
""" |
|
1819 |
(qobj, ctx) = self._Query(fields) |
|
1820 |
|
|
1821 |
return qobj.OldStyleQuery(ctx) |
Also available in: Unified diff