A search interface for the Performing Patents Otherwise publication as part of the Politics of Patents case study (part of Copim WP6): this parses data from the archive of RTF files and provides additional data from the European Patent Office OPS API. https://patents.copim.ac.uk
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
847B

  1. # @name: conversations.py
  2. # @creation_date: 2022-10-27
  3. # @license: The MIT License <https://opensource.org/licenses/MIT>
  4. # @author: Simon Bowie <ad7588@coventry.ac.uk>
  5. # @purpose: conversations route for Section 2: Archive Conversations
  6. # @acknowledgements:
  7. from flask import Blueprint, render_template
  8. import markdown
  9. conversations = Blueprint('conversations', __name__)
  10. # route for Martha Gowans page
  11. @conversations.route('/conversations/')
  12. def index():
  13. with open('content/section_2/conversations.md', 'r') as f:
  14. text = f.read()
  15. text = markdown.markdown(text)
  16. return render_template('conversations.html', text=text)
  17. def martha():
  18. with open('content/section_2/I-Martha-gowans.md', 'r') as f:
  19. text = f.read()
  20. text = markdown.markdown(text)
  21. return render_template('conversations.html', text=text)