def get(self): self.get_current_user() kwargs = dict(self.application.static_kwargs) kwargs['page_name'] = 'resource_profile' kwargs['config'] = config resource_id = self.get_argument('resource_id', None) try: resource = Resource(self.db, config) results = resource.get(resource_id) kwargs['resource_object'] = results['response'] self.write(self.application.loader.load('resource_profile.html').generate(**kwargs)) except: self.redirect('/')
def get(self): resource_id = self.get_argument('resource_id', None) resource = Resource(self.db, config) self.write(resource.get(resource_id))