web/views/cwuser.py
changeset 3457 0924d0d08d60
parent 3451 6b46d73823f5
child 3460 e4843535db25
equal deleted inserted replaced
3456:1a63a252601f 3457:0924d0d08d60
    45         for i in xrange(self.cw_rset.rowcount):
    45         for i in xrange(self.cw_rset.rowcount):
    46             self.cell_call(i, 0)
    46             self.cell_call(i, 0)
    47         self.w(u'</rdf:RDF>\n')
    47         self.w(u'</rdf:RDF>\n')
    48 
    48 
    49     def cell_call(self, row, col):
    49     def cell_call(self, row, col):
    50         entity = self.complete_entity(row, col)
    50         entity = self.cw_rset.complete_entity(row, col)
    51         self.w(u'''<foaf:PersonalProfileDocument rdf:about="">
    51         self.w(u'''<foaf:PersonalProfileDocument rdf:about="">
    52                       <foaf:maker rdf:resource="%s"/>
    52                       <foaf:maker rdf:resource="%s"/>
    53                       <foaf:primaryTopic rdf:resource="%s"/>
    53                       <foaf:primaryTopic rdf:resource="%s"/>
    54                    </foaf:PersonalProfileDocument>''' % (entity.absolute_url(), entity.absolute_url()))
    54                    </foaf:PersonalProfileDocument>''' % (entity.absolute_url(), entity.absolute_url()))
    55         self.w(u'<foaf:Person rdf:ID="%s">\n' % entity.eid)
    55         self.w(u'<foaf:Person rdf:ID="%s">\n' % entity.eid)