|
a/scripts/project-import.py |
|
b/scripts/project-import.py |
|
... |
|
... |
155 |
def __init__(self, d):
|
155 |
def __init__(self, d):
|
156 |
self.__dict__.update(d)
|
156 |
self.__dict__.update(d)
|
157 |
|
157 |
|
158 |
def trove_ids(orig, new_):
|
158 |
def trove_ids(orig, new_):
|
159 |
if new_ is None: return orig
|
159 |
if new_ is None: return orig
|
160 |
return set(t._id for t in list(new_))
|
160 |
return list(set(t._id for t in list(new_)))
|
161 |
|
161 |
|
162 |
def create_project(p, nbhd, user, options):
|
162 |
def create_project(p, nbhd, user, options):
|
163 |
worker_name = multiprocessing.current_process().name
|
163 |
worker_name = multiprocessing.current_process().name
|
164 |
M.session.artifact_orm_session._get().skip_mod_date = True
|
164 |
M.session.artifact_orm_session._get().skip_mod_date = True
|
165 |
shortname = p.shortname or p.name.shortname
|
165 |
shortname = p.shortname or p.name.shortname
|