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
Exemple #2
0
 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]
Exemple #4
0
 def __init__(self, oid):
     self.oid = str_to_oid(oid)
Exemple #5
0
 def form(self, var):
     var = super(OIDMapper, self).form(var)
     if var is None:
         return None
     else:
         return str_to_oid(var)
Exemple #6
0
 def __init__(self, oid):
     self.oid = str_to_oid(oid)
Exemple #7
0
 def form(self, var):
     var = super(OIDMapper, self).form(var)
     if var is None: 
         return None
     else:
         return str_to_oid(var)
Exemple #8
0
 def format_varBinds(self, varBinds):
     return [(str_to_oid(oid), value) for oid, value in varBinds]
 def set(self, *args):
     return self.session_write.set(*map(lambda t: str_to_oid(t[0]), args))
 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 set(self, *args):
     return self.session_write.set(*map(lambda t: str_to_oid(t[0]), args))