As far as I am concerned, generator contains two property methods that needs to be implemented.
@property
def filename(self):
@property
def content(self):
How can I generate more than one file?
Yes, you have to return None
in the filename
method, then return a dict {filename: filecontent}
in the content()
method.
Likely the interface is not the best one, but did this way for backwards compatibility.
Please consider closing the issue if the answer was valid and it is working fine. Thanks!
Works like a charm, thanks!