branch | stable |
changeset 8201 | 2ceb28e6aa76 |
parent 7990 | a673d1d9a738 |
child 8206 | f5f874d8a4f4 |
--- a/web/views/primary.py Wed Feb 08 14:32:35 2012 +0100 +++ b/web/views/primary.py Wed Feb 08 14:30:51 2012 +0100 @@ -419,7 +419,7 @@ __regid__ = 'attribute' __select__ = EntityView.__select__ & match_kwargs('rtype') - def entity_call(self, entity, rtype, role, **kwargs): + def entity_call(self, entity, rtype, role='subject', **kwargs): if self._cw.vreg.schema.rschema(rtype).final: self.w(entity.printable_value(rtype)) else: