示例#1
0
  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)
示例#2
0
  def get(self, **kwargs):
    results = GameVersion.all().fetch(10)

    templateValues = {'gameVersions'  : results,
                      'create_url'    : url_for('version/create')}

    return self.render_page('game-versions.html', **templateValues)
示例#3
0
 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)