Exemplo n.º 1
0
 def handle(self, **options):
     print 'Registering plugins...'
     register_all_plugins(verbose=True)
     # cache invalidation
     print 'Invalidating plugins cache...'
     query_cache_backend = cache.get_backend()
     query_cache_backend.patch()
     cache.invalidate(RegisteredPlugin._meta.db_table)
     print 'Done.'
Exemplo n.º 2
0
def check_plugins(force_detect=False, force_broken_detect=False):
    """ check plugins found in file system and compare with registered
        one in database """
    # all process will be in a unique transaction, we don't want to get
    # self committed

    if settings.DETECT_NEW_PLUGINS or force_detect:
        register_all_plugins()

    if settings.DETECT_BROKEN_PLUGINS or force_broken_detect:
        mark_broken_plugins()

    # finally, we reload active plugins
    load_plugins()
Exemplo n.º 3
0
def check_plugins(force_detect=False, force_broken_detect=False):
    """ check plugins found in file system and compare with registered
        one in database """
    # all process will be in a unique transaction, we don't want to get
    # self committed

    if settings.DETECT_NEW_PLUGINS or force_detect:
        register_all_plugins()

    if settings.DETECT_BROKEN_PLUGINS or force_broken_detect:
        mark_broken_plugins()

    # finally, we reload active plugins
    load_plugins()