1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/a477486bf18e/
Changeset: a477486bf18e
Branch: stable
User: natefoo
Date: 2013-09-26 17:02:58
Summary: Bugfix for tool-to-destination mapping, tool ids are lowercased but the mapping id was not lowercased.
Affected #: 1 file
diff -r 4b1c7ad464ea5b181d9d5d95e8751518b170fca8 -r a477486bf18eafdd14dd7ba1e91e17f1b05e8121 lib/galaxy/jobs/__init__.py
--- a/lib/galaxy/jobs/__init__.py
+++ b/lib/galaxy/jobs/__init__.py
@@ -179,7 +179,7 @@
if tools is not None:
for tool in self.__findall_with_required(tools, 'tool'):
# There can be multiple definitions with identical ids, but different params
- id = tool.get('id')
+ id = tool.get('id').lower()
if id not in self.tools:
self.tools[id] = list()
self.tools[id].append(JobToolConfiguration(**dict(tool.items())))
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.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/4dc1714a5a0a/
Changeset: 4dc1714a5a0a
User: carlfeberhard
Date: 2013-09-26 18:38:18
Summary: History panel: fix race condition when setting updater
Affected #: 2 files
diff -r a7e3721795d6c480d4e116f1054235450102d725 -r 4dc1714a5a0a9f2dde02dea061eb45b0aae1e08d static/scripts/mvc/history/history-model.js
--- a/static/scripts/mvc/history/history-model.js
+++ b/static/scripts/mvc/history/history-model.js
@@ -49,6 +49,8 @@
/** HDACollection of the HDAs contained in this history. */
this.hdas = new HDACollection();
+ this.updateTimeoutId = null;
+
// if we've got hdas passed in the constructor, load them and set up updates if needed
if( initialHdas && _.isArray( initialHdas ) ){
this.hdas.add( initialHdas );
@@ -63,11 +65,7 @@
// then: refresh the panel
this.hdas.bind( 'state:ready', function( hda, newState, oldState ){
if( hda.get( 'force_history_refresh' ) ){
- //TODO: could poll jobs here...
- var history = this;
- setTimeout( function(){
- history.stateUpdater();
- }, History.UPDATE_DELAY );
+ this.updateAfterDelay();
}
}, this );
@@ -87,13 +85,21 @@
});
},
+ updateAfterDelay : function(){
+ var history = this;
+ this.updateTimeoutId = setTimeout( function(){
+ history.stateUpdater();
+ }, History.UPDATE_DELAY );
+ return this.updateTimeoutId;
+ },
+
// get the history's state from it's cummulative ds states, delay + update if needed
// events: ready
checkForUpdates : function(){
// get overall History state from collection, run updater if History has running/queued hdas
// boiling it down on the client to running/not
if( this.hdas.running().length ){
- this.stateUpdater();
+ this.updateAfterDelay();
} else {
this.trigger( 'ready' );
@@ -105,6 +111,7 @@
// set up to run this again in some interval of time
// events: ready
stateUpdater : function(){
+ //TODO: we need to get states from one location: history_contents (right now it's both history and contents)
var history = this,
oldState = this.get( 'state' ),
// state ids is a map of every possible hda state, each containing a list of ids for hdas in that state
@@ -133,19 +140,28 @@
// send the changed ids (if any) to dataset collection to have them fetch their own model changes
if( changedIds.length ){
- history.fetchHdaUpdates( changedIds );
+ history.fetchHdaUpdates( changedIds )
+ .done( function(){
+ furtherUpdatesOrReady( history );
+ });
+ } else {
+ furtherUpdatesOrReady( history );
}
- // set up to keep pulling if this history in run/queue state
- if( ( history.get( 'state' ) === HistoryDatasetAssociation.STATES.RUNNING )
- || ( history.get( 'state' ) === HistoryDatasetAssociation.STATES.QUEUED ) ){
- setTimeout( function(){
- history.stateUpdater();
- }, History.UPDATE_DELAY );
+ function furtherUpdatesOrReady( history ){
+ var timeout;
+ // set up to keep pulling if this history in run/queue state
+ if( ( history.get( 'state' ) === HistoryDatasetAssociation.STATES.RUNNING )
+ || ( history.get( 'state' ) === HistoryDatasetAssociation.STATES.QUEUED ) ){
+ //|| ( history.hdas.running() ) ){
+ timeout = history.updateAfterDelay();
- // otherwise, we're now in a 'ready' state (no hdas running)
- } else {
- history.trigger( 'ready' );
+ // otherwise, we're now in a 'ready' state (no hdas running)
+ } else {
+ this.updateTimeoutId = null;
+ history.trigger( 'ready' );
+ }
+ return timeout;
}
}).error( function( xhr, status, error ){
@@ -176,8 +192,8 @@
*/
fetchHdaUpdates : function( hdaIds ){
//TODO:?? move to collection? still need proper url
- var history = this;
- jQuery.ajax({
+ var history = this,
+ xhr = jQuery.ajax({
url : this.url() + '/contents?' + jQuery.param({ ids : hdaIds.join(',') }),
/**
@@ -218,6 +234,7 @@
history.updateHdas( hdaDataList );
}
});
+ return xhr;
},
/** Update the models in the hdas collection from the data given.
diff -r a7e3721795d6c480d4e116f1054235450102d725 -r 4dc1714a5a0a9f2dde02dea061eb45b0aae1e08d static/scripts/packed/mvc/history/history-model.js
--- a/static/scripts/packed/mvc/history/history-model.js
+++ b/static/scripts/packed/mvc/history/history-model.js
@@ -1,1 +1,1 @@
-var History=Backbone.Model.extend(LoggableMixin).extend({defaults:{id:null,name:"Unnamed History",state:"new",diskSize:0,deleted:false},urlRoot:"api/histories/",url:function(){return this.urlRoot+this.get("id")},initialize:function(b,c,a){a=a||null;this.log(this+".initialize:",b,c);this.hdas=new HDACollection();if(c&&_.isArray(c)){this.hdas.add(c);this.checkForUpdates();if(this.hdas.length>0){this.updateDisplayApplications()}}this.hdas.bind("state:ready",function(e,g,d){if(e.get("force_history_refresh")){var f=this;setTimeout(function(){f.stateUpdater()},History.UPDATE_DELAY)}},this);if(this.logger){this.bind("all",function(d){this.log(this+"",arguments)},this)}},hdaIdsFromStateIds:function(){return _.reduce(_.values(this.get("state_ids")),function(b,a){return b.concat(a)})},checkForUpdates:function(){if(this.hdas.running().length){this.stateUpdater()}else{this.trigger("ready")}return this},stateUpdater:function(){var c=this,a=this.get("state"),b=this.get("state_ids");jQuery.ajax("api/histories/"+this.get("id")).success(function(d){c.set(d);c.log("current history state:",c.get("state"),"(was)",a,"new size:",c.get("nice_size"));var e=[];_.each(_.keys(d.state_ids),function(g){var f=_.difference(d.state_ids[g],b[g]);e=e.concat(f)});if(e.length){c.fetchHdaUpdates(e)}if((c.get("state")===HistoryDatasetAssociation.STATES.RUNNING)||(c.get("state")===HistoryDatasetAssociation.STATES.QUEUED)){setTimeout(function(){c.stateUpdater()},History.UPDATE_DELAY)}else{c.trigger("ready")}}).error(function(g,d,e){if(g.status===502){setTimeout(function(){c.log("Bad Gateway error. Retrying...");c.stateUpdater()},History.UPDATE_DELAY)}else{if(!((g.readyState===0)&&(g.status===0))){c.log("stateUpdater error:",e,"responseText:",g.responseText);var f=_l("An error occurred while getting updates from the server.")+" "+_l("Please contact a Galaxy administrator if the problem persists.");c.trigger("error",f,g,d,e)}}})},fetchHdaUpdates:function(b){var a=this;jQuery.ajax({url:this.url()+"/contents?"+jQuery.param({ids:b.join(",")}),error:function(h,c,d){if((h.readyState===0)&&(h.status===0)){return}var f=JSON.parse(h.responseText);if(_.isArray(f)){var e=_.groupBy(f,function(i){if(_.has(i,"error")){return"errored"}return"ok"});a.log("fetched, errored datasets:",e.errored);a.updateHdas(f)}else{a.log("Error updating hdas from api history contents",b,h,c,d,f);var g=_l("An error occurred while getting dataset details from the server.")+" "+_l("Please contact a Galaxy administrator if the problem persists.");a.trigger("error",g,h,c,d)}},success:function(d,c,e){a.log(a+".fetchHdaUpdates, success:",c,e);a.updateHdas(d)}})},updateHdas:function(a){var c=this,b=[];c.log(c+".updateHdas:",a);_.each(a,function(e,f){var d=c.hdas.get(e.id);if(d){c.log("found existing model in list for id "+e.id+", updating...:");d.set(e)}else{c.log("NO existing model for id "+e.id+", creating...:");b.push(e)}});if(b.length){c.addHdas(b)}},addHdas:function(a){var b=this;_.each(a,function(c,d){var e=b.hdas.hidToCollectionIndex(c.hid);c.history_id=b.get("id");b.hdas.add(new HistoryDatasetAssociation(c),{at:e,silent:true})});b.hdas.trigger("add",a)},updateDisplayApplications:function(a){this.log(this+"updateDisplayApplications:",a);var c=this,b=(a&&_.isArray(a))?({hda_ids:a.join(",")}):({});c.log(this+": fetching display application data");jQuery.ajax("history/get_display_application_links",{data:b,success:function(f,d,e){_.each(f,function(h){var g=c.hdas.get(h.id);if(g){g.set(h)}})},error:function(g,d,e){if(!((g.readyState===0)&&(g.status===0))){c.log("Error fetching display applications:",a,g,d,e);var f=_l("An error occurred while getting display applications from the server.")+" "+_l("Please contact a Galaxy administrator if the problem persists.");c.trigger("error",f,g,d,e)}}})},toString:function(){var a=(this.get("name"))?(","+this.get("name")):("");return"History("+this.get("id")+a+")"}});History.UPDATE_DELAY=4000;var HistoryCollection=Backbone.Collection.extend(LoggableMixin).extend({model:History,urlRoot:"api/histories"});
\ No newline at end of file
+var History=Backbone.Model.extend(LoggableMixin).extend({defaults:{id:null,name:"Unnamed History",state:"new",diskSize:0,deleted:false},urlRoot:"api/histories/",url:function(){return this.urlRoot+this.get("id")},initialize:function(b,c,a){a=a||null;this.log(this+".initialize:",b,c);this.hdas=new HDACollection();this.updateTimeoutId=null;if(c&&_.isArray(c)){this.hdas.add(c);this.checkForUpdates();if(this.hdas.length>0){this.updateDisplayApplications()}}this.hdas.bind("state:ready",function(e,f,d){if(e.get("force_history_refresh")){this.updateAfterDelay()}},this);if(this.logger){this.bind("all",function(d){this.log(this+"",arguments)},this)}},hdaIdsFromStateIds:function(){return _.reduce(_.values(this.get("state_ids")),function(b,a){return b.concat(a)})},updateAfterDelay:function(){var a=this;this.updateTimeoutId=setTimeout(function(){a.stateUpdater()},History.UPDATE_DELAY);return this.updateTimeoutId},checkForUpdates:function(){if(this.hdas.running().length){this.updateAfterDelay()}else{this.trigger("ready")}return this},stateUpdater:function(){var c=this,a=this.get("state"),b=this.get("state_ids");jQuery.ajax("api/histories/"+this.get("id")).success(function(d){c.set(d);c.log("current history state:",c.get("state"),"(was)",a,"new size:",c.get("nice_size"));var f=[];_.each(_.keys(d.state_ids),function(h){var g=_.difference(d.state_ids[h],b[h]);f=f.concat(g)});if(f.length){c.fetchHdaUpdates(f).done(function(){e(c)})}else{e(c)}function e(h){var g;if((h.get("state")===HistoryDatasetAssociation.STATES.RUNNING)||(h.get("state")===HistoryDatasetAssociation.STATES.QUEUED)){g=h.updateAfterDelay()}else{this.updateTimeoutId=null;h.trigger("ready")}return g}}).error(function(g,d,e){if(g.status===502){setTimeout(function(){c.log("Bad Gateway error. Retrying...");c.stateUpdater()},History.UPDATE_DELAY)}else{if(!((g.readyState===0)&&(g.status===0))){c.log("stateUpdater error:",e,"responseText:",g.responseText);var f=_l("An error occurred while getting updates from the server.")+" "+_l("Please contact a Galaxy administrator if the problem persists.");c.trigger("error",f,g,d,e)}}})},fetchHdaUpdates:function(c){var a=this,b=jQuery.ajax({url:this.url()+"/contents?"+jQuery.param({ids:c.join(",")}),error:function(i,d,e){if((i.readyState===0)&&(i.status===0)){return}var g=JSON.parse(i.responseText);if(_.isArray(g)){var f=_.groupBy(g,function(j){if(_.has(j,"error")){return"errored"}return"ok"});a.log("fetched, errored datasets:",f.errored);a.updateHdas(g)}else{a.log("Error updating hdas from api history contents",c,i,d,e,g);var h=_l("An error occurred while getting dataset details from the server.")+" "+_l("Please contact a Galaxy administrator if the problem persists.");a.trigger("error",h,i,d,e)}},success:function(e,d,f){a.log(a+".fetchHdaUpdates, success:",d,f);a.updateHdas(e)}});return b},updateHdas:function(a){var c=this,b=[];c.log(c+".updateHdas:",a);_.each(a,function(e,f){var d=c.hdas.get(e.id);if(d){c.log("found existing model in list for id "+e.id+", updating...:");d.set(e)}else{c.log("NO existing model for id "+e.id+", creating...:");b.push(e)}});if(b.length){c.addHdas(b)}},addHdas:function(a){var b=this;_.each(a,function(c,d){var e=b.hdas.hidToCollectionIndex(c.hid);c.history_id=b.get("id");b.hdas.add(new HistoryDatasetAssociation(c),{at:e,silent:true})});b.hdas.trigger("add",a)},updateDisplayApplications:function(a){this.log(this+"updateDisplayApplications:",a);var c=this,b=(a&&_.isArray(a))?({hda_ids:a.join(",")}):({});c.log(this+": fetching display application data");jQuery.ajax("history/get_display_application_links",{data:b,success:function(f,d,e){_.each(f,function(h){var g=c.hdas.get(h.id);if(g){g.set(h)}})},error:function(g,d,e){if(!((g.readyState===0)&&(g.status===0))){c.log("Error fetching display applications:",a,g,d,e);var f=_l("An error occurred while getting display applications from the server.")+" "+_l("Please contact a Galaxy administrator if the problem persists.");c.trigger("error",f,g,d,e)}}})},toString:function(){var a=(this.get("name"))?(","+this.get("name")):("");return"History("+this.get("id")+a+")"}});History.UPDATE_DELAY=4000;var HistoryCollection=Backbone.Collection.extend(LoggableMixin).extend({model:History,urlRoot:"api/histories"});
\ No newline at end of file
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.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/a7e3721795d6/
Changeset: a7e3721795d6
User: Dave Bouvier
Date: 2013-09-26 18:15:02
Summary: Explicitly require paramiko before loading the Fabric egg, in order to resolve a version conflict in cases where the system paramiko version is older than 1.10.0.
Affected #: 1 file
diff -r 736555674763159f1422c1c822e93019ed6a62ed -r a7e3721795d6c480d4e116f1054235450102d725 lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py
--- a/lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py
+++ b/lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py
@@ -11,10 +11,9 @@
from galaxy.util.template import fill_template
from galaxy import eggs
-import pkg_resources
-
-pkg_resources.require('ssh' )
-pkg_resources.require( 'Fabric' )
+eggs.require( 'ssh' )
+eggs.require( 'paramiko' )
+eggs.require( 'Fabric' )
from fabric.api import env
from fabric.api import lcd
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.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/736555674763/
Changeset: 736555674763
User: Dave Bouvier
Date: 2013-09-26 18:03:54
Summary: Eliminate use of features that are specific to ElementTree 1.3, introduced in python 2.7.
Affected #: 1 file
diff -r 0b955e54451cf22a1a7c8fa0f92beb9e375f1f1e -r 736555674763159f1422c1c822e93019ed6a62ed lib/tool_shed/galaxy_install/tool_dependencies/td_common_util.py
--- a/lib/tool_shed/galaxy_install/tool_dependencies/td_common_util.py
+++ b/lib/tool_shed/galaxy_install/tool_dependencies/td_common_util.py
@@ -264,11 +264,13 @@
in_actions_group = True
# Record the number of <actions> elements so we can filter out any <action> elements that precede <actions> elements.
actions_elem_count = len( elem.findall( 'actions' ) )
- # Record the number of <actions> elements that have architecture and os specified, in order to filter out any platform-independent
- # <actions> elements that come before platform-specific <actions> elements. This call to elem.findall is filtered by tags that have
- # both the os and architecture specified. For more details, see http://docs.python.org/2/library/xml.etree.elementtree.html Section
- # 19.7.2.1.
- platform_actions_element_count = len( elem.findall( 'actions[@architecture][@os]' ) )
+ # Record the number of <actions> elements that have both architecture and os specified, in order to filter out any
+ # platform-independent <actions> elements that come before platform-specific <actions> elements.
+ platform_actions_elements = []
+ for actions_elem in elem.findall( 'actions' ):
+ if actions_elem.get( 'architecture' ) is not None and actions_elem.get( 'os' ) is not None:
+ platform_actions_elements.append( actions_elem )
+ platform_actions_element_count = len( platform_actions_elements )
platform_actions_elements_processed = 0
actions_elems_processed = 0
# The tag sets that will go into the after_install_actions list are <action> tags instead of <actions> tags. These will be processed
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.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/0b955e54451c/
Changeset: 0b955e54451c
User: natefoo
Date: 2013-09-26 17:02:58
Summary: Bugfix for tool-to-destination mapping, tool ids are lowercased but the mapping id was not lowercased.
Affected #: 1 file
diff -r 870b10eaa4cf2c4045988425685175dcaabe625b -r 0b955e54451cf22a1a7c8fa0f92beb9e375f1f1e lib/galaxy/jobs/__init__.py
--- a/lib/galaxy/jobs/__init__.py
+++ b/lib/galaxy/jobs/__init__.py
@@ -179,7 +179,7 @@
if tools is not None:
for tool in self.__findall_with_required(tools, 'tool'):
# There can be multiple definitions with identical ids, but different params
- id = tool.get('id')
+ id = tool.get('id').lower()
if id not in self.tools:
self.tools[id] = list()
self.tools[id].append(JobToolConfiguration(**dict(tool.items())))
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.
2 new commits in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/8e782b7becb6/
Changeset: 8e782b7becb6
User: dannon
Date: 2013-09-26 15:49:26
Summary: Correct distributedobjectstore parent in another place.
Affected #: 1 file
diff -r 47b5784396f7bbd83cb4867e824980e9d6cdf55b -r 8e782b7becb6769ad59d8bb3d75e1ed0f8f517af lib/galaxy/objectstore/__init__.py
--- a/lib/galaxy/objectstore/__init__.py
+++ b/lib/galaxy/objectstore/__init__.py
@@ -432,7 +432,7 @@
return default
-class DistributedObjectStore(ObjectStore):
+class DistributedObjectStore(NestedObjectStore):
"""
ObjectStore that defers to a list of backends, for getting objects the
first store where the object exists is used, objects are created in a
https://bitbucket.org/galaxy/galaxy-central/commits/0dbc9501b7e7/
Changeset: 0dbc9501b7e7
User: dannon
Date: 2013-09-26 15:49:50
Summary: Merge.
Affected #: 2 files
diff -r 8e782b7becb6769ad59d8bb3d75e1ed0f8f517af -r 0dbc9501b7e7943cf68df987ee528e142c892311 lib/galaxy/eggs/__init__.py
--- a/lib/galaxy/eggs/__init__.py
+++ b/lib/galaxy/eggs/__init__.py
@@ -378,7 +378,7 @@
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(","),
diff -r 8e782b7becb6769ad59d8bb3d75e1ed0f8f517af -r 0dbc9501b7e7943cf68df987ee528e142c892311 scripts/set_user_disk_usage.py
--- a/scripts/set_user_disk_usage.py
+++ b/scripts/set_user_disk_usage.py
@@ -76,7 +76,7 @@
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 @@
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()
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.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/1385bc4954ac/
Changeset: 1385bc4954ac
User: natefoo
Date: 2013-09-26 15:34:27
Summary: Fix a few postgres dialect renaming misses.
Affected #: 2 files
diff -r 47b5784396f7bbd83cb4867e824980e9d6cdf55b -r 1385bc4954acdabc2cd59d54db947c8cce615a84 lib/galaxy/eggs/__init__.py
--- a/lib/galaxy/eggs/__init__.py
+++ b/lib/galaxy/eggs/__init__.py
@@ -378,7 +378,7 @@
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(","),
diff -r 47b5784396f7bbd83cb4867e824980e9d6cdf55b -r 1385bc4954acdabc2cd59d54db947c8cce615a84 scripts/set_user_disk_usage.py
--- a/scripts/set_user_disk_usage.py
+++ b/scripts/set_user_disk_usage.py
@@ -76,7 +76,7 @@
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 @@
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()
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.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/47b5784396f7/
Changeset: 47b5784396f7
User: dannon
Date: 2013-09-26 15:24:45
Summary: Wrong superclass in previous refactoring commit.
Affected #: 1 file
diff -r e890cd2464ac2d14a7a4ccd9e4a4ef728e6f0cfc -r 47b5784396f7bbd83cb4867e824980e9d6cdf55b lib/galaxy/objectstore/__init__.py
--- a/lib/galaxy/objectstore/__init__.py
+++ b/lib/galaxy/objectstore/__init__.py
@@ -497,9 +497,8 @@
self.weighted_backend_ids.append(id)
self.original_weighted_backend_ids = self.weighted_backend_ids
-
def shutdown(self):
- super(NestedObjectStore, self).shutdown()
+ super(DistributedObjectStore, self).shutdown()
if self.sleeper is not None:
self.sleeper.wake()
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.