当前位置: 首页>>代码示例>>Python>>正文


Python Project.getNode方法代码示例

本文整理汇总了Python中Project.Project.getNode方法的典型用法代码示例。如果您正苦于以下问题:Python Project.getNode方法的具体用法?Python Project.getNode怎么用?Python Project.getNode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Project.Project的用法示例。


在下文中一共展示了Project.getNode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: task

# 需要导入模块: from Project import Project [as 别名]
# 或者: from Project.Project import getNode [as 别名]
    task_develop_project_system.setDescription(
        "Develop a working project system under workspace system in the intranet"
    )

    # Add the Owner of each task (Who is going to fulfill the task)
    appCalendar.addOwner(mUser)
    task_develop_calendar.setOwner(mUser)
    task_develop_task_system.setOwner(mUser)
    task_develop_workspace_system.setOwner(mUser2)
    task_develop_project_system.setOwner(mUser2)

    # Add the event to our calendar
    appCalendar.addEvent(event_winterbreak.getNode())

    # add the tasks to both our event and our project
    event_winterbreak.addTask(task_develop_calendar.getNode())
    event_winterbreak.addTask(task_develop_task_system.getNode())
    event_winterbreak.addTask(task_develop_workspace_system.getNode())
    project_intranet.addTask(task_develop_calendar.getNode())
    project_intranet.addTask(task_develop_task_system.getNode())
    project_intranet.addTask(task_develop_workspace_system.getNode())
    project_intranet.addTask(task_develop_project_system.getNode())

    # Add a project subtask to the workspace task
    task_develop_workspace_system.addSubTask(task_develop_project_system.getNode())

    # Add the Intranet Project to our workspace
    workspace_appteam.addProject(project_intranet.getNode())

    # task_develop_calendar.clear()
开发者ID:ashaycool,项目名称:Cuore-Web-page,代码行数:32,代码来源:tasks_test.py


注:本文中的Project.Project.getNode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。