[POS-commit] r88 - in Stoq2/interface: . pos

Evandro Vale Miquelito evandro at async.com.br
Wed Mar 9 09:48:46 BRT 2005


Author: evandro
Date: 2005-03-09 09:48:45 -0300 (Wed, 09 Mar 2005)
New Revision: 88

Modified:
   Stoq2/interface/__init__.py
   Stoq2/interface/pos/__init__.py
Log:

Some small fixes and removing .pyc files.



Modified: Stoq2/interface/__init__.py
===================================================================
--- Stoq2/interface/__init__.py	2005-03-09 12:45:04 UTC (rev 87)
+++ Stoq2/interface/__init__.py	2005-03-09 12:48:45 UTC (rev 88)
@@ -79,7 +79,7 @@
 class AppWindow(BaseAppWindow):
     """ Base class for the main window of applications."""
 
-    def __init__(self, app, *args, **kwargs):
+    def __init__(self, app):
         self.app = app
         self.widgets = self.widgets[:] + ['clear_cookie_menuitem',
                                           'change_user_menuitem',
@@ -87,7 +87,7 @@
                                           'user_menu']
         self.keyactions = { gtk.keysyms.F10: self.inspect, 
                             gtk.keysyms.F9: self.reload_world }
-        BaseAppWindow.__init__(self, app, *args, **kwargs)
+        BaseAppWindow.__init__(self, app, keyactions=self.keyactions)
         if hasattr(self, 'about_menuitem'):
             self.about_menuitem.connect('activate', self.run_about)
         if hasattr(self, 'quit_menuitem'):
@@ -143,10 +143,7 @@
     
     def reload_world(self, *args, **kwargs):
         reload_world()
-        # Limpo cache do run_dialog
-        from stoqlib.interface import cache
-        cache.cache = cache.DialogCache()
-        # Se a aplicação tem sync(), é hora de chamá-lo
+        # If the application has a sync(), it's time to call it
         if hasattr(self, "sync"):
             print "Syncing database connection..."
             self.sync()
@@ -181,7 +178,7 @@
         code.interact(local=scope)
 
     def sync(self):
-        # Aplicações que querem sincronizar periodicamente devem definir
-        # um sync().
+        # Applications that want to synchronize periodically must define a
+        # sync method.
         pass
 

Modified: Stoq2/interface/pos/__init__.py
===================================================================
--- Stoq2/interface/pos/__init__.py	2005-03-09 12:45:04 UTC (rev 87)
+++ Stoq2/interface/pos/__init__.py	2005-03-09 12:48:45 UTC (rev 88)
@@ -1,34 +0,0 @@
-# -*- Mode: Python; coding: iso-8859-1 -*-
-# vi:si:et:sw=4:sts=4:ts=4
-
-##
-## Copyright (C) 2004 Async Open Source <http://www.async.com.br>
-## All rights reserved
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2 of the License, or
-## (at your option) any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-## USA.
-##
-"""
-interface/pos/pos.py:
-
-    Construtor for POS application    
-"""
-import os
-# from Kiwi2 import set_gladepath, gladepath
-# 
-# set_gladepath(gladepath +
-#               [os.path.join(os.getcwd(),"interface", "pos", "glade")])
-
-app_name = "Point of Sales"



More information about the POS-commit mailing list