def walk(self, oid): oid = str_to_oid(oid) result = [] walker = Walker(self, oid, use_bulk=self.settings_read["use_bulk"], bulk_rows=self.settings_read["bulk_rows"]) [result.extend(rows) for rows in walker] return result
def walk(self, oid): """Collect all rows in given OID.""" oid = str_to_oid(oid) result = [] walker = Walker(self, oid, use_bulk=self.settings_read["use_bulk"], bulk_rows=self.settings_read["bulk_rows"]) for rows in walker: result.extend(rows) return result
def format_varBinds(self, varBinds): return [(str_to_oid(oid), value) for oid, value in varBinds]
def __init__(self, oid): self.oid = str_to_oid(oid)
def form(self, var): var = super(OIDMapper, self).form(var) if var is None: return None else: return str_to_oid(var)
def set(self, *args): return self.session_write.set(*map(lambda t: str_to_oid(t[0]), args))