Exemplo n.º 1
0
    def handle(self, options, global_options, *args):
        from graph import generate_dot

        engine = get_engine(options, global_options)

        if args:
            apps = args
        else:
            apps = self.get_apps(global_options)
        
        tables = get_tables(global_options.apps_dir, apps, engine=options.engine, settings_file=global_options.settings, local_settings_file=global_options.local_settings)
        print generate_dot(tables, apps)
Exemplo n.º 2
0
    def handle(self, options, global_options, *args):
        from uliweb.core.SimpleFrame import Dispatcher
        from graph import generate_dot

        app = Dispatcher(project_dir=global_options.project, start=False)
        if args:
            apps = args
        else:
            apps = self.get_apps(global_options)
        
        engine = get_engine(global_options.apps_dir)
        
        tables = get_tables(global_options.apps_dir, None, engine=engine, settings_file=global_options.settings, local_settings_file=global_options.local_settings)
        print generate_dot(tables, apps)
Exemplo n.º 3
0
    def handle(self, options, global_options, *args):
        from graph import generate_dot

        engine = get_engine(options, global_options)

        if args:
            apps = args
        else:
            apps = self.get_apps(global_options)
        
        tables = get_tables(global_options.apps_dir, apps, engine_name=options.engine, 
            settings_file=global_options.settings, 
            local_settings_file=global_options.local_settings)
        print generate_dot(tables, apps)