Exemplo n.º 1
0
	def post(self, page):
		query = PushList()
		query.name = self.param('name')
		query.pushurl = self.param('website')
		query.username = self.param('username')
		query.password = self.param('password')
		query.acategory = self.param('acategory')
		query.category = self.param('category')
		query.put()
		return self.get(page)
Exemplo n.º 2
0
	def get(self):
		if self.param('delid') == '':
			listit = PushList()
			querys = listit.all()
			feedDetal = ''
			self.template_vals.update({'list':querys, 'categories':Category.all(), 'website':list(PushMethod().Get_name())})
			content = template.render('plugins/pushblog/pushblog.html', self.template_vals)
			self.render2('views/admin/setup_base.html', {'m_id':'pushblog_setup', 'content':content})
		else:
			listit = PushList()
			logging.info(self.param('delid'))
			querys = listit.get(self.param('delid'))
			querys.delete()
			self.redirect('/admin/pushblog/setup')