version 1.208, 2005/02/02 18:13:59
|
version 1.209, 2005/02/07 18:29:07
|
Line 968 class ECHO_resource(Folder,Persistent,EC
|
Line 968 class ECHO_resource(Folder,Persistent,EC
|
|
|
|
|
def getMDValue(self,fieldName,empty=None): |
def getMDValue(self,fieldName,empty=None): |
if empty: |
if not empty: |
return self.metaDataHash.get(fieldName,'!!NOT USED HERE in Type: %s'%self.contentType) |
return self.metaDataHash.get(fieldName,'!!NOT USED HERE in Type: %s'%self.contentType) |
|
|
else: |
else: |
Line 1065 class ECHO_resource(Folder,Persistent,EC
|
Line 1065 class ECHO_resource(Folder,Persistent,EC
|
if ret == "": |
if ret == "": |
return None |
return None |
else: |
else: |
|
|
return ret |
return ret |
except: |
except: |
return None |
return None |
Line 1979 class ECHO_collection(Folder, Persistent
|
Line 1980 class ECHO_collection(Folder, Persistent
|
elif hasattr(self,'collection_index_template'): |
elif hasattr(self,'collection_index_template'): |
ret=self.collection_index_template() |
ret=self.collection_index_template() |
elif hasattr(self,'main_index_template'): |
elif hasattr(self,'main_index_template'): |
ret=self.main_index_template() |
|
|
ret=self.main_index_template.__of__(self)(self.main_template) |
else: |
else: |
pt=zptFile(self, 'zpt/ECHO_main_index_template_standard.zpt') |
pt=zptFile(self, 'zpt/ECHO_main_index_template_standard.zpt') |
pt.content_type="text/html" |
pt.content_type="text/html" |