~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Julian Edwards
  • Date: 2011-07-28 20:46:18 UTC
  • mfrom: (13553 devel)
  • mto: This revision was merged to the branch mainline in revision 13555.
  • Revision ID: julian.edwards@canonical.com-20110728204618-tivj2wx2oa9s32bx
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2010 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:
562
562
    def page_title(self):
563
563
        return self.label
564
564
 
565
 
    @property
566
 
    def page_description(self):
567
 
        return self.context.summary
568
 
 
569
565
    def initialize(self):
570
566
        # The review that the user requested on this spec, if any.
571
567
        self.notices = []