Example #1
0
def dmConfig():
    '''
	runs the ruleset collection editor depending on the value of key GUI in user.ini
	if GUI == anything other than the value 'Old' it will run the exe defined in
	globalvars, else if will run the old minimalistic gui
	type: void
	'''
    myIni = iniFile(globalvars.USERINI)
    myGui = myIni.read('Gui')
    version = myIni.read('Version')

    if myGui <> 'Old':
        import System.Diagnostics
        p = System.Diagnostics.Process()
        p.StartInfo.FileName = globalvars.GUIEXE
        p.Start()
    else:
        form = configuratorForm()
        form.setFile(globalvars.DATFILE)
        form.Text = 'Data Manager Configurator %s' % version
        form.ShowDialog(ComicRack.MainWindow)
        form.Dispose()
Example #2
0
def dmConfig():
	'''
	runs the ruleset collection editor depending on the value of key GUI in user.ini
	if GUI == anything other than the value 'Old' it will run the exe defined in
	globalvars, else if will run the old minimalistic gui
	type: void
	'''
	myIni = iniFile(globalvars.USERINI)
	myGui = myIni.read('Gui')
	version = myIni.read('Version')
	
	if myGui <> 'Old':
		import System.Diagnostics
		p = System.Diagnostics.Process()
		p.StartInfo.FileName = globalvars.GUIEXE
		p.Start()
	else:
		form = configuratorForm()
		form.setFile(globalvars.DATFILE)
		form.Text = 'Data Manager Configurator %s' % version
		form.ShowDialog(ComicRack.MainWindow)
		form.Dispose()
Example #3
0
        MessageBox.Show('Please use the Data Manager Configurator first!',
                        'Data Manager %s' % globalvars.VERSION)
        return

    progBar = dmProgressForm(globalvars.PROCESS_BOOKS, books)
    progBar.ShowDialog()

    if progBar.errorLevel == 0:
        msg = "Finished. I've inspected %d books.\nDo you want to take look at the log file?" % (
            progBar.stepsPerformed)

        form = displayResultsForm()
        form.configure(msg)
        form.ShowDialog(ComicRack.MainWindow)
        form.Dispose()

        if form.DialogResult == DialogResult.Yes:

            form = configuratorForm()
            form.setFile(globalvars.LOGFILE)
            form.Text = 'Data Manager Logfile %s' % globalvars.VERSION
            form.ShowDialog(ComicRack.MainWindow)
            form.Dispose()

    try:
        #File.Delete(TMPFILE)
        #File.Delete(globalvars.ERRFILE)
        pass
    except Exception, err:
        pass
Example #4
0
		MessageBox.Show('Please use the Data Manager Configurator first!','Data Manager %s' % globalvars.VERSION)
		return

	progBar = dmProgressForm(globalvars.PROCESS_BOOKS, books)		
	progBar.ShowDialog()

	if progBar.errorLevel == 0:
		msg = "Finished. I've inspected %d books.\nDo you want to take look at the log file?" % (progBar.stepsPerformed)
	
		form = displayResultsForm()
		form.configure(msg)
		form.ShowDialog(ComicRack.MainWindow)
		form.Dispose()

		if form.DialogResult == DialogResult.Yes:
	
			form = configuratorForm()
			form.setFile(globalvars.LOGFILE)
			form.Text = 'Data Manager Logfile %s' % globalvars.VERSION
			form.ShowDialog(ComicRack.MainWindow)
			form.Dispose()

	try:
		#File.Delete(TMPFILE)
		#File.Delete(globalvars.ERRFILE)
		pass
	except Exception, err:
		pass