Example #1
0
def index(request):
  ids = ['foo','bar','baz']
  obj = {
      'title': 'Title',
      'desc': 'Description',
      'img': 'http://docs.python.org/_static/py.png'
      }
  objects = dict([ (id,obj) for id in ids ] )

  return render_template(request, 'index.html', {
    'objects': objects,
    })
Example #2
0
def delete(request):
  id = request.urlvars.get('id', None)
  return render_template(request, 'index.html', {
    })
Example #3
0
def update(request):
  id = request.urlvars.get('id', None)
  return render_template(request, 'show.html', {
    })
Example #4
0
def create(request):
  return render_template(request, 'show.html', {
    })