Yup, the "last pyramid app loaded" is definitely non-deterministic.
It's the best sane default we could think of as most people have only
one app and it's sometimes wrapped in a [pipeline:main] so we didn't
want you to have to specify the section name every single time in that
scenario.
It's esote
Thanks Michael!
It's worth noting that the last pyramid app created, isn't actually
determined from the order in the .ini file. Since it ultimately serializes
to a dictionary {(domain, path): loader, ...} and we all know and love the
unordered natured of Python dicts.
-C
On Wednesday, July 2
Pyramid has no way to know which pyramid app you are referring to in
bootstrap unless you specify the section. As pyramid at a fundamental
level supports running multiple apps in the same process you have to
handle this yourself outside if you need to load a specific app for
your script to run.
Th
I have defined my config.ini file as such using the paste urlmap guidelines
for creating this type of application:
[composite:main]
use = egg:Paste#urlmap
/ = project
domain developer.domain.com / = dev
domain support.domain.internal / = support # Internal/VPN-only URL
[app:project]
use =