import biz
import ui

from App import App
app = App(SourceURL=remotehost)

app.db = db
app.biz = biz
app.ui = ui

# Make it easy to find any images or other files you put in the resources
# directory.
sys.path.append(os.path.join(app.HomeDirectory, "resources"))

# Set the BasePrefKey for the app
app.BasePrefKey = "librarymanager"
app.setup()

# Set up a global connection to the database that all bizobjs will share:
app.dbConnection = app.getConnectionByName("library")

# Open one or more of the defined forms. A default one was picked by the app
# generator, but you can change that here. Additionally, if form names were
# passed on the command line, they will be opened instead of the default one
# as long as they exist.
app.DefaultForm = ui.FrmParts
app.startupForms()

# Start the application event loop:
app.start()
Example #2
0
				try:
					os.mkdir(app.tempdir)
				except:
					dabo.ui.exclaim('Unable to create a temp directory!!')
					sys.exit(1)
			else:
				dabo.ui.exclaim("Hey, I really need a directory to write stuff!  That's it, I quit!")
				sys.exit()


app.MainFormClass = app.ui.FrmMain
app.PreferenceManager.setValue("fontsize", 11)
app.NoneDisplay = ""
# Set up a global connection to the database that all bizobjs will share:
app.dbConnectionName = "monro_user"
app.dbConnection = app.getConnectionByName(app.dbConnectionName)
#app.dbConnection.LogEvents = ['All']


# Open one or more of the defined forms. A default one was picked by the app
# generator, but you can change that here. Additionally, if form names were
# passed on the command line, they will be opened instead of the default one
# as long as they exist.
app.ui.AnswersForm = dabo.ui.createClass("ui" + os.sep + "AnswersForm.cdxml")
app.ui.AttachmentsForm = dabo.ui.createClass("ui" + os.sep + "AttachmentsForm.cdxml")
app.ui.CommentsForm = dabo.ui.createClass("ui" + os.sep + "CommentsForm.cdxml")
app.ui.ContactsForm = dabo.ui.createClass("ui" + os.sep + "ContactsForm.cdxml")
app.ui.GetFilesForContactForm = dabo.ui.createClass("ui" + os.sep + "GetFilesForContactForm.cdxml")
app.ui.GradesForm = dabo.ui.createClass("ui" + os.sep + "GradesForm.cdxml")
app.ui.LessonsForm = dabo.ui.createClass("ui" + os.sep + "LessonsForm.cdxml")
app.ui.StudentsForm = dabo.ui.createClass("ui" + os.sep + "StudentsForm.cdxml")
Example #3
0
app = App(SourceURL=remotehost)
app.db = db
app.biz = biz
app.ui = ui
app.reports = reports

# Make it easy to find any images or other files you put in the resources
# directory.
sys.path.append(os.path.join(app.HomeDirectory, "resources"))

app.setup()
app.MainFormClass = app.ui.FrmMain
app.PreferenceManager.setValue("fontsize", 11)
app.NoneDisplay = ""
# Set up a global connection to the database that all bizobjs will share:
app.dbConnection = app.getConnectionByName("WBSRemoteUser")
#app.dbConnection.LogEvents = ['All']


# Open one or more of the defined forms. A default one was picked by the app
# generator, but you can change that here. Additionally, if form names were
# passed on the command line, they will be opened instead of the default one
# as long as they exist.
app.ui.AnswersForm = dabo.ui.createClass("ui//AnswersForm.cdxml")
app.ui.CommentsForm = dabo.ui.createClass("ui//CommentsForm.cdxml")
app.ui.ContactsForm = dabo.ui.createClass("ui//ContactsForm.cdxml")
app.ui.GradesForm = dabo.ui.createClass("ui//GradesForm.cdxml")
app.ui.LessonsForm = dabo.ui.createClass("ui//LessonsForm.cdxml")
app.ui.StudentsForm = dabo.ui.createClass("ui//StudentsForm.cdxml")
app.ui.TeachersForm = dabo.ui.createClass("ui//TeachersForm.cdxml")
app.ui.PrintOrPreviewForm = dabo.ui.createClass("ui//PrintOrPreviewForm.cdxml")