[entities] Add some entities logic for dc_title

parent 81309594637e
......@@ -16,3 +16,19 @@
# with this program. If not, see <http://www.gnu.org/licenses/>.
"""cubicweb-accidents entity's classes"""
from cubicweb.entities import AnyEntity
class Accident(AnyEntity):
__regid__ = 'Accident'
def dc_title(self):
return u'Accident n° %s' % self.numac
class Vehicule(AnyEntity):
__regid__ = 'Vehicule'
def dc_title(self):
return u'Vehicule n° %s' % self.eid
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment