# Path: smart/lib/utils.py
# class MethodDispatcher(object):
#   def __init__(self, method_map):
#     self.methods= method_map
# 
#   def resolve(self, request):
#     view_func = self.methods.get(request.method, None)
#     return view_func
# 
#   def __call__(self, request, *args, **kwargs):
#     view_func = self.resolve(request)
#     if view_func:
#       return view_func(request, *args, **kwargs)
#     return http.HttpResponseNotAllowed(self.methods.keys())


from django.conf.urls.defaults import *
from smart.views import *
from smart.lib.utils import MethodDispatcher


urlpatterns = patterns(
    '',

    # reset
    (r'^reset$', account_reset),

    # auth systems
    (r'^authsystems/$', MethodDispatcher({
                'POST' : account_authsystem_add})),

    # change the password
    (r'^authsystems/password/change$', MethodDispatcher({
                'POST' : account_password_change})),

    # set the password

# Path: smart/lib/utils.py
# class MethodDispatcher(object):
#   def __init__(self, method_map):
#     self.methods= method_map
# 
#   def resolve(self, request):
#     view_func = self.methods.get(request.method, None)
#     return view_func
# 
#   def __call__(self, request, *args, **kwargs):
#     view_func = self.resolve(request)
#     if view_func:
#       return view_func(request, *args, **kwargs)
#     return http.HttpResponseNotAllowed(self.methods.keys())


# Path: smart/urls/account.py
from django.conf.urls.defaults import *
from smart.views import *
from smart.lib.utils import MethodDispatcher



urlpatterns = patterns(
    '',

    # reset
    (r'^reset$', account_reset),

    # auth systems
    (r'^authsystems/$', MethodDispatcher({
                'POST' : account_authsystem_add})),

    # change the password
    (r'^authsystems/password/change$', MethodDispatcher({
                'POST' : account_password_change})),

    # set the password

    (r'^authsystems/password/set$', MethodDispatcher({