def get(self, **kwargs): templateValues = {'title' : 'Create Buildable', 'submit_url' : url_for('buildable/create'), 'races' : Race.all().fetch(10), 'gameVersions' : GameVersion.all().fetch(10)} return self.render_page('buildable-form.html', **templateValues)
def get(self, **kwargs): query = Race.all() results = query.fetch(10) templateValues = {'races' : results, 'create_url' : url_for('race/create')} return self.render_page('races.html', **templateValues)
def get(self, **kwargs): buildable = db.get(kwargs['id']) templateValues = {'title' : 'Update Unit', 'submit_url' : url_for('buildable/update', id=kwargs['id']), 'races' : Race.all(), 'gameVersions' : GameVersion.all(), 'existingBuildable' : get_property_dict(buildable)} templateValues['existingBuildable']['imageUrl'] = buildable.imageUrl return self.render_page('buildable-form.html', **templateValues)