(self, users)
Adds a list of the existing users to the xml
Adds a list of the existing users to the xml
Adds a list of the existing users to the xml
def users(self, users):
        '''
        Adds a list of the existing users to the xml
        '''
        usersElem = self.__doc.createElement(USERS_ELEM_NAME)
        if isinstance(users, basestring):
            users = [users]
        if users:
            for user in users:
                userElem = self.__doc.createElement(DB_USER_ELEM_NAME)
                usersElem.appendChild(userElem)
                userElem.appendChild(self._createTextNode(user))
        self._addToRoot(usersElem)
def users ( self , users ) : usersElem = self . __doc . createElement ( USERS_ELEM_NAME ) if isinstance ( users , basestring ) : users = [ users ] if users : for user in users : userElem = self . __doc . createElement ( DB_USER_ELEM_NAME ) usersElem . appendChild ( userElem ) userElem . appendChild ( self . _createTextNode ( user ) ) self . _addToRoot ( usersElem )