Пример #1
0
  def jsonContext(self):
    entities = document_logic.getForFields({'prefix': 'site'})

    data = [{'key': str(i.key()),
            'link_id': i.link_id,
            'label': i.title}
            for i in entities]

    return {'data': data}
Пример #2
0
    def jsonContext(self):
        entities = document_logic.getForFields({'prefix': 'site'})

        data = [{
            'key': str(i.key()),
            'link_id': i.link_id,
            'label': i.title
        } for i in entities]

        return {'data': data}
Пример #3
0
  def jsonContext(self):
    entities = document_logic.getForFields({
        'prefix': 'gsoc_program',
        'scope': self.data.program.key()
    })

    data = [{'key': str(i.key()),
            'key_name': i.key().name(),
            'label': i.title}
            for i in entities]

    return {'data': data}
Пример #4
0
    def jsonContext(self):
        entities = document_logic.getForFields({
            'prefix': 'gsoc_program',
            'scope': self.data.program.key()
        })

        data = [{
            'key': str(i.key()),
            'key_name': i.key().name(),
            'label': i.title
        } for i in entities]

        return {'data': data}