commit-gnue
[Top][All Lists]
Advanced

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

gnue/reports/src/adapters/filters/Standard/Base...


From: Jason Cater
Subject: gnue/reports/src/adapters/filters/Standard/Base...
Date: Mon, 07 Apr 2003 04:25:04 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    03/04/07 04:25:04

Modified files:
        reports/src/adapters/filters/Standard/Base/psutils: 
                                                            
PrinterDefinition.py 

Log message:
        added import support

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/reports/src/adapters/filters/Standard/Base/psutils/PrinterDefinition.py.diff?tr1=1.5&tr2=1.6&r1=text&r2=text

Patches:
Index: 
gnue/reports/src/adapters/filters/Standard/Base/psutils/PrinterDefinition.py
diff -c 
gnue/reports/src/adapters/filters/Standard/Base/psutils/PrinterDefinition.py:1.5
 
gnue/reports/src/adapters/filters/Standard/Base/psutils/PrinterDefinition.py:1.6
*** 
gnue/reports/src/adapters/filters/Standard/Base/psutils/PrinterDefinition.py:1.5
    Mon Apr  7 03:18:57 2003
--- 
gnue/reports/src/adapters/filters/Standard/Base/psutils/PrinterDefinition.py    
    Mon Apr  7 04:25:04 2003
***************
*** 38,43 ****
--- 38,50 ----
  class PrinterDefinition:
  
    def __init__(self, location):
+     self.applyFile(location)
+ 
+ 
+   def applyFile(self, location):
+ 
+     # Get a file handle.
+     # location can be either a string, or a buffer
      if hasattr(location,'read'):
        handle = location
        close = 0
***************
*** 45,54 ****
        handle = openResource(location)
        close = 1
  
-     currentUiOption = None
  
      line = handle.readline()
- 
      while line is not None:
  
        line = line.strip()
--- 52,62 ----
        handle = openResource(location)
        close = 1
  
  
+     #
+     # Process each line of the file
+     #
      line = handle.readline()
      while line is not None:
  
        line = line.strip()
***************
*** 131,139 ****
--- 139,153 ----
          # Good ol' string type
          datatype = 'S'
  
+       # Handle any imports
+       if keyword == 'Import':
+         self.applyFile(data)
+ 
  
        line = handle.readline()
  
+ 
+     # If we opened a file, close it. 
      if close:
        handle.close()
  




reply via email to

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