Renamed get_medusa_paths to get_staticsite_paths

pull/249/head
Karl Hobley 2014-05-19 17:10:19 +01:00
rodzic f4040a648d
commit b5d4c0e78a
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -12,7 +12,7 @@ class PageRenderer(StaticSiteRenderer):
return []
# Return list of paths
return site.root_page.get_medusa_paths()
return site.root_page.get_staticsite_paths()
class DocumentRenderer(StaticSiteRenderer):

Wyświetl plik

@ -622,9 +622,9 @@ class Page(MP_Node, ClusterableModel, Indexed):
"""
return self.serve(self.dummy_request())
def get_medusa_paths(self):
def get_staticsite_paths(self):
"""
This is a generator of URL paths to feed into django-medusa
This is a generator of URL paths to feed into a static site generator
Override this if you would like to create static versions of subpages
"""
# Yield paths for this page
@ -632,7 +632,7 @@ class Page(MP_Node, ClusterableModel, Indexed):
# Yield paths for child pages
for child in self.get_children().live():
for path in child.specific.get_medusa_paths():
for path in child.specific.get_staticsite_paths():
yield '/' + child.slug + path
def get_ancestors(self, inclusive=False):