|Reported by:||SmileyChris||Owned by:||SmileyChris|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Django has some "decorators" which accept additional arguments. These decorators can't be called with Python 2.4 format (@decorator(*args)).
This util provides a smart_decorator which can be used to allow a decorator which accepts additional arguments to handle both @decorator and @decorator(*args) formats. It also means that these decorators can be made backwards compatible too, which is always nice.
Change History (3)
Changed 8 years ago by SmileyChris
comment:1 Changed 8 years ago by SmileyChris
- Needs documentation unset
- Needs tests unset
- Owner changed from nobody to SmileyChris
- Patch needs improvement unset
- Status changed from new to assigned