joshmoore/openmicroscopy — pull request #25 by will-moore (2014-05-01 20:33:46+00:00)
Title: Blitz re.saveDefaults() saveAs if rdef not owned. See PR2365

This fixes Blitz image.saveDefaults() to only re.saveCurrentSettings() if the user owns the rdef. Otherwise, we use re.saveAsNewSettings().

Before this fix, the gatewaytest/test_rdefs.py has one failing test, which this fixes.

```
OmeroPy wmoore$ ./setup.py test -s test/gatewaytest/test_rdefs.py
...
serverExceptionClass = ome.conditions.ValidationException
message = ome.model.display.RenderingDef:Id_8007 belongs to 103 and not the current user 0
}
===== 1 failed, 5 passed in 194.54 seconds =======
```