reinhard | 1 May 14:17 2005

[gnue] r7506 - trunk/gnue-appserver/src/language

Author: reinhard
Date: 2005-05-01 07:17:38 -0500 (Sun, 01 May 2005)
New Revision: 7506

Modified:
   trunk/gnue-appserver/src/language/Session.py
Log:
Fixed login parameter names.

Modified: trunk/gnue-appserver/src/language/Session.py
===================================================================
--- trunk/gnue-appserver/src/language/Session.py	2005-04-29 22:02:16 UTC (rev 7505)
+++ trunk/gnue-appserver/src/language/Session.py	2005-05-01 12:17:38 UTC (rev 7506)
 <at>  <at>  -400,8 +400,8  <at>  <at> 
   # -------------------------------------------------------------------------
   def __init__ (self, sessionManager, user, password, params = {}):
     Session.__init__ (self, sessionManager,
-                  sessionManager.open ({'user': user, 'password': password}),
-                  params)
+        sessionManager.open ({'_username': user, '_password': password}),
+        params)

 
 # =============================================================================
reinhard | 1 May 14:49 2005

[gnue] r7507 - trunk/gnue-reports/src/base

Author: reinhard
Date: 2005-05-01 07:49:33 -0500 (Sun, 01 May 2005)
New Revision: 7507

Modified:
   trunk/gnue-reports/src/base/GRSources.py
Log:
No need for GDataSource.commit any more.

Modified: trunk/gnue-reports/src/base/GRSources.py
===================================================================
--- trunk/gnue-reports/src/base/GRSources.py	2005-05-01 12:17:38 UTC (rev 7506)
+++ trunk/gnue-reports/src/base/GRSources.py	2005-05-01 12:49:33 UTC (rev 7507)
 <at>  <at>  -50,18 +50,8  <at>  <at> 

     # Connect to databases
     self._datasourceDictionary = {}
-    self.walk(self.__initConnections)

 
-  # Used internally by self.prepare()
-  # Connects to databases
-  #
-  # TODO: please go bye-bye
-  def __initConnections(self, object):
-    if object._type == "GRDataSource":
-      object.connect()
-
-
   def getDataSource(self, source):
(Continue reading)

reinhard | 1 May 14:51 2005

[gnue] r7508 - in trunk/gnue-forms/src/uidrivers: html win32

Author: reinhard
Date: 2005-05-01 07:50:59 -0500 (Sun, 01 May 2005)
New Revision: 7508

Modified:
   trunk/gnue-forms/src/uidrivers/html/
   trunk/gnue-forms/src/uidrivers/win32/
Log:
Updated svn:ignore properties.

Property changes on: trunk/gnue-forms/src/uidrivers/html
___________________________________________________________________
Name: svn:ignore
   + *.pyc

Property changes on: trunk/gnue-forms/src/uidrivers/win32
___________________________________________________________________
Name: svn:ignore
   + *.pyc
johannes | 2 May 14:24 2005

[gnue] r7509 - trunk/gnue-common/src/utils

Author: johannes
Date: 2005-05-02 07:24:38 -0500 (Mon, 02 May 2005)
New Revision: 7509

Added:
   trunk/gnue-common/src/utils/dbf.py
Modified:
   trunk/gnue-common/src/utils/
Log:
Implemented our own dBase (XBase) data access driver [read only version]

Property changes on: trunk/gnue-common/src/utils
___________________________________________________________________
Name: svn:ignore
   - *.pyc

   + foobar.dbf
*.pyc

Added: trunk/gnue-common/src/utils/dbf.py
===================================================================
--- trunk/gnue-common/src/utils/dbf.py	2005-05-01 12:50:59 UTC (rev 7508)
+++ trunk/gnue-common/src/utils/dbf.py	2005-05-02 12:24:38 UTC (rev 7509)
 <at>  <at>  -0,0 +1,288  <at>  <at> 
+# GNU Enterprise Common Library - Utilities - DBase driver
+#
+# Copyright 2001-2005 Free Software Foundation
+#
+# This file is part of GNU Enterprise
+#
(Continue reading)

johannes | 2 May 14:31 2005

[gnue] r7510 - trunk/gnue-common/src/datasources/drivers/file

Author: johannes
Date: 2005-05-02 07:31:08 -0500 (Mon, 02 May 2005)
New Revision: 7510

Modified:
   trunk/gnue-common/src/datasources/drivers/file/dbffile.py
Log:
Use our own dbf module

Modified: trunk/gnue-common/src/datasources/drivers/file/dbffile.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/file/dbffile.py	2005-05-02 12:24:38 UTC (rev 7509)
+++ trunk/gnue-common/src/datasources/drivers/file/dbffile.py	2005-05-02 12:31:08 UTC (rev 7510)
 <at>  <at>  -21,10 +21,8  <at>  <at> 
 #
 # $Id$

-def __initplugin__ ():
-  import dbf
-
 from gnue.common.datasources.drivers.file import Base
+from gnue.common.utils import dbf

 
 # =============================================================================
 <at>  <at>  -48,8 +46,6  <at>  <at> 

   def _listFields (self, filename, table):

-    import dbf
(Continue reading)

johannes | 3 May 10:32 2005

[gnue] r7511 - trunk/gnue-common/src/datasources/drivers/file

Author: johannes
Date: 2005-05-03 03:32:55 -0500 (Tue, 03 May 2005)
New Revision: 7511

Modified:
   trunk/gnue-common/src/datasources/drivers/file/Base.py
   trunk/gnue-common/src/datasources/drivers/file/dbffile.py
Log:
Use a simpler form of _loadFile

Modified: trunk/gnue-common/src/datasources/drivers/file/Base.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/file/Base.py	2005-05-02 12:31:08 UTC (rev 7510)
+++ trunk/gnue-common/src/datasources/drivers/file/Base.py	2005-05-03 08:32:55 UTC (rev 7511)
 <at>  <at>  -251,7 +251,7  <at>  <at> 
      <at> param filename: Filename
      <at> param table: Table name (only useful if a file can contain more than one
       table)
-     <at> return: List of fieldname/value dictionaries containing all data of the
-      complete file.
+     <at> return: iterable object of fieldname/value dictionaries containing the
+        records of the file. This object must implement __len__ ().
     """
     return []

Modified: trunk/gnue-common/src/datasources/drivers/file/dbffile.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/file/dbffile.py	2005-05-02 12:31:08 UTC (rev 7510)
+++ trunk/gnue-common/src/datasources/drivers/file/dbffile.py	2005-05-03 08:32:55 UTC (rev 7511)
 <at>  <at>  -64,4 +64,4  <at>  <at> 
(Continue reading)

btami | 3 May 13:29 2005

[gnue] r7512 - trunk/gnue-forms/src/uidrivers/win32

Author: btami
Date: 2005-05-03 06:29:47 -0500 (Tue, 03 May 2005)
New Revision: 7512

Modified:
   trunk/gnue-forms/src/uidrivers/win32/UILoginHandler.py
   trunk/gnue-forms/src/uidrivers/win32/dialogs.py
Log:
new InputDialog class and reworked UILoginHandler using it

Modified: trunk/gnue-forms/src/uidrivers/win32/UILoginHandler.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/win32/UILoginHandler.py	2005-05-03 08:32:55 UTC (rev 7511)
+++ trunk/gnue-forms/src/uidrivers/win32/UILoginHandler.py	2005-05-03 11:29:47 UTC (rev 7512)
 <at>  <at>  -25,277 +25,56  <at>  <at> 
 # NOTES:
 #

-import win32api, win32gui, win32con, commctrl
-import os, struct
+import os

 from gnue.common.datasources import GLoginHandler
 from gnue.common.apps import GConfig, errors
-from gnue.forms.uidrivers.win32.common import getNextId, centerWindow
+from gnue.forms.uidrivers.win32.dialog import InputDialog

-g_registeredClass = 0
-
 # Shortcut
(Continue reading)

johannes | 3 May 14:26 2005

[gnue] r7514 - trunk/gnue-appserver/src/language

Author: johannes
Date: 2005-05-03 07:26:35 -0500 (Tue, 03 May 2005)
New Revision: 7514

Modified:
   trunk/gnue-appserver/src/language/App.py
Log:
Added a method to fetch appserver's current filters

Modified: trunk/gnue-appserver/src/language/App.py
===================================================================
--- trunk/gnue-appserver/src/language/App.py	2005-05-03 12:17:59 UTC (rev 7513)
+++ trunk/gnue-appserver/src/language/App.py	2005-05-03 12:26:35 UTC (rev 7514)
 <at>  <at>  -22,7 +22,7  <at>  <at> 
 # $Id$

 from gnue.common.rpc import client
-from gnue.common.apps import GClientApp
+from gnue.common.apps import GClientApp, i18n

 import Session

 <at>  <at>  -58,6 +58,15  <at>  <at> 

 
   # ---------------------------------------------------------------------------
+  # Get the current set of filters
+  # ---------------------------------------------------------------------------
+
+  def getFilters (self, language = None):
(Continue reading)

johannes | 3 May 14:18 2005

[gnue] r7513 - trunk/gnue-appserver/src/language

Author: johannes
Date: 2005-05-03 07:17:59 -0500 (Tue, 03 May 2005)
New Revision: 7513

Modified:
   trunk/gnue-appserver/src/language/App.py
   trunk/gnue-appserver/src/language/Session.py
Log:
Added parameters to a language.App session

Modified: trunk/gnue-appserver/src/language/App.py
===================================================================
--- trunk/gnue-appserver/src/language/App.py	2005-05-03 11:29:47 UTC (rev 7512)
+++ trunk/gnue-appserver/src/language/App.py	2005-05-03 12:17:59 UTC (rev 7513)
 <at>  <at>  -52,9 +52,9  <at>  <at> 
   # Create a new language interface session (LoginSession)
   # ---------------------------------------------------------------------------

-  def newSession (self, username, password):
+  def newSession (self, username, password, params = {}):

-    return Session.LoginSession (self._sm, username, password)
+    return Session.LoginSession (self._sm, username, password, params)

 
   # ---------------------------------------------------------------------------

Modified: trunk/gnue-appserver/src/language/Session.py
===================================================================
--- trunk/gnue-appserver/src/language/Session.py	2005-05-03 11:29:47 UTC (rev 7512)
(Continue reading)

btami | 4 May 00:06 2005

[gnue] r7515 - trunk/gnue-forms/src/uidrivers/win32

Author: btami
Date: 2005-05-03 17:06:22 -0500 (Tue, 03 May 2005)
New Revision: 7515

Modified:
   trunk/gnue-forms/src/uidrivers/win32/UIdriver.py
   trunk/gnue-forms/src/uidrivers/win32/dialogs.py
Log:
added _getInput to uidriver

Modified: trunk/gnue-forms/src/uidrivers/win32/UIdriver.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/win32/UIdriver.py	2005-05-03 12:26:35 UTC (rev 7514)
+++ trunk/gnue-forms/src/uidrivers/win32/UIdriver.py	2005-05-03 22:06:22 UTC (rev 7515)
 <at>  <at>  -310,6 +310,7  <at>  <at> 

     GDebug.printMesg(6, "Getting clipboard value '%s'" % value)
     event.__result__ = value
+

   def setClipboardContents(self, event):
     GDebug.printMesg(6,"Setting clipboard '%s'" % event.text)
 <at>  <at>  -321,6 +322,7  <at>  <at> 
       win32clipboard.CloseClipboard()
     else:
       GDebug.printMesg(6,'Unable to open clipboard for write')
+

   def setTitle(self, event):
     ui = self._gfObjToUIWidget[event._form]
(Continue reading)


Gmane