goa/appobjects/components.py
branchtls-sprint
changeset 12560 dc6d44e69a70
parent 1802 d628defebc17
child 1977 606923dff11b
equal deleted inserted replaced
2022:31412adee482 12560:dc6d44e69a70
    21 class SearchForAssociationView(EntityView):
    21 class SearchForAssociationView(EntityView):
    22     """view called by the edition view when the user asks
    22     """view called by the edition view when the user asks
    23     to search for something to link to the edited eid
    23     to search for something to link to the edited eid
    24     """
    24     """
    25     id = 'search-associate'
    25     id = 'search-associate'
    26     
    26 
    27     __select__ = one_line_rset() & match_search_state('linksearch') & accept
    27     __select__ = one_line_rset() & match_search_state('linksearch') & accept
    28 
    28 
    29     def cell_call(self, row, col):
    29     def cell_call(self, row, col):
    30         entity = self.entity(0, 0)
    30         entity = self.entity(0, 0)
    31         role, eid, rtype, etype = self.req.search_state[1]
    31         role, eid, rtype, etype = self.req.search_state[1]
    41 class SchemaImageView(StartupView):
    41 class SchemaImageView(StartupView):
    42     id = 'schemagraph'
    42     id = 'schemagraph'
    43     binary = True
    43     binary = True
    44     content_type = 'image/png'
    44     content_type = 'image/png'
    45     def call(self):
    45     def call(self):
    46         """display global schema information"""        
    46         """display global schema information"""
    47         skipmeta = not int(self.req.form.get('withmeta', 0))
    47         skipmeta = not int(self.req.form.get('withmeta', 0))
    48         if skipmeta:
    48         if skipmeta:
    49             url = self.build_url('data/schema.png')
    49             url = self.build_url('data/schema.png')
    50         else:
    50         else:
    51             url = self.build_url('data/metaschema.png')
    51             url = self.build_url('data/metaschema.png')