Example #1
0
def rescan_filesystem():
    import dbdata_from_config

    with transaction.commit_on_success():
        for src_dir in models.SourceSimDir.objects.all():
            dbdata_from_config.update_all_db(src_dir.directory_name)
Example #2
0
 def update_all_db(cls, directory):
     import dbdata_from_config
     assert False, 'Should call the method directly!'
     return dbdata_from_config.update_all_db(directory)
Example #3
0
 def update_all_db(cls, directory):
     import dbdata_from_config
     assert False, 'Should call the method directly!'
     return dbdata_from_config.update_all_db(directory)