Beispiel #1
0
    def get(self):
        pdb_id = self.request.get('pdb_id')
        data_server_name = self.request.get('name')

        view_dicts_json = gae_model.get_views_json(pdb_id)
        pdb_text = gae_model.get_pdb_text(pdb_id)
        atom_lines_json = json.dumps(pdb_text.splitlines())

        self.response.out.write(
            jinja_it(
                'templates/data_server.jinja2.js', {
                    'data_server_name': data_server_name,
                    'pdb_id': pdb_id,
                    'atom_lines': atom_lines_json,
                    'view_dicts': view_dicts_json,
                }))
Beispiel #2
0
    def get(self):
        pdb_id = self.request.get('pdb_id')
        data_server_name = self.request.get('name')

        view_dicts_json = gae_model.get_views_json(pdb_id)
        pdb_text = gae_model.get_pdb_text(pdb_id)
        atom_lines_json = json.dumps(pdb_text.splitlines())

        self.response.out.write(
            jinja_it(
                'templates/data_server.jinja2.js',
                {
                    'data_server_name': data_server_name,
                    'pdb_id': pdb_id,
                    'atom_lines': atom_lines_json,
                    'view_dicts': view_dicts_json,
                }
            )
        )
Beispiel #3
0
 def get(self):
     pdb_id = self.request.path.split('/')[-1].replace('.views.json', '')
     self.response.out.write(gae_model.get_views_json(pdb_id))
Beispiel #4
0
 def get(self):
     pdb_id = self.request.path.split('/')[-1].replace('.views.json', '')
     self.response.out.write(gae_model.get_views_json(pdb_id))