python - pelican blog post not getting generated -
i trying post pelican blog python app, not doing pelican ./output -s settings.py commandline.
i have modified pelican accept mocked argparse object pass needs, have moved content of main function in __init__.py
to function named runpelican(args) accepts args, , app has mocked argparse this,
class mockargparse(object): """mock argparse's pass pelican """ def __init__(self, verbosity=true, theme=none, output=none, path=none, delete_outputdir=none, settings=none, ignore_cache=none, cache_path=none, selected_paths=none, autoreload=none): """ args: path (str): content path settings(str): settings python file path """ super(mockargparse, self).__init__() self.theme = theme self.cache_path = cache_path self.ignore_cache = ignore_cache self.delete_outputdir = delete_outputdir self.settings = settings self.output = output self.verbosity = verbosity self.autoreload = autoreload self.path = path self.selected_paths = selected_paths i calling runpelican python app this:
if make_entry(args): import pelican arg = mockargparse(path=content_path, theme=theme_path, output=output_path, settings=settings_path) pelican.runpelican(arg) everything seems go fine blog posts not generated , error getting
critical: simplerxmlgenerator instance has no attribute '_write' any appreciated.
Comments
Post a Comment