/[cvs]/nfo/projects/netfraggle/bin/fraggleParserXML.py
ViewVC logotype

Diff of /nfo/projects/netfraggle/bin/fraggleParserXML.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by xabbu, Wed Aug 25 21:41:48 2004 UTC revision 1.4 by xabbu, Thu Aug 26 23:10:12 2004 UTC
# Line 23  class fraggleParserXML: Line 23  class fraggleParserXML:
23          try:          try:
24              dom = self.reader.fromStream(input)              dom = self.reader.fromStream(input)
25          except:          except:
26              fraggleError.errorFileNotFound()              fraggleError.errorXMLStreamNotValid()
27          return dom          return dom
28            
29      def printXML(self,inputDom,outputLocation):      def printXML(self,inputDom,outputLocation):
# Line 31  class fraggleParserXML: Line 31  class fraggleParserXML:
31              file = open(outputLocation,"w")              file = open(outputLocation,"w")
32              self.reader.PrettyPrint(inputDom,file)              self.reader.PrettyPrint(inputDom,file)
33          except:          except:
34              fraggleError.errorFileNotFound()              fraggleError.errorFileNotFound(outputLocation)
35                            
36      def marshalXML(self,values,outputLocation):      def marshalXML(self,values,outputLocation):
37          try:          try:
# Line 39  class fraggleParserXML: Line 39  class fraggleParserXML:
39             # self.marshall.dump(values,file)             # self.marshall.dump(values,file)
40              generic.dump(values,file)              generic.dump(values,file)
41          except:          except:
42              fraggleError.errorFileNotFound()              fraggleError.errorFileNotFound(outputLocation)
43                    
44                                    
45          #print generic.dumps(values)          #print generic.dumps(values)
# Line 48  class fraggleParserXML: Line 48  class fraggleParserXML:
48          try:          try:
49              file = open(inputLocation,"r")              file = open(inputLocation,"r")
50          except:          except:
51              fraggleError.errorFileNotFound()              fraggleError.errorFileNotFound(inputLocation)
52          return generic.load(file)          return generic.load(file)
53            

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed