~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/blueprints/browser/specification.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-22 04:45:35 UTC
  • mfrom: (14565.2.24 apocalyptic-pieces)
  • Revision ID: launchpad@pqm.canonical.com-20111222044535-jbjyzq3hzwiy7g20
[rs=sinzui][no-qa] Move javascript and scripts to lp. Dismantle
 mailnotification.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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).
3
3
 
4
4
"""Specification views."""
200
200
        """Registers a new specification."""
201
201
        self.transform(data)
202
202
        spec = getUtility(ISpecificationSet).new(
203
 
            owner = self.user,
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'))
 
203
            owner=self.user,
 
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: