web/facet.py
changeset 6662 8862bf4a6dd4
parent 6623 4cb6d319d16d
child 6681 674461009c7c
equal deleted inserted replaced
6660:f5a018f330ac 6662:8862bf4a6dd4
   541             eschema = self._cw.vreg.schema.eschema(self.target_type)
   541             eschema = self._cw.vreg.schema.eschema(self.target_type)
   542         elif self.role == 'subject':
   542         elif self.role == 'subject':
   543             eschema = self._cw.vreg.schema.rschema(self.rtype).objects()[0]
   543             eschema = self._cw.vreg.schema.rschema(self.rtype).objects()[0]
   544         else:
   544         else:
   545             eschema = self._cw.vreg.schema.rschema(self.rtype).subjects()[0]
   545             eschema = self._cw.vreg.schema.rschema(self.rtype).subjects()[0]
   546         return eschema.rdef(self.target_attr).internationalizable
   546         return getattr(eschema.rdef(self.target_attr), 'internationalizable', False)
   547 
   547 
   548     @property
   548     @property
   549     def no_relation(self):
   549     def no_relation(self):
   550         return (not self._cw.vreg.schema.rschema(self.rtype).final
   550         return (not self._cw.vreg.schema.rschema(self.rtype).final
   551                 and self._search_card('?*'))
   551                 and self._search_card('?*'))