~yeliabmas/sloecode/wiki-file-creation

« back to all changes in this revision

Viewing changes to sloecode/wikkidviewadapters/page.py

  • Committer: Sam Bailey
  • Date: 2012-07-05 03:50:49 UTC
  • Revision ID: yeliabmas@gmail.com-20120705035049-7wq8lr3w1cw1mz9s
Allowed the +edit action on pages that don't exist. No longer displays last modified info unless it exists.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
                super(PageViewAdapter, self).get_page_fragments(wikkid_app, environ)
44
44
 
 
45
                try:
 
46
                        self.fragments['last_modified_by'] = self.view.last_modified_by.display_name
 
47
                        self.fragments['last_modified_date'] = self.view.last_modified_date
 
48
                except:
 
49
                        pass
45
50
                self.fragments['listing_url'] = self.view.canonical_url(self.view.context.root_resource, 'listing')
46
51
                self.fragments['edit_url'] = self.view.canonical_url(self.view.context, 'edit')
47
52
                self.fragments['breadcrumbs'] = self.view.breadcrumbs