not easy/possible to write 'make resource dirty' decorator
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testresources |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
I want to be able to write code roughly like:
class _Decorated(object):
"""A decorated resource."""
def __add__(self, other):
return self.decorated.
def __getattr__(self, name):
return getattr(
class AlwaysDirtyReso
"""A resource decorator that makes another resource dirty."""
def __init__(self, decorated):
self._dirty = True
def make(self, dependency_
return self.resource
def clean(self, resource):
def isDirty(self):
return True
but it doesn't work today; permitting decoration like this would be very useful.