~stylistica/mailman/user_preferences

« back to all changes in this revision

Viewing changes to src/mailman/core/switchboard.py

  • Committer: Barry Warsaw
  • Date: 2013-01-20 21:23:09 UTC
  • mfrom: (7199.1.8 mailman)
  • Revision ID: barry@list.org-20130120212309-cjul200tfbmcae7v
 * Non-queue runners should not create ``var/queue`` subdirectories.  Fixed by
   Sandesh Kumar Agrawal. (LP: #1095422)

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
        name = conf.name.split('.')[-1]
267
267
        assert name not in config.switchboards, (
268
268
            'Duplicate runner name: {0}'.format(name))
269
 
        substitutions = config.paths
270
 
        substitutions['name'] = name
271
 
        path = expand(conf.path, substitutions)
272
 
        config.switchboards[name] = Switchboard(name, path)
 
269
        # Path is empty for non-queue runners.  Check for path and create
 
270
        # switchboard instances only for queue runners.
 
271
        if conf.path:
 
272
            substitutions = config.paths
 
273
            substitutions['name'] = name
 
274
            path = expand(conf.path, substitutions)
 
275
            config.switchboards[name] = Switchboard(name, path)