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
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

making.py 995B

1234567891011121314151617181920212223242526272829303132
  1. # @name: making.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: making route for Section 5: Making of
  6. # @acknowledgements:
  7. from flask import Blueprint, render_template
  8. import markdown
  9. making = Blueprint('making', __name__)
  10. # route for making of page
  11. @making.route('/making/')
  12. def index():
  13. return render_template('index.html')
  14. # route for interface design essay
  15. @making.route('/making/interface/')
  16. def interface():
  17. with open('content/section_5/on-interface-design.md', 'r') as f:
  18. text = f.read()
  19. text = markdown.markdown(text)
  20. return render_template('making.html', text=text)
  21. # route for databases essay
  22. @making.route('/making/databases/')
  23. def databases():
  24. with open('content/section_5/on-combining-databases-and-books.md', 'r') as f:
  25. text = f.read()
  26. text = markdown.markdown(text)
  27. return render_template('making.html', text=text)