Exemplo n.º 1
0
	def execute(self,username,password,latitude,longitude,orientation,filename,thumbFilename,filetype,thoroughfare,subThoroughfare,locality,subLocality,adminArea,subAdminArea,postalcode,country):
		if(util.checkNullsForTornadoAndDie(self,username,password,latitude,longitude,orientation,filename,thumbFilename,filetype)): return
		self.write(
			services.Publish2Service().raw(
				self.db,username,password,
				latitude,longitude,orientation,
				filename,thumbFilename,filetype,
				thoroughfare,subThoroughfare,
				locality,subLocality,
				adminArea,subAdminArea,
				postalcode,country
			)
		)
Exemplo n.º 2
0
	def execute(self,username,password,latitude,longitude,orientation,upload,uploadThumb,filetype,thoroughfare,subThoroughfare,locality,subLocality,adminArea,subAdminArea,postalcode,country):
		if(util.checkNullsForTornadoAndDie(self,username,password,latitude,longitude,orientation,upload,uploadThumb,filetype)): return
		uploadedFile = util.UploadedFile(upload['body'])
		uploadedThumbFile = util.UploadedFile(uploadThumb['body'])
		self.write(
			services.PublishService().raw(
				self.db,username,password,
				latitude,longitude,orientation,
				uploadedFile,uploadedThumbFile,filetype,
				thoroughfare,subThoroughfare,
				locality,subLocality,
				adminArea,subAdminArea,
				postalcode,country
			)
		)
Exemplo n.º 3
0
 def execute(self,imageName):
     if(util.checkNullsForTornadoAndDie(self,imageName)): return
     self.write(services.FacebookShareService().html(self.db,imageName))
Exemplo n.º 4
0
	def execute(self,query,offset,limit):
		if(util.checkNullsForTornadoAndDie(self,query,offset,limit)): return
		self.write(services.SearchService().raw(self.db,query,offset,limit))
Exemplo n.º 5
0
	def execute(self,offset,limit):
		if(util.checkNullsForTornadoAndDie(self,offset,limit)): return
		self.write(services.RatingService().raw(self.db,offset,limit))
Exemplo n.º 6
0
	def execute(self,latitude,longitude,offset,limit):
		if(util.checkNullsForTornadoAndDie(self,latitude,longitude,offset,limit)): return
		self.write(services.ARNearbyService().raw(self.db,latitude,longitude,offset,limit))
Exemplo n.º 7
0
	def execute(self,tagId,rating):
		if(util.checkNullsForTornadoAndDie(self,tagId,rating)): return
		self.write(services.RateTagService().raw(self.db,tagId,rating))
Exemplo n.º 8
0
	def execute(self,tagId,username,password):
		if(util.checkNullsForTornadoAndDie(self,tagId,username,password)): return
		self.write(services.DeleteTagService().raw(self.db,tagId,username,password))
Exemplo n.º 9
0
	def execute(self,username,offset,limit):
		if(util.checkNullsForTornadoAndDie(self,username,offset,limit)): return
		self.write(services.ListTagsByUserService().raw(self.db,username,offset,limit))
Exemplo n.º 10
0
	def execute(self,username):
		if(util.checkNullsForTornadoAndDie(self,username)): return
		self.write(services.GetProfileInfoService().raw(self.db,username))
Exemplo n.º 11
0
	def execute(self,username,password,newPassword):
		if(util.checkNullsForTornadoAndDie(self,username,password,newPassword)): return
		self.write(services.ChangePasswordService().raw(self.db,username,password,newPassword))
Exemplo n.º 12
0
	def execute(self,email,username,password):
		if(util.checkNullsForTornadoAndDie(self,email,username,password)): return
		self.write(services.UnregisterService().raw(self.db,email,username,password))