comparison pylons_app/controllers/repos.py @ 48:8e250e86a670

Css fixes, implemented removal of users, and display draft
author Marcin Kuzminski <marcin@python-blog.com>
date Wed, 07 Apr 2010 21:10:43 +0200
parents f6ac79182600
children 3ada2f409c1c
comparison
equal deleted inserted replaced
47:f6ac79182600 48:8e250e86a670
18 c.admin_username = session.get('admin_username') 18 c.admin_username = session.get('admin_username')
19 19
20 def index(self, format='html'): 20 def index(self, format='html'):
21 """GET /repos: All items in the collection""" 21 """GET /repos: All items in the collection"""
22 # url('repos') 22 # url('repos')
23 return render('/repos_manage.html') 23 return render('/repos.html')
24 24
25 def create(self): 25 def create(self):
26 """POST /repos: Create a new item""" 26 """POST /repos: Create a new item"""
27 # url('repos') 27 # url('repos')
28 28
49 # url('repo', id=ID) 49 # url('repo', id=ID)
50 50
51 def show(self, id, format='html'): 51 def show(self, id, format='html'):
52 """GET /repos/id: Show a specific item""" 52 """GET /repos/id: Show a specific item"""
53 # url('repo', id=ID) 53 # url('repo', id=ID)
54 54 return render('/repos_show.html')
55 def edit(self, id, format='html'): 55 def edit(self, id, format='html'):
56 """GET /repos/id/edit: Form to edit an existing item""" 56 """GET /repos/id/edit: Form to edit an existing item"""
57 # url('edit_repo', id=ID) 57 # url('edit_repo', id=ID)