Mercurial > piecrust2
comparison piecrust/data/builder.py @ 88:a643b14a59a3
Remove unneeded trace.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 04 Sep 2014 08:11:28 -0700 |
parents | f9f67086415c |
children | 4fc1d306046b |
comparison
equal
deleted
inserted
replaced
87:2fb6501ed668 | 88:a643b14a59a3 |
---|---|
126 | 126 |
127 | 127 |
128 def get_default_pagination_source(page): | 128 def get_default_pagination_source(page): |
129 app = page.app | 129 app = page.app |
130 source_name = page.config.get('source') or page.config.get('blog') | 130 source_name = page.config.get('source') or page.config.get('blog') |
131 logger.debug("Got source name %s for page %s" % (source_name, page.path)) | |
132 if source_name is None: | 131 if source_name is None: |
133 blog_names = app.config.get('site/blogs') | 132 blog_names = app.config.get('site/blogs') |
134 if blog_names is not None: | 133 if blog_names is not None: |
135 source_name = blog_names[0] | 134 source_name = blog_names[0] |
136 else: | 135 else: |