def post(self): #logging.error('QQQ: templatecreate POST') n = Templates(Name=self.request.get('Name') , TemplateType=self.request.get('TemplateType') , FolderName=self.request.get('FolderName') , FileName=self.request.get('FileName') , Description=self.request.get('Description') , Status=self.request.get('Status') ) n.put() return webapp2.redirect('/templates?extyp=all')
def post(self): #logging.error('QQQ: templatecreate POST') n = Templates(Name=self.request.get('Name') , TemplateType=self.request.get('TemplateType') , FileName=self.request.get('FileName') , Description=self.request.get('Description') , Status=self.request.get('Status') #, CreatedBy=users.get_current_user() #, StatusBy=users.get_current_user() #, StatusDate=datetime.now() # datetime.datetime.utcnow() - datetime.timedelta(hours = 5) for East Coast United States ) #logging.error('QQQ: templatecreate before put') n.put() #logging.error('QQQ: templatecreate after put') return webapp2.redirect('/templates')