2016-12-20 16:43:52 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
|
|
|
|
from . import IDC, SystemUser, AdminUser, AssetGroup, Asset, Tag
|
|
|
|
|
|
|
|
__all__ = ['initial', 'generate_fake']
|
|
|
|
|
|
|
|
|
|
|
|
def initial():
|
|
|
|
for cls in [IDC, SystemUser, AdminUser, AssetGroup, Asset, Tag]:
|
|
|
|
if hasattr(cls, 'initial'):
|
|
|
|
cls.initial()
|
|
|
|
|
|
|
|
|
|
|
|
def generate_fake():
|
|
|
|
for cls in [IDC, SystemUser, AdminUser, AssetGroup, Asset, Tag]:
|
2017-01-07 14:34:12 +00:00
|
|
|
if hasattr(cls, 'generate_fake'):
|
|
|
|
cls.generate_fake()
|
2016-12-20 16:43:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
pass
|