Merge lp:~james-w/python-oops-dictconfig/bool-new-only into lp:python-oops-dictconfig

Proposed by James Westby
Status: Merged
Approved by: James Westby
Approved revision: 16
Merged at revision: 15
Proposed branch: lp:~james-w/python-oops-dictconfig/bool-new-only
Merge into: lp:python-oops-dictconfig
Diff against target: 22 lines (+4/-1)
1 file modified
oops_dictconfig/configglue_options.py (+4/-1)
To merge this branch: bzr merge lp:~james-w/python-oops-dictconfig/bool-new-only
Reviewer Review Type Date Requested Status
Anthony Lenton (community) Approve
Review via email: mp+150588@code.launchpad.net

Commit message

Make new_only a BoolOption.

Description of the change

Hi,

This makes new_only a BoolOption so that it can be set correctly with configglue.

Thanks,

James

To post a comment you must log in.
Revision history for this message
Anthony Lenton (elachuni) wrote :

Thanks!

review: Approve
16. By James Westby

Add inherit_id.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'oops_dictconfig/configglue_options.py'
--- oops_dictconfig/configglue_options.py 2013-02-06 17:00:45 +0000
+++ oops_dictconfig/configglue_options.py 2013-02-26 16:17:20 +0000
@@ -24,7 +24,7 @@
24 type=schema.StringOption(24 type=schema.StringOption(
25 help="Type of publisher; amqp or datedir are supported.",25 help="Type of publisher; amqp or datedir are supported.",
26 ),26 ),
27 new_only=schema.StringOption(27 new_only=schema.BoolOption(
28 help="Only publish if a previous publisher hasn't.",28 help="Only publish if a previous publisher hasn't.",
29 ),29 ),
30 error_dir=schema.StringOption(30 error_dir=schema.StringOption(
@@ -49,6 +49,9 @@
49 routing_key=schema.StringOption(49 routing_key=schema.StringOption(
50 help=("For amqp: the routing key for the amqp broker."),50 help=("For amqp: the routing key for the amqp broker."),
51 ),51 ),
52 inherit_id=schema.BoolOption(
53 help="Re-use any oops id that is already present in the oops.",
54 ),
52 )55 )
53 if 'help' not in kwargs:56 if 'help' not in kwargs:
54 kwargs['help'] = "Config for an oops publisher."57 kwargs['help'] = "Config for an oops publisher."

Subscribers

People subscribed via source and target branches