Add some verbosity

This commit is contained in:
Tom Willemsen 2011-11-05 02:50:21 +01:00
parent 186d47fe84
commit 0e14ef7f7c

View file

@ -18,6 +18,13 @@ class Command(BaseCommand):
htmlpath = '%s/templates/html_pages/%s' % (DEPLOY_PATH, mdname) htmlpath = '%s/templates/html_pages/%s' % (DEPLOY_PATH, mdname)
htmlfile = '%s/index.html' % htmlpath htmlfile = '%s/index.html' % htmlpath
if options['verbosity'] == '3':
print 'Subdir: ', subdir
print 'Mdfile: ', mdfile
print 'Mdtuple: ', mdtuple
print 'Htmlpath: ', htmlpath
print 'Htmlfile: ', htmlfile
if mdtuple[1] == '.mdwn' and os.path.exists(mdfile) \ if mdtuple[1] == '.mdwn' and os.path.exists(mdfile) \
and (not os.path.exists(htmlfile) \ and (not os.path.exists(htmlfile) \
or os.path.getmtime(mdfile) > os.path.getmtime(htmlfile)): or os.path.getmtime(mdfile) > os.path.getmtime(htmlfile)):