Exemple #1
0
  def __init__(self, name="", parent=None):
    VObj.__init__(self, name, parent)
    dict.__init__(self)

    self.last_cur = self
    self.cur = self

    self[""] = self
    self["."] = self
    self[".."] = self.parent
Exemple #2
0
  def __init__(self, name, parent=None, mode="rw"):
    VObj.__init__(self, name, parent)
    StringIO.__init__(self)

    self.set_mode(mode)