Esempio n. 1
0
  def __init__(self, key=None, *args, **kwargs):
    if not key:
      raise KeyError("You need to supply a key to the File model!")

    self._content = None
    self._is_directory = key.endswith("/")
    Document.__init__(self, key=key, *args, **kwargs)
Esempio n. 2
0
    def __init__(self, key=None, *args, **kwargs):
        if not key:
            raise KeyError("You need to supply a key to the File model!")

        self._content = None
        self._is_directory = key.endswith("/")
        Document.__init__(self, key=key, *args, **kwargs)