Thank you for foreign key suggestions. I started to study them.
I changed the TestSecurityManager class to fix the following issues:
1. Dabo Application superuser password is stored in client computer
2. Dabo Application login-ins to database as super-user always
3. Login failure message from backed is not displayed.
4. It is not possible to send custom commands to database server at
application startup
I added the following code to the end of TestSecurityManager
validateLogin() procedure:
from dabo.db.dConnectInfo import dConnectInfo
from dabo.db.dConnection import dConnection
ci = self.Application.dbConnectionDefs["[EMAIL PROTECTED]"]
ci.Name = "mainConnection"
ci.User = user
ci.PlainTextPassword = password
import exceptions
try:
self.connection = dConnection(ci)
except exceptions.StandardError, err:
dabo.ui.exclaim( str(err))
return False
return True
Also, I myForms MyFormBase class I changed afterInit method to
self.connection = dabo.dAppRef.SecurityManager.connection
Is is no more required to store user name and password in connection
definition file.
It it reasonable to add those changes to sample class ?
Andrus.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users