Comment 4 for bug 125377

Revision history for this message
Vikram Dhillon (dhillon-v10) wrote :

@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'))