Trees | Indices | Help |
---|
|
1 from coprs import exceptions5 6 @classmethod278 """ 9 Raise InsufficientRightsException if given user cant update 10 given copr. Return None otherwise. 11 """ 12 13 # TODO: this is a bit inconsistent - shouldn't the user method be 14 # called can_update? 15 if not user.can_edit(copr): 16 raise exceptions.InsufficientRightsException(message)17 18 @classmethod20 """ 21 Raises InsufficientRightsException if given user cant build in 22 given copr. Return None otherwise. 23 """ 24 25 if not user.can_build_in(copr): 26 raise exceptions.InsufficientRightsException(message)
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Aug 27 09:49:22 2014 | http://epydoc.sourceforge.net |