Ticket #2339: catwalk_to_rum.diff
| File catwalk_to_rum.diff, 1.5 KB (added by lszyba1, 3 years ago) |
|---|
-
devtools/templates/turbogears/+package+/controllers/root.py_tmpl
diff -r 21f4430f61ad devtools/templates/turbogears/+package+/controllers/root.py_tmpl
a b 14 14 {{if auth == "sqlalchemy"}} 15 15 from {{package}} import model 16 16 from {{package}}.controllers.secure import SecureController 17 from tgrum import RumAlchemyController 18 from tg import config 19 20 # Create a prediacte to protect the RumAlchemy admin 21 is_manager = predicates.has_permission( 22 'manage', 23 msg=_('Only for people with the "manage" permission') 24 ) 17 25 {{endif}} 18 26 19 27 __all__ = ['RootController'] … … 36 44 {{if auth == "sqlalchemy"}} 37 45 secc = SecureController() 38 46 39 admin = Catwalk(model, DBSession) 47 #admin = Catwalk(model, DBSession) 48 admin = RumAlchemyController(model, 49 is_manager, 50 template_path=config['paths']['templates'][0], 51 render_flash=False, 52 ) 53 40 54 {{endif}} 41 55 42 56 error = ErrorController() -
devtools/templates/turbogears/setup.py_tmpl
diff -r 21f4430f61ad devtools/templates/turbogears/setup.py_tmpl
a b 15 15 #url='', 16 16 install_requires=[ 17 17 "TurboGears2 >= 2.0b7", 18 " Catwalk >= 2.0.2",18 "tgrum", 19 19 "Babel >=0.9.4", 20 20 {{if sqlalchemy}} 21 21 "zope.sqlalchemy >= 0.4 ",