Trees | Indices | Help |
---|
|
1 import time 2 3 from coprs import app 4 from coprs import helpers 9 1314 # this should probably be stored in DB with the whole mock_chroot... 15 @app.template_filter('os_name_short') 16 -def os_name_short(os_name, os_version):17 # TODO: make it models.MockChroot method or not? 18 if os_version: 19 if os_version == 'rawhide': 20 return os_version 21 if os_name == 'fedora': 22 return 'fc.{0}'.format(os_version) 23 elif os_name == 'epel': 24 return 'el{0}'.format(os_version) 25 return os_name26
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Sep 10 09:30:20 2013 | http://epydoc.sourceforge.net |