--- ECHO_content/ECHO_collection.py 2008/11/07 14:51:54 1.295 +++ ECHO_content/ECHO_collection.py 2008/11/16 12:15:42 1.296 @@ -422,7 +422,15 @@ class ECHO_resource(CatalogAware,Folder, default_catalog='resourceCatalog' # viewClassificationList=viewClassificationListMaster - + def setPID(self,pid): + """set the pid""" + self.pid=pid + return True + + def getPID(self): + """get the pid""" + return getattr(self,'pid',None) + def PrincipiaSearchSource(self): """Return cataloguable key for ourselves.""" return str(self) @@ -3531,8 +3539,10 @@ class ECHO_root(Folder,Persistent,Implic """ret attribute if existing""" try: - return getattr(found,field).decode('ascii','ignore') + return getattr(found,field)#.decode('utf-8','ignore') except: + logging.error("can't: decode: %s"%repr(field)) + logging.error(" %s %s"%(sys.exc_info()[0],sys.exc_info()[1])) return "" security.declarePublic('getImageTag')