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 ) )
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 ) )
def execute(self,imageName): if(util.checkNullsForTornadoAndDie(self,imageName)): return self.write(services.FacebookShareService().html(self.db,imageName))
def execute(self,query,offset,limit): if(util.checkNullsForTornadoAndDie(self,query,offset,limit)): return self.write(services.SearchService().raw(self.db,query,offset,limit))
def execute(self,offset,limit): if(util.checkNullsForTornadoAndDie(self,offset,limit)): return self.write(services.RatingService().raw(self.db,offset,limit))
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))
def execute(self,tagId,rating): if(util.checkNullsForTornadoAndDie(self,tagId,rating)): return self.write(services.RateTagService().raw(self.db,tagId,rating))
def execute(self,tagId,username,password): if(util.checkNullsForTornadoAndDie(self,tagId,username,password)): return self.write(services.DeleteTagService().raw(self.db,tagId,username,password))
def execute(self,username,offset,limit): if(util.checkNullsForTornadoAndDie(self,username,offset,limit)): return self.write(services.ListTagsByUserService().raw(self.db,username,offset,limit))
def execute(self,username): if(util.checkNullsForTornadoAndDie(self,username)): return self.write(services.GetProfileInfoService().raw(self.db,username))
def execute(self,username,password,newPassword): if(util.checkNullsForTornadoAndDie(self,username,password,newPassword)): return self.write(services.ChangePasswordService().raw(self.db,username,password,newPassword))
def execute(self,email,username,password): if(util.checkNullsForTornadoAndDie(self,email,username,password)): return self.write(services.UnregisterService().raw(self.db,email,username,password))