Thread: [Pykafe-commits] SF.net SVN: pykafe: [76] trunk/pykafe
Status: Pre-Alpha
Brought to you by:
jnmbk
From: <jn...@us...> - 2007-06-02 20:01:36
|
Revision: 76 http://pykafe.svn.sourceforge.net/pykafe/?rev=76&view=rev Author: jnmbk Date: 2007-06-02 13:01:38 -0700 (Sat, 02 Jun 2007) Log Message: ----------- waiting>ready Modified Paths: -------------- trunk/pykafe/client/client.py trunk/pykafe/client/session.py trunk/pykafe/server/server.py trunk/pykafe/server/session.py Modified: trunk/pykafe/client/client.py =================================================================== --- trunk/pykafe/client/client.py 2007-06-02 19:23:03 UTC (rev 75) +++ trunk/pykafe/client/client.py 2007-06-02 20:01:38 UTC (rev 76) @@ -96,19 +96,19 @@ data = base64.decodestring(self.tcpSocket.readAll()) print "received from server:", data if data[:3] == "001": - if self.client.session.state == ClientSession.working: + if self.client.session.state == ClientSession.ready: sendDataToUi(data) else: sys.stderr.write(_("Received ack from server, state was: %s") % self.client.session.getCurrentState()) elif data[:3] == "003": - if self.client.session.state == ClientSession.working: + if self.client.session.state == ClientSession.ready: sendDataToUi(data) if data[3] == "1": self.client.session.state = ClientSession.loggedIn else: sys.stderr.write(_("Received %s from server, state was: %s") % (data, self.client.session.getCurrentState())) elif data[:3] == "005": - if self.client.session.state == ClientSession.working: + if self.client.session.state == ClientSession.ready: self.client.session.user = "guest" self.client.session.state = ClientSession.loggedIn sendDataToUi("005") @@ -137,18 +137,18 @@ sendDataToUi("014") return if data[:3] == "000": - if self.client.session.state == ClientSession.working: + if self.client.session.state == ClientSession.ready: sendDataToServer("000") self.client.session.setState(ClientSession.requestedOpening) else: sys.stderr.write(_("Client tried to send opening request, state was: %s") % self.client.session.getCurrentState()) elif data[:3] == "002": - if self.client.session.state == ClientSession.working: + if self.client.session.state == ClientSession.ready: sendDataToServer(data) elif data[:3] == "004": if self.client.session.state == ClientSession.notReady: sendDataToServer("004") - self.client.session.state = ClientSession.working + self.client.session.state = ClientSession.ready else: sys.stderr.write(_("Client tried to say I'm here, state was: %s") % self.client.session.getCurrentState()) elif data[:3] == "008": Modified: trunk/pykafe/client/session.py =================================================================== --- trunk/pykafe/client/session.py 2007-06-02 19:23:03 UTC (rev 75) +++ trunk/pykafe/client/session.py 2007-06-02 20:01:38 UTC (rev 76) @@ -16,7 +16,7 @@ class ClientSession: """class for managing client sessions""" - notConnected, notReady, working, loggedIn, requestedOpening, waitingMoney = range(6) + notConnected, notReady, ready, loggedIn, requestedOpening, waitingMoney = range(6) def __init__(self): self.state = 0 self.user = None @@ -44,7 +44,7 @@ """returns current state as a string""" if self.state == self.notConnected: return _("Not Connected") - elif self.state == self.working: + elif self.state == self.ready: return _("Ready") elif self.state == self.loggedIn: return _("Logged In") Modified: trunk/pykafe/server/server.py =================================================================== --- trunk/pykafe/server/server.py 2007-06-02 19:23:03 UTC (rev 75) +++ trunk/pykafe/server/server.py 2007-06-02 20:01:38 UTC (rev 76) @@ -67,7 +67,7 @@ print "data:", data if data[:3] == "011": - if client.session.state == ClientSession.notConnected: + if client.session.state in (ClientSession.notConnected, ClientSession.notReady): logger.add(logger.logTypes.information, "client connected", self.config.last_cashier, client.name) if self.config.filter_enable: message = "007" @@ -78,7 +78,7 @@ message += i client.sendMessage(message) message = "016" - message += "%s|%s|%s|%s" % (self.config.price_fixedprice, + message += "%s|%s|%s|%s".strip() % (self.config.price_fixedprice, self.config.price_fixedpriceminutes, self.config.price_onehourprice, self.config.price_rounding) @@ -90,15 +90,18 @@ #TODO: send current session information after taking 004 #message = "013" #client.sendSession() + elif data[:3] == "004": + if client.session.state == ClientSession.notReady: + client.setState(ClientSession.ready) elif data[:3] == "000": #User wants to open - if client.session.state == ClientSession.working: + if client.session.state == ClientSession.ready: self.emit(QtCore.SIGNAL("stateChange"), self.clientNumber, ClientSession.requestedOpening) else: #TODO: illegal activity pass elif data[:3] == "002": - if client.session.state == ClientSession.working: + if client.session.state == ClientSession.ready: username, password = data[3:].split("|") db = Database() db.cur.execute("select count() from members where username = ? and password = ?", (username, password)) @@ -266,7 +269,7 @@ state = client.session.state if state == ClientSession.notConnected: QtGui.QMessageBox.critical(self.parent(), _("Error"), _("Can't connect to client")) - if state == ClientSession.working: + if state == ClientSession.ready: client.sendMessage("005") client.setState(ClientSession.loggedIn, user = "guest") if state == ClientSession.loggedIn: @@ -293,7 +296,7 @@ 1440, 15) if answer[1] == False: return - if state == ClientSession.working: + if state == ClientSession.ready: client.sendMessage("006" + str(answer[0])) client.setState(ClientSession.loggedIn, user = "guest", endTime = QtCore.QDateTime.currentDateTime().addSecs(answer[0]*60)) @@ -305,16 +308,16 @@ state = client.session.state if state == ClientSession.notConnected: QtGui.QMessageBox.critical(self.parent(), _("Error"), _("Can't connect to client")) - elif state == ClientSession.working: + elif state == ClientSession.ready: QtGui.QMessageBox.information(self.parent(), _("Information"), _("Client is already stopped")) elif state == ClientSession.loggedIn: answer = QtGui.QMessageBox.question(self.parent(), _("Are you sure?"), _("Do you really want to stop this client?"), QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Yes).__or__(QtGui.QMessageBox.No), QtGui.QMessageBox.No) if answer == QtGui.QMessageBox.Yes: client.sendMessage("009") - client.setState(ClientSession.working) + client.setState(ClientSession.ready) elif state == ClientSession.requestedOpening: client.sendMessage("0010") - client.setState(ClientSession.working) + client.setState(ClientSession.ready) def changeButton(self): pass Modified: trunk/pykafe/server/session.py =================================================================== --- trunk/pykafe/server/session.py 2007-06-02 19:23:03 UTC (rev 75) +++ trunk/pykafe/server/session.py 2007-06-02 20:01:38 UTC (rev 76) @@ -16,7 +16,7 @@ class ClientSession: """class for managing client sessions""" - notConnected, notReady, working, loggedIn, requestedOpening, waitingMoney = range(6) + notConnected, notReady, ready, loggedIn, requestedOpening, waitingMoney = range(6) def __init__(self): self.state = 0 self.user = None @@ -44,7 +44,7 @@ """returns current state as a string""" if self.state == self.notConnected: return _("Not Connected") - elif self.state == self.working: + elif self.state == self.ready: return _("Ready") elif self.state == self.loggedIn: return _("Logged In") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jn...@us...> - 2007-06-03 16:25:27
|
Revision: 84 http://pykafe.svn.sourceforge.net/pykafe/?rev=84&view=rev Author: jnmbk Date: 2007-06-03 09:25:29 -0700 (Sun, 03 Jun 2007) Log Message: ----------- price should be calculated by session Modified Paths: -------------- trunk/pykafe/client/session.py trunk/pykafe/server/session.py Modified: trunk/pykafe/client/session.py =================================================================== --- trunk/pykafe/client/session.py 2007-06-03 16:24:43 UTC (rev 83) +++ trunk/pykafe/client/session.py 2007-06-03 16:25:29 UTC (rev 84) @@ -10,9 +10,11 @@ # Please read the COPYING file. # +from PyQt4 import QtCore + import locale, gettext locale.setlocale(locale.LC_ALL, "C") -_ = gettext.translation("pyKafe_client", fallback=True).ugettext +_ = gettext.translation("pyKafe_server", fallback=True).ugettext class ClientSession: """class for managing client sessions""" @@ -25,21 +27,15 @@ self.endTime = None self.orders = [] - def isReachable(self): - if self.state == 0: - return False + def calculatePrice(self, config): + time = self.startTime.secsTo(QtCore.QDateTime.currentDateTime()) + if time/60 < int(config.price_fixedpriceminutes): + price = float(config.price_fixedprice) else: - return True - def isWorking(self): - if self.state == 1: - return True - else: - return False - def isLoggedIn(self): - if self.state == 2: - return True - else: - return False + #TODO: round the price using price_rounding + price = float(config.price_onehourprice)/3600 * time + return price + def toString(self): """returns current state as a string""" if self.state == self.notConnected: Modified: trunk/pykafe/server/session.py =================================================================== --- trunk/pykafe/server/session.py 2007-06-03 16:24:43 UTC (rev 83) +++ trunk/pykafe/server/session.py 2007-06-03 16:25:29 UTC (rev 84) @@ -10,6 +10,8 @@ # Please read the COPYING file. # +from PyQt4 import QtCore + import locale, gettext locale.setlocale(locale.LC_ALL, "C") _ = gettext.translation("pyKafe_server", fallback=True).ugettext @@ -25,21 +27,15 @@ self.endTime = None self.orders = [] - def isReachable(self): - if self.state == 0: - return False + def calculatePrice(self, config): + time = self.startTime.secsTo(QtCore.QDateTime.currentDateTime()) + if time/60 < int(config.price_fixedpriceminutes): + price = float(config.price_fixedprice) else: - return True - def isWorking(self): - if self.state == 1: - return True - else: - return False - def isLoggedIn(self): - if self.state == 2: - return True - else: - return False + #TODO: round the price using price_rounding + price = float(config.price_onehourprice)/3600 * time + return price + def toString(self): """returns current state as a string""" if self.state == self.notConnected: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jn...@us...> - 2007-06-03 18:32:32
|
Revision: 89 http://pykafe.svn.sourceforge.net/pykafe/?rev=89&view=rev Author: jnmbk Date: 2007-06-03 11:32:33 -0700 (Sun, 03 Jun 2007) Log Message: ----------- It seems that we don't need time :) Modified Paths: -------------- trunk/pykafe/client/clientmain.py trunk/pykafe/server/server.py Modified: trunk/pykafe/client/clientmain.py =================================================================== --- trunk/pykafe/client/clientmain.py 2007-06-03 18:08:35 UTC (rev 88) +++ trunk/pykafe/client/clientmain.py 2007-06-03 18:32:33 UTC (rev 89) @@ -10,7 +10,7 @@ # Please read the COPYING file. # -import sys, time, base64 +import sys, base64 from PyQt4 import QtCore, QtGui, QtNetwork from config import PykafeConfiguration @@ -99,7 +99,7 @@ #TODO: fix it self.emit(QtCore.SIGNAL("changeTimeLabel"), text1) self.emit(QtCore.SIGNAL("changeMoneyLabel"), text2) - time.sleep(60) + self.sleep(60) class Ui_MainWindow(object): def setupUi(self, MainWindow): Modified: trunk/pykafe/server/server.py =================================================================== --- trunk/pykafe/server/server.py 2007-06-03 18:08:35 UTC (rev 88) +++ trunk/pykafe/server/server.py 2007-06-03 18:32:33 UTC (rev 89) @@ -20,7 +20,7 @@ from settingswindow import Ui_SettingsWindow from currencyformat import currency import logger -import base64, sha, time, os +import base64, sha, os import locale, gettext locale.setlocale(locale.LC_MESSAGES, "C") @@ -102,7 +102,7 @@ usedTime = QtCore.QDateTime() usedTime.setTime_t(self.client.session.startTime.secsTo(QtCore.QDateTime.currentDateTime())) self.emit(QtCore.SIGNAL("changetext"),4,usedTime.toUTC().time().toString("hh.mm")) - time.sleep(int(self.config.ui_refreshdelay)) + self.sleep(int(self.config.ui_refreshdelay)) class Client(QtGui.QTreeWidgetItem): def __init__(self, parent, clientInformation, config): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jn...@us...> - 2007-06-10 19:45:50
|
Revision: 113 http://pykafe.svn.sourceforge.net/pykafe/?rev=113&view=rev Author: jnmbk Date: 2007-06-10 12:45:52 -0700 (Sun, 10 Jun 2007) Log Message: ----------- forgot to delete TODO tag Modified Paths: -------------- trunk/pykafe/client/session.py trunk/pykafe/server/session.py Modified: trunk/pykafe/client/session.py =================================================================== --- trunk/pykafe/client/session.py 2007-06-10 19:25:44 UTC (rev 112) +++ trunk/pykafe/client/session.py 2007-06-10 19:45:52 UTC (rev 113) @@ -34,7 +34,6 @@ if time/60 < int(config.price_fixedpriceminutes): price = float(config.price_fixedprice) else: - #TODO: round the price using price_rounding price = float(config.price_onehourprice)/3600 * time return int(price/config.price_rounding)*config.price_rounding Modified: trunk/pykafe/server/session.py =================================================================== --- trunk/pykafe/server/session.py 2007-06-10 19:25:44 UTC (rev 112) +++ trunk/pykafe/server/session.py 2007-06-10 19:45:52 UTC (rev 113) @@ -34,7 +34,6 @@ if time/60 < int(config.price_fixedpriceminutes): price = float(config.price_fixedprice) else: - #TODO: round the price using price_rounding price = float(config.price_onehourprice)/3600 * time return int(price/config.price_rounding)*config.price_rounding This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jn...@us...> - 2008-01-26 19:02:01
|
Revision: 150 http://pykafe.svn.sourceforge.net/pykafe/?rev=150&view=rev Author: jnmbk Date: 2008-01-26 11:02:06 -0800 (Sat, 26 Jan 2008) Log Message: ----------- let's begin doing the server again Modified Paths: -------------- trunk/pykafe/mainwindow_server.py Added Paths: ----------- trunk/pykafe/tcpserver.py Modified: trunk/pykafe/mainwindow_server.py =================================================================== --- trunk/pykafe/mainwindow_server.py 2008-01-26 17:11:44 UTC (rev 149) +++ trunk/pykafe/mainwindow_server.py 2008-01-26 19:02:06 UTC (rev 150) @@ -1,11 +1,18 @@ #!/usr/bin/python # -*- coding: utf-8 -*- +from PyQt4 import QtCore from PyQt4 import QtGui -import mainwindow_server_ui +import mainwindow_server_ui, tcpserver class MainWindow(QtGui.QMainWindow, mainwindow_server_ui.Ui_MainWindow): def __init__(self): QtGui.QMainWindow.__init__(self) self.setupUi(self) + + self.tcpServer = tcpserver.TcpServer(self) + + @QtCore.pyqtSignature("on_main_startButton_clicked()") + def on_main_startButton_clicked(self): + print "started" Added: trunk/pykafe/tcpserver.py =================================================================== --- trunk/pykafe/tcpserver.py (rev 0) +++ trunk/pykafe/tcpserver.py 2008-01-26 19:02:06 UTC (rev 150) @@ -0,0 +1,8 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +from PyQt4 import QtNetwork + +class TcpServer(QtNetwork.QTcpServer): + def __init__(self, parent = None): + QtNetwork.QTcpServer.__init__(self, parent) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jn...@us...> - 2008-01-26 20:15:00
|
Revision: 152 http://pykafe.svn.sourceforge.net/pykafe/?rev=152&view=rev Author: jnmbk Date: 2008-01-26 12:15:05 -0800 (Sat, 26 Jan 2008) Log Message: ----------- I'll keep server things in this folder Added Paths: ----------- trunk/pykafe/server/main.py trunk/pykafe/server/mainwindow_server.py trunk/pykafe/server/mainwindow_server_ui.py trunk/pykafe/server/pykafe_rc.py trunk/pykafe/server/tcpserver.py Removed Paths: ------------- trunk/pykafe/mainwindow_server.py trunk/pykafe/mainwindow_server_ui.py trunk/pykafe/pykafe_rc.py trunk/pykafe/pykafeserver.py trunk/pykafe/tcpserver.py Deleted: trunk/pykafe/mainwindow_server.py =================================================================== --- trunk/pykafe/mainwindow_server.py 2008-01-26 20:08:41 UTC (rev 151) +++ trunk/pykafe/mainwindow_server.py 2008-01-26 20:15:05 UTC (rev 152) @@ -1,18 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -from PyQt4 import QtCore -from PyQt4 import QtGui - -import mainwindow_server_ui, tcpserver - -class MainWindow(QtGui.QMainWindow, mainwindow_server_ui.Ui_MainWindow): - def __init__(self): - QtGui.QMainWindow.__init__(self) - self.setupUi(self) - - self.tcpServer = tcpserver.TcpServer(self) - - @QtCore.pyqtSignature("on_main_startButton_clicked()") - def on_main_startButton_clicked(self): - print "started" Deleted: trunk/pykafe/mainwindow_server_ui.py =================================================================== --- trunk/pykafe/mainwindow_server_ui.py 2008-01-26 20:08:41 UTC (rev 151) +++ trunk/pykafe/mainwindow_server_ui.py 2008-01-26 20:15:05 UTC (rev 152) @@ -1,659 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'ui/mainwindow_server.ui' -# -# Created: Sat Jan 26 19:11:23 2008 -# by: PyQt4 UI code generator 4.3-snapshot-20071219 -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore, QtGui - -class Ui_MainWindow(object): - def setupUi(self, MainWindow): - MainWindow.setObjectName("MainWindow") - MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,650,500).size()).expandedTo(MainWindow.minimumSizeHint())) - MainWindow.setWindowIcon(QtGui.QIcon(":/icons/icons/pyKafe.png")) - - self.centralwidget = QtGui.QWidget(MainWindow) - self.centralwidget.setObjectName("centralwidget") - - self.gridlayout = QtGui.QGridLayout(self.centralwidget) - self.gridlayout.setMargin(9) - self.gridlayout.setSpacing(6) - self.gridlayout.setObjectName("gridlayout") - - self.tabWidget = QtGui.QTabWidget(self.centralwidget) - self.tabWidget.setTabPosition(QtGui.QTabWidget.West) - self.tabWidget.setObjectName("tabWidget") - - self.tab = QtGui.QWidget() - self.tab.setObjectName("tab") - - self.gridlayout1 = QtGui.QGridLayout(self.tab) - self.gridlayout1.setMargin(9) - self.gridlayout1.setSpacing(6) - self.gridlayout1.setObjectName("gridlayout1") - - spacerItem = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) - self.gridlayout1.addItem(spacerItem,0,8,1,1) - - self.main_startTimeButton = QtGui.QToolButton(self.tab) - self.main_startTimeButton.setIcon(QtGui.QIcon(":/icons/icons/kalarm.png")) - self.main_startTimeButton.setIconSize(QtCore.QSize(64,64)) - self.main_startTimeButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon) - self.main_startTimeButton.setAutoRaise(True) - self.main_startTimeButton.setObjectName("main_startTimeButton") - self.gridlayout1.addWidget(self.main_startTimeButton,0,2,1,1) - - self.main_stopButton = QtGui.QToolButton(self.tab) - self.main_stopButton.setIcon(QtGui.QIcon(":/icons/icons/stop.png")) - self.main_stopButton.setIconSize(QtCore.QSize(64,64)) - self.main_stopButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon) - self.main_stopButton.setAutoRaise(True) - self.main_stopButton.setObjectName("main_stopButton") - self.gridlayout1.addWidget(self.main_stopButton,0,3,1,1) - - self.main_startButton = QtGui.QToolButton(self.tab) - self.main_startButton.setIcon(QtGui.QIcon(":/icons/icons/player_play.png")) - self.main_startButton.setIconSize(QtCore.QSize(64,64)) - self.main_startButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon) - self.main_startButton.setAutoRaise(True) - self.main_startButton.setObjectName("main_startButton") - self.gridlayout1.addWidget(self.main_startButton,0,1,1,1) - - spacerItem1 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) - self.gridlayout1.addItem(spacerItem1,0,0,1,1) - - self.main_settingsButton = QtGui.QToolButton(self.tab) - self.main_settingsButton.setIcon(QtGui.QIcon(":/icons/icons/kcontrol.png")) - self.main_settingsButton.setIconSize(QtCore.QSize(64,64)) - self.main_settingsButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon) - self.main_settingsButton.setAutoRaise(True) - self.main_settingsButton.setObjectName("main_settingsButton") - self.gridlayout1.addWidget(self.main_settingsButton,0,6,1,1) - - self.main_remoteButton = QtGui.QToolButton(self.tab) - self.main_remoteButton.setIcon(QtGui.QIcon(":/icons/icons/remote.png")) - self.main_remoteButton.setIconSize(QtCore.QSize(64,64)) - self.main_remoteButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon) - self.main_remoteButton.setAutoRaise(True) - self.main_remoteButton.setObjectName("main_remoteButton") - self.gridlayout1.addWidget(self.main_remoteButton,0,5,1,1) - - self.main_changeButton = QtGui.QToolButton(self.tab) - self.main_changeButton.setIcon(QtGui.QIcon(":/icons/icons/kontact_contacts.png")) - self.main_changeButton.setIconSize(QtCore.QSize(64,64)) - self.main_changeButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon) - self.main_changeButton.setAutoRaise(True) - self.main_changeButton.setObjectName("main_changeButton") - self.gridlayout1.addWidget(self.main_changeButton,0,4,1,1) - - self.main_shutDownButton = QtGui.QToolButton(self.tab) - self.main_shutDownButton.setIcon(QtGui.QIcon(":/icons/icons/exit.png")) - self.main_shutDownButton.setIconSize(QtCore.QSize(64,64)) - self.main_shutDownButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon) - self.main_shutDownButton.setAutoRaise(True) - self.main_shutDownButton.setObjectName("main_shutDownButton") - self.gridlayout1.addWidget(self.main_shutDownButton,0,7,1,1) - - self.main_treeWidget = QtGui.QTreeWidget(self.tab) - self.main_treeWidget.setRootIsDecorated(False) - self.main_treeWidget.setSortingEnabled(True) - self.main_treeWidget.setAllColumnsShowFocus(True) - self.main_treeWidget.setObjectName("main_treeWidget") - self.gridlayout1.addWidget(self.main_treeWidget,1,0,1,9) - self.tabWidget.addTab(self.tab,"") - - self.tab_4 = QtGui.QWidget() - self.tab_4.setObjectName("tab_4") - - self.gridlayout2 = QtGui.QGridLayout(self.tab_4) - self.gridlayout2.setMargin(9) - self.gridlayout2.setSpacing(6) - self.gridlayout2.setObjectName("gridlayout2") - - self.splitter = QtGui.QSplitter(self.tab_4) - self.splitter.setOrientation(QtCore.Qt.Horizontal) - self.splitter.setObjectName("splitter") - - self.groupBox_2 = QtGui.QGroupBox(self.splitter) - self.groupBox_2.setObjectName("groupBox_2") - - self.gridlayout3 = QtGui.QGridLayout(self.groupBox_2) - self.gridlayout3.setMargin(9) - self.gridlayout3.setSpacing(6) - self.gridlayout3.setObjectName("gridlayout3") - - self.gridlayout4 = QtGui.QGridLayout() - self.gridlayout4.setMargin(0) - self.gridlayout4.setSpacing(6) - self.gridlayout4.setObjectName("gridlayout4") - - self.label_8 = QtGui.QLabel(self.groupBox_2) - self.label_8.setObjectName("label_8") - self.gridlayout4.addWidget(self.label_8,0,1,1,1) - - self.orders_idComboBox = QtGui.QComboBox(self.groupBox_2) - self.orders_idComboBox.setObjectName("orders_idComboBox") - self.gridlayout4.addWidget(self.orders_idComboBox,1,0,1,1) - - self.label_7 = QtGui.QLabel(self.groupBox_2) - self.label_7.setObjectName("label_7") - self.gridlayout4.addWidget(self.label_7,0,0,1,1) - - self.label_9 = QtGui.QLabel(self.groupBox_2) - self.label_9.setObjectName("label_9") - self.gridlayout4.addWidget(self.label_9,0,2,1,1) - - self.orders_itemComboBox = QtGui.QComboBox(self.groupBox_2) - self.orders_itemComboBox.setObjectName("orders_itemComboBox") - self.gridlayout4.addWidget(self.orders_itemComboBox,1,1,1,1) - - self.orders_spinBox_1 = QtGui.QSpinBox(self.groupBox_2) - self.orders_spinBox_1.setMinimum(1) - self.orders_spinBox_1.setObjectName("orders_spinBox_1") - self.gridlayout4.addWidget(self.orders_spinBox_1,1,2,1,1) - self.gridlayout3.addLayout(self.gridlayout4,1,0,1,5) - - self.orders_treeWidget_1 = QtGui.QTreeWidget(self.groupBox_2) - self.orders_treeWidget_1.setRootIsDecorated(False) - self.orders_treeWidget_1.setSortingEnabled(True) - self.orders_treeWidget_1.setObjectName("orders_treeWidget_1") - self.gridlayout3.addWidget(self.orders_treeWidget_1,0,0,1,5) - - self.orders_cancelButton_1 = QtGui.QPushButton(self.groupBox_2) - self.orders_cancelButton_1.setIcon(QtGui.QIcon(":/icons/icons/button_cancel.png")) - self.orders_cancelButton_1.setObjectName("orders_cancelButton_1") - self.gridlayout3.addWidget(self.orders_cancelButton_1,2,4,1,1) - - self.orders_deleteButton_1 = QtGui.QPushButton(self.groupBox_2) - self.orders_deleteButton_1.setIcon(QtGui.QIcon(":/icons/icons/edit_remove.png")) - self.orders_deleteButton_1.setObjectName("orders_deleteButton_1") - self.gridlayout3.addWidget(self.orders_deleteButton_1,2,3,1,1) - - self.orders_updateButton_1 = QtGui.QPushButton(self.groupBox_2) - self.orders_updateButton_1.setIcon(QtGui.QIcon(":/icons/icons/reload.png")) - self.orders_updateButton_1.setObjectName("orders_updateButton_1") - self.gridlayout3.addWidget(self.orders_updateButton_1,2,2,1,1) - - self.orders_addButton_1 = QtGui.QPushButton(self.groupBox_2) - self.orders_addButton_1.setIcon(QtGui.QIcon(":/icons/icons/edit_add.png")) - self.orders_addButton_1.setObjectName("orders_addButton_1") - self.gridlayout3.addWidget(self.orders_addButton_1,2,1,1,1) - - spacerItem2 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) - self.gridlayout3.addItem(spacerItem2,2,0,1,1) - - self.groupBox_3 = QtGui.QGroupBox(self.splitter) - self.groupBox_3.setObjectName("groupBox_3") - - self.gridlayout5 = QtGui.QGridLayout(self.groupBox_3) - self.gridlayout5.setMargin(9) - self.gridlayout5.setSpacing(6) - self.gridlayout5.setObjectName("gridlayout5") - - self.orders_treeWidget_2 = QtGui.QTreeWidget(self.groupBox_3) - self.orders_treeWidget_2.setRootIsDecorated(False) - self.orders_treeWidget_2.setSortingEnabled(True) - self.orders_treeWidget_2.setObjectName("orders_treeWidget_2") - self.gridlayout5.addWidget(self.orders_treeWidget_2,0,0,1,4) - - self.gridlayout6 = QtGui.QGridLayout() - self.gridlayout6.setMargin(0) - self.gridlayout6.setSpacing(6) - self.gridlayout6.setObjectName("gridlayout6") - - self.orders_itemLineEdit = QtGui.QLineEdit(self.groupBox_3) - self.orders_itemLineEdit.setObjectName("orders_itemLineEdit") - self.gridlayout6.addWidget(self.orders_itemLineEdit,1,0,1,1) - - self.label_6 = QtGui.QLabel(self.groupBox_3) - self.label_6.setObjectName("label_6") - self.gridlayout6.addWidget(self.label_6,0,2,1,1) - - self.label_5 = QtGui.QLabel(self.groupBox_3) - self.label_5.setObjectName("label_5") - self.gridlayout6.addWidget(self.label_5,0,1,1,1) - - self.label_4 = QtGui.QLabel(self.groupBox_3) - self.label_4.setObjectName("label_4") - self.gridlayout6.addWidget(self.label_4,0,0,1,1) - - self.orders_spinBox_3 = QtGui.QSpinBox(self.groupBox_3) - self.orders_spinBox_3.setMaximum(5000) - self.orders_spinBox_3.setObjectName("orders_spinBox_3") - self.gridlayout6.addWidget(self.orders_spinBox_3,1,2,1,1) - - self.orders_spinBox_2 = QtGui.QDoubleSpinBox(self.groupBox_3) - self.orders_spinBox_2.setMaximum(1000000000.0) - self.orders_spinBox_2.setObjectName("orders_spinBox_2") - self.gridlayout6.addWidget(self.orders_spinBox_2,1,1,1,1) - self.gridlayout5.addLayout(self.gridlayout6,1,0,1,4) - - spacerItem3 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) - self.gridlayout5.addItem(spacerItem3,2,0,1,1) - - self.orders_addButton_2 = QtGui.QPushButton(self.groupBox_3) - self.orders_addButton_2.setIcon(QtGui.QIcon(":/icons/icons/edit_add.png")) - self.orders_addButton_2.setObjectName("orders_addButton_2") - self.gridlayout5.addWidget(self.orders_addButton_2,2,1,1,1) - - self.orders_updateButton_2 = QtGui.QPushButton(self.groupBox_3) - self.orders_updateButton_2.setIcon(QtGui.QIcon(":/icons/icons/reload.png")) - self.orders_updateButton_2.setObjectName("orders_updateButton_2") - self.gridlayout5.addWidget(self.orders_updateButton_2,2,2,1,1) - - self.orders_deleteButton_2 = QtGui.QPushButton(self.groupBox_3) - self.orders_deleteButton_2.setIcon(QtGui.QIcon(":/icons/icons/edit_remove.png")) - self.orders_deleteButton_2.setObjectName("orders_deleteButton_2") - self.gridlayout5.addWidget(self.orders_deleteButton_2,2,3,1,1) - self.gridlayout2.addWidget(self.splitter,0,0,1,1) - self.tabWidget.addTab(self.tab_4,"") - - self.tab_2 = QtGui.QWidget() - self.tab_2.setObjectName("tab_2") - - self.gridlayout7 = QtGui.QGridLayout(self.tab_2) - self.gridlayout7.setMargin(9) - self.gridlayout7.setSpacing(6) - self.gridlayout7.setObjectName("gridlayout7") - - self.splitter_2 = QtGui.QSplitter(self.tab_2) - self.splitter_2.setOrientation(QtCore.Qt.Horizontal) - self.splitter_2.setObjectName("splitter_2") - - self.layoutWidget = QtGui.QWidget(self.splitter_2) - self.layoutWidget.setObjectName("layoutWidget") - - self.vboxlayout = QtGui.QVBoxLayout(self.layoutWidget) - self.vboxlayout.setSpacing(6) - self.vboxlayout.setMargin(0) - self.vboxlayout.setObjectName("vboxlayout") - - self.members_treeWidget = QtGui.QTreeWidget(self.layoutWidget) - self.members_treeWidget.setRootIsDecorated(False) - self.members_treeWidget.setSortingEnabled(True) - self.members_treeWidget.setObjectName("members_treeWidget") - self.vboxlayout.addWidget(self.members_treeWidget) - - self.hboxlayout = QtGui.QHBoxLayout() - self.hboxlayout.setSpacing(6) - self.hboxlayout.setMargin(0) - self.hboxlayout.setObjectName("hboxlayout") - - self.members_clearButton = QtGui.QPushButton(self.layoutWidget) - self.members_clearButton.setIcon(QtGui.QIcon(":/icons/icons/locationbar_erase.png")) - self.members_clearButton.setFlat(True) - self.members_clearButton.setObjectName("members_clearButton") - self.hboxlayout.addWidget(self.members_clearButton) - - self.label = QtGui.QLabel(self.layoutWidget) - self.label.setObjectName("label") - self.hboxlayout.addWidget(self.label) - - self.members_filter = QtGui.QLineEdit(self.layoutWidget) - self.members_filter.setObjectName("members_filter") - self.hboxlayout.addWidget(self.members_filter) - self.vboxlayout.addLayout(self.hboxlayout) - - self.groupBox = QtGui.QGroupBox(self.splitter_2) - self.groupBox.setObjectName("groupBox") - - self.gridlayout8 = QtGui.QGridLayout(self.groupBox) - self.gridlayout8.setMargin(9) - self.gridlayout8.setSpacing(6) - self.gridlayout8.setObjectName("gridlayout8") - - spacerItem4 = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding) - self.gridlayout8.addItem(spacerItem4,2,0,1,1) - - self.hboxlayout1 = QtGui.QHBoxLayout() - self.hboxlayout1.setSpacing(6) - self.hboxlayout1.setMargin(0) - self.hboxlayout1.setObjectName("hboxlayout1") - - spacerItem5 = QtGui.QSpacerItem(80,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) - self.hboxlayout1.addItem(spacerItem5) - - self.members_addButton = QtGui.QPushButton(self.groupBox) - self.members_addButton.setIcon(QtGui.QIcon(":/icons/icons/edit_add.png")) - self.members_addButton.setObjectName("members_addButton") - self.hboxlayout1.addWidget(self.members_addButton) - - self.members_updateButton = QtGui.QPushButton(self.groupBox) - self.members_updateButton.setIcon(QtGui.QIcon(":/icons/icons/reload.png")) - self.members_updateButton.setObjectName("members_updateButton") - self.hboxlayout1.addWidget(self.members_updateButton) - - self.members_deleteButton = QtGui.QPushButton(self.groupBox) - self.members_deleteButton.setIcon(QtGui.QIcon(":/icons/icons/edit_remove.png")) - self.members_deleteButton.setObjectName("members_deleteButton") - self.hboxlayout1.addWidget(self.members_deleteButton) - - self.members_reportsButton = QtGui.QPushButton(self.groupBox) - self.members_reportsButton.setIcon(QtGui.QIcon(":/icons/icons/fileopen.png")) - self.members_reportsButton.setObjectName("members_reportsButton") - self.hboxlayout1.addWidget(self.members_reportsButton) - self.gridlayout8.addLayout(self.hboxlayout1,3,0,1,1) - - self.gridlayout9 = QtGui.QGridLayout() - self.gridlayout9.setMargin(0) - self.gridlayout9.setSpacing(6) - self.gridlayout9.setObjectName("gridlayout9") - - self.textLabel5 = QtGui.QLabel(self.groupBox) - self.textLabel5.setWordWrap(False) - self.textLabel5.setObjectName("textLabel5") - self.gridlayout9.addWidget(self.textLabel5,4,0,1,1) - - self.textLabel2_2 = QtGui.QLabel(self.groupBox) - self.textLabel2_2.setWordWrap(False) - self.textLabel2_2.setObjectName("textLabel2_2") - self.gridlayout9.addWidget(self.textLabel2_2,1,0,1,1) - - self.members_payingType = QtGui.QComboBox(self.groupBox) - self.members_payingType.setObjectName("members_payingType") - self.gridlayout9.addWidget(self.members_payingType,4,1,1,1) - - self.members_realName = QtGui.QLineEdit(self.groupBox) - self.members_realName.setObjectName("members_realName") - self.gridlayout9.addWidget(self.members_realName,2,1,1,1) - - self.textLabel1_3 = QtGui.QLabel(self.groupBox) - self.textLabel1_3.setWordWrap(False) - self.textLabel1_3.setObjectName("textLabel1_3") - self.gridlayout9.addWidget(self.textLabel1_3,0,0,1,1) - - self.members_password = QtGui.QLineEdit(self.groupBox) - self.members_password.setEchoMode(QtGui.QLineEdit.Password) - self.members_password.setObjectName("members_password") - self.gridlayout9.addWidget(self.members_password,1,1,1,1) - - self.textLabel4_2 = QtGui.QLabel(self.groupBox) - self.textLabel4_2.setWordWrap(False) - self.textLabel4_2.setObjectName("textLabel4_2") - self.gridlayout9.addWidget(self.textLabel4_2,3,0,1,1) - - self.textLabel3_2 = QtGui.QLabel(self.groupBox) - self.textLabel3_2.setWordWrap(False) - self.textLabel3_2.setObjectName("textLabel3_2") - self.gridlayout9.addWidget(self.textLabel3_2,2,0,1,1) - - self.members_username = QtGui.QLineEdit(self.groupBox) - self.members_username.setObjectName("members_username") - self.gridlayout9.addWidget(self.members_username,0,1,1,1) - - self.members_debt = QtGui.QDoubleSpinBox(self.groupBox) - self.members_debt.setAlignment(QtCore.Qt.AlignRight) - self.members_debt.setMinimum(-1000000000.0) - self.members_debt.setMaximum(1000000000.0) - self.members_debt.setObjectName("members_debt") - self.gridlayout9.addWidget(self.members_debt,3,1,1,1) - self.gridlayout8.addLayout(self.gridlayout9,0,0,1,1) - - self.gridlayout10 = QtGui.QGridLayout() - self.gridlayout10.setMargin(0) - self.gridlayout10.setSpacing(6) - self.gridlayout10.setObjectName("gridlayout10") - - self.members_dateEdit = QtGui.QDateEdit(self.groupBox) - self.members_dateEdit.setAlignment(QtCore.Qt.AlignHCenter) - self.members_dateEdit.setObjectName("members_dateEdit") - self.gridlayout10.addWidget(self.members_dateEdit,2,0,1,1) - - self.textLabel7 = QtGui.QLabel(self.groupBox) - self.textLabel7.setWordWrap(False) - self.textLabel7.setObjectName("textLabel7") - self.gridlayout10.addWidget(self.textLabel7,0,0,1,2) - - self.members_dateEdit_2 = QtGui.QDateEdit(self.groupBox) - self.members_dateEdit_2.setAlignment(QtCore.Qt.AlignHCenter) - self.members_dateEdit_2.setObjectName("members_dateEdit_2") - self.gridlayout10.addWidget(self.members_dateEdit_2,2,1,1,1) - - self.label_2 = QtGui.QLabel(self.groupBox) - self.label_2.setAlignment(QtCore.Qt.AlignCenter) - self.label_2.setObjectName("label_2") - self.gridlayout10.addWidget(self.label_2,1,0,1,1) - - self.label_3 = QtGui.QLabel(self.groupBox) - self.label_3.setAlignment(QtCore.Qt.AlignCenter) - self.label_3.setObjectName("label_3") - self.gridlayout10.addWidget(self.label_3,1,1,1,1) - self.gridlayout8.addLayout(self.gridlayout10,1,0,1,1) - self.gridlayout7.addWidget(self.splitter_2,0,0,1,1) - self.tabWidget.addTab(self.tab_2,"") - - self.tab_3 = QtGui.QWidget() - self.tab_3.setObjectName("tab_3") - - self.gridlayout11 = QtGui.QGridLayout(self.tab_3) - self.gridlayout11.setMargin(9) - self.gridlayout11.setSpacing(6) - self.gridlayout11.setObjectName("gridlayout11") - - spacerItem6 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) - self.gridlayout11.addItem(spacerItem6,0,2,1,1) - - spacerItem7 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) - self.gridlayout11.addItem(spacerItem7,0,0,1,1) - - self.gridlayout12 = QtGui.QGridLayout() - self.gridlayout12.setMargin(0) - self.gridlayout12.setSpacing(6) - self.gridlayout12.setObjectName("gridlayout12") - - self.logs_dateTimeEdit_1 = QtGui.QDateTimeEdit(self.tab_3) - self.logs_dateTimeEdit_1.setObjectName("logs_dateTimeEdit_1") - self.gridlayout12.addWidget(self.logs_dateTimeEdit_1,0,0,1,1) - - self.logs_searchButton = QtGui.QPushButton(self.tab_3) - self.logs_searchButton.setIcon(QtGui.QIcon(":/icons/icons/find.png")) - self.logs_searchButton.setIconSize(QtCore.QSize(64,64)) - self.logs_searchButton.setObjectName("logs_searchButton") - self.gridlayout12.addWidget(self.logs_searchButton,0,1,2,1) - - self.logs_dateTimeEdit_2 = QtGui.QDateTimeEdit(self.tab_3) - self.logs_dateTimeEdit_2.setObjectName("logs_dateTimeEdit_2") - self.gridlayout12.addWidget(self.logs_dateTimeEdit_2,1,0,1,1) - self.gridlayout11.addLayout(self.gridlayout12,0,1,1,1) - - self.logs_treeWidget = QtGui.QTreeWidget(self.tab_3) - self.logs_treeWidget.setObjectName("logs_treeWidget") - self.gridlayout11.addWidget(self.logs_treeWidget,1,0,1,3) - self.tabWidget.addTab(self.tab_3,"") - self.gridlayout.addWidget(self.tabWidget,0,0,1,1) - MainWindow.setCentralWidget(self.centralwidget) - - self.menubar = QtGui.QMenuBar(MainWindow) - self.menubar.setGeometry(QtCore.QRect(0,0,650,27)) - self.menubar.setObjectName("menubar") - - self.menuHelp = QtGui.QMenu(self.menubar) - self.menuHelp.setObjectName("menuHelp") - - self.menuFile = QtGui.QMenu(self.menubar) - self.menuFile.setObjectName("menuFile") - - self.menuNew = QtGui.QMenu(self.menuFile) - self.menuNew.setObjectName("menuNew") - - self.menuTools = QtGui.QMenu(self.menubar) - self.menuTools.setObjectName("menuTools") - MainWindow.setMenuBar(self.menubar) - - self.statusbar = QtGui.QStatusBar(MainWindow) - self.statusbar.setObjectName("statusbar") - MainWindow.setStatusBar(self.statusbar) - - self.actionContents = QtGui.QAction(MainWindow) - self.actionContents.setObjectName("actionContents") - - self.actionAbout_pyKafe = QtGui.QAction(MainWindow) - self.actionAbout_pyKafe.setIcon(QtGui.QIcon(":/icons/icons/pyKafe.png")) - self.actionAbout_pyKafe.setObjectName("actionAbout_pyKafe") - - self.actionAbout_Qt = QtGui.QAction(MainWindow) - self.actionAbout_Qt.setObjectName("actionAbout_Qt") - - self.actionComputer = QtGui.QAction(MainWindow) - self.actionComputer.setObjectName("actionComputer") - - self.actionEntertainment = QtGui.QAction(MainWindow) - self.actionEntertainment.setObjectName("actionEntertainment") - - self.actionExit = QtGui.QAction(MainWindow) - self.actionExit.setIcon(QtGui.QIcon(":/icons/icons/exit.png")) - self.actionExit.setObjectName("actionExit") - - self.actionSettings = QtGui.QAction(MainWindow) - self.actionSettings.setIcon(QtGui.QIcon(":/icons/icons/kcontrol.png")) - self.actionSettings.setObjectName("actionSettings") - self.menuHelp.addAction(self.actionContents) - self.menuHelp.addSeparator() - self.menuHelp.addAction(self.actionAbout_pyKafe) - self.menuHelp.addAction(self.actionAbout_Qt) - self.menuNew.addAction(self.actionComputer) - self.menuNew.addAction(self.actionEntertainment) - self.menuFile.addAction(self.menuNew.menuAction()) - self.menuFile.addSeparator() - self.menuFile.addAction(self.actionExit) - self.menuTools.addAction(self.actionSettings) - self.menubar.addAction(self.menuFile.menuAction()) - self.menubar.addAction(self.menuTools.menuAction()) - self.menubar.addAction(self.menuHelp.menuAction()) - - self.retranslateUi(MainWindow) - self.tabWidget.setCurrentIndex(0) - QtCore.QObject.connect(self.actionExit,QtCore.SIGNAL("activated()"),MainWindow.close) - QtCore.QObject.connect(self.members_clearButton,QtCore.SIGNAL("clicked()"),self.members_filter.clear) - QtCore.QMetaObject.connectSlotsByName(MainWindow) - MainWindow.setTabOrder(self.tabWidget,self.main_startButton) - MainWindow.setTabOrder(self.main_startButton,self.main_startTimeButton) - MainWindow.setTabOrder(self.main_startTimeButton,self.main_stopButton) - MainWindow.setTabOrder(self.main_stopButton,self.main_changeButton) - MainWindow.setTabOrder(self.main_changeButton,self.main_remoteButton) - MainWindow.setTabOrder(self.main_remoteButton,self.main_settingsButton) - MainWindow.setTabOrder(self.main_settingsButton,self.main_shutDownButton) - MainWindow.setTabOrder(self.main_shutDownButton,self.main_treeWidget) - MainWindow.setTabOrder(self.main_treeWidget,self.orders_treeWidget_1) - MainWindow.setTabOrder(self.orders_treeWidget_1,self.orders_idComboBox) - MainWindow.setTabOrder(self.orders_idComboBox,self.orders_itemComboBox) - MainWindow.setTabOrder(self.orders_itemComboBox,self.orders_addButton_1) - MainWindow.setTabOrder(self.orders_addButton_1,self.orders_updateButton_1) - MainWindow.setTabOrder(self.orders_updateButton_1,self.orders_deleteButton_1) - MainWindow.setTabOrder(self.orders_deleteButton_1,self.orders_cancelButton_1) - MainWindow.setTabOrder(self.orders_cancelButton_1,self.orders_treeWidget_2) - MainWindow.setTabOrder(self.orders_treeWidget_2,self.orders_itemLineEdit) - MainWindow.setTabOrder(self.orders_itemLineEdit,self.orders_spinBox_3) - MainWindow.setTabOrder(self.orders_spinBox_3,self.orders_addButton_2) - MainWindow.setTabOrder(self.orders_addButton_2,self.orders_updateButton_2) - MainWindow.setTabOrder(self.orders_updateButton_2,self.orders_deleteButton_2) - MainWindow.setTabOrder(self.orders_deleteButton_2,self.members_treeWidget) - MainWindow.setTabOrder(self.members_treeWidget,self.members_clearButton) - MainWindow.setTabOrder(self.members_clearButton,self.members_filter) - MainWindow.setTabOrder(self.members_filter,self.members_username) - MainWindow.setTabOrder(self.members_username,self.members_password) - MainWindow.setTabOrder(self.members_password,self.members_realName) - MainWindow.setTabOrder(self.members_realName,self.members_debt) - MainWindow.setTabOrder(self.members_debt,self.members_payingType) - MainWindow.setTabOrder(self.members_payingType,self.members_dateEdit) - MainWindow.setTabOrder(self.members_dateEdit,self.members_dateEdit_2) - MainWindow.setTabOrder(self.members_dateEdit_2,self.members_addButton) - MainWindow.setTabOrder(self.members_addButton,self.members_updateButton) - MainWindow.setTabOrder(self.members_updateButton,self.members_deleteButton) - MainWindow.setTabOrder(self.members_deleteButton,self.members_reportsButton) - MainWindow.setTabOrder(self.members_reportsButton,self.logs_dateTimeEdit_1) - MainWindow.setTabOrder(self.logs_dateTimeEdit_1,self.logs_searchButton) - MainWindow.setTabOrder(self.logs_searchButton,self.logs_dateTimeEdit_2) - MainWindow.setTabOrder(self.logs_dateTimeEdit_2,self.logs_treeWidget) - - def retranslateUi(self, MainWindow): - MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "PyKafe", None, QtGui.QApplication.UnicodeUTF8)) - self.main_startTimeButton.setStatusTip(QtGui.QApplication.translate("MainWindow", "Starts selected computer for usage (timed)", None, QtGui.QApplication.UnicodeUTF8)) - self.main_startTimeButton.setText(QtGui.QApplication.translate("MainWindow", "Timed", None, QtGui.QApplication.UnicodeUTF8)) - self.main_stopButton.setStatusTip(QtGui.QApplication.translate("MainWindow", "Switches to login state", None, QtGui.QApplication.UnicodeUTF8)) - self.main_stopButton.setText(QtGui.QApplication.translate("MainWindow", "Stop", None, QtGui.QApplication.UnicodeUTF8)) - self.main_startButton.setStatusTip(QtGui.QApplication.translate("MainWindow", "Starts selected computer for usage", None, QtGui.QApplication.UnicodeUTF8)) - self.main_startButton.setText(QtGui.QApplication.translate("MainWindow", "Start", None, QtGui.QApplication.UnicodeUTF8)) - self.main_settingsButton.setStatusTip(QtGui.QApplication.translate("MainWindow", "Opens settings for this computer", None, QtGui.QApplication.UnicodeUTF8)) - self.main_settingsButton.setText(QtGui.QApplication.translate("MainWindow", "Settings", None, QtGui.QApplication.UnicodeUTF8)) - self.main_remoteButton.setStatusTip(QtGui.QApplication.translate("MainWindow", "Opens remote desktop connection", None, QtGui.QApplication.UnicodeUTF8)) - self.main_remoteButton.setText(QtGui.QApplication.translate("MainWindow", "Remote", None, QtGui.QApplication.UnicodeUTF8)) - self.main_changeButton.setStatusTip(QtGui.QApplication.translate("MainWindow", "Moves user to another computer", None, QtGui.QApplication.UnicodeUTF8)) - self.main_changeButton.setText(QtGui.QApplication.translate("MainWindow", "Change", None, QtGui.QApplication.UnicodeUTF8)) - self.main_shutDownButton.setStatusTip(QtGui.QApplication.translate("MainWindow", "Shuts down selected computer", None, QtGui.QApplication.UnicodeUTF8)) - self.main_shutDownButton.setText(QtGui.QApplication.translate("MainWindow", "Shutdown", None, QtGui.QApplication.UnicodeUTF8)) - self.main_treeWidget.headerItem().setText(0,QtGui.QApplication.translate("MainWindow", "ID", None, QtGui.QApplication.UnicodeUTF8)) - self.main_treeWidget.headerItem().setText(1,QtGui.QApplication.translate("MainWindow", "Status", None, QtGui.QApplication.UnicodeUTF8)) - self.main_treeWidget.headerItem().setText(2,QtGui.QApplication.translate("MainWindow", "User", None, QtGui.QApplication.UnicodeUTF8)) - self.main_treeWidget.headerItem().setText(3,QtGui.QApplication.translate("MainWindow", "Money", None, QtGui.QApplication.UnicodeUTF8)) - self.main_treeWidget.headerItem().setText(4,QtGui.QApplication.translate("MainWindow", "Usage Time", None, QtGui.QApplication.UnicodeUTF8)) - self.main_treeWidget.headerItem().setText(5,QtGui.QApplication.translate("MainWindow", "End Time", None, QtGui.QApplication.UnicodeUTF8)) - self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QtGui.QApplication.translate("MainWindow", "Main", None, QtGui.QApplication.UnicodeUTF8)) - self.groupBox_2.setTitle(QtGui.QApplication.translate("MainWindow", "Orders", None, QtGui.QApplication.UnicodeUTF8)) - self.label_8.setText(QtGui.QApplication.translate("MainWindow", "Item", None, QtGui.QApplication.UnicodeUTF8)) - self.label_7.setText(QtGui.QApplication.translate("MainWindow", "Computer ID", None, QtGui.QApplication.UnicodeUTF8)) - self.label_9.setText(QtGui.QApplication.translate("MainWindow", "Quantity", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_treeWidget_1.headerItem().setText(0,QtGui.QApplication.translate("MainWindow", "ID", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_treeWidget_1.headerItem().setText(1,QtGui.QApplication.translate("MainWindow", "Item", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_treeWidget_1.headerItem().setText(2,QtGui.QApplication.translate("MainWindow", "Cost", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_treeWidget_1.headerItem().setText(3,QtGui.QApplication.translate("MainWindow", "Quantity", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_cancelButton_1.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_deleteButton_1.setText(QtGui.QApplication.translate("MainWindow", "Delete", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_updateButton_1.setText(QtGui.QApplication.translate("MainWindow", "Update", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_addButton_1.setText(QtGui.QApplication.translate("MainWindow", "Add", None, QtGui.QApplication.UnicodeUTF8)) - self.groupBox_3.setTitle(QtGui.QApplication.translate("MainWindow", "Cafeteria Stocks", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_treeWidget_2.headerItem().setText(0,QtGui.QApplication.translate("MainWindow", "Item", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_treeWidget_2.headerItem().setText(1,QtGui.QApplication.translate("MainWindow", "Cost", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_treeWidget_2.headerItem().setText(2,QtGui.QApplication.translate("MainWindow", "Quantity", None, QtGui.QApplication.UnicodeUTF8)) - self.label_6.setText(QtGui.QApplication.translate("MainWindow", "Quantity", None, QtGui.QApplication.UnicodeUTF8)) - self.label_5.setText(QtGui.QApplication.translate("MainWindow", "Price", None, QtGui.QApplication.UnicodeUTF8)) - self.label_4.setText(QtGui.QApplication.translate("MainWindow", "Item", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_addButton_2.setText(QtGui.QApplication.translate("MainWindow", "Add", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_updateButton_2.setText(QtGui.QApplication.translate("MainWindow", "Update", None, QtGui.QApplication.UnicodeUTF8)) - self.orders_deleteButton_2.setText(QtGui.QApplication.translate("MainWindow", "Delete", None, QtGui.QApplication.UnicodeUTF8)) - self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), QtGui.QApplication.translate("MainWindow", "Orders", None, QtGui.QApplication.UnicodeUTF8)) - self.members_treeWidget.headerItem().setText(0,QtGui.QApplication.translate("MainWindow", "Member List", None, QtGui.QApplication.UnicodeUTF8)) - self.members_clearButton.setToolTip(QtGui.QApplication.translate("MainWindow", "Clear", None, QtGui.QApplication.UnicodeUTF8)) - self.members_clearButton.setStatusTip(QtGui.QApplication.translate("MainWindow", "Clears filter", None, QtGui.QApplication.UnicodeUTF8)) - self.label.setText(QtGui.QApplication.translate("MainWindow", "Find:", None, QtGui.QApplication.UnicodeUTF8)) - self.members_filter.setStatusTip(QtGui.QApplication.translate("MainWindow", "Type some letters to filter", None, QtGui.QApplication.UnicodeUTF8)) - self.groupBox.setTitle(QtGui.QApplication.translate("MainWindow", "Member Information", None, QtGui.QApplication.UnicodeUTF8)) - self.members_addButton.setText(QtGui.QApplication.translate("MainWindow", "Add", None, QtGui.QApplication.UnicodeUTF8)) - self.members_updateButton.setText(QtGui.QApplication.translate("MainWindow", "Update", None, QtGui.QApplication.UnicodeUTF8)) - self.members_deleteButton.setText(QtGui.QApplication.translate("MainWindow", "Delete", None, QtGui.QApplication.UnicodeUTF8)) - self.members_reportsButton.setText(QtGui.QApplication.translate("MainWindow", "Reports", None, QtGui.QApplication.UnicodeUTF8)) - self.textLabel5.setText(QtGui.QApplication.translate("MainWindow", "Paying Type:", None, QtGui.QApplication.UnicodeUTF8)) - self.textLabel2_2.setText(QtGui.QApplication.translate("MainWindow", "Password:", None, QtGui.QApplication.UnicodeUTF8)) - self.members_payingType.addItem(QtGui.QApplication.translate("MainWindow", "Pre Paid", None, QtGui.QApplication.UnicodeUTF8)) - self.members_payingType.addItem(QtGui.QApplication.translate("MainWindow", "Normal", None, QtGui.QApplication.UnicodeUTF8)) - self.textLabel1_3.setText(QtGui.QApplication.translate("MainWindow", "Username:", None, QtGui.QApplication.UnicodeUTF8)) - self.textLabel4_2.setText(QtGui.QApplication.translate("MainWindow", "Debt:", None, QtGui.QApplication.UnicodeUTF8)) - self.textLabel3_2.setText(QtGui.QApplication.translate("MainWindow", "Real Name:", None, QtGui.QApplication.UnicodeUTF8)) - self.textLabel7.setText(QtGui.QApplication.translate("MainWindow", "Subscribing period:", None, QtGui.QApplication.UnicodeUTF8)) - self.label_2.setText(QtGui.QApplication.translate("MainWindow", "Starts", None, QtGui.QApplication.UnicodeUTF8)) - self.label_3.setText(QtGui.QApplication.translate("MainWindow", "Ends", None, QtGui.QApplication.UnicodeUTF8)) - self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QtGui.QApplication.translate("MainWindow", "Members", None, QtGui.QApplication.UnicodeUTF8)) - self.logs_treeWidget.headerItem().setText(0,QtGui.QApplication.translate("MainWindow", "Date", None, QtGui.QApplication.UnicodeUTF8)) - self.logs_treeWidget.headerItem().setText(1,QtGui.QApplication.translate("MainWindow", "Type", None, QtGui.QApplication.UnicodeUTF8)) - self.logs_treeWidget.headerItem().setText(2,QtGui.QApplication.translate("MainWindow", "Description", None, QtGui.QApplication.UnicodeUTF8)) - self.logs_treeWidget.headerItem().setText(3,QtGui.QApplication.translate("MainWindow", "Cashier", None, QtGui.QApplication.UnicodeUTF8)) - self.logs_treeWidget.headerItem().setText(4,QtGui.QApplication.translate("MainWindow", "Computer", None, QtGui.QApplication.UnicodeUTF8)) - self.logs_treeWidget.headerItem().setText(5,QtGui.QApplication.translate("MainWindow", "Member", None, QtGui.QApplication.UnicodeUTF8)) - self.logs_treeWidget.headerItem().setText(6,QtGui.QApplication.translate("MainWindow", "Income", None, QtGui.QApplication.UnicodeUTF8)) - self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), QtGui.QApplication.translate("MainWindow", "Logs", None, QtGui.QApplication.UnicodeUTF8)) - self.menuHelp.setTitle(QtGui.QApplication.translate("MainWindow", "Help", None, QtGui.QApplication.UnicodeUTF8)) - self.menuFile.setTitle(QtGui.QApplication.translate("MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8)) - self.menuNew.setTitle(QtGui.QApplication.translate("MainWindow", "New", None, QtGui.QApplication.UnicodeUTF8)) - self.menuTools.setTitle(QtGui.QApplication.translate("MainWindow", "Tools", None, QtGui.QApplication.UnicodeUTF8)) - self.actionContents.setText(QtGui.QApplication.translate("MainWindow", "Contents", None, QtGui.QApplication.UnicodeUTF8)) - self.actionAbout_pyKafe.setText(QtGui.QApplication.translate("MainWindow", "About pyKafe", None, QtGui.QApplication.UnicodeUTF8)) - self.actionAbout_Qt.setText(QtGui.QApplication.translate("MainWindow", "About Qt", None, QtGui.QApplication.UnicodeUTF8)) - self.actionComputer.setText(QtGui.QApplication.translate("MainWindow", "Computer", None, QtGui.QApplication.UnicodeUTF8)) - self.actionEntertainment.setText(QtGui.QApplication.translate("MainWindow", "Entertainment", None, QtGui.QApplication.UnicodeUTF8)) - self.actionExit.setText(QtGui.QApplication.translate("MainWindow", "Exit", None, QtGui.QApplication.UnicodeUTF8)) - self.actionSettings.setText(QtGui.QApplication.translate("MainWindow", "Settings...", None, QtGui.QApplication.UnicodeUTF8)) - -import pykafe_rc Deleted: trunk/pykafe/pykafe_rc.py =================================================================== --- trunk/pykafe/pykafe_rc.py 2008-01-26 20:08:41 UTC (rev 151) +++ trunk/pykafe/pykafe_rc.py 2008-01-26 20:15:05 UTC (rev 152) @@ -1,3585 +0,0 @@ -# -*- coding: utf-8 -*- - -# Resource object code -# -# Created: Cmt Oca 26 18:34:20 2008 -# by: The Resource Compiler for PyQt (Qt v4.3.3) -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore - -qt_resource_data = "\ -\x00\x00\x0e\x80\ -\x89\ -\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ -\x00\x00\x40\x00\x00\x00\x40\x08\x06\x00\x00\x00\xaa\x69\x71\xde\ -\x00\x00\x00\x06\x62\x4b\x47\x44\x00\x00\x00\x00\x00\x00\xf9\x43\ -\xbb\x7f\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x00\x48\x00\x00\ -\x00\x48\x00\x46\xc9\x6b\x3e\x00\x00\x00\x09\x76\x70\x41\x67\x00\ -\x00\x00\x40\x00\x00\x00\x40\x00\xea\xf3\xf8\x60\x00\x00\x0e\x0b\ -\x49\x44\x41\x54\x78\xda\xed\x5a\x79\x50\xd4\xf7\x15\xc7\x34\x6d\ -\x6d\x9b\x76\x3a\x3d\xa6\x9d\xa4\x4d\xa6\xc7\x4c\xab\xc2\x2e\x68\ -\x4d\x9a\x48\x62\xad\x36\x97\x26\xb6\x36\xc6\xa3\x46\x39\x76\x11\ -\x04\xd9\x03\x10\x6f\x82\x20\x28\x20\xc7\xc2\x02\x0b\x0b\xcb\xcd\ -\x02\xb2\xbb\xb0\xdc\xf7\x8d\x8a\x80\x20\x60\x8c\x07\xb1\x49\x8c\ -\x26\x46\x13\x2f\x3c\x80\x4f\xdf\xfb\x12\xdb\xa4\x63\x4c\xa7\x7f\ -\xed\x66\x78\x33\xdf\xd9\x1f\xbb\xec\xee\xf7\x7d\xbe\xef\x7d\xde\ -\xe7\xbd\xdf\x3a\x38\x4c\xdb\xb4\x4d\xdb\xb4\x4d\xdb\xb4\x4d\xdb\ -\xff\x6b\x52\xb9\xc2\xe1\xd1\xbf\x46\x38\x48\xe4\xaa\xef\x3a\x7a\ -\x2a\x67\xcd\x76\x57\x2c\x9f\xe5\xe6\xef\x4b\x6b\x1b\xad\x2d\xb4\ -\x3c\xe6\x78\x28\x16\x39\xc9\x94\xbf\x90\xca\x94\xdf\x90\x78\x2a\ -\xbf\x1e\x8e\x3b\xc9\x02\xc8\xf9\x60\x7a\x54\x3d\x4e\x0e\xfa\xd1\ -\xaa\xf9\x83\x4f\xd0\xfb\x4b\x82\xde\xbc\xb5\x22\x24\x6a\x72\x4d\ -\x78\x1c\x56\x87\xc5\xe2\xd5\x9d\x91\x13\xcf\x29\x77\x5e\x73\x96\ -\xab\xdf\x9a\xed\xee\x6f\x20\x90\x96\x49\xe5\xea\x47\x18\x08\xe9\ -\xc6\x40\xfb\x73\x7c\xae\xf7\x56\x07\x89\x8c\x36\x2f\x53\x7f\xdf\ -\xd1\x43\xb9\x91\x00\x38\xfe\xd2\xd6\xb0\xf1\xb0\xdc\x12\x34\xf4\ -\x0d\xe2\xcc\xf9\x0b\xb8\x7c\xed\x3a\x6e\x8c\xdd\xc2\xf5\x9b\x63\ -\xb8\x78\xe5\x13\x0c\x8d\x9e\x43\x51\x73\x27\x7c\x35\xe9\x78\x66\ -\xf3\xf6\xeb\x04\x56\x99\x93\xa7\xf2\x59\x17\x59\xc0\x43\xf4\x39\ -\xf6\xe3\xbc\x33\x39\x2e\x91\xa9\xc8\x79\xd5\x13\xe4\x44\x2e\x9d\ -\xec\xad\x98\xa2\x32\x9c\x25\xa7\x27\x26\x26\xc0\x36\x4e\x8f\xd7\ -\x6e\xde\xc4\xa5\x4f\xaf\xe2\xf2\xd5\x6b\xb8\x79\xeb\x36\x26\x27\ -\x27\xc5\x6b\x63\xb7\x6f\xa3\xe3\xf8\x09\xf8\xc4\xeb\xe0\xb2\x31\ -\xe0\x3c\x01\xe8\xe7\xec\xa5\x9e\x29\x95\xab\xec\x03\x00\x76\x9e\ -\xd6\x6f\x69\xe3\xf5\x2b\x42\xf6\xa3\x75\x60\x18\xe3\xe3\x13\xc2\ -\xc1\xf7\x3e\xba\x84\xd2\xf6\x43\xd8\x95\x53\x02\x4f\x4d\x06\xfe\ -\x11\xab\xc3\x86\xf8\x74\x28\x74\xb9\x88\x33\x55\xa2\xfd\xf8\x08\ -\xae\xde\xb8\x29\x80\xf8\xf4\xfa\x0d\xa4\x5a\x6b\x29\x1a\xb6\xdd\ -\xa0\x94\x08\xa5\x94\x98\x29\x91\xdb\x78\x24\x48\xc5\xc9\xab\x7f\ -\xe6\xe8\xa1\xb0\xae\x0e\x3b\x80\xe1\x77\xde\x15\xce\x5c\xa1\x70\ -\xcf\xaa\x6d\xc6\xca\xe8\x14\x2c\xdc\xab\xc5\x0b\x71\x06\xbc\x96\ -\x56\x84\x37\xb2\x4c\x70\xcf\xb6\xc0\x33\xdb\x84\x0d\xe9\x46\xac\ -\xd3\x64\x22\x50\x9f\x8f\xf6\xc1\x11\xdc\x1d\x1f\x17\x8b\xd3\x82\ -\x52\xe2\x26\x81\x10\xe0\x22\x0f\x7c\x48\x62\xab\xe9\xc0\x1b\x93\ -\xca\x03\x1f\xa6\xb0\x8f\x7e\x79\x5b\xf8\xc4\xb1\xd3\xa3\xc2\xf9\ -\x73\x17\x3e\x84\x3a\x3d\x0f\xae\x7b\x34\x58\x1c\x9f\x83\x75\xe4\ -\xb0\xea\x60\x1d\xad\x5a\xf8\x17\x57\x43\x59\x52\x83\x2d\xe6\x7a\ -\xec\x28\x6f\xc4\x4e\x5a\xca\xc2\x72\xac\x4f\xd0\xc3\x40\x80\x71\ -\x3a\x70\xba\xe8\xab\x1a\x30\xcf\x3b\xf0\x43\x27\x4f\xd5\xf3\xfc\ -\x3d\x1c\x65\x36\x65\x8b\x57\xac\x73\xe0\xf0\x24\xd2\x5a\x32\xdf\ -\x67\xcb\xc7\x07\xdb\xba\x85\xf3\xe7\x2f\x5d\x86\x8f\xd6\x80\x05\ -\x11\x29\x78\x39\xc5\x08\x75\x29\x3b\xda\x0c\x5f\x63\x95\x58\x81\ -\xa5\xb5\xc2\xe9\xb0\xaa\x16\xec\xab\x6d\x47\x74\x5d\x07\xa2\xeb\ -\x3b\x10\x4e\x7f\x7b\x26\x67\x91\xe3\x8d\x22\x0a\x98\x28\xd5\xc9\ -\x06\x10\xb8\x8d\xe4\xfc\x8f\x6c\x0e\x80\x29\xd2\x53\xcf\xa4\x0d\ -\x16\xfb\x26\xa4\xe1\xfa\xd8\x18\x6e\xdf\xb9\x83\xb0\x02\x13\x16\ -\x84\x6b\xb1\x2c\xb5\x08\x3b\xad\x2d\x08\xb6\x34\x62\x43\x8e\x05\ -\xde\x05\x15\xc2\xf9\xdd\xd6\x26\xe1\xb8\xa6\xa9\x1b\xa9\x6d\x47\ -\x90\xde\x71\x54\x2c\x7d\xe7\x51\x02\xa3\x1d\x9e\x49\x06\xd4\x1f\ -\x1d\x10\x60\xf6\x9f\x3a\x8b\x45\xea\xdd\xb7\xe9\x3b\xd6\x13\x1f\ -\xd8\x56\x14\x70\x99\xa2\x1c\x9d\x4f\xa7\xff\x61\x6d\xcf\x31\xb1\ -\x61\x26\xbf\xc5\x61\x1a\xfc\x25\x31\x1f\xc1\x65\x4d\x04\x40\x33\ -\x56\x67\x96\xc2\x23\xaf\x1c\x8a\x92\x6a\x71\xf2\xfb\xc9\x79\x6d\ -\xcb\x61\x18\xba\xfa\x50\xd8\x33\x88\x92\xde\x21\x58\x07\x4e\xc0\ -\x72\x6c\x44\x00\x11\x6e\x6d\x84\x8a\x08\xf2\xa3\x4f\x3e\x15\x44\ -\xba\x23\x23\x9f\xa3\xa0\x82\xd2\xe0\x3b\x36\xc3\x05\x2e\xcc\xfa\ -\x74\x22\xb3\xdc\xfd\x03\x56\x86\xc6\x88\xd2\x76\xe7\xee\x5d\x04\ -\x1b\x8a\xf0\x6c\x94\x1e\xeb\x73\xcb\x11\xd3\xd8\x8d\x35\x06\x13\ -\xd6\x10\x00\x1b\xf9\xf4\x4d\x75\xd8\x53\xd9\x22\x4e\x3e\xff\xc8\ -\x00\x2a\x8f\x9f\x44\xc3\x89\xd3\xe8\x38\xf5\x0e\x4e\x5d\xbc\x84\ -\xfa\x91\xd3\x28\xa0\xe7\x75\xed\x3d\xd8\x9c\x61\x44\x45\xf7\x51\ -\x01\x6a\x43\xef\x20\x08\xe4\xf3\x04\xb6\xa3\xcd\x00\xc0\xe1\x48\ -\xeb\x61\x52\x70\xc5\xbb\xb3\x8c\x62\xa3\xa7\xdf\xff\x00\xaf\x44\ -\x6a\xb1\x44\x93\x87\xdd\x95\xad\xd8\x4a\x11\xf0\x2a\xa5\xc1\xba\ -\x2c\x33\x36\x19\x2b\xb1\xd5\x52\x8f\x88\x9a\x56\x24\xb7\x1e\x16\ -\x27\xdf\x72\xf2\x2c\xde\xbd\xfc\x09\xc6\x28\x6d\xc6\xee\xdc\x45\ -\xd7\x99\x73\x30\xf5\x0d\xc3\xd0\xdd\x87\x50\x4b\x9d\x48\xa5\x71\ -\xe2\x82\xf7\x3e\xfa\x18\x44\xb0\x77\x09\xec\xb5\x0c\xfa\x3c\x37\ -\x5f\xdb\x60\x7f\x26\x26\x3a\x95\xa3\x86\x9a\x26\x01\x40\xdd\xd1\ -\x63\x78\x2e\x2c\x11\xaf\xea\x8a\x11\xdb\x74\x98\xc2\xde\x4a\x00\ -\x18\xf1\x46\xb6\x59\x90\xdf\x36\x4b\x03\x22\x6b\xdb\x44\xde\x1b\ -\x09\x80\x9a\xa1\xb7\x31\xf4\xfe\x05\x22\xbc\x09\xc1\xfa\xe7\x3e\ -\xbe\x82\x9a\xe1\xb7\x91\xd3\xdd\x8f\x18\xe2\x02\xbf\xd4\x6c\x91\ -\x06\x5c\x15\xdc\xf6\x27\x82\x7a\x87\x50\x9b\xe1\x01\xce\x7f\x62\ -\xff\xc7\x5d\xbc\x02\x4e\x59\x3a\x8f\x08\x00\x72\x1b\xda\x04\xf9\ -\xad\x32\x98\xa1\x69\x39\x82\x55\x99\x26\xbc\x42\x00\x7c\x31\x02\ -\xda\x44\x04\x70\xa8\x57\x51\x0a\xf4\x8c\xbe\x8b\x0f\xaf\x5e\xc7\ -\xc8\xf9\x8b\x38\x4c\xd7\xf5\x94\x12\x9c\x1e\x71\x8d\x5d\xf0\xa2\ -\x8a\x70\xea\xbd\xf3\x02\x1c\x95\x36\x13\x14\x01\xa9\x73\x3c\xfc\ -\x6c\x03\x00\xde\x04\xa9\xbe\x5f\xcf\xdd\x18\x38\x5a\x75\xb8\x57\ -\x00\xa0\xaf\x6e\xc2\x82\xbd\xc9\x58\x9b\x65\x11\x00\xac\xd4\x97\ -\x62\x29\x95\xc1\xb5\xc4\x03\xde\x85\x15\x08\x62\x0e\xa0\x52\x97\ -\x40\x1c\x90\x45\x61\x5e\x4a\xe1\xde\xf6\xf6\x28\xba\xcf\xfc\x53\ -\x70\x81\x75\xf0\x2d\x91\x1a\x69\x1d\x3d\xa2\x2c\xca\xb5\x59\x38\ -\x71\xee\x5d\xa1\x26\x83\x74\xd9\x1c\x01\x19\x73\xdc\x55\x33\x6c\ -\x24\x02\x54\x1c\x01\x8f\x71\x27\x57\xfa\x59\xfd\x37\xb6\x74\xc2\ -\x35\x3c\x09\x2b\x33\x4c\x48\x6c\xed\x21\x20\xcc\x78\x51\x5b\x80\ -\xd7\x33\x0e\xc2\x93\xaa\x00\x8b\x1f\x51\x05\x28\xbc\x39\x0a\x72\ -\x0e\xf5\x0b\xe6\x37\xf7\x0f\x13\x18\x43\x28\xe8\x19\x40\x46\x67\ -\x2f\xe2\x09\xa0\x3d\x95\xcd\xf0\x4c\xcc\xc4\xe8\x07\x17\x85\x26\ -\xf0\xa3\x66\x89\x00\xd0\x48\x37\xd9\x4a\x0a\x50\x93\x42\xeb\xfb\ -\x54\x9e\x3a\x52\xca\x6b\x04\x00\xdc\xcc\x2c\x22\x0e\x58\x9a\x52\ -\x44\x15\xe0\x10\x36\x15\x55\x8b\x72\xf8\xb7\xb4\x62\xe2\x01\x0b\ -\x7c\x0a\x2b\x45\x14\xbc\x59\xd1\x84\xa8\xba\xa9\x52\xa8\xa7\xb2\ -\x97\x49\x4e\x67\x90\x06\x60\x6e\x88\xa7\xd0\x67\xa2\x0c\x3a\x58\ -\x43\x1c\x90\x83\x4f\xa8\x37\xe0\x3e\x61\x2d\xb5\xd0\x04\x40\x30\ -\x93\xa0\xd4\x86\x00\x98\x41\x79\x99\xae\x4e\x31\x88\x3c\xfd\xe0\ -\xe3\xcb\x78\x3d\x3a\x15\x8b\x48\xfa\xb2\xf8\x09\xaf\xe9\x10\x11\ -\xf0\x72\x72\xa1\x88\x02\xf7\xdc\x32\xf8\x15\x55\x09\x10\x58\x0c\ -\xb1\xa3\xac\x02\x0f\x34\x74\x22\x86\x42\x9e\xc5\x11\xa7\x08\xcb\ -\x63\x59\x66\x31\x0e\x94\x56\x08\x60\x99\x07\x16\x07\x86\x8c\xcd\ -\xf6\x50\xf0\xbc\xc0\x36\xca\xa0\xa3\x57\xa0\x38\x89\xd9\xee\x0a\ -\x37\x2a\x51\xe3\xac\xfd\xd9\xa2\x0f\x5a\xe1\x1a\x91\x2a\xd2\x20\ -\xee\xb3\x4a\xb0\x84\xa2\x80\xcb\xa1\x10\x44\xa4\x0f\x7c\x89\x10\ -\xd5\xd4\x13\x30\x29\x72\x4a\x30\x18\xbb\x48\xfc\x6c\x2f\x6b\x10\ -\xe0\x70\xaf\xb0\x3a\x2e\x1d\xdd\x23\x27\xc5\x67\x72\x63\xe4\x4c\ -\x64\x4b\x29\xf7\x84\xcd\x29\x41\x27\x99\xea\x37\xc4\x03\xa7\x73\ -\xeb\x5b\xc4\x66\x47\xa8\x13\x7c\x25\x22\x11\x8b\xe2\xb2\x45\x0a\ -\x44\xd5\x77\xe1\x35\xfd\x41\x91\x0a\x0c\xc2\xaa\x8c\x52\x21\x8b\ -\xbd\xf2\xad\x02\x88\xa9\xc6\xa8\x5a\xa8\xc4\xcd\xc5\x55\xf0\xa1\ -\xe7\x56\xa7\xe4\x63\x67\x76\xb1\x28\x7f\x2c\xaf\xbd\x62\x53\x40\ -\x7a\x43\xef\xe2\xa9\xfe\x86\xb3\x4d\x01\xe0\xa9\x72\x70\xf1\x50\ -\xcf\x98\xe3\xae\x88\x59\x19\x1a\x2d\x9a\xa0\x7b\xe5\x70\x61\x68\ -\x82\x70\xda\xbf\xa4\x16\x61\x35\xed\xa2\x24\xf2\xdf\x4b\x53\x0a\ -\xf1\xf7\xf4\x12\x52\x87\x26\xac\x27\x5e\xe0\xb4\xe0\xa8\xf0\xa0\ -\x47\x37\x5a\xaf\xeb\xa8\x6a\xc4\xa4\x52\x4b\xfd\x4f\xf1\x59\x5c\ -\x61\x9e\xdc\x14\x7c\x85\xf4\xc6\x62\x3e\xfd\xf9\xfe\x41\x36\x39\ -\x08\x99\x45\xeb\x64\x74\x91\x45\x30\x36\x4f\x7a\x62\x29\x7f\x9f\ -\x23\x10\x16\x27\xe4\x92\x63\x56\x6c\xa7\x6e\xd0\x9b\xc4\xd0\xdf\ -\xd2\x4a\xb0\x94\x38\x61\x19\x95\xc7\xbf\x92\x60\x62\x30\x38\x42\ -\x78\x2d\xd3\xe4\x60\xc5\x3e\x2d\x9a\x8f\x0d\x09\xe7\x2f\x5c\xbe\ -\x22\x66\x87\x44\xb4\x06\xa9\x57\xc0\xb7\x6c\x72\x30\x22\x91\x0b\ -\x3d\xc0\x4d\x91\xc7\x1f\xfd\xb6\x5e\xe7\x92\xc8\x75\x9b\xe7\x7e\ -\x99\xa4\x10\x5f\x0a\xd7\xc0\x75\x5f\x9a\x20\xc3\x7f\xd0\x89\x7b\ -\xe4\x57\x08\x9d\xb0\x9c\x9c\x7f\x41\x5b\x88\xe7\x93\x0a\xb0\x84\ -\x40\xfa\x53\x44\x32\xdc\xe2\x29\xef\x87\x4f\xfe\x7b\x4c\xf6\x0e\ -\xf1\xca\x2b\x3b\x22\x18\x80\x3c\xe2\x9b\x1f\xd8\x5c\x3b\xfc\xc5\ -\xa1\x88\xfa\xdb\x8e\x1e\x8a\xc8\x85\xaa\x5d\xb7\x59\x19\xb2\x86\ -\xe7\xca\xd0\xf7\xf6\x19\xec\xce\xa5\xd3\xa5\x1e\xc1\x35\x2c\x09\ -\xae\x91\xa9\x58\x18\x95\x2e\xd6\xb3\x11\x29\xf8\x53\x78\x22\xd6\ -\x1c\xd0\x41\x57\xd9\xf0\xef\x14\xfa\xbc\x35\xf6\x0d\x72\x3b\x7c\ -\x87\x40\xd8\x2f\xb5\xe5\x19\xe1\x67\x03\xd1\x47\xe6\x78\x28\xf7\ -\x2f\xf0\xdf\x7e\x33\xc9\x5c\x25\x3a\x44\x36\xee\x12\xb9\x94\x31\ -\x30\xf1\xf4\x7c\x68\x7e\x29\xc2\x0b\xcd\x48\x23\xa7\x9b\xfb\x87\ -\x70\x91\x1a\x22\x3e\x75\x06\x8c\x89\xef\x5e\x04\xb0\x4d\xd0\xb5\ -\xb9\xfd\x10\x16\x4c\x8d\xc7\xb6\x10\x00\x33\xe9\xbb\xbe\x27\x91\ -\x29\x1f\xa2\xb4\xb0\xbd\x74\xe0\x49\x2e\x6d\x74\x13\x55\x86\x73\ -\xeb\xf7\x69\x50\xde\xd5\x23\x80\xf8\xbc\x53\xff\x6d\xcc\x1b\xdc\ -\x49\x6a\x4c\x95\xa4\xf8\xf4\x38\x3e\x7a\xee\x0b\xaf\xf3\x4c\x20\ -\xbb\xb6\x99\xc8\x70\xcb\x15\x8a\x84\x2a\x5a\xcd\x54\x7e\xb5\x54\ -\x16\x5d\x5d\xe4\xaa\x87\xa5\x36\x55\x19\x08\x84\xb9\xde\x01\x33\ -\x9c\x64\xca\xb9\xb4\xd1\xcc\x79\xde\x41\x17\x57\x86\xc6\x4c\x46\ -\x52\x6b\x6b\xee\x38\x84\xae\xe1\xb7\x30\x70\x66\x14\x7d\xa7\xce\ -\x0a\xb2\xcb\xa9\x6b\x41\x20\x75\x7d\xcf\x6f\x09\xbd\xc3\xf7\x11\ -\xa8\xdc\x1d\x5b\x17\x11\x3f\x79\x96\x24\xf0\xe7\xa3\xa0\xb6\xa7\ -\x1f\xae\x8a\x1d\x60\x50\xe3\x49\x6b\x78\x46\x6b\xf1\x07\xef\xa0\ -\x8f\xe8\x3b\xf6\x51\x39\xfe\xa9\x50\x88\x1b\xfc\x6c\x8d\x17\x02\ -\xbe\x45\xd1\x30\x8f\x9c\xda\x4a\x2a\xae\x92\xc4\xcc\xc9\xa7\x7c\ -\x83\x2f\xf1\x0d\x90\x67\x36\x6f\xbb\xca\x43\x0e\x0a\xe7\x7e\x7a\ -\x3d\x9b\x5e\x5f\x4f\xd7\x8f\xd1\x9a\x4d\xef\x39\xe4\x1d\x97\x2a\ -\xaa\xc0\xad\x3b\x77\x90\x57\xdf\x8a\xc5\x01\x21\xd8\x65\x28\x14\ -\x13\x27\x7d\x65\xbd\x18\x99\x15\x34\xb6\x81\x6f\xbc\x10\x08\x26\ -\x8a\xbe\x27\x44\x8b\xee\x65\x63\xb7\xd7\xa4\x1b\x15\x0e\x52\x1f\ -\x05\xa7\xc7\x4c\x27\x4f\xd5\x2f\x68\xb3\xce\xb4\x9e\xa6\xf5\x94\ -\xa3\xa7\x62\x36\xe5\xf2\x4f\xa4\xf2\xa9\xfb\x82\xf3\x3c\x14\x0e\ -\x8e\x72\x2e\xab\xca\x27\x09\x88\x11\x1e\x88\xee\xc9\x29\x66\x12\ -\x04\xf7\x1b\x3c\x76\xdb\x95\x9e\x0b\xbd\xa9\x1c\xfb\x73\x8b\x04\ -\x10\x7c\xc7\xe9\xb5\x37\xa3\xb9\x52\x54\x51\x2a\xfc\x8a\xb9\xc8\ -\xd9\xcb\x4e\x6e\xa6\xdc\x17\x30\x2f\xee\x32\x45\xc7\xb7\x9c\x72\ -\xfc\xea\x0b\xc1\x7b\x60\x22\x12\x2c\xa6\x4e\x73\x9b\x56\x8f\xf2\ -\xda\x3a\x1c\xeb\xef\xc3\xc0\xe0\x20\xf4\xe6\x0a\xc4\x96\x94\xa1\ -\x85\x52\x69\xd5\x9e\x03\x0c\x42\x1d\xdf\x9c\x71\xa2\x48\x58\xe4\ -\x23\xb3\x5f\x10\x24\x53\xc3\xd6\xe7\x29\xe7\x6f\x54\x1e\xea\x45\ -\x6a\x59\x35\xb6\xc6\x27\xc3\x54\x56\x8e\xe6\xa6\x26\x74\x76\x76\ -\xa2\xb7\xb7\x17\x43\x43\xc4\x21\xd6\x6a\xc4\x14\x99\x45\x6a\xac\ -\x09\x8f\xbd\x37\x42\xff\x9d\x18\xd7\xbb\xf9\xdb\x2f\x00\xe4\xc8\ -\xf2\x3f\x07\x84\xdc\x6e\xea\x3f\x8e\x4d\xd1\x89\x30\xe4\xe4\xc2\ -\x62\x36\xa3\xaa\xaa\x0a\x4d\xff\x05\x42\x5e\x65\x0d\xa2\x0a\x4d\ -\x02\x04\x22\x50\x90\x1e\x69\x9d\x52\xa7\x14\x49\x72\xa5\x3d\x02\ -\x20\xe4\xf5\x2f\xa9\x2a\x0c\x6b\xe9\xf4\x13\x4b\xad\x88\xd0\x68\ -\x51\x64\x34\xc2\x7c\x1f\x10\x86\x09\x84\x82\xaa\x3a\xec\x2f\x28\ -\x45\xdb\xe0\x08\x36\x50\xa5\x20\x75\xda\x41\x9f\xe1\xe8\xc4\x9c\ -\x20\xb7\x33\x4e\x90\x90\xc0\x99\xeb\xe6\xcd\xad\x76\xc4\xaa\xb0\ -\x03\xe0\x28\xf0\x8f\x4a\x40\x5a\x46\x06\x8c\x0f\x00\xc1\x58\x5d\ -\x8f\xc8\xfc\x83\x02\x04\xf7\xa8\x24\x50\x1a\x75\x13\x08\x52\x8e\ -\x02\x89\x7b\x80\xfd\x00\x30\xcf\x6d\x87\x10\x55\x74\x7a\x4e\x24\ -\xa8\x46\x39\x0a\xf2\x1b\x5a\xa1\x8a\x8c\x81\xc1\x90\x05\x63\x61\ -\xe1\xfd\x41\x18\x1e\x46\x71\x6d\x03\x22\xf2\x4a\xc4\x8d\x56\x59\ -\x4c\x32\x83\x70\x84\x3e\x67\xae\x64\x6a\x84\x67\x3f\x20\x70\xd8\ -\xba\xfa\x07\x32\x19\x2a\x17\x2a\x77\xde\x62\x32\x8c\xa1\x3c\xdf\ -\x11\x1d\x8b\xec\xac\x2c\x14\x3e\x00\x84\x83\x75\x8d\xd8\x9b\x5b\ -\x2c\x40\xd8\x18\x9b\xca\x20\xf4\x11\x00\xf3\xb9\xd4\x3a\xc9\xed\ -\xe8\x47\x17\x53\x63\x37\xf5\x23\xac\x28\x57\x84\x44\x89\xd0\x0e\ -\x4e\xce\x40\x64\xbc\x06\xd9\xd9\x0f\x06\xc1\x54\xdf\x8c\xf0\x9c\ -\x22\x01\xc2\xa6\x84\x34\xd0\xe9\x0f\x50\x24\x3c\x4d\x0a\x55\x94\ -\x59\x7b\x23\xc4\xc7\x89\xd9\xdb\x36\x27\xea\x45\xcd\xf7\x23\x3e\ -\x48\xd0\x26\x7f\x65\x24\x58\x1a\x5b\x10\x96\x6d\x14\x20\xf0\x7b\ -\x09\x80\x01\xfa\x2c\x67\xae\x0e\x2e\x5e\x0a\x7b\x89\x82\xa9\x31\ -\x38\x6d\xfe\x19\xba\x1e\x8d\x29\x2e\x83\xa5\xe3\x30\x7c\xf7\x46\ -\x23\x25\x55\x87\xac\xaf\x00\xc1\xda\xd4\x8a\x3d\x59\xc6\xff\x70\ -\x82\x87\xc2\x4a\xfc\xf2\x43\x89\x3d\x55\x06\x89\x17\x09\xa3\xb5\ -\x7e\xcc\x07\x1b\xa8\x97\xb8\x5a\xd4\xdc\x01\x1d\x49\xe3\x80\xc8\ -\x68\xa4\xa5\xa5\x3d\x10\x84\x11\x02\xa1\x9c\x40\xe0\x12\x59\xdf\ -\x3b\x80\x85\xaa\x5d\xb7\x28\xa5\x56\x31\x00\x52\xcf\x00\xfb\x4a\ -\x05\x8a\x80\x6f\xd2\xe6\x23\xa9\x73\x1c\xe7\x41\xc9\x1e\x43\x01\ -\x42\x88\x14\xd3\xd3\xd3\xbf\x12\x04\x5d\x69\x39\xb5\xe6\x47\xc4\ -\x1d\x26\x6a\xbe\x72\x48\x29\xda\xee\xcf\x6e\x1e\x3c\x74\x51\xff\ -\x88\x40\x30\xbf\x11\x99\x80\xf6\xe3\x27\xa0\x8a\x4f\x41\x54\x82\ -\x86\x40\xf8\xf2\x48\xe8\xeb\xeb\x43\x4d\x6b\x3b\x92\xcc\x95\xe2\ -\x67\x37\x44\x88\x47\x9d\x6c\xf1\x17\x27\xff\x2b\x1f\xb0\xcc\x25\ -\x27\x8e\x6d\xd7\xe7\x8b\xb6\xd8\x37\x32\x16\x1a\x22\xc5\xf4\x2f\ -\x49\x87\xae\xae\x2e\xd4\xb5\xb4\xe2\x80\xd1\x8c\x3c\xd2\x13\xa4\ -\x2d\x46\xe8\xfd\x8f\x4a\xe5\x76\xd8\x35\x3a\xcb\x37\x3b\x38\xca\ -\x02\x58\xd4\xbc\x34\x77\x63\xe0\x05\x9d\xb5\x0e\x85\x8d\x6d\xf0\ -\x17\xa4\x98\x7a\x5f\x4e\x68\x6e\x6e\x42\xb1\xb5\x12\xc9\x96\x2a\ -\xa4\x55\xd4\xb1\x2e\x38\x4c\x20\xfe\xd0\x2e\x01\x98\xba\x21\xa3\ -\x72\x98\x27\x57\xcf\x20\xbd\xaf\x7c\x56\xb1\x63\xcc\xda\xdd\x83\ -\xb8\x62\x0b\x82\xf7\xc5\x40\xa7\xd3\xdd\x17\x84\x50\x9d\x01\x35\ -\x47\xfa\xe1\x4f\xe5\x90\x38\x20\xdd\x59\xa6\x9c\x21\x95\xd9\xf3\ -\xdc\x80\xd2\x81\x42\xf9\xbb\xc4\x07\xba\xe5\xbb\xf6\x4d\x72\x27\ -\x18\x9a\x99\x8f\x2d\x24\x97\x93\x3e\x4b\x07\xd6\x09\xd9\x79\x79\ -\x08\x49\x4c\x45\x92\xa9\x42\xcc\x27\x9f\xde\xbc\xed\x1a\x01\xb7\ -\x8c\xdb\xe5\xf9\x32\x3f\x07\xbb\x36\x76\x82\xca\xd9\x63\x14\xd2\ -\xf5\xeb\x23\x35\x53\xe3\x32\x0a\xf1\xc0\xf8\x64\x28\x22\x0f\x40\ -\xb5\x2f\x16\xc1\x89\x3a\xe4\xd4\x36\x0b\xae\x58\xbe\x33\x72\x72\ -\x8e\x87\x32\x8d\xc0\xfb\x8e\x44\xae\x72\xb0\x7b\x93\x7a\x29\xef\ -\xfd\x54\xe7\xf7\x04\x42\xdd\xd2\x6d\x7b\x27\x74\x04\x00\x0f\x5b\ -\xeb\x7b\x07\xc5\xe2\x6b\xad\xa5\x1a\x7f\x09\x0a\xbd\x4b\xff\x53\ -\x4c\xce\x3f\x2a\xfd\x3a\x38\x7f\xcf\xe6\xdc\xab\x0c\x72\xf5\xcf\ -\x29\x1d\x42\xc8\xc1\x91\x3f\x07\x84\x8c\xbd\xf6\x66\xf4\x24\x2f\ -\xba\xbe\x49\xaf\x0f\xd1\x6b\xc1\xe4\xf8\x8f\x25\xb2\xaf\x91\xf3\ -\x9f\x37\x27\x91\x0e\x3c\x8e\x17\x83\xd7\xa5\xb3\xdc\xfd\x7d\x68\ -\x79\xd3\xf5\x8b\xa2\xe4\x79\xa9\x67\x48\xe4\x6a\x87\x69\x9b\xb6\ -\x69\x9b\xb6\x69\x9b\xb6\x69\xfb\x9f\xec\x5f\x05\xce\x16\x9d\x41\ -\x57\x73\x07\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\ -\x00\x00\x08\xbd\ -\x89\ -\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ -\x00\x00\x40\x00\x00\x00\x40\x08\x06\x00\x00\x00\xaa\x69\x71\xde\ -\x00\x00\x00\x06\x62\x4b\x47\x44\x00\x00\x00\x00\x00\x00\xf9\x43\ -\xbb\x7f\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x00\x48\x00\x00\ -\x00\x48\x00\x46\xc9\x6b\x3e\x00\x00\x00\x09\x76\x70\x41\x67\x00\ -\x00\x00\x40\x00\x00\x00\x40\x00\xea\xf3\xf8\x60\x00\x00\x08\x48\ -\x49\x44\x41\x54\x78\xda\xed\x9b\x6d\x50\x15\xd7\x19\xc7\x57\xde\ -\xdf\x11\xee\x05\x44\x40\x8d\x11\x8c\x8d\x60\x05\x41\x03\xdc\x7b\ -\x79\xbd\x08\x08\x8a\x02\x11\x79\x55\x01\x4d\x35\xa9\x33\x6d\x75\ -\xda\xc4\x98\x4e\x13\x93\x0f\x49\xa7\x9d\xcc\xa4\x9f\x3a\x93\x4c\ -\xda\xa6\x79\x51\x13\x51\x93\x54\x63\xd2\x76\x62\x26\x5e\x02\x74\ -\xc6\xae\x4e\xfb\xa1\x26\xd3\x99\x4e\xa6\x1f\x1a\x8d\x26\x77\x5f\ -\xce\xfe\xfb\x9c\xbd\xc4\x01\x2e\xbb\x92\x61\x37\xdc\x0f\xf7\x99\ -\xf9\xcd\xc1\xb9\xe7\x9c\xe7\x39\xff\xdd\x73\xf6\x9c\xdd\x47\x41\ -\x08\x5b\xd8\xc2\x16\xb6\xb0\x85\x2d\x6c\x61\x9b\xa3\x8d\x57\x0b\ -\x82\xd8\x24\x08\xa3\x2e\x21\x66\xd4\x2d\x64\xf8\x5c\x42\x0e\x95\ -\xdf\x3d\xe4\xd7\x17\xf8\xdb\x49\x7f\x47\xff\xdb\x29\x08\x97\xea\ -\x6c\x1c\x38\x39\x12\x3e\xd9\xa4\x0f\x3c\x8f\x38\x48\x03\x3f\xe5\ -\xab\x14\x26\x88\x6b\x0b\xc8\x55\x62\x9c\x62\x79\x83\xc4\xd8\x47\ -\x31\x66\xf3\x38\x39\x96\x0f\x7e\xd4\xa3\x97\xf5\xe4\x6c\x94\x50\ -\x27\xbc\x89\x10\xb7\x66\xe1\x6a\x5b\xce\x82\xc2\x63\x98\xa8\x4f\ -\x00\x8f\x89\xf8\x90\x70\x7f\x5c\x66\xa1\x08\xa3\x95\x82\xe0\x0b\ -\x0c\xde\x4b\x9d\x5f\x1f\xaf\x8d\xc3\x67\x7b\x8a\xf1\xe5\xd1\x9d\ -\xf0\x1f\x1f\x84\xf4\xcc\xf0\x82\xc2\x63\xb8\xf9\x58\x27\x3e\xed\ -\x5f\x87\xb1\x9a\x18\x2e\xc4\x3f\x28\x56\x97\x8f\xdf\xb1\x2e\xab\ -\xae\xbe\x5b\xc8\xa3\x8e\x7d\xe3\xb5\xb1\xf8\xef\x81\x1a\xc8\x4f\ -\x0e\x41\x79\x6a\x18\x0a\x2f\x43\x01\x8a\x45\xfe\xc5\x20\x3e\x7f\ -\xc8\x8d\xb1\x6a\x5d\x84\x3f\x93\x00\x99\xbe\xf9\xde\x05\xd4\x91\ -\x2e\x80\x2f\x30\xe7\xd9\x67\x3d\x85\x50\x8e\x0e\xe8\xc8\x93\x65\ -\x28\xa0\xc7\xf2\x38\x2f\xfb\x71\xbd\x6b\x0d\x17\x40\xa1\xc1\x0f\ -\xd0\x5a\x25\x7c\x3c\x1f\x11\x78\x07\x7c\xb5\xe7\x0b\xde\x44\x6d\ -\x3c\xbe\x7c\xb8\x19\xca\x91\x6e\xc8\x47\x76\x51\x19\x5a\x04\x62\ -\xea\xc1\x8d\x03\x9b\x31\x1e\x98\x0a\x2f\xd3\xc5\x8b\x18\xb5\x40\ -\x00\xfe\xa8... [truncated message content] |
From: <jn...@us...> - 2007-06-10 23:07:55
|
Revision: 120 http://pykafe.svn.sourceforge.net/pykafe/?rev=120&view=rev Author: jnmbk Date: 2007-06-10 16:07:58 -0700 (Sun, 10 Jun 2007) Log Message: ----------- quick fix Modified Paths: -------------- trunk/pykafe/client/session.py trunk/pykafe/server/session.py Modified: trunk/pykafe/client/session.py =================================================================== --- trunk/pykafe/client/session.py 2007-06-10 22:28:07 UTC (rev 119) +++ trunk/pykafe/client/session.py 2007-06-10 23:07:58 UTC (rev 120) @@ -21,8 +21,11 @@ notConnected, notReady, ready, loggedIn, requestedOpening, waitingMoney = range(6) def __init__(self): self.state = 0 + self.settings = None + self.initialize() + + def initialize(self): self.user = None - self.settings = None self.startTime = None self.endTime = None self.orders = [] @@ -35,13 +38,16 @@ price = float(config.price_fixedprice) else: price = float(config.price_onehourprice)/3600 * time - return int(price/config.price_rounding)*config.price_rounding + return int(price/float(config.price_rounding))*float(config.price_rounding) def calculateTotal(self, config): total = self.calculatePrice(config) for i in self.orders: - total += i + total += i[1] return total + + def addOrder(self, productName, price): + self.orders.append([productName, price]) def toString(self): """returns current state as a string""" Modified: trunk/pykafe/server/session.py =================================================================== --- trunk/pykafe/server/session.py 2007-06-10 22:28:07 UTC (rev 119) +++ trunk/pykafe/server/session.py 2007-06-10 23:07:58 UTC (rev 120) @@ -38,7 +38,7 @@ price = float(config.price_fixedprice) else: price = float(config.price_onehourprice)/3600 * time - return int(price/config.price_rounding)*config.price_rounding + return int(price/float(config.price_rounding))*float(config.price_rounding) def calculateTotal(self, config): total = self.calculatePrice(config) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |