Trees | Indices | Help |
---|
|
1 from coprs import exceptions4 @classmethod206 """This method raises InsufficientRightsException if given user cant update 7 given copr. Returns None otherwise. 8 """ 9 # TODO: this is a bit inconsistent - shouldn't the user method be called can_update? 10 if not user.can_edit(copr): 11 raise exceptions.InsufficientRightsException(message)12 13 @classmethod15 """This method raises InsufficientRightsException if given user cant build in 16 given copr. Returns None otherwise. 17 """ 18 if not user.can_build_in(copr): 19 raise exceptions.InsufficientRightsException(message)
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Sep 10 09:30:20 2013 | http://epydoc.sourceforge.net |