and if you find a term that is not clear, please do submit an issue or pull request so we can amend the docs and Glossary
Method_ has quit
_rschalch
stevepie thanks ... I have to say that the docs could be simpler in some aspects, Ill try to contribute for that as soon I gain some experience with pyramid
Ive been playing with pyramid for two weeks and only now I started to realize how powerful it is
stevepie_
_rschalch agreed. they are dense for newbies to Pyramid, and much more so for Python newbs, and new web app devs fuggettabouddit
Pyramid, built upon the mistakes of mortals™
_rschalch
lol
sawdog joined the channel
one more question: I see that in pyramid imports are made inside methods as opposed to other frameworks ... I read the reason on the docs, but honestly didnt understand ... why it can be dangerous?
this sometimes leads to duplication
stevepie_
got link?
dfee joined the channel
_rschalch
Ill try to find, but I think its in the get started session
Hey, if I want to always log every HTTP response for audit purposes, what's the best place to do that in Pyramid? In a tween? In a finished callback? Someplace else?
dfee joined the channel
Ergo joined the channel
dfee has quit
Belxjander joined the channel
dega
dropkick44: you could do it by logging configuration
just may take some playing
dropkick44
dega: Can you explain further or link to an example?
dega: There's already some logging hook for logging every request/response?
dega
it depends on the subsystem, however if they have logging hooks you can configure them through the loggers handlers and formatters section in your ini
you can use your tweens if you want to
i.e. if you want to interact with the response
so yeah your idea would work but if the section that handles the response has a logger you can attach to that
i did some similar items with suds
dropkick44
I just don't understand what you're suggestion. You're just saying that if I already have `log.info()` calls throughout my code, I can attach handlers to those?
I just want to make sure that every request gets logged, and I was wondering the best place to put a log entry to do that. Obviously I could put separate entries in every view, but that seems a bit redundant