Beispiel #1
0
 def get_object(self, request, slug='', file=''):
     obj = PageFile(slug=slugify(slug), name=file)
     page = Page(slug=slugify(slug))
     obj.page = page.versions.most_recent()
     obj.title = _('File %(filename)=s on page "%(pagename)s"') % {
         'filename': obj.name, 'pagename': obj.page.name}
     return obj
Beispiel #2
0
 def get_object(self, request, slug='', file=''):
     obj = PageFile(slug=slugify(slug), name=file)
     page = Page(slug=slugify(slug))
     obj.page = page.versions.most_recent()
     obj.title = _('File %(filename)s on page "%(pagename)s"') % {
         'filename': obj.name, 'pagename': obj.page.name}
     return obj
Beispiel #3
0
 def get_object(self, request, slug="", file=""):
     obj = PageFile(slug=slugify(slug), name=file)
     page = Page(slug=slugify(slug))
     obj.page = page.versions.most_recent()
     obj.title = _('File %(filename)=s on page "%(pagename)s"') % {
         "filename": obj.name,
         "pagename": obj.pageobj.name,
     }
     return obj
Beispiel #4
0
 def get_object(self, request, slug='', file=''):
     obj = PageFile(slug=slugify(slug), name=file)
     page = Page(slug=slugify(slug))
     obj.page = page.versions.most_recent()
     obj.title = 'File %s on page "%s"' % (obj.name, obj.page.name)
     return obj
Beispiel #5
0
 def get_object(self, request, slug='', file=''):
     obj = PageFile(slug=slugify(slug), name=file)
     page = Page(slug=slugify(slug))
     obj.page = page.versions.most_recent()
     obj.title = 'File %s on page "%s"' % (obj.name, obj.page.name)
     return obj