debug works, but there is pyramid_mailer.debug in list
there no other "mailer" word at the page
is `pyramid.includes` value correct?
what statement can I execute in IDE to see which modules are actually loaded?
x58
pyramid.includes is correct. It gets parsed, and include() gets called on them.
d9k_
in IDE's "evaluate expression" debugger window I mean
there is `config.registry.registerUtility(mailer, IMailer)` at pyramid_mailer/debug.py
but I use manual `config.registry['mailer'] = Mailer.from_settings(settings)` in my_test_app.__init__
x58
That may break it...
d9k_
oh...
x58
Were is Mailer coming from?
from pyramid_mailer import Mailer?
You'd have to replace that with from pyramid_mailer.debug import Mailer I would assume
d9k_
yes
x58
or something similar.
You don't have to do Mailer.from_settings(settings) though
if you pyramid.includes it.
Since it will do that for yo.
d9k_
pyramid makes me to look at it's insides so often..
ztane
d9k_: why?
x58
I don't think that fair:
Configuration
If you configure a Mailer using from_settings() or via config.include('pyramid_mailer'), you can pass the settings from your Paste .ini file. For example:
Is in the documentation.
ztane
yes...?
x58
It states there are two ways to create a Mailer. You were trying to use both.
ztane: ?
ztane
ah sorry :P
cguardia joined the channel
thought you were d9k_ :P
d9k_
x58m, ok, I got it
thanks a lot :)
ztane
anyway, I've found that pyramid and addons are one of the libs where I need to peek the source the least
s/one/some/
just wondering
x58
There are some things that I wish were documented better. I should start writing them down when I do dive into the source code.
d9k_
It's just wild opensource world :) I must become get used to thought that everything may happen
and fix it by myself..
I came from Yii background, Yii is popular so that's easy to google tons of threads solving almost any possible problem on yii forums.
x58
Same thing with Zend Framework, or CakePHP or What's that other one, Composer something or other.
d9k_
But I must confess that I already like Pyramid :) And this conference is great. Thanks!
Zart
pyramid employs number of other packages.. and most of the problems that people have with pyramid have nothing to do with pyramid itself 8)
x58
Yeah, you'll need to dive into the source code more, but that will give you a much better understanding of what is going on, and why.
Thereby hopefully allowing you to architect your application in a simpler and easier fashion.
d9k_
I'll do my best)
Zart
working with request is handled by webob. deploy settings and middleware/app composition - pastedeploy. templating - whatever you have choosen. database - whatever you have choosen. form handling - ditto...
x58
Speaking of which, I really need to fix the one last bug I wanted to fix and then release 1.5.0 of WebOb.
ah just remembered... wonder what is the rationale of using 0.0.0.0 for the development.ini in scaffolds
d9k_ joined the channel
tokra100 has left the channel
Zart
some servers default to 127.0.0.1
d9k_ has quit
x58
0.0.0.0 means bind to all available IPv4 addresses
Whereas 127.0.0.1 only binds to localhost.
frispete joined the channel
frispete_ has quit
atomekk joined the channel
ztane
yes... I've known that since the last millennium, but that is like the most annoying default for a dev server.
Zart
why?
yvl joined the channel
El_Rolando joined the channel
x58
Personally I think it is an awesome default, so when I type in my "hostname.local" into my browser things just work (127.0.0.1 is not advertised over mDNS)
ztane
because if I am devving on a laptop then by default that exposes my pyramid services to whoever.
x58
You don't have an appropriate firewall up and running?
Zart
you know, binding to localhost still exposes them to whoever...
unless you're on bsd
x58
It does what now?
If you bind to 127.0.0.1 it is not exposed to the internet.
Zart
it still is
x58
Prove it.
ztane
yeah could be possible that with IP forwarding, you can get a packet to 127.0.0.1