Diff for /OSA_system2/OSAS_helpers.py between versions 1.2 and 1.3

version 1.2, 2004/12/23 08:30:56 version 1.3, 2004/12/23 10:48:28
Line 2 Line 2
 import os.path  import os.path
 from types import *  from types import *
 import xml.dom.minidom  import xml.dom.minidom
   import zLOG
   
 OSASObjectTypes=['OSAS_metaDataFile','OSAS_dir','OSAS_file','OSAS_imageFolder','OSAS_dir_archive','OSAS_file_archive']  OSASObjectTypes=['OSAS_metaDataFile','OSAS_dir','OSAS_file','OSAS_imageFolder','OSAS_dir_archive','OSAS_file_archive']
 OSASExcludedFiles=['TheVolumeSettingsFolder','TheFindByContentFolder']  OSASExcludedFiles=['TheVolumeSettingsFolder','TheFindByContentFolder']
Line 65  def getMetaInfoFromXML(path,xmlInfo): Line 66  def getMetaInfoFromXML(path,xmlInfo):
                 
 #        html=html.encode('utf-8','replace')+getBib(bib.childNodes).encode('utf-8','replace')  #        html=html.encode('utf-8','replace')+getBib(bib.childNodes).encode('utf-8','replace')
                 
     return html.encode('utf-8')      
       return html
   
 def getMetaFile(self,path):  def getMetaFile(self,path):
     """get index.meta and translate it to HTML"""      """get index.meta and translate it to HTML"""
Line 122  def getMetaFile(self,path): Line 124  def getMetaFile(self,path):
                 
 #        html=html.encode('utf-8','replace')+getBib(bib.childNodes).encode('utf-8','replace')  #        html=html.encode('utf-8','replace')+getBib(bib.childNodes).encode('utf-8','replace')
                 
        return html.encode('utf-8')         return html
   
 def getBib(nodelist):  def getBib(nodelist):
     """ translate bibliographical entries """      """ translate bibliographical entries """

Removed from v.1.2  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>