VirtualBox

Ignore:
Timestamp:
Mar 1, 2017 4:09:45 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113709
Message:

testmanager: Added Users::fReadOnly and the necessary checks associated with it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/useraccount.py

    r65226 r65914  
    5353    ksParam_sEmail              = 'UserAccount_sEmail'
    5454    ksParam_sFullName           = 'UserAccount_sFullName'
     55    ksParam_fReadOnly           = 'UserAccount_fReadOnly'
    5556
    5657    kasAllowNullAttributes      = ['uid', 'tsEffective', 'tsExpire', 'uidAuthor'];
     
    6869        self.sFullName      = None;
    6970        self.sLoginName     = None;
     71        self.fReadOnly      = None;
    7072
    7173    def initFromDbRow(self, aoRow):
     
    8587        self.sFullName      = aoRow[6];
    8688        self.sLoginName     = aoRow[7];
     89        self.fReadOnly      = aoRow[8];
    8790        return self;
    8891
     
    157160        """
    158161        self._oDb.callProc('UserAccountLogic_addEntry',
    159                            (uidAuthor, oData.sUsername, oData.sEmail, oData.sFullName, oData.sLoginName,));
     162                           (uidAuthor, oData.sUsername, oData.sEmail, oData.sFullName, oData.sLoginName, oData.fReadOnly));
    160163        self._oDb.maybeCommit(fCommit);
    161164        return True;
     
    166169        """
    167170        self._oDb.callProc('UserAccountLogic_editEntry',
    168                            (uidAuthor, oData.uid, oData.sUsername, oData.sEmail, oData.sFullName, oData.sLoginName,));
     171                           ( uidAuthor, oData.uid, oData.sUsername, oData.sEmail,
     172                             oData.sFullName, oData.sLoginName, oData.fReadOnly));
    169173        self._oDb.maybeCommit(fCommit);
    170174        return True;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette