diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2011-04-12 02:13:09 +0200 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2011-04-12 02:13:09 +0200 |
| commit | f17ec19437c91bdb5e98bdf05723ee8a5f7d698c (patch) | |
| tree | db17f0c5a5aa9be98b285bae5d07fa7956492d29 /server/object.py | |
| parent | 15987fa032a86571a0502b91d2b3a00ac4084b53 (diff) | |
| parent | 544d90e6b6c83b4dbf8d8d8d3e00a21ab1bf0599 (diff) | |
| download | alias-f17ec19437c91bdb5e98bdf05723ee8a5f7d698c.tar.gz | |
Merge branch 'master' of alias.fr.nf:alias
Diffstat (limited to 'server/object.py')
| -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 |
