comparison rhodecode/controllers/changelog.py @ 3915:a42bfe8a9335 beta

moved make-index command to paster_commands module - optimized imports and code
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 30 May 2013 00:01:16 +0200
parents 222e9432298e
children 5293d4bbb1ea
comparison
equal deleted inserted replaced
3914:424b6c711a7f 3915:a42bfe8a9335
130 collection = c.rhodecode_repo.get_changesets(start=0, 130 collection = c.rhodecode_repo.get_changesets(start=0,
131 branch_name=branch_name) 131 branch_name=branch_name)
132 c.total_cs = len(collection) 132 c.total_cs = len(collection)
133 133
134 c.pagination = RepoPage(collection, page=p, item_count=c.total_cs, 134 c.pagination = RepoPage(collection, page=p, item_count=c.total_cs,
135 items_per_page=c.size, branch=branch_name) 135 items_per_page=c.size, branch=branch_name,)
136 collection = list(c.pagination) 136 collection = list(c.pagination)
137 page_revisions = [x.raw_id for x in c.pagination] 137 page_revisions = [x.raw_id for x in c.pagination]
138 c.comments = c.rhodecode_db_repo.get_comments(page_revisions) 138 c.comments = c.rhodecode_db_repo.get_comments(page_revisions)
139 c.statuses = c.rhodecode_db_repo.statuses(page_revisions) 139 c.statuses = c.rhodecode_db_repo.statuses(page_revisions)
140 except (EmptyRepositoryError), e: 140 except (EmptyRepositoryError), e: