SET
acfb74335b
Fixed the Optionable._type method for empty lists.
2020-08-11 13:20:01 -03:00
Salvador E. Tropea
61909127cd
Fixed initialization of empty sub-options.
2020-08-05 19:53:57 -03:00
Salvador E. Tropea
7dc94bf7be
Added default output file name pattern.
...
Can be applied to all outputs.
2020-07-23 18:26:03 -03:00
Salvador E. Tropea
de6835d366
Fixed import no longer used.
2020-07-22 18:34:26 -03:00
Salvador E. Tropea
53d840a5b1
Delayed the outputs configuration until last moment.
...
Now we set the data tree, but only configure the used outputs.
This gives a chance to setup things like the PCB and SCH meta-data.
2020-07-22 18:26:12 -03:00
Salvador E. Tropea
d5168c37cd
Added filename expansion for SCH related outputs.
...
pdf_sch_print is the first to support it.
2020-07-13 19:20:25 -03:00
Salvador E. Tropea
f8c339aa3d
Simplified the Optionable.expand_filename() usage.
...
Now the dir concatenation and absolute expansion is done in the
function avoiding repetition.
2020-07-12 16:15:56 -03:00
Salvador E. Tropea
9fdc02ecea
Added aliases for options.
...
The test case is the pdf_pcb_print.output_name, which is different than
other *.output options. Now output_name is an alias for output.
2020-07-12 09:41:16 -03:00
Salvador E. Tropea
52e6bb1b5f
Added support for PcbDraw
2020-07-11 13:49:03 -03:00
Salvador E. Tropea
05460f4541
Added test for wrong boolean
2020-07-08 21:06:35 -03:00
Salvador E. Tropea
4368364489
Refactored the BaseOutput class to make it more similar to the YAML
...
Now the options are just an attribute of the outputs.
It means we have a set of classes for the options.
All the output content is parsed by the classes, including the Layers.
Now the layers support a simple string (with interesting shortcuts), a list of
strings or the original list of dicts.
2020-07-08 15:17:24 -03:00
Salvador E. Tropea
1c4c94cfa2
Some super() use clean-up.
...
Now using Python3 style everywhere.
Added some missing calls to allow more cases of use.
2020-07-05 19:11:52 -03:00
Salvador E. Tropea
45ecb1d02a
Added a mechanism to specify suboptions.
...
Now the legacy drill.map.type and drill.report.filename are specified in this
way.
The BaseOutput class now inherits from Optionable.
Suboptions are just Optionable classes.
Also: added traceback print when an error is reported and we are in debug mode.
2020-07-05 12:40:57 -03:00