I just found the answer to my own question, as it was obvious, I think :)
So, here's the code:

class TestSecMan(dabo.dSecurityManager.dSecurityManager):
     def initProperties(self):
         self.RequireAppLogin = True

     def validateLogin(self,user,password):
         if user == 'dabo' and password == 'dabo':
             return True
         return False

if __name__=="__main__":
     app = dabo.dApp(MainFormClass=None)
     app.setup()

     app.SecurityManager = TestSecMan()
     ClientForm = dabo.ui.createClass("ui/ClientMain.cdxml")
     if app.SecurityManager.login():
         app.MainForm = ClientForm()
         app.start()


Thanks for help and I hope it'll be useful for somebody else ;)

-- 
Regards
Stanislav Colotinschi

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to