Exemplo n.º 1
0
 def get_instance(self):
     data = self.to_obj()
     dm = DependencyMatrix(data['packages'])
     dm.groups = data['groups']
     dm.modules = data['modules']
     dm.imports = data['imports']
     dm.matrices = data['matrices']
     dm.max_depth = data['max_depth']
     dm._inside = data['_inside']
     dm._modules_are_built = data['_modules_are_built']
     dm._imports_are_built = data['_imports_are_built']
     dm._matrices_are_built = data['_matrices_are_built']
     return dm
Exemplo n.º 2
0
    'survey_crm',
    'test_access_rights',
    'test_convert',
    'test_converter',
    'test_documentation_examples',
    'test_exceptions',
    'test_impex',
    'test_inherit',
    'test_limits',
    'test_new_api',
    'test_uninstall',
    'test_workflow',
    'warning',
]

dm = DependencyMatrix(MATRIX_PACKAGE_LIST)
dm.build_modules()
dm.build_imports()
dm.build_matrices()


OPTIONS = {
    'group_name': False,
    'group_index': True,
    'source_name': False,
    'source_index': True,
    'target_name': False,
    'target_index': True,
    'imports': False,
    'cardinal': True,
}
Exemplo n.º 3
0
 def get_instance(self):
     data = self.to_obj()
     dm = DependencyMatrix(data['packages'])
     dm.groups = data['groups']
     dm.modules = data['modules']
     dm.imports = data['imports']
     dm.matrices = data['matrices']
     dm.max_depth = data['max_depth']
     dm._inside = data['_inside']
     dm._modules_are_built = data['_modules_are_built']
     dm._imports_are_built = data['_imports_are_built']
     dm._matrices_are_built = data['_matrices_are_built']
     return dm
Exemplo n.º 4
0
    'survey_crm',
    'test_access_rights',
    'test_convert',
    'test_converter',
    'test_documentation_examples',
    'test_exceptions',
    'test_impex',
    'test_inherit',
    'test_limits',
    'test_new_api',
    'test_uninstall',
    'test_workflow',
    'warning',
]

dm = DependencyMatrix(MATRIX_PACKAGE_LIST)
dm.build_modules()
dm.build_imports()
dm.build_matrices()

OPTIONS = {
    'group_name': False,
    'group_index': True,
    'source_name': False,
    'source_index': True,
    'target_name': False,
    'target_index': True,
    'imports': False,
    'cardinal': True,
}
Exemplo n.º 5
0
def generate_matrix(apps):
    matrix = DependencyMatrix(apps)
    matrix.build()
    return DependencyMatrixModel.objects.create(json=matrix.to_json())