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