diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2010-11-10 01:41:10 +0100 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2010-11-10 01:41:10 +0100 |
| commit | 4c2ce53c512d2de70b050146ba1e8c509de8bb26 (patch) | |
| tree | f8929b9e6b5b7ed8dbf305628418638d7ef97526 /user.py | |
| parent | 44d00338dd628d77354996dd75536436b79b3d82 (diff) | |
| download | alias-4c2ce53c512d2de70b050146ba1e8c509de8bb26.tar.gz | |
Add basic user class
Diffstat (limited to 'user.py')
| -rw-r--r-- | user.py | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +import os +import os.path + +class User : + def __init__(self,jid): + self.jid = jid + + @staticmethod + def createDirectory(jid): + os.mkdir(jid) + + @staticmethod + def subscribed(name): + return os.path.exists(name)
\ No newline at end of file |
