diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2011-04-11 01:39:38 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2011-04-11 01:39:38 -0400 |
| commit | 544d90e6b6c83b4dbf8d8d8d3e00a21ab1bf0599 (patch) | |
| tree | 2f490fc918a3b9400afa9560e384263d453f9272 | |
| parent | f9cab77861b4fdaa5371b290b25bb4fec841c5dc (diff) | |
| download | alias-544d90e6b6c83b4dbf8d8d8d3e00a21ab1bf0599.tar.gz | |
Add a placeholder for the get_private_key method.
| -rw-r--r-- | server/object.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/object.py b/server/object.py index 6723481..c2b5d16 100644 --- a/server/object.py +++ b/server/object.py @@ -19,6 +19,9 @@ class Object: def __init__(self, owner, hash): self.owner = owner + if hash is None: + hash = hashlib.sha1(owner).hexdigest() + self.hash = hash owner_path = config.root + self.owner + '/' @@ -92,6 +95,9 @@ class Object: content = file.read() file.close() return content, key + + def get_private_key(self): + pass if __name__ == '__main__': pass |
