Commit 9a9a6065 authored by Vincent Michel's avatar Vincent Michel
Browse files

[timeline] Add an access point to add additional data for subjects in timeline, closes #4084898

parent 15dfbc535892
......@@ -74,8 +74,14 @@ else:
if date:
dates.append({'startDate': ustrftime(date, '%Y,%m,%d'),
'headline': drugtake.view('incontext')})
# Add additional data
self.additional_infos(entity, d)
self.w(json.dumps(d))
def additional_infos(self, entity, d):
""" Allow to override this view with specific infos """
pass
def registration_callback(vreg):
vreg.register(VeriteCoTimelineJsonDataView)
......
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