Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/setup/profile.py
blob: 0aceea31c6d572bf87e9ad12c459d5bd2d595e73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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