Exemplo n.º 1
0
 def create_draft_project(self, draft_project_dto: DraftProjectDTO):
     """
     Creates a draft project
     :param draft_project_dto: DTO containing draft project details
     :param aoi: Area of Interest for the project (eg boundary of project)
     """
     self.project_info.append(ProjectInfo.create_from_name(draft_project_dto.project_name))
     self.status = ProjectStatus.DRAFT.value
     self.author_id = draft_project_dto.user_id
     self.last_updated = timestamp()
Exemplo n.º 2
0
 def create_draft_project(self, draft_project_dto: DraftProjectDTO, aoi: AreaOfInterest):
     """
     Creates a draft project
     :param draft_project_dto: DTO containing draft project details
     :param aoi: Area of Interest for the project (eg boundary of project)
     """
     self.project_info.append(ProjectInfo.create_from_name(draft_project_dto.project_name))
     self.area_of_interest = aoi
     self.status = ProjectStatus.DRAFT.value
     self.author_id = draft_project_dto.user_id
     self.last_updated = timestamp()
     self.changeset_comment = current_app.config['DEFAULT_CHANGESET_COMMENT']