BIND 10 #1506: extract the common patterns from python modules
BIND 10 Development
do-not-reply at isc.org
Fri Dec 16 17:14:26 UTC 2011
#1506: extract the common patterns from python modules
-------------------------------------+-------------------------------------
Reporter: jelte | Owner:
Type: task | Status: new
Priority: major | Milestone: New
Component: Unclassified | Tasks
Sensitive: 0 | Keywords:
Sub-Project: DNS | Defect Severity: N/A
Estimated Difficulty: 0 | Feature Depending on Ticket:
Total Hours: 0 | Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
We have a number of python modules now, and most of those use very similar
code (for instance for startup, option parsing, catching signals, etc.),
or their code can be made to be very similar.
The suggestion is to extract those pieces, and not have duplicate code.
An addendum is that the dummy module for b10-ddns does a few things a tiny
bit differently (for instance no global for catching signals, and a
separate main() function), that we should apply to other modules too. This
should automatically take care of that (Assuming those things are used in
this 'extracted' code)
--
Ticket URL: <http://bind10.isc.org/ticket/1506>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list