mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge.
This commit is contained in:
@@ -378,7 +378,7 @@ class GalaxyConfig( object ):
|
||||
return True
|
||||
else:
|
||||
try:
|
||||
return { "psycopg2": lambda: self.config.get( "app:main", "database_connection" ).startswith( "postgres://" ),
|
||||
return { "psycopg2": lambda: self.config.get( "app:main", "database_connection" ).startswith( "postgres" ),
|
||||
"MySQL_python": lambda: self.config.get( "app:main", "database_connection" ).startswith( "mysql://" ),
|
||||
"DRMAA_python": lambda: "sge" in self.config.get( "app:main", "start_job_runners" ).split(","),
|
||||
"drmaa": lambda: "drmaa" in self.config.get( "app:main", "start_job_runners" ).split(","),
|
||||
|
||||
@@ -76,7 +76,7 @@ def quotacheck( sa_session, users, engine ):
|
||||
sa_session.refresh( user )
|
||||
current = user.get_disk_usage()
|
||||
print user.username, '<' + user.email + '>:',
|
||||
if engine != 'postgres':
|
||||
if engine not in ( 'postgres', 'postgresql' ):
|
||||
new = user.calculate_disk_usage()
|
||||
sa_session.refresh( user )
|
||||
# usage changed while calculating, do it again
|
||||
@@ -94,7 +94,7 @@ def quotacheck( sa_session, users, engine ):
|
||||
print '+%s' % ( nice_size( new - current ) )
|
||||
else:
|
||||
print '-%s' % ( nice_size( current - new ) )
|
||||
if not options.dryrun and engine != 'postgres':
|
||||
if not options.dryrun and engine not in ( 'postgres', 'postgresql' ):
|
||||
user.set_disk_usage( new )
|
||||
sa_session.add( user )
|
||||
sa_session.flush()
|
||||
|
||||
Reference in New Issue
Block a user