Diff for /MPIWGWeb/Attic/MPIWGHelper.py between versions 1.1.2.1 and 1.1.2.5

version 1.1.2.1, 2008/06/24 11:16:27 version 1.1.2.5, 2008/08/27 21:08:40
Line 1 Line 1
   from types import *
   import logging
 definedFields=['WEB_title','xdata_01','xdata_02','xdata_03','xdata_04','xdata_05','xdata_06','xdata_07','xdata_08','xdata_09','xdata_10','xdata_11','xdata_12','xdata_13','WEB_project_header','WEB_project_description','WEB_related_pub']  definedFields=['WEB_title','xdata_01','xdata_02','xdata_03','xdata_04','xdata_05','xdata_06','xdata_07','xdata_08','xdata_09','xdata_10','xdata_11','xdata_12','xdata_13','WEB_project_header','WEB_project_description','WEB_related_pub']
   
 checkFields = ['xdata_01']  checkFields = ['xdata_01']
Line 21  def sortStopWordsF(self,xo,yo): Line 23  def sortStopWordsF(self,xo,yo):
     if not hasattr(self,'_v_stopWords'):      if not hasattr(self,'_v_stopWords'):
         self._v_stopWords=self.stopwords_en.data.split("\n")          self._v_stopWords=self.stopwords_en.data.split("\n")
           
     x=str(xo[1])      x=unicodify(xo[1])
     y=str(yo[1])      y=unicodify(yo[1])
           
     strx=x.split(" ")      strx=x.split(" ")
     stry=y.split(" ")      stry=y.split(" ")
Line 75  def sortI(x,y): Line 77  def sortI(x,y):
   
 def unicodify(str):  def unicodify(str):
     """decode str (utf-8 or latin-1 representation) into unicode object"""      """decode str (utf-8 or latin-1 representation) into unicode object"""
       logging.error("unicodify: %s"%str)
     if not str:      if not str:
         return ""          return ""
     if type(str) is StringType:      if type(str) is StringType:

Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.5


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