Esempio n. 1
0
 def post(self, projectId):
     project = Project.getFromId(projectId)
     project.title = self.request.get('title')
     project.description = self.request.get('description')
     project.members = map(lambda x: x.strip(),
                           self.request.get('members').split(','))
     project.tags = map(lambda x: x.strip(),
                        self.request.get('tags').split(','))
     if project.tags == ['']:
         project.tags = []
     project.folder = self.request.get('folder')
     project.calendar = self.request.get('calendar')
     project.project_lead = self.request.get('project_lead')
     project.project_areas = self.request.get('project_area',
                                              allow_multiple=True)
     project.project_deliverables = self.request.get('project_deliverables',
                                                     allow_multiple=True)
     project.project_resources = self.request.get('project_resources',
                                                  allow_multiple=True)
     project_canvas = {}
     for item in Project.getCanvasFields():
         project_canvas[item] = self.request.get(item)
     project.canvas = project_canvas
     project.put()
     self.redirect('/project/%s' % projectId)
Esempio n. 2
0
 def post(self):
     project = Project(title=self.request.get('title'),
                       description=self.request.get('description'),
                       members=map(lambda x: x.strip(),
                                   self.request.get('members').split(',')))
     # TODO (arnaud): fix that; this is a repeat of the other method.
     project.tags = map(lambda x: x.strip(),
                        self.request.get('tags').split(','))
     if project.tags == ['']:
         project.tags = []
     project.folder = self.request.get('folder')
     project.calendar = self.request.get('calendar')
     project.project_lead = self.request.get('project_lead')
     project.project_areas = self.request.get('project_area',
                                              allow_multiple=True)
     project.project_deliverables = self.request.get('project_deliverables',
                                                     allow_multiple=True)
     project.project_resources = self.request.get('project_resources',
                                                  allow_multiple=True)
     project_canvas = {}
     for item in Project.getCanvasFields():
         project_canvas[item] = self.request.get(item)
     project.canvas = project_canvas
     project.put()
     self.redirect('/project/%s' % project.key.id())
Esempio n. 3
0
	def post(self, projectId):
		project = Project.getFromId(projectId)
		project.title = self.request.get('title')
		project.description = self.request.get('description')
		project.members = map(lambda x:x.strip(), self.request.get('members').split(','))
		project.tags = map(lambda x:x.strip(), self.request.get('tags').split(','))
		if project.tags == ['']:
			project.tags = []
		project.folder = self.request.get('folder')
		project.calendar = self.request.get('calendar')
		project.project_lead = self.request.get('project_lead')
		project.project_areas = self.request.get('project_area', allow_multiple=True)
		project.project_deliverables = self.request.get('project_deliverables', allow_multiple=True)
		project.project_resources = self.request.get('project_resources', allow_multiple=True)
		project_canvas = {}
		for item in Project.getCanvasFields():
			project_canvas[item] = self.request.get(item)
		project.canvas = project_canvas
		project.put()
		self.redirect('/project/%s' % projectId)
Esempio n. 4
0
	def post(self):
		project = Project(title=self.request.get('title'),
			description=self.request.get('description'),
			members=map(lambda x:x.strip(), self.request.get('members').split(',')))
		# TODO (arnaud): fix that; this is a repeat of the other method.
		project.tags = map(lambda x:x.strip(), self.request.get('tags').split(','))
		if project.tags == ['']:
			project.tags = []
		project.folder = self.request.get('folder')
		project.calendar = self.request.get('calendar')
		project.project_lead = self.request.get('project_lead')
		project.project_areas = self.request.get('project_area', allow_multiple=True)
		project.project_deliverables = self.request.get('project_deliverables', allow_multiple=True)
		project.project_resources = self.request.get('project_resources', allow_multiple=True)
		project_canvas = {}
		for item in Project.getCanvasFields():
			project_canvas[item] = self.request.get(item)
		project.canvas = project_canvas
		project.put()
		self.redirect('/project/%s' % project.key.id())