aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2010-11-10 01:41:10 +0100
committerThibaut Horel <thibaut.horel@gmail.com>2010-11-10 01:41:10 +0100
commit4c2ce53c512d2de70b050146ba1e8c509de8bb26 (patch)
treef8929b9e6b5b7ed8dbf305628418638d7ef97526
parent44d00338dd628d77354996dd75536436b79b3d82 (diff)
downloadalias-4c2ce53c512d2de70b050146ba1e8c509de8bb26.tar.gz
Add basic user class
-rw-r--r--user.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/user.py b/user.py
new file mode 100644
index 0000000..184a880
--- /dev/null
+++ b/user.py
@@ -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