def preferencesSubmitCallback( self ): QHelper.log( '::CONNECT:QPreferencesView:preferencesSubmit' ) for k, v in self.values().items(): DBConf.set( k, type( DBConf.get( k ) )( v ) ) self.hide()
def logoutActionCallback( self ): DBConf.set( 'username', '' ) DBConf.set( 'passwd', '' ) self.master.View.login().show() self.master.hide()
def loginSuccessCallback( self ): QHelper.log( '::CONNECT:QLoginView:loginSuccess' ) DBConf.set( 'username', QHelper.getValue( self.fields['username'] ) ) DBConf.set( 'passwd', QHelper.getValue( self.fields['passwd'] ) ) self.hide() self.status.setText( '' )