You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We actually have something better than this. Class-based views aren't particularly better than what we have (we could just split views into two methods). I've been working on a library named docflow that is available via Coaster. It provides workflows that sit between the model and the view and clean up a lot of cruft present in both. Docflow was written after Hasjob, so Hasjob hasn't been updated to use it.
Flask supports CBVs. Moving to them might give us cleaner code as we can separate
get()
post()
methods to handle requests. E.g. from Flask doc -Some views handle forms during POST requests and right now we're just using
request.method == 'POST'
to handle them. We could do that better.The text was updated successfully, but these errors were encountered: