S.Lott -- Software Architect
  • Other Articles
  • Publications
  • S.Lott Biography

Found an ancient CGI script -- part IV -- OpenAPI specification

Date Tue 21 September 2021 Tags Apache / wsgi / CGI / #python

See the previous sections, starting with the first on finding an ancient CGI script.

We don't need an OpenAPI specification. But, it is so helpful to formalize the behavior of a web site that it's hard for me to imagine working without it.

In this case, the legacy script only …

more ...

Found an ancient cgi script -- part III -- refactoring

Date Fri 17 September 2021 Tags Apache / wsgi / CGI / #python

Be sure to see the original script and the test cases in the prior posts.

We need to understand a little about what a web request is. This can help us do the refactoring.

It can help to think of a web server a function that maps a request to …

more ...

Found an ancient cgi script -- part II -- testing

Date Tue 07 September 2021 Tags Apache / wsgi / CGI / #python

See "We have an ancient Python2 CGI script -- what do we do?" The previous post in this series provides an overview of the process of getting rid of legacy code.

Here's some code. I know it's painfully long; the point is to provide a super-specific, very concrete example of what …

more ...

We have an ancient Python2 CGI script -- what do we do?

Date Tue 31 August 2021 Tags Apache / wsgi / CGI / #python

This was a shocking email: the people have a Python 2 CGI script. They needed advice on Python 2 to 3 migration.

Here's my advice on a Python 2 CGI script: Throw It Away.

A great deal of the CGI processing is part of the wsgi module, as well as …

more ...

  • Social

    • Mastodon
    • Github
    • StackOverflow
    • LinkedIn
    • O'Reilly
    • Amazon
  • Categories

    • Architecture & Design
    • Books
    • FOSS
    • Management
    • News
    • Python
    • Technologies
  • Links

    • Pelican
    • Python.org
    • Jinja2
  • Archive

    • September 2021 (3)
    • August 2021 (1)

© 2021 S.Lott · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top