91
91
self._nextURL = canonical_url(newrelease)
92
92
notify(ObjectCreatedEvent(newrelease))
95
99
class ProductReleaseEditView(LaunchpadEditFormView):
96
100
"""Edit view for ProductRelease objects"""
100
field_names = ["summary", "description", "changelog", "codename"]
104
"summary", "description", "changelog", "codename", "version"]
101
105
custom_widget('summary', TextAreaWidget, width=62, height=5)
103
112
@action('Change', name='change')
104
113
def change_action(self, action, data):
105
114
self.updateContextFromData(data)
106
115
self.next_url = canonical_url(self.context)
109
122
class ProductReleaseRdfView(object):
110
123
"""A view that sets its mime-type to application/rdf+xml"""