def edit(): u = current_user() token = get_token(u.id) bs = Board.all() ts = Theme.all() return render_template("/board/forum_edit.html", bs=bs, ts=ts, token=token.content)
def get(self): contents = Content.all().fetch(1000) theme_packages = ThemePackage.all().fetch(1000) themes = Theme.all().fetch(1000) pages = Page.all().fetch(1000) images = Image.all().fetch(1000) roles = Role.all().fetch(1000) sections = Section.all().fetch(1000) _users = User.all().fetch(1000) actions = ACTIONS template_values = {'logout_url':self.ws.users.create_logout_url('/'),'theme_packages': theme_packages,'themes': themes, 'images': images, 'pages': pages, 'contents':contents, 'roles':roles, 'users':_users, 'actions': actions, 'sections': sections, 'site': self.ws.site} self.response.out.write(template.render('templates/manage.html',template_values))
def new(): bs = Theme.all() tip = request.args.get('tip', 'none') return render_template("topic/new.html", bs=bs, tip=tip)