commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue common/src/GConnections.py designer/templa...


From: Jason Cater
Subject: gnue common/src/GConnections.py designer/templa...
Date: Mon, 16 Sep 2002 15:30:16 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    02/09/16 15:30:16

Modified files:
        common/src     : GConnections.py 
        designer/templates/reports: SimpleReport.py 
        reports/src    : GREngine.py 

Log message:
        added TODO comments about incorrect defaulting of namespaces in reports

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/GConnections.py.diff?tr1=1.39&tr2=1.40&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/templates/reports/SimpleReport.py.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/reports/src/GREngine.py.diff?tr1=1.14&tr2=1.15&r1=text&r2=text

Patches:
Index: gnue/common/src/GConnections.py
diff -c gnue/common/src/GConnections.py:1.39 
gnue/common/src/GConnections.py:1.40
*** gnue/common/src/GConnections.py:1.39        Sat Sep 14 10:59:38 2002
--- gnue/common/src/GConnections.py     Mon Sep 16 15:30:16 2002
***************
*** 76,82 ****
          raise InvalidFormatError, \
             _('The connections file has duplicate source definitions.\n\nFile: 
%s') \
                % location
!       except MissingSectionError:
          raise InvalidFormatError, \
             _('The connections file has no source definitions.\n\nFile: %s') \
                % location
--- 76,82 ----
          raise InvalidFormatError, \
             _('The connections file has duplicate source definitions.\n\nFile: 
%s') \
                % location
!       except MissingSectionHeaderError:
          raise InvalidFormatError, \
             _('The connections file has no source definitions.\n\nFile: %s') \
                % location
Index: gnue/designer/templates/reports/SimpleReport.py
diff -c gnue/designer/templates/reports/SimpleReport.py:1.2 
gnue/designer/templates/reports/SimpleReport.py:1.3
*** gnue/designer/templates/reports/SimpleReport.py:1.2 Fri Aug 16 00:51:28 2002
--- gnue/designer/templates/reports/SimpleReport.py     Mon Sep 16 15:30:16 2002
***************
*** 165,170 ****
--- 165,173 ----
            'type': 'object',
            'name': 'dts%s' %  tableKey })
  
+     # TODO: This needs to add namespaces!
+     # TODO: When this happens, remove the default namespace
+     # TODO: hack in GNUe Reports' GREngine
      layout = self.AddElement('layout', self.report, {})
  
      section = self.AddElement('section', layout, {'name': "detailes", 
'source': datasource.name})
Index: gnue/reports/src/GREngine.py
diff -c gnue/reports/src/GREngine.py:1.14 gnue/reports/src/GREngine.py:1.15
*** gnue/reports/src/GREngine.py:1.14   Mon Sep 16 12:18:00 2002
--- gnue/reports/src/GREngine.py        Mon Sep 16 15:30:16 2002
***************
*** 85,93 ****
      # Hmm... maybe this should be a little cleaner
      namespace = report._namespace
  
!     # if no namespace provided set namespace to SimpleTabulation
!     if namespace==None:
!       namespace="GNUe:Reports:SimpleTabulation"
  
      # Create a Filter Adapter
      filtAdapter = self.filters.loadFilter(namespace,
--- 85,97 ----
      # Hmm... maybe this should be a little cleaner
      namespace = report._namespace
  
! ##
! ## TODO: This is incorrect... it's plausible to not have a namespace.
! ## TODO: I am leaving it until the SimpleReport wizard is fixed!
! ##
! ##    # if no namespace provided set namespace to SimpleTabulation
! ##    if namespace==None:
! ##      namespace="GNUe:Reports:SimpleTabulation"
  
      # Create a Filter Adapter
      filtAdapter = self.filters.loadFilter(namespace,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]