diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2017-11-25 10:49:15 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2017-11-25 10:49:15 +0100 |
commit | 5cd1a7e52256017776cb764779cb32de4722338b (patch) | |
tree | 7401c7027e5959c6a2c7f9dc043b6209e322ab83 /talerblog/blog/content.py | |
parent | 5668486b3d36c2fc1b07d872a6230c3b9975b853 (diff) | |
download | blog-5cd1a7e52256017776cb764779cb32de4722338b.tar.gz blog-5cd1a7e52256017776cb764779cb32de4722338b.tar.bz2 blog-5cd1a7e52256017776cb764779cb32de4722338b.zip |
naming leftovers
Diffstat (limited to 'talerblog/blog/content.py')
-rw-r--r-- | talerblog/blog/content.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/talerblog/blog/content.py b/talerblog/blog/content.py index 1c9e98d..42ecf18 100644 --- a/talerblog/blog/content.py +++ b/talerblog/blog/content.py @@ -38,12 +38,12 @@ def add_article(slug, title, teaser, main_file, extra_files=[]): def get_image_file(image): - f = resource_filename("talerfrontends", os.path.join("blog/data/", image)) + f = resource_filename("talerblog", os.path.join("blog/data/", image)) return os.path.abspath(f) def get_article_file(article): - f = resource_filename("talerfrontends", article.main_file) + f = resource_filename("talerblog", article.main_file) return os.path.basename(f) @@ -51,7 +51,7 @@ def add_from_html(resource_name, teaser_paragraph=0, title=None): """ Extract information from article html. """ - res = resource_stream("talerfrontends", resource_name) + res = resource_stream("talerblog", resource_name) soup = BeautifulSoup(res, 'html.parser') if title is None: title_el = soup.find("h1", attrs={"class":["chapter", "unnumbered"]}) |