Diff for /ECHO_content/ECHO_collection.py between versions 1.138 and 1.139

version 1.138, 2004/07/14 14:48:59 version 1.139, 2004/07/16 17:49:44
Line 486  class ECHO_resource(Folder,Persistent): Line 486  class ECHO_resource(Folder,Persistent):
   
     getSubCols = ECHO_helpers.getSubCols      getSubCols = ECHO_helpers.getSubCols
   
       security.declareProtected('View','index_html')
       def getRDF(self):
           """rdf"""
           ret=""
           about="""<RDF:Description about="%s">"""
           name="""<ECHONAVIGATION:name>%s</ECHONAVIGATION:name>"""
           link="""<ECHONAVIGATION:link>%s</ECHONAVIGATION:link>"""
           urn="urn:"+re.sub('/',':',self.absolute_url())
   
           about2=about%urn
           name2=name%self.getId()
           link2=link%self.link
   
           ret=about2+"\n"+name2+"\n"+link2+"\n"+"</RDF:description>"
           return ret
           
           
     def getAccessRightSelectorHTML(self,outlook="select"):      def getAccessRightSelectorHTML(self,outlook="select"):
         """htmlselector"""          """htmlselector"""
         values=['free','mpiwg']          values=['free','mpiwg']
Line 1472  class ECHO_collection(Folder, Persistent Line 1489  class ECHO_collection(Folder, Persistent
   
     path="/mpiwg/online/permanent/shipbuilding"      path="/mpiwg/online/permanent/shipbuilding"
   
       def getRDF(self):
           """rdf of the collection"""
           contents=self.ZopeFind(self,obj_metatypes=['ECHO_group','ECHO_resource','ECHO_collection'])
   
           about="""<RDF:Description about="%s">"""
           name="""<ECHONAVIGATION:name>%s</ECHONAVIGATION:name>"""
           
           urn="urn:"+re.sub('/',':',self.absolute_url())
   
           about2=about%urn
           name2=name%self.getId()
           
   
           ret=about2+"\n"+name2+"\n"+"</RDF:description>"
           urn="urn:"+re.sub('/',':',self.absolute_url())
           li="""<RDF:li resource="%s" />\n"""
   
           
           for content in contents:
               ret+=content[1].getRDF()+"\n"
               
           ret+="""<RDF:Seq about="%s"/>\n"""%urn
           for content in contents:
               nurn="urn:"+re.sub('/',':',content[1].absolute_url())
               ret+=li%nurn
           return ret+"</rdf:Seq>"
           
           
     def changeLabels(self):      def changeLabels(self):
         """change form"""          """change form"""
         pt=PageTemplateFile('Products/ECHO_content/zpt/changeLabelsForm').__of__(self)          pt=PageTemplateFile('Products/ECHO_content/zpt/changeLabelsForm').__of__(self)
Line 2174  class ECHO_group(ECHO_collection): Line 2219  class ECHO_group(ECHO_collection):
         )          )
           
     security.declareProtected('View','index_html')      security.declareProtected('View','index_html')
   
       def getRDF(self):
           """rdf of the collection"""
           contents=self.ZopeFind(self,obj_metatypes=['ECHO_group','ECHO_resource','ECHO_collection'])
           
           urn="urn:"+re.sub('/',':',self.absolute_url())
           li="""<RDF:li resource="%s" />\n"""
           ret=""
           
           for content in contents:
               ret+=content[1].getRDF()+"\n"
               
           ret+="""<RDF:Seq about="%s"/>\n"""%urn
           for content in contents:
               nurn="urn:"+re.sub('/',':',content[1].absolute_url())
               ret+=li%nurn
           return ret+"</rdf:Seq>"
           
     def index_html(self):      def index_html(self):
         """standard page"""          """standard page"""
         displayedObjects=self.ZopeFind(self,obj_metatypes=displayTypes)          displayedObjects=self.ZopeFind(self,obj_metatypes=displayTypes)

Removed from v.1.138  
changed lines
  Added in v.1.139


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