commit/galaxy-central: dannon: Remove import *, fix a docstring in actions/admin
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/f7904535003f/ changeset: f7904535003f user: dannon date: 2013-03-05 22:10:45 summary: Remove import *, fix a docstring in actions/admin affected #: 1 file diff -r dde0e4592530c3be40e4464b4347817b25a6aa62 -r f7904535003fdf8e56588fb78ebcdf9af913cc55 lib/galaxy/actions/admin.py --- a/lib/galaxy/actions/admin.py +++ b/lib/galaxy/actions/admin.py @@ -1,9 +1,10 @@ """ Contains administrative functions """ + import logging from galaxy import util -from galaxy.exceptions import * +from galaxy.exceptions import MessageException log = logging.getLogger( __name__ ) @@ -167,12 +168,14 @@ self.sa_session.flush() message += ', '.join( names ) return message - + def _purge_quota( self, quota, params ): - # This method should only be called for a Quota that has previously been deleted. - # Purging a deleted Quota deletes all of the following from the database: - # - UserQuotaAssociations where quota_id == Quota.id - # - GroupQuotaAssociations where quota_id == Quota.id + """ + This method should only be called for a Quota that has previously been deleted. + Purging a deleted Quota deletes all of the following from the database: + - UserQuotaAssociations where quota_id == Quota.id + - GroupQuotaAssociations where quota_id == Quota.id + """ quotas = util.listify( quota ) names = [] for q in quotas: @@ -194,3 +197,4 @@ self.sa_session.flush() message += ', '.join( names ) return message + Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org