Beispiel #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)
Beispiel #2
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)
Beispiel #3
0
	def get(self, projectId):
		project = Project.getFromId(projectId)
		(template_data, template) = get_template('templates/project.html')
		template_data['project'] = project
		self.response.out.write(template.render(template_data))
Beispiel #4
0
 def get(self, projectId):
     project = Project.getFromId(projectId)
     (template_data, template) = get_template('templates/project.html')
     template_data['project'] = project
     self.response.out.write(template.render(template_data))