mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
allow updating repo type in util (removed from API)
This commit is contained in:
@@ -185,7 +185,7 @@ def update_repository( app, trans, id, **kwds ):
|
||||
return None, message
|
||||
|
||||
# Whitelist properties that can be changed via this method
|
||||
for key in ( 'description', 'long_description', 'remote_repository_url', 'homepage_url' ):
|
||||
for key in ( 'type', 'description', 'long_description', 'remote_repository_url', 'homepage_url' ):
|
||||
# If that key is available, not None and different than what's in the model
|
||||
if key in kwds and kwds[ key ] is not None and kwds[ key ] != getattr( repository, key ):
|
||||
setattr( repository, key, kwds[ key ] )
|
||||
|
||||
Reference in New Issue
Block a user