##// END OF EJS Templates
Merged in slemon/noboard (pull request #17)...
Merged in slemon/noboard (pull request #17) Documentation fixes

File last commit:

r1090:a66d091f default
r1216:c9d11a86 merge default
Show More
mixins.py
21 lines | 594 B | text/x-python | PythonLexer
neko259
Views refactoring
r900 PARAM_NEXT = 'next'
neko259
Moved tag subscribe and unsubscribe methods to the tag view. Added a...
r563 PARAMETER_METHOD = 'method'
class DispatcherMixin:
"""
This class contains a dispather method that can run a method specified by
'method' request parameter.
"""
neko259
Added post admin page with tags edit capability
r566 def dispatch_method(self, *args, **kwargs):
request = args[0]
method_name = None
neko259
Moved tag subscribe and unsubscribe methods to the tag view. Added a...
r563 if PARAMETER_METHOD in request.GET:
method_name = request.GET[PARAMETER_METHOD]
neko259
Added post admin page with tags edit capability
r566 elif PARAMETER_METHOD in request.POST:
method_name = request.POST[PARAMETER_METHOD]
neko259
Moved tag subscribe and unsubscribe methods to the tag view. Added a...
r563
neko259
Added post admin page with tags edit capability
r566 if method_name:
return getattr(self, method_name)(*args, **kwargs)