# Path: nappingcat/patterns.py
# def patterns(path, *args):
#     return CommandPatterns(path, args) 


from nappingcat.patterns import patterns

cmdpatterns = patterns('nappingcat.contrib.auth.handlers', 
    (r'add-user (?P<username>[\w\.\-]+)', 'add_user'),
    (r'add-key-to-user (?P<username>[\w\.\-]+)', 'add_key_to_user'),

# Path: nappingcat/patterns.py
# def patterns(path, *args):
#     return CommandPatterns(path, args) 


# Path: nappingcat/contrib/auth/patterns.py
from nappingcat.patterns import patterns


cmdpatterns = patterns('nappingcat.contrib.auth.handlers', 
    (r'add-user (?P<username>[\w\.\-]+)', 'add_user'),
    (r'add-key-to-user (?P<username>[\w\.\-]+)', 'add_key_to_user'),

    (r'add-permission (?P<username>[\w\.\-]+) \'(?P<permission>.*)\'', 'add_permission'),