~ubuntu-branches/ubuntu/utopic/jenkins-job-builder/utopic

« back to all changes in this revision

Viewing changes to jenkins_jobs/modules/notifications.py

  • Committer: Package Import Robot
  • Author(s): Paul Belanger
  • Date: 2013-07-28 10:32:09 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130728103209-6q9hrv6oljkp0qng
Tags: 0.5.0-1
* New upstream release (Closes: #718126)
* debian/patches: Merged upstream
  - 0001-Documentation-fixes-to-make-Sphinx-happy.patch
  - 0002-Remove-setuptools-git-from-setup.py.patch
* debian/patches: Add upstream fixes for packaging
  - 0001-Fixing-documentation.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
class Notifications(jenkins_jobs.modules.base.Base):
62
62
    sequence = 22
63
63
 
 
64
    component_type = 'notification'
 
65
    component_list_type = 'notifications'
 
66
 
64
67
    def gen_xml(self, parser, xml_parent, data):
65
68
        properties = xml_parent.find('properties')
66
69
        if properties is None:
75
78
            endpoints_element = XML.SubElement(notify_element, 'endpoints')
76
79
 
77
80
            for endpoint in notifications:
78
 
                self._dispatch('notification', 'notifications',
79
 
                               parser, endpoints_element, endpoint)
 
81
                self.registry.dispatch('notification',
 
82
                                       parser, endpoints_element, endpoint)