|
...
|
...
|
@@ -13,7 +13,7 @@ from lib import common |
|
|
|
import uuid
|
|
|
|
from base64 import b64decode
|
|
|
|
|
|
|
|
from lib.common import WorkPlace
|
|
|
|
from lib.common import WorkPlace, College
|
|
|
|
|
|
|
|
|
|
|
|
def _send_msg(local_func, remote_func, to, content, thread_type, suffix):
|
|
...
|
...
|
@@ -164,8 +164,11 @@ class Executor(): |
|
|
|
return objects
|
|
|
|
|
|
|
|
def addWork(self, work_detail, privacy='EVERYONE'):
|
|
|
|
print(work_detail)
|
|
|
|
work = WorkPlace.from_dict(work_detail)
|
|
|
|
print(work)
|
|
|
|
res = self.client.addWorkPlace(work, privacy)
|
|
|
|
return res
|
|
|
|
|
|
|
|
def addSchool(self, school_detail, privacy="EVERYONE"):
|
|
|
|
school = College.from_dict(school_detail)
|
|
|
|
res = self.client.addCollege(school, privacy)
|
|
|
|
return res |
...
|
...
|
|