-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow programmatic execution without importing aspen.__main__ #540
Comments
Okay, upon looking at this again, the current code is correct because: Logging input is (or should be) done with the usual
in each module. The output should be configured by whatever app is using the aspen module. In the |
But what if what I want to do is invoke aspen, just as |
And without accepting this pull request, Mongs cannot do that except to |
...or to just copy the code from |
So are you suggesting that the changelog for this next release will read something like:
It strikes me as awkward that we would ask an app to copy code from aspen, especially when it's more than one or two lines, when it's trivially easy to expose that functionality to avoid the duplication (and unintended divergence). Don't get me wrong. Using the logging framework is an excellent improvement. And giving the applications the ability to customize how output is managed is fantastic. Would you accept a pull request that adds a comment directing users to copy that code into their projects? |
/me picks up the convo in #541 ... |
|
Dialing back out here since we have an alternative PR in #545 ... |
@jaraco Let's discuss this in terms of the roadmap for Aspen (#357). The tl;dr is that we're giving up on being a full-featured web framework, in light of the ascendency of Django and Flask (#526). Instead, we're going to provide dispatch and simplates as a plugin for Django and Flask, utilizing the request and response objects, etc., from those frameworks. We plan to ship a very basic framework using The implication for Mongs is that we'll need to decide what framework combo we want to use in the future: chadwhitacre/mongs#29.
The implication for this ticket is that we should be trying to get |
Fine by me. I withdraw the PR. |
!m @jaraco |
Logging should be implicitly configured or available to be explicitly configured, per this comment.
The text was updated successfully, but these errors were encountered: