Changeset 6276
- Timestamp:
- 09/15/07 05:57:03 (1 year ago)
- Files:
-
- django/trunk/django/utils/functional.py (modified) (2 diffs)
- django/trunk/tests/regressiontests/forms/regressions.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/utils/functional.py
r5632 r6276 1 import copy 2 1 3 def curry(_curried_func, *args, **kwargs): 2 4 def _curried(*moreargs, **morekwargs): … … 102 104 raise AssertionError('__mod__ not supported for non-string types') 103 105 106 def __deepcopy__(self, memo): 107 result = copy.copy(self) 108 memo[id(self)] = result 109 return result 110 104 111 def __wrapper__(*args, **kw): 105 112 # Creates the proxy object, instead of the actual value. django/trunk/tests/regressiontests/forms/regressions.py
r6090 r6276 61 61 >>> deactivate() 62 62 63 Deep copying translated text shouldn't raise an error 64 >>> from django.utils.translation import gettext_lazy 65 >>> class CopyForm(Form): 66 ... degree = IntegerField(widget=Select(choices=((1, gettext_lazy('test')),))) 67 >>> f = CopyForm() 68 63 69 ####################### 64 70 # Miscellaneous Tests #
