# Path: native_tags/registry.py
# def register(self, bucket, name_or_func, func=None):
#     """
#     Add a function to the registry by name
#     """
#     assert bucket in self, 'Bucket %s is unknown' % bucket
#     if func is None and hasattr(name_or_func, '__name__'):
#         name = name_or_func.__name__
#         func = name_or_func
#     elif func:
#         name = name_or_func
#     if name in self[bucket]:
#         raise AlreadyRegistered('The function %s is already registered' % name)
# 
#     self[bucket][name] = func


from django.core.management.base import BaseCommand
from native_tags.registry import register

class Command(BaseCommand):
    def usage(self, exe):
        return '%s [bucket1 ...]\n\nLists registered tags for the given buckets if any' % exe
    
    def handle(self, *buckets, **kwargs):

# Path: native_tags/registry.py
# def register(self, bucket, name_or_func, func=None):
#     """
#     Add a function to the registry by name
#     """
#     assert bucket in self, 'Bucket %s is unknown' % bucket
#     if func is None and hasattr(name_or_func, '__name__'):
#         name = name_or_func.__name__
#         func = name_or_func
#     elif func:
#         name = name_or_func
#     if name in self[bucket]:
#         raise AlreadyRegistered('The function %s is already registered' % name)
# 
#     self[bucket][name] = func


# Path: native_tags/management/commands/nativelib.py
from django.core.management.base import BaseCommand
from native_tags.registry import register


class Command(BaseCommand):
    def usage(self, exe):
        return '%s [bucket1 ...]\n\nLists registered tags for the given buckets if any' % exe
    
    def handle(self, *buckets, **kwargs):

        for bucket,items in register.items():