2015-12-22 20:39:57 +01:00
|
|
|
from __future__ import division
|
2015-04-24 11:57:40 +02:00
|
|
|
import os
|
2015-10-11 22:20:18 +02:00
|
|
|
from eve.methods.put import put_internal
|
2015-12-22 20:39:57 +01:00
|
|
|
from eve.methods.post import post_internal
|
2015-11-15 15:43:43 +01:00
|
|
|
from flask.ext.script import Manager
|
2015-02-04 02:02:21 +01:00
|
|
|
from application import app
|
2015-09-11 15:04:25 +02:00
|
|
|
from application import db
|
2015-04-10 13:08:45 -03:00
|
|
|
from application import post_item
|
2015-11-15 15:43:43 +01:00
|
|
|
from manage.node_types.act import node_type_act
|
|
|
|
from manage.node_types.asset import node_type_asset
|
|
|
|
from manage.node_types.blog import node_type_blog
|
|
|
|
from manage.node_types.comment import node_type_comment
|
|
|
|
from manage.node_types.group import node_type_group
|
|
|
|
from manage.node_types.post import node_type_post
|
|
|
|
from manage.node_types.project import node_type_project
|
|
|
|
from manage.node_types.scene import node_type_scene
|
|
|
|
from manage.node_types.shot import node_type_shot
|
|
|
|
from manage.node_types.storage import node_type_storage
|
|
|
|
from manage.node_types.task import node_type_task
|
2015-12-22 20:39:57 +01:00
|
|
|
from manage.node_types.texture import node_type_texture
|
|
|
|
from manage.node_types.group_texture import node_type_group_texture
|
2015-02-04 02:02:21 +01:00
|
|
|
|
|
|
|
manager = Manager(app)
|
2015-04-07 14:31:41 +02:00
|
|
|
|
2015-09-08 15:06:45 +02:00
|
|
|
MONGO_HOST = os.environ.get('MONGO_HOST', 'localhost')
|
|
|
|
|
2015-04-01 10:10:26 -03:00
|
|
|
@manager.command
|
|
|
|
def runserver():
|
|
|
|
try:
|
2015-04-24 11:57:40 +02:00
|
|
|
import config
|
|
|
|
PORT = config.Development.PORT
|
|
|
|
HOST = config.Development.HOST
|
|
|
|
DEBUG = config.Development.DEBUG
|
2015-10-08 14:30:32 +02:00
|
|
|
app.config['STORAGE_DIR'] = config.Development.STORAGE_DIR
|
2015-04-01 10:10:26 -03:00
|
|
|
except ImportError:
|
2015-04-24 11:57:40 +02:00
|
|
|
# Default settings
|
|
|
|
PORT = 5000
|
|
|
|
HOST = '0.0.0.0'
|
|
|
|
DEBUG = True
|
2015-10-08 14:30:32 +02:00
|
|
|
app.config['STORAGE_DIR'] = '{0}/application/static/storage'.format(
|
2015-05-11 14:08:58 +02:00
|
|
|
os.path.dirname(os.path.realpath(__file__)))
|
2015-04-24 11:57:40 +02:00
|
|
|
|
2015-10-08 14:30:32 +02:00
|
|
|
# Automatic creation of STORAGE_DIR path if it's missing
|
|
|
|
if not os.path.exists(app.config['STORAGE_DIR']):
|
|
|
|
os.makedirs(app.config['STORAGE_DIR'])
|
2015-04-01 10:10:26 -03:00
|
|
|
|
|
|
|
app.run(
|
|
|
|
port=PORT,
|
|
|
|
host=HOST,
|
|
|
|
debug=DEBUG)
|
|
|
|
|
2015-04-07 14:40:39 +02:00
|
|
|
|
2015-12-22 20:39:57 +01:00
|
|
|
def put_item(collection, item):
|
|
|
|
item_id = item['_id']
|
|
|
|
internal_fields = ['_id', '_etag', '_updated', '_created']
|
|
|
|
for field in internal_fields:
|
|
|
|
item.pop(field, None)
|
|
|
|
p = put_internal(collection, item, **{'_id': item_id})
|
|
|
|
if p[0]['_status'] == 'ERR':
|
|
|
|
print p
|
|
|
|
print item
|
|
|
|
|
|
|
|
|
2015-04-08 18:09:04 +02:00
|
|
|
@manager.command
|
|
|
|
def clear_db():
|
|
|
|
"""Wipes the database
|
|
|
|
"""
|
|
|
|
from pymongo import MongoClient
|
|
|
|
|
2015-09-08 15:06:45 +02:00
|
|
|
client = MongoClient(MONGO_HOST, 27017)
|
2015-04-08 18:09:04 +02:00
|
|
|
db = client.eve
|
|
|
|
db.drop_collection('nodes')
|
|
|
|
db.drop_collection('node_types')
|
|
|
|
db.drop_collection('tokens')
|
|
|
|
db.drop_collection('users')
|
|
|
|
|
|
|
|
|
2015-04-13 15:08:44 -03:00
|
|
|
@manager.command
|
|
|
|
def upgrade_node_types():
|
2015-11-15 17:46:32 +01:00
|
|
|
"""Wipes node_types collection and populates it again"""
|
|
|
|
node_types_collection = app.data.driver.db['node_types']
|
|
|
|
node_types = node_types_collection.find({})
|
2015-04-13 15:08:44 -03:00
|
|
|
old_ids = {}
|
2015-11-15 17:46:32 +01:00
|
|
|
for node_type in node_types:
|
|
|
|
old_ids[node_type['name']] = node_type['_id']
|
2015-04-13 15:08:44 -03:00
|
|
|
populate_node_types(old_ids)
|
|
|
|
|
|
|
|
|
2015-05-18 11:42:17 -03:00
|
|
|
def get_id(collection, name):
|
2015-11-15 17:46:32 +01:00
|
|
|
"""Returns the _id of the given collection and name"""
|
2015-05-18 11:42:17 -03:00
|
|
|
from pymongo import MongoClient
|
2015-09-08 15:06:45 +02:00
|
|
|
client = MongoClient(MONGO_HOST, 27017)
|
2015-05-18 11:42:17 -03:00
|
|
|
db = client.eve
|
|
|
|
node = db[collection].find({'name': name})
|
|
|
|
print (node[0]['_id'])
|
|
|
|
return node[0]['_id']
|
|
|
|
|
|
|
|
|
2015-05-21 11:51:56 -03:00
|
|
|
@manager.command
|
|
|
|
def manage_groups():
|
|
|
|
"""Take user email and group name,
|
|
|
|
and add or remove the user from that group.
|
|
|
|
"""
|
|
|
|
from pymongo import MongoClient
|
2015-09-08 15:06:45 +02:00
|
|
|
client = MongoClient(MONGO_HOST, 27017)
|
2015-05-21 11:51:56 -03:00
|
|
|
db = client.eve
|
|
|
|
|
|
|
|
print ("")
|
|
|
|
print ("Add or Remove user from group")
|
|
|
|
print ("leave empty to cancel")
|
|
|
|
print ("")
|
|
|
|
|
|
|
|
# Select Action
|
|
|
|
print ("Do you want to Add or Remove the user from the group?")
|
|
|
|
retry = True
|
|
|
|
while retry:
|
|
|
|
action = raw_input('add/remove: ')
|
|
|
|
if action == '':
|
|
|
|
return
|
|
|
|
elif action.lower() in ['add', 'a', 'insert']:
|
|
|
|
action == 'add'
|
|
|
|
retry = False
|
|
|
|
elif action.lower() in ['remove', 'r', 'rmv', 'rem', 'delete', 'del']:
|
|
|
|
action = 'remove'
|
|
|
|
retry = False
|
|
|
|
else:
|
|
|
|
print ("Incorrect action, press type 'add' or 'remove'")
|
|
|
|
|
|
|
|
# Select User
|
|
|
|
retry = True
|
|
|
|
while retry:
|
|
|
|
user_email = raw_input('User email: ')
|
|
|
|
if user_email == '':
|
|
|
|
return
|
|
|
|
user = db.users.find_one({'email': user_email})
|
|
|
|
if user:
|
|
|
|
retry = False
|
|
|
|
else:
|
|
|
|
print ("Incorrect user email, try again, or leave empty to cancel")
|
|
|
|
|
|
|
|
# Select group
|
|
|
|
retry = True
|
|
|
|
while retry:
|
|
|
|
group_name = raw_input('Group name: ')
|
|
|
|
if group_name == '':
|
|
|
|
return
|
|
|
|
group = db.groups.find_one({'name': group_name})
|
|
|
|
if group:
|
|
|
|
retry = False
|
|
|
|
else:
|
|
|
|
print ("Incorrect group name, try again, or leave empty to cancel")
|
|
|
|
|
|
|
|
# Do
|
|
|
|
current_groups = user.get('groups', [])
|
|
|
|
if action == 'add':
|
|
|
|
if group['_id'] in current_groups:
|
|
|
|
print "User {0} is already in group {1}".format(
|
|
|
|
user_email, group_name)
|
|
|
|
else:
|
|
|
|
current_groups.append(group['_id'])
|
|
|
|
db.users.update({'_id': user['_id']},
|
|
|
|
{"$set": {'groups': current_groups}})
|
|
|
|
print "User {0} added to group {1}".format(user_email, group_name)
|
|
|
|
elif action == 'remove':
|
|
|
|
if group['_id'] not in current_groups:
|
|
|
|
print "User {0} is not in group {1}".format(user_email, group_name)
|
|
|
|
else:
|
|
|
|
current_groups.remove(group['_id'])
|
|
|
|
db.users.update({'_id': user['_id']},
|
|
|
|
{"$set": {'groups': current_groups}})
|
|
|
|
print "User {0} removed from group {1}".format(
|
|
|
|
user_email, group_name)
|
|
|
|
|
|
|
|
|
2015-04-13 15:08:44 -03:00
|
|
|
def populate_node_types(old_ids={}):
|
2015-11-15 17:46:32 +01:00
|
|
|
node_types_collection = app.data.driver.db['node_types']
|
2015-04-13 15:08:44 -03:00
|
|
|
|
|
|
|
def mix_node_type(old_id, node_type_dict):
|
|
|
|
# Take eve parameters
|
2015-11-15 17:46:32 +01:00
|
|
|
node_type = node_types_collection.find_one({'_id': old_id})
|
2015-04-13 15:08:44 -03:00
|
|
|
for attr in node_type:
|
2015-11-15 17:46:32 +01:00
|
|
|
if attr[0] == '_':
|
|
|
|
# Mix with node eve attributes. This is really not needed since
|
|
|
|
# the attributes are stripped before doing a put_internal.
|
|
|
|
node_type_dict[attr] = node_type[attr]
|
|
|
|
elif attr == 'permissions':
|
|
|
|
node_type_dict['permissions'] = node_type['permissions']
|
2015-04-13 15:08:44 -03:00
|
|
|
return node_type_dict
|
|
|
|
|
2015-04-20 19:21:35 -03:00
|
|
|
def upgrade(node_type, old_ids):
|
2015-10-05 19:55:56 +02:00
|
|
|
print("Node {0}".format(node_type['name']))
|
2015-04-20 19:21:35 -03:00
|
|
|
node_name = node_type['name']
|
|
|
|
if node_name in old_ids:
|
2015-11-15 17:46:32 +01:00
|
|
|
node_id = old_ids[node_name]
|
|
|
|
node_type = mix_node_type(node_id, node_type)
|
2015-10-11 22:20:18 +02:00
|
|
|
|
|
|
|
# Removed internal fields that would cause validation error
|
|
|
|
internal_fields = ['_id', '_etag', '_updated', '_created']
|
|
|
|
for field in internal_fields:
|
|
|
|
node_type.pop(field, None)
|
|
|
|
p = put_internal('node_types', node_type, **{'_id': node_id})
|
2015-04-20 19:21:35 -03:00
|
|
|
else:
|
2015-08-31 17:45:29 +02:00
|
|
|
print("Making the node")
|
2015-10-05 19:55:56 +02:00
|
|
|
print(node_type)
|
2015-04-20 19:21:35 -03:00
|
|
|
post_item('node_types', node_type)
|
2015-04-13 15:08:44 -03:00
|
|
|
|
2015-08-31 17:45:29 +02:00
|
|
|
# upgrade(shot_node_type, old_ids)
|
|
|
|
# upgrade(task_node_type, old_ids)
|
|
|
|
# upgrade(scene_node_type, old_ids)
|
|
|
|
# upgrade(act_node_type, old_ids)
|
2015-10-11 22:20:18 +02:00
|
|
|
upgrade(node_type_project, old_ids)
|
|
|
|
upgrade(node_type_group, old_ids)
|
|
|
|
upgrade(node_type_asset, old_ids)
|
2015-10-03 17:07:14 +02:00
|
|
|
upgrade(node_type_storage, old_ids)
|
2015-10-05 19:55:56 +02:00
|
|
|
upgrade(node_type_comment, old_ids)
|
2015-10-15 14:24:35 +02:00
|
|
|
upgrade(node_type_blog, old_ids)
|
|
|
|
upgrade(node_type_post, old_ids)
|
2015-12-22 20:39:57 +01:00
|
|
|
upgrade(node_type_texture, old_ids)
|
|
|
|
upgrade(node_type_group_texture, old_ids)
|
2015-08-31 17:45:29 +02:00
|
|
|
|
|
|
|
|
2015-10-29 19:10:53 +01:00
|
|
|
@manager.command
|
|
|
|
def add_parent_to_nodes():
|
2015-11-15 15:43:43 +01:00
|
|
|
"""Find the parent of any node in the nodes collection"""
|
2015-10-29 19:10:53 +01:00
|
|
|
import codecs
|
|
|
|
import sys
|
|
|
|
from bson.objectid import ObjectId
|
|
|
|
UTF8Writer = codecs.getwriter('utf8')
|
|
|
|
sys.stdout = UTF8Writer(sys.stdout)
|
|
|
|
|
|
|
|
nodes_collection = app.data.driver.db['nodes']
|
|
|
|
def find_parent_project(node):
|
|
|
|
if node and 'parent' in node:
|
|
|
|
parent = nodes_collection.find_one({'_id': node['parent']})
|
|
|
|
return find_parent_project(parent)
|
|
|
|
if node:
|
|
|
|
return node
|
|
|
|
else:
|
|
|
|
return None
|
|
|
|
nodes = nodes_collection.find()
|
|
|
|
nodes_index = 0
|
|
|
|
nodes_orphan = 0
|
|
|
|
for node in nodes:
|
|
|
|
nodes_index += 1
|
|
|
|
if node['node_type'] == ObjectId("55a615cfea893bd7d0489f2d"):
|
|
|
|
print u"Skipping project node - {0}".format(node['name'])
|
|
|
|
else:
|
|
|
|
project = find_parent_project(node)
|
|
|
|
if project:
|
|
|
|
nodes_collection.update({'_id': node['_id']},
|
|
|
|
{"$set": {'project': project['_id']}})
|
|
|
|
print u"{0} {1}".format(node['_id'], node['name'])
|
|
|
|
else:
|
|
|
|
nodes_orphan += 1
|
|
|
|
nodes_collection.remove({'_id': node['_id']})
|
|
|
|
print "Removed {0} {1}".format(node['_id'], node['name'])
|
|
|
|
|
|
|
|
print "Edited {0} nodes".format(nodes_index)
|
|
|
|
print "Orphan {0} nodes".format(nodes_orphan)
|
|
|
|
|
2015-11-25 16:16:09 +01:00
|
|
|
|
|
|
|
@manager.command
|
|
|
|
def embed_children_in_files():
|
|
|
|
"""Embed children file objects in to their parent"""
|
|
|
|
files_collection = app.data.driver.db['files']
|
|
|
|
for f in files_collection.find():
|
|
|
|
# Give some feedback
|
|
|
|
print "processing {0}".format(f['_id'])
|
|
|
|
# Proceed only if the node is a child
|
|
|
|
file_id = f['_id']
|
|
|
|
if 'parent' in f:
|
|
|
|
# Get the parent node
|
|
|
|
parent = files_collection.find_one({'_id': f['parent']})
|
|
|
|
if not parent:
|
|
|
|
print "No parent found for {0}".format(file_id)
|
|
|
|
files_collection.remove({'_id': file_id})
|
|
|
|
continue
|
2015-11-25 16:22:36 +01:00
|
|
|
parent_id = parent['_id']
|
2015-11-25 16:16:09 +01:00
|
|
|
# Prepare to loop through the properties required for a variation
|
|
|
|
properties = ['content_type', 'duration', 'size', 'format', 'width',
|
|
|
|
'height', 'length', 'md5', 'file_path']
|
|
|
|
variation = {}
|
|
|
|
# Build dict with variation properties
|
|
|
|
for p in properties:
|
|
|
|
if p in f:
|
|
|
|
variation[p] = f[p]
|
|
|
|
|
|
|
|
# the variation was generated
|
|
|
|
if variation:
|
|
|
|
# If the parent file does not have a variation property
|
|
|
|
if 'variations' not in parent:
|
|
|
|
parent['variations'] = []
|
|
|
|
# Append the variation to the variations
|
|
|
|
parent['variations'].append(variation)
|
|
|
|
|
|
|
|
# Removed internal fields that would cause validation error
|
|
|
|
internal_fields = ['_id', '_etag', '_updated', '_created']
|
|
|
|
for field in internal_fields:
|
|
|
|
parent.pop(field, None)
|
|
|
|
p = put_internal('files', parent, **{'_id': parent_id})
|
|
|
|
if p[0]['_status'] == 'ERR':
|
|
|
|
print p[0]['_issues']
|
|
|
|
print "PARENT: {0}".format(parent)
|
|
|
|
print "VARIATION: {0}".format(variation)
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
@manager.command
|
|
|
|
def remove_children_files():
|
|
|
|
"""Remove any file object with a parent field"""
|
|
|
|
files_collection = app.data.driver.db['files']
|
|
|
|
for f in files_collection.find():
|
|
|
|
if 'parent' in f:
|
|
|
|
file_id = f['_id']
|
|
|
|
# Delete child object
|
|
|
|
files_collection.remove({'_id': file_id})
|
|
|
|
print "deleted {0}".format(file_id)
|
|
|
|
|
|
|
|
|
2015-12-22 20:39:57 +01:00
|
|
|
@manager.command
|
|
|
|
def make_project_public(project_id):
|
|
|
|
"""Convert every node of a project from pending to public"""
|
|
|
|
from bson.objectid import ObjectId
|
|
|
|
DRY_RUN = False
|
|
|
|
nodes_collection = app.data.driver.db['nodes']
|
|
|
|
for n in nodes_collection.find({'project': ObjectId(project_id)}):
|
|
|
|
n['properties']['status'] = 'published'
|
|
|
|
print "Publishing {0} {1}".format(n['_id'], n['name'])
|
|
|
|
if not DRY_RUN:
|
|
|
|
put_item('nodes', n)
|
|
|
|
|
|
|
|
|
|
|
|
@manager.command
|
|
|
|
def convert_assets_to_textures(project_id):
|
|
|
|
"""Get any node of type asset in a certain project and convert it to a
|
|
|
|
node_type texture.
|
|
|
|
"""
|
|
|
|
|
|
|
|
DRY_RUN = False
|
|
|
|
|
|
|
|
node_types_collection = app.data.driver.db['node_types']
|
|
|
|
files_collection = app.data.driver.db['files']
|
|
|
|
nodes_collection = app.data.driver.db['nodes']
|
|
|
|
|
|
|
|
def parse_name(name):
|
|
|
|
"""Parse a texture name to infer properties"""
|
|
|
|
variation = 'col'
|
|
|
|
is_tileable = False
|
|
|
|
variations = ['_bump', '_spec', '_nor', '_col', '_translucency']
|
|
|
|
for v in variations:
|
|
|
|
if v in name:
|
|
|
|
variation = v[1:]
|
|
|
|
break
|
|
|
|
if '_tileable' in name:
|
|
|
|
is_tileable = True
|
|
|
|
return dict(variation=variation, is_tileable=is_tileable)
|
|
|
|
|
|
|
|
def make_texture_node(base_node, files, parent_id=None):
|
|
|
|
texture_node_type = node_types_collection.find_one({'name':'texture'})
|
|
|
|
files_list = []
|
|
|
|
is_tileable = False
|
|
|
|
|
|
|
|
if parent_id is None:
|
|
|
|
parent_id = base_node['parent']
|
|
|
|
else:
|
|
|
|
print "Using provided parent {0}".format(parent_id)
|
|
|
|
|
|
|
|
# Create a list with all the file fariations for the texture
|
|
|
|
for f in files:
|
|
|
|
print "Processing {1} {0}".format(f['name'], f['_id'])
|
|
|
|
attributes = parse_name(f['name'])
|
|
|
|
if attributes['is_tileable']:
|
|
|
|
is_tileable = True
|
|
|
|
file_entry = dict(
|
|
|
|
file=f['properties']['file'],
|
|
|
|
is_tileable=attributes['is_tileable'],
|
|
|
|
map_type=attributes['variation'])
|
|
|
|
files_list.append(file_entry)
|
|
|
|
# Get the first file from the files list and use it as base for some
|
|
|
|
# node properties
|
|
|
|
first_file = files_collection.find_one({'_id': files[0]['properties']['file']})
|
|
|
|
if 'picture' in base_node and base_node['picture'] != None:
|
|
|
|
picture = base_node['picture']
|
|
|
|
else:
|
|
|
|
picture = first_file['_id']
|
|
|
|
if 'height' in first_file:
|
|
|
|
node = dict(
|
|
|
|
name=base_node['name'],
|
|
|
|
picture=picture,
|
|
|
|
parent=parent_id,
|
|
|
|
project=base_node['project'],
|
|
|
|
user=base_node['user'],
|
|
|
|
node_type=texture_node_type['_id'],
|
|
|
|
properties=dict(
|
|
|
|
status=base_node['properties']['status'],
|
|
|
|
files=files_list,
|
|
|
|
resolution="{0}x{1}".format(first_file['height'], first_file['width']),
|
|
|
|
is_tileable=is_tileable,
|
|
|
|
is_landscape=(first_file['height'] < first_file['width']),
|
|
|
|
aspect_ratio=round(
|
|
|
|
(first_file['width'] / first_file['height']), 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
print "Making {0}".format(node['name'])
|
|
|
|
if not DRY_RUN:
|
|
|
|
p = post_internal('nodes', node)
|
|
|
|
if p[0]['_status'] == 'ERR':
|
|
|
|
print p
|
|
|
|
import pprint
|
|
|
|
pprint.pprint(node)
|
|
|
|
|
|
|
|
from bson.objectid import ObjectId
|
|
|
|
nodes_collection = app.data.driver.db['nodes']
|
|
|
|
|
|
|
|
for n in nodes_collection.find({'project': ObjectId(project_id)}):
|
|
|
|
n_type = node_types_collection.find_one({'_id': n['node_type']})
|
|
|
|
processed_nodes = []
|
|
|
|
if n_type['name'] == 'group' and n['name'].startswith('_'):
|
|
|
|
print "Processing {0}".format(n['name'])
|
|
|
|
# Get the content of the group
|
|
|
|
children = [c for c in nodes_collection.find({'parent': n['_id']})]
|
|
|
|
make_texture_node(children[0], children, parent_id=n['parent'])
|
|
|
|
processed_nodes += children
|
|
|
|
processed_nodes.append(n)
|
|
|
|
elif n_type['name'] == 'group':
|
|
|
|
# Change group type to texture group
|
|
|
|
node_type_texture = node_types_collection.find_one({'name':'group_texture'})
|
|
|
|
n['node_type'] = node_type_texture['_id']
|
|
|
|
n['properties'].pop('notes', None)
|
|
|
|
print "Updating {0}".format(n['name'])
|
|
|
|
if not DRY_RUN:
|
|
|
|
put_item('nodes', n)
|
|
|
|
# Delete processed nodes
|
|
|
|
for node in processed_nodes:
|
|
|
|
print "Removing {0} {1}".format(node['_id'], node['name'])
|
|
|
|
if not DRY_RUN:
|
|
|
|
nodes_collection.remove({'_id': node['_id']})
|
|
|
|
# Make texture out of single image
|
|
|
|
for n in nodes_collection.find({'project': ObjectId(project_id)}):
|
|
|
|
n_type = node_types_collection.find_one({'_id': n['node_type']})
|
|
|
|
if n_type['name'] == 'asset':
|
|
|
|
make_texture_node(n, [n])
|
|
|
|
# Delete processed nodes
|
|
|
|
print "Removing {0} {1}".format(n['_id'], n['name'])
|
|
|
|
if not DRY_RUN:
|
|
|
|
nodes_collection.remove({'_id': n['_id']})
|
|
|
|
|
|
|
|
|
2015-03-12 15:05:10 +01:00
|
|
|
if __name__ == '__main__':
|
|
|
|
manager.run()
|