Refactoring decorators.py a little.
Refactoring decorators.py a little.

steveandroulakis/mytardis,steveandroulakis/mytardis,pansapiens/mytardis,iiman/mytardis,pansapiens/mytardis,pansapiens/mytardis,steveandroulakis/mytardis,pansapiens/mytardis,iiman/mytardis,iiman/mytardis