-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df71da5
commit 522c59b
Showing
4 changed files
with
18 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
# coding: utf-8 | ||
|
||
from quokka.core.app import QuokkaModule | ||
from .views import ExternalBlogListView | ||
from .utils import get_external_blog | ||
from .views import AggregatedTopicsListView | ||
|
||
|
||
module = QuokkaModule("rssaggregator", __name__, template_folder="templates") | ||
module.add_url_rule('/rssaggregator/', view_func=ExternalBlogListView.as_view('external blogs')) | ||
|
||
#module.add_app_template_global(get_external_blog) | ||
module.add_url_rule('/aggregated-topics/', view_func=AggregatedTopicsListView.as_view('aggregated topic')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# coding: utf-8 | ||
from .models import ExternalBlogs | ||
from .models import AggregatedTopic | ||
|
||
|
||
def get_external_blog(**kwargs): | ||
blogs = ExternalBlogs.objects(**kwargs) | ||
def get_external_topic(**kwargs): | ||
topics = AggregatedTopic.objects(**kwargs) | ||
|
||
return blogs.order_by('name') | ||
return topics.order_by('date') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters