equal
deleted
inserted
replaced
101 if state.state not in workflow.waiting_states: |
101 if state.state not in workflow.waiting_states: |
102 return None |
102 return None |
103 return InnerAdminDisplayForm.__new__(cls) |
103 return InnerAdminDisplayForm.__new__(cls) |
104 |
104 |
105 fields = field.Fields(IWorkflowState).select('state', 'state_urgency') + \ |
105 fields = field.Fields(IWorkflowState).select('state', 'state_urgency') + \ |
106 field.Fields(IWorkflowStateHistoryItem).select('comment') |
106 field.Fields(IWorkflowStateHistoryItem).select('comment') |
107 |
107 |
108 def updateWidgets(self, prefix=None): |
108 def updateWidgets(self, prefix=None): |
109 super(SharedContentWorkflowWaitingState, self).updateWidgets(prefix) |
109 super(SharedContentWorkflowWaitingState, self).updateWidgets(prefix) |
110 state = IWorkflowState(self.context) |
110 state = IWorkflowState(self.context) |
111 if 'state' in self.widgets: |
111 if 'state' in self.widgets: |
152 |
152 |
153 legend = _("Current version") |
153 legend = _("Current version") |
154 weight = 30 |
154 weight = 30 |
155 |
155 |
156 fields = field.Fields(IWorkflowState).select('version_id', 'state') + \ |
156 fields = field.Fields(IWorkflowState).select('version_id', 'state') + \ |
157 field.Fields(IWfSharedContent).select('creation_label') + \ |
157 field.Fields(IWfSharedContent).select('creation_label') + \ |
158 field.Fields(IWfSharedContentRoles).select('owner') + \ |
158 field.Fields(IWfSharedContentRoles).select('owner') + \ |
159 field.Fields(IWfSharedContent).select('last_update_label') + \ |
159 field.Fields(IWfSharedContent).select('last_update_label') + \ |
160 field.Fields(IWfSharedContent).select('modifiers') |
160 field.Fields(IWfSharedContent).select('modifiers') |
161 |
161 |
162 def updateWidgets(self, prefix=None): |
162 def updateWidgets(self, prefix=None): |
163 super(SharedContentWorkflowVersionSummary, self).updateWidgets(prefix) |
163 super(SharedContentWorkflowVersionSummary, self).updateWidgets(prefix) |
164 if 'version_id' in self.widgets: |
164 if 'version_id' in self.widgets: |
165 self.widgets['version_id'].label = _("Version") |
165 self.widgets['version_id'].label = _("Version") |
181 """Shared content workflow history summary""" |
181 """Shared content workflow history summary""" |
182 |
182 |
183 legend = _("Content history") |
183 legend = _("Content history") |
184 |
184 |
185 fields = field.Fields(IWorkflowPublicationInfo).select('first_publication_date') + \ |
185 fields = field.Fields(IWorkflowPublicationInfo).select('first_publication_date') + \ |
186 field.Fields(IWfSharedContent).select('first_owner') |
186 field.Fields(IWfSharedContent).select('first_owner') |
187 |
187 |
188 weight = 40 |
188 weight = 40 |
189 |
189 |
190 def updateWidgets(self, prefix=None): |
190 def updateWidgets(self, prefix=None): |
191 super(SharedContentWorkflowHistorySummary, self).updateWidgets(prefix) |
191 super(SharedContentWorkflowHistorySummary, self).updateWidgets(prefix) |