@Curtis: Just found this out:
class NewSpecificationView(LaunchpadFormView): """An abstract view for creating a new specification."""
page_title = 'Register a blueprint in Launchpad' label = "Register a new blueprint"
@action(_('Register Blueprint'), name='register') def register(self, action, data): """Registers a new specification.""" self.transform(data) spec = getUtility(ISpecificationSet).new( owner = self.user, name = data.get('name'), title = data.get('title'), specurl = data.get('specurl'), summary = data.get('summary'), product = data.get('product'), drafter = data.get('drafter'), """<---- Could changing this to drafter = self.user make things work??""" assignee = data.get('assignee'), approver = data.get('approver'), distribution = data.get('distribution'), definition_status = data.get('definition_status'))
@Curtis: Just found this out:
class NewSpecificatio nView(Launchpad FormView) :
"""An abstract view for creating a new specification."""
page_title = 'Register a blueprint in Launchpad'
label = "Register a new blueprint"
@action( _('Register Blueprint'), name='register')
"""Registers a new specification."""
self.transform (data) ISpecificationS et).new( 'specurl' ), 'summary' ), 'product' ), 'drafter' ), """<---- Could changing this to drafter = self.user make things work??"""
assignee = data.get( 'assignee' ),
approver = data.get( 'approver' ),
distributi on = data.get( 'distribution' ),
definition _status = data.get( 'definition_ status' ))
def register(self, action, data):
spec = getUtility(
owner = self.user,
name = data.get('name'),
title = data.get('title'),
specurl = data.get(
summary = data.get(
product = data.get(
drafter = data.get(