gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-backoffice] 18/31: naming leftovers


From: gnunet
Subject: [GNUnet-SVN] [taler-backoffice] 18/31: naming leftovers
Date: Thu, 04 Jan 2018 18:09:41 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository backoffice.

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]