equal
deleted
inserted
replaced
713 rql = '%s ORDERBY Z DESC WHERE X modification_date Z, %s' % args |
713 rql = '%s ORDERBY Z DESC WHERE X modification_date Z, %s' % args |
714 return rql |
714 return rql |
715 |
715 |
716 # generic vocabulary methods ############################################## |
716 # generic vocabulary methods ############################################## |
717 |
717 |
718 @deprecated('see new form api') |
718 @deprecated('[3.4] see new form api') |
719 def vocabulary(self, rtype, role='subject', limit=None): |
719 def vocabulary(self, rtype, role='subject', limit=None): |
720 """vocabulary functions must return a list of couples |
720 """vocabulary functions must return a list of couples |
721 (label, eid) that will typically be used to fill the |
721 (label, eid) that will typically be used to fill the |
722 edition view's combobox. |
722 edition view's combobox. |
723 |
723 |
939 return eobj.get_value(self._attrname) |
939 return eobj.get_value(self._attrname) |
940 |
940 |
941 def __set__(self, eobj, value): |
941 def __set__(self, eobj, value): |
942 # XXX bw compat |
942 # XXX bw compat |
943 # would be better to generate UPDATE queries than the current behaviour |
943 # would be better to generate UPDATE queries than the current behaviour |
944 eobj.warning("deprecated usage, don't use 'entity.attr = val' notation)") |
944 eobj.warning("[3.4] deprecated usage, don't use 'entity.attr = val' notation)") |
945 eobj[self._attrname] = value |
945 eobj[self._attrname] = value |
946 |
946 |
947 |
947 |
948 class Relation(object): |
948 class Relation(object): |
949 """descriptor that controls schema relation access""" |
949 """descriptor that controls schema relation access""" |