本文整理汇总了Python中Activity.forecast_task方法的典型用法代码示例。如果您正苦于以下问题:Python Activity.forecast_task方法的具体用法?Python Activity.forecast_task怎么用?Python Activity.forecast_task使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Activity
的用法示例。
在下文中一共展示了Activity.forecast_task方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: POST
# 需要导入模块: import Activity [as 别名]
# 或者: from Activity import forecast_task [as 别名]
def POST(self, task_id):
session = Activity.createSession('try')
user = Activity.getAssignmentPersonName(session, task_id)
#activId = Activity.getAssignmentParent(session, task_id)
#if (Activity.check_can_exe_assignment(session, task_id, user_session.get('user')['name']) or
#user_session.get('user')['name']==user or Activity.check_recursive_lead(session, activId, user_session.get('user')['name'] )=="true" or user_session.get('user')['access_level']<=2 or
#Activity.getLeadTeam(session, user_session.get('user')['name']) is not None ):
if (user==user_session.get('user')['name'] or user=='' or user=="Unstaffed" or user_session.get('user')['access_level']<=2):
params = json.loads(web.data())
Activity.forecast_task(session,task_id,forecast_start_date = params["start_date"], forecast_end_date = params["end_date"])
else :
return "Permission Denied"