Example #1
0
 def _keys_for_select(self):
     keys_for_select = []
     for page in get_page_list():
         data = page.get_data()
         meta = data.get('meta', {})
         keys = meta.keys()
         for key in keys:
             name = u'%s.%s' % (page.name, key)
             title = u'%s %s' % (page.title, key)
             keys_for_select.append([name, title])
     return keys_for_select
Example #2
0
 def index(self, format='html'):
     """GET /pages: All items in the collection"""
     # url('pages')
     c.all_pages = get_page_list()
     return render('/pages/index.mako')
Example #3
0
 def _pages_for_select(self):
     pages_for_select = []
     for page in get_page_list():
         pages_for_select.append([page.name, page.title])
     return pages_for_select