mirror of https://github.com/tLDP/python-tldp
adding support for documents to know their status
This commit is contained in:
parent
8a1afb6e24
commit
dab2f1f8b1
|
@ -55,6 +55,7 @@ class OutputDirectory(OutputNamingConvention):
|
|||
logger.info("%s creating output directory %s.", self.stem, dirname)
|
||||
os.mkdir(dirname)
|
||||
self.fileset = getfileset(self.dirname)
|
||||
self.status = 'output'
|
||||
super(OutputDirectory, self).__init__(self.stem, self.dirname)
|
||||
|
||||
def clean(self):
|
||||
|
|
|
@ -85,6 +85,7 @@ class SourceDocument(object):
|
|||
|
||||
logger.debug("Found existing %s", self.filename)
|
||||
self.doctype = self._doctype()
|
||||
self.status = 'source'
|
||||
self.dirname, self.basename = os.path.split(self.filename)
|
||||
self.stem, self.ext = os.path.splitext(self.basename)
|
||||
self.resources = False # -- assume no ./images/, ./resources/
|
||||
|
|
Loading…
Reference in New Issue