[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-blog] branch master updated: naming leftovers
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-blog] branch master updated: naming leftovers |
Date: |
Sat, 25 Nov 2017 10:50:07 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository blog.
The following commit(s) were added to refs/heads/master by this push:
new 5cd1a7e naming leftovers
5cd1a7e is described below
commit 5cd1a7e52256017776cb764779cb32de4722338b
Author: Marcello Stanisci <address@hidden>
AuthorDate: Sat Nov 25 10:49:15 2017 +0100
naming leftovers
---
talerblog/blog/content.py | 6 +++---
talerblog/tests.py | 4 ++--
2 files changed, 5 insertions(+), 5 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"]})
diff --git a/talerblog/tests.py b/talerblog/tests.py
index cf9dbc6..36d27c5 100644
--- a/talerblog/tests.py
+++ b/talerblog/tests.py
@@ -2,8 +2,8 @@
import unittest
from mock import patch, MagicMock
-from talerfrontends.blog import blog
-from talerfrontends.talerconfig import TalerConfig
+from talerblog.blog import blog
+from talerblog.talerconfig import TalerConfig
tc = TalerConfig.from_env()
CURRENCY = tc["taler"]["currency"].value_string(required=True)
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-blog] branch master updated: naming leftovers,
gnunet <=