Exemplo n.º 1
0
    def get_generated_document(self):
        document_id = self.request.get('document-id')
        if not document_id:
            raise NotFound

        document = GeneratedProtocol.get(document_id)
        if not document:
            raise NotFound

        return document
Exemplo n.º 2
0
    def get_generated_document(self):
        document_id = self.request.get('document-id')
        if not document_id:
            raise NotFound

        document = GeneratedProtocol.get(document_id)
        if not document:
            raise NotFound

        return document