Mercurial > libervia-web
comparison src/server/pages.py @ 1013:841a595bee5a
pages: fixed str representation of LiberviaPage
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Jan 2018 18:00:04 +0100 |
parents | 4de970de87d7 |
children | dfced7992460 |
comparison
equal
deleted
inserted
replaced
1012:6b573b4b5bb0 | 1013:841a595bee5a |
---|---|
180 return u'LiberviaPage {name} at {url}'.format( | 180 return u'LiberviaPage {name} at {url}'.format( |
181 name = self.name or u'<anonymous>', | 181 name = self.name or u'<anonymous>', |
182 url = self.url) | 182 url = self.url) |
183 | 183 |
184 def __str__(self): | 184 def __str__(self): |
185 return self.__unicode__.encode('utf-8') | 185 return self.__unicode__().encode('utf-8') |
186 | 186 |
187 @classmethod | 187 @classmethod |
188 def importPages(cls, host, parent=None, path=None): | 188 def importPages(cls, host, parent=None, path=None): |
189 """Recursively import Libervia pages""" | 189 """Recursively import Libervia pages""" |
190 if path is None: | 190 if path is None: |