1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/d500c13a819f/
Changeset: d500c13a819f
User: carlfeberhard
Date: 2013-12-05 19:27:01
Summary: HDA API: raise error when attempting to undelete purged HDA
Affected #: 1 file
diff -r 1941221a1eacf48035827e845be1d21e67ba87e5 -r d500c13a819f7a2a6dd5540b5f2ceaa020ecfe2e lib/galaxy/model/__init__.py
--- a/lib/galaxy/model/__init__.py
+++ b/lib/galaxy/model/__init__.py
@@ -1802,6 +1802,10 @@
if new_val == old_val:
continue
+ # special cases here
+ if key == 'deleted' and new_val is False and self.purged:
+ raise Exception( 'Cannot undelete a purged dataset' )
+
self.__setattr__( key, new_val )
changed[ key ] = new_val
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.