Skip to content
Snippets Groups Projects
Commit fd89cce99dba authored by Laure Bourgois's avatar Laure Bourgois
Browse files

reusing foaf view in sioc view to describe a blog author.

parent 894efdba6a8b
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,5 @@
entity = rset.get_entity(0, 0)
self.w(u'<sioc:has_contenainer rdf:resource="%s"/>\n' % html_escape(entity.absolute_url()))
if entity.creator:
rql = ('Any E WHERE E eid %s'% entity.creator.eid)
rset = self.req.execute(rql)
euser = rset.get_entity(0,0)
foaf = entity.creator.view('foaf')
self.w(u'<sioc:has_creator>\n')
......@@ -88,6 +86,6 @@
self.w(u'<sioc:has_creator>\n')
self.w(u'<sioc:User rdf:about="%s">\n' % euser.absolute_url())
self.wview('foaf_usable', rset)
self.w(u'<sioc:User rdf:about="%s">\n' % entity.creator.absolute_url())
self.w('%s' % foaf)
self.w(u'</sioc:User>\n')
self.w(u'</sioc:has_creator>\n')
self.w(u' </sioc:Post>\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment