[Zope-CVS] CVS: Packages/Moztop/moztopsupport/rdf - container.py:1.5
Stephan Richter
srichter@cbu.edu
Fri, 21 Mar 2003 11:59:20 -0500
Update of /cvs-repository/Packages/Moztop/moztopsupport/rdf
In directory cvs.zope.org:/tmp/cvs-serv23505/moztopsupport/rdf
Modified Files:
container.py
Log Message:
Some more cleanup.
=== Packages/Moztop/moztopsupport/rdf/container.py 1.4 => 1.5 ===
--- Packages/Moztop/moztopsupport/rdf/container.py:1.4 Fri Mar 21 11:56:23 2003
+++ Packages/Moztop/moztopsupport/rdf/container.py Fri Mar 21 11:59:19 2003
@@ -157,7 +157,7 @@
available_types = utility.getAvailableResourceTypes()
rdf = ""
for type in available_types:
- rdf += _resource_node % {
+ rdf += self._resource_node % {
'resource_type' : ''.join(type.lower().split()),
'title' : type}
return rdf
@@ -167,15 +167,13 @@
if not smut.hasLocalServiceManager(self.context):
raise ComponentLookupError(
'Local ServiceManager could not be found')
+
self.request.response.setHeader('content-type', 'text/xml')
return self._template()
_template = ViewPageTemplateFile("resource_types.pt")
-
-# Some useful raw RDF snippets.
-
-_resource_node = '''\
+ _resource_node = '''\
<rdf:Description about="urn:moztop:resourcetypes:%(resource_type)s">
<dc:title>%(title)s</dc:title>
<oscom:styleid>%(resource_type)s</oscom:styleid>