def set_lock_pass(self, lockPass):
        """
        Set the locking pass

        :Parameters:
            #. lockPass (string): The locking pass.
        """
        assert isinstance(lockPass, basestring), "lockPass must be string"
        lockPass = str(lockPass)
        assert '\n' not in lockPass, "lockPass must be not contain a new line"
        self.__lockPass = lockPass
def set_lock_pass ( self , lockPass ) : assert isinstance ( lockPass , basestring ) , "lockPass must be string" lockPass = str ( lockPass ) assert '\n' not in lockPass , "lockPass must be not contain a new line" self . __lockPass = lockPass
Set the locking pass

        :Parameters:
            #. lockPass (string): The locking pass.