1
# Copyright 2009-2010 Canonical Ltd. This software is licensed under the
1
# Copyright 2009-2011 Canonical Ltd. This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
4
"""Specification views."""
200
200
"""Registers a new specification."""
201
201
self.transform(data)
202
202
spec = getUtility(ISpecificationSet).new(
204
name = data.get('name'),
205
title = data.get('title'),
206
specurl = data.get('specurl'),
207
summary = data.get('summary'),
208
product = data.get('product'),
209
drafter = data.get('drafter'),
210
assignee = data.get('assignee'),
211
approver = data.get('approver'),
212
distribution = data.get('distribution'),
213
definition_status = data.get('definition_status'))
204
name=data.get('name'),
205
title=data.get('title'),
206
specurl=data.get('specurl'),
207
summary=data.get('summary'),
208
product=data.get('product'),
209
drafter=data.get('drafter'),
210
assignee=data.get('assignee'),
211
approver=data.get('approver'),
212
distribution=data.get('distribution'),
213
definition_status=data.get('definition_status'))
214
214
# Propose the specification as a series goal, if specified.
215
215
series = data.get('series')
216
216
if series is not None: