Mercurial > kallithea
comparison pylons_app/model/hg_model.py @ 195:7109d15c6813
cleared prints leftoovers, and changed current user fetching in login controller
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 22 May 2010 16:07:28 +0200 |
parents | 36102488d634 |
children | f7dadd356c79 |
comparison
equal
deleted
inserted
replaced
194:3d1dd13887f9 | 195:7109d15c6813 |
---|---|
10 @author: marcink | 10 @author: marcink |
11 ''' | 11 ''' |
12 import os | 12 import os |
13 from pylons import tmpl_context as c, app_globals as g, session, request, config | 13 from pylons import tmpl_context as c, app_globals as g, session, request, config |
14 from pylons.controllers.util import abort | 14 from pylons.controllers.util import abort |
15 import sys | |
15 try: | 16 try: |
16 from vcs.backends.hg import get_repositories, MercurialRepository | 17 from vcs.backends.hg import get_repositories, MercurialRepository |
17 except ImportError: | 18 except ImportError: |
18 print 'You have to import vcs module' | 19 sys.stderr.write('You have to import vcs module') |
19 raise Exception('Unable to import vcs') | 20 raise Exception('Unable to import vcs') |
20 | 21 |
21 class HgModel(object): | 22 class HgModel(object): |
22 """ | 23 """ |
23 Mercurial Model | 24 Mercurial Model |