Jacek Kałucki wrote: > Użytkownik Paul McNett napisał: >> +if __name__ == "__main__": >> + app = dabo.dApp(MainFormClass=None) >> + app.setup() >> + >> + class TestSM(dSecurityManager): >> + def validateLogin(self, user, passwd): >> + print user, passwd >> + if user == "paul" and passwd == "23": >> + return True >> + return False >> + >> + app.SecurityManager = TestSM() >> + if app.SecurityManager.login(): >> + app.MainForm = dabo.ui.dFormMain() >> + app.start() >> + >> > > Hi, > > I found one problem with such approach, Paul. > Main form caption is set in app.setup(), so caption remains empty if not > set explicit after login. > It would be nice if you could move main form caption setup from > uiApp.setup() > to uiApp.setMainForm() method
Done. Thanks for the suggestion! Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[email protected]
