Changes between Version 12 and Version 13 of GenshiRecipes/PylonsWithGenshi
- Timestamp:
- Feb 5, 2008, 8:53:48 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenshiRecipes/PylonsWithGenshi
v12 v13 71 71 def helper_wrapper(func): 72 72 def wrapped_helper(*args, **kw): 73 return Markup(func(*args, **kw)) 73 if not callable(func(*args, **kw)): 74 return Markup(func(*args, **kw)) 75 else: 76 return Markup(func(*args, **kw)()) 74 77 wrapped_helper.__name__ = func.__name__ 75 78 return wrapped_helper