From 4c2ce53c512d2de70b050146ba1e8c509de8bb26 Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Wed, 10 Nov 2010 01:41:10 +0100 Subject: Add basic user class --- user.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 user.py (limited to 'user.py') 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 -- cgit v1.2.3-70-g09d2