equal
deleted
inserted
replaced
65 self.w(form.form_render(state=dest.eid, trcomment=u'')) |
65 self.w(form.form_render(state=dest.eid, trcomment=u'')) |
66 |
66 |
67 def redirectpath(self, entity): |
67 def redirectpath(self, entity): |
68 return entity.rest_path() |
68 return entity.rest_path() |
69 |
69 |
70 |
70 class WFHistoryView(EntityView): |
71 class WFHistoryVComponent(component.EntityVComponent): |
|
72 """display the workflow history for entities supporting it""" |
|
73 id = 'wfhistory' |
71 id = 'wfhistory' |
74 __select__ = (component.EntityVComponent.__select__ |
72 __select__ = relation_possible('wf_info_for', role='object') |
75 & relation_possible('wf_info_for', role='object')) |
|
76 context = 'navcontentbottom' |
|
77 title = _('Workflow history') |
73 title = _('Workflow history') |
78 |
74 |
79 def cell_call(self, row, col, view=None): |
75 def cell_call(self, row, col, view=None): |
80 _ = self.req._ |
76 _ = self.req._ |
81 eid = self.rset[row][col] |
77 eid = self.rset[row][col] |
100 return |
96 return |
101 if rset: |
97 if rset: |
102 self.wview('table', rset, title=_(self.title), displayactions=False, |
98 self.wview('table', rset, title=_(self.title), displayactions=False, |
103 displaycols=displaycols, headers=headers) |
99 displaycols=displaycols, headers=headers) |
104 |
100 |
|
101 class WFHistoryVComponent(component.EntityVComponent): |
|
102 """display the workflow history for entities supporting it""" |
|
103 id = 'wfhistory' |
|
104 __select__ = WFHistoryView.__select__ & component.EntityVComponent.__select__ |
|
105 context = 'navcontentbottom' |
|
106 title = _('Workflow history') |
|
107 |
|
108 def cell_call(self, row, col, view=None): |
|
109 self.wview('wfhistory', self.rset, row=row, col=col, view=view) |
105 |
110 |
106 # workflow entity types views ################################################# |
111 # workflow entity types views ################################################# |
107 |
112 |
108 class CellView(view.EntityView): |
113 class CellView(view.EntityView): |
109 id = 'cell' |
114 id = 'cell' |