mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
commit
de8b437549
8 changed files with 8 additions and 8 deletions
2
THANKS
2
THANKS
|
|
@ -4,7 +4,7 @@ contributed or implemented key features over time. We do our best to keep this
|
||||||
list up-to-date, but you can also have a look at the nice contributor graphs
|
list up-to-date, but you can also have a look at the nice contributor graphs
|
||||||
produced by GitHub: https://github.com/getpelican/pelican/graphs/contributors
|
produced by GitHub: https://github.com/getpelican/pelican/graphs/contributors
|
||||||
|
|
||||||
If you want to contibute, check the documentation section about how to do so:
|
If you want to contribute, check the documentation section about how to do so:
|
||||||
<http://docs.getpelican.com/en/latest/contribute.html>
|
<http://docs.getpelican.com/en/latest/contribute.html>
|
||||||
|
|
||||||
Aaron Kavlie
|
Aaron Kavlie
|
||||||
|
|
|
||||||
|
|
@ -202,5 +202,5 @@ Try to limit them to ``--debug`` mode like the following::
|
||||||
try:
|
try:
|
||||||
some_action()
|
some_action()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error('Exception occured: %s', e,
|
logger.error('Exception occurred: %s', e,
|
||||||
exc_info=settings.get('DEBUG', False))
|
exc_info=settings.get('DEBUG', False))
|
||||||
|
|
|
||||||
|
|
@ -159,7 +159,7 @@ class Pelican(object):
|
||||||
]
|
]
|
||||||
|
|
||||||
# erase the directory if it is not the source and if that's
|
# erase the directory if it is not the source and if that's
|
||||||
# explicitely asked
|
# explicitly asked
|
||||||
if (self.delete_outputdir and not
|
if (self.delete_outputdir and not
|
||||||
os.path.realpath(self.path).startswith(self.output_path)):
|
os.path.realpath(self.path).startswith(self.output_path)):
|
||||||
clean_output_dir(self.output_path, self.output_retention)
|
clean_output_dir(self.output_path, self.output_retention)
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,7 @@ class Content(object):
|
||||||
"""Update the content attribute.
|
"""Update the content attribute.
|
||||||
|
|
||||||
Change all the relative paths of the content to relative paths
|
Change all the relative paths of the content to relative paths
|
||||||
suitable for the ouput content.
|
suitable for the output content.
|
||||||
|
|
||||||
:param content: content resource that will be passed to the templates.
|
:param content: content resource that will be passed to the templates.
|
||||||
:param siteurl: siteurl which is locally generated by the writer in
|
:param siteurl: siteurl which is locally generated by the writer in
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ class BaseFormatter(logging.Formatter):
|
||||||
s = super(BaseFormatter, self).formatException(ei)
|
s = super(BaseFormatter, self).formatException(ei)
|
||||||
# fancy format traceback
|
# fancy format traceback
|
||||||
s = str('\n').join(str(' | ') + line for line in s.splitlines())
|
s = str('\n').join(str(' | ') + line for line in s.splitlines())
|
||||||
# seperate the traceback from the preceding lines
|
# separate the traceback from the preceding lines
|
||||||
s = str(' |___\n{}').format(s)
|
s = str(' |___\n{}').format(s)
|
||||||
return s
|
return s
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ def mute(returns_output=False):
|
||||||
If "returns_output" is True, the function will return a generator
|
If "returns_output" is True, the function will return a generator
|
||||||
yielding the printed lines instead of the return values.
|
yielding the printed lines instead of the return values.
|
||||||
|
|
||||||
The decorator litterally hijack sys.stdout during each function
|
The decorator literally hijack sys.stdout during each function
|
||||||
execution, so be careful with what you apply it to.
|
execution, so be careful with what you apply it to.
|
||||||
|
|
||||||
>>> def numbers():
|
>>> def numbers():
|
||||||
|
|
|
||||||
|
|
@ -471,7 +471,7 @@ class TestDateFormatter(unittest.TestCase):
|
||||||
locale_available('French'),
|
locale_available('French'),
|
||||||
'French locale needed')
|
'French locale needed')
|
||||||
def test_french_strftime(self):
|
def test_french_strftime(self):
|
||||||
# This test tries to reproduce an issue that occured with python3.3 under macos10 only
|
# This test tries to reproduce an issue that occurred with python3.3 under macos10 only
|
||||||
locale.setlocale(locale.LC_ALL, str('fr_FR.UTF-8'))
|
locale.setlocale(locale.LC_ALL, str('fr_FR.UTF-8'))
|
||||||
date = utils.SafeDatetime(2014,8,14)
|
date = utils.SafeDatetime(2014,8,14)
|
||||||
# we compare the lower() dates since macos10 returns "Jeudi" for %A whereas linux reports "jeudi"
|
# we compare the lower() dates since macos10 returns "Jeudi" for %A whereas linux reports "jeudi"
|
||||||
|
|
|
||||||
|
|
@ -681,7 +681,7 @@ class FileStampDataCacher(FileDataCacher):
|
||||||
'''Subclass that also caches the stamp of the file'''
|
'''Subclass that also caches the stamp of the file'''
|
||||||
|
|
||||||
def __init__(self, settings, cache_name, caching_policy, load_policy):
|
def __init__(self, settings, cache_name, caching_policy, load_policy):
|
||||||
'''This sublcass additionaly sets filestamp function
|
'''This sublcass additionally sets filestamp function
|
||||||
and base path for filestamping operations
|
and base path for filestamping operations
|
||||||
'''
|
'''
|
||||||
super(FileStampDataCacher, self).__init__(settings, cache_name,
|
super(FileStampDataCacher, self).__init__(settings, cache_name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue