Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/setup/profile.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/profile.py')
-rw-r--r--src/setup/profile.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/setup/profile.py b/src/setup/profile.py
new file mode 100644
index 0000000..0aceea3
--- /dev/null
+++ b/src/setup/profile.py
@@ -0,0 +1,30 @@
+'''
+
+'''
+
+from lxml import etree # using lxml for XML processing
+from utils import strs # string constants
+from utils import utils # some XML utilities
+
+
+
+class Profile(object):
+ '''
+ '''
+
+ def __init__(self, path):
+ '''
+ Constructor
+ '''
+
+ #open up the mpro file and read in its basic properties
+ root = utils.getXMLRoot(path)
+ self.name = root.xpath(strs.XP_ProfileName)[0]
+ self.path = path
+ pass
+
+ def getName(self):
+ '''Returns the name of the profile's user'''
+ return self.name
+
+