Added "excellon_zeros" application default. It get propagated to the Excellon class.

This commit is contained in:
Juan Pablo Caram
2015-01-18 21:10:19 -05:00
parent 34a6b60053
commit 670dd48127
2 changed files with 24 additions and 6 deletions

View File

@@ -1778,7 +1778,11 @@ class Excellon(Geometry):
================ ====================================
"""
def __init__(self, zeros="L"):
defaults = {
"zeros": "L"
}
def __init__(self, zeros=None):
"""
The constructor takes no parameters.
@@ -1797,7 +1801,7 @@ class Excellon(Geometry):
# Trailing "T" or leading "L" (default)
#self.zeros = "T"
self.zeros = zeros
self.zeros = zeros or self.defaults["zeros"]
# Attributes to be included in serialization
# Always append to it because it carries contents