cdunklau: thanks, yeah, i found that yesterday myself
Zart
the problem with route overriding in ordering sensitivity
brianthelion
Zart: my gist example only has one route and i still can't override it
that's the somewhat perplexing part
Zart
because you havent commited config
brianthelion
ah, ok
Zart
call config.commit() after config.include
and it will work
otherwise you're trying to define route twice inside the same transaction
brianthelion
thanks, will try
didn't mean to interrupt you on the ordering point though.... what were you going to say there?
Zart
say, you have add_route('/foo') and add_route('/foobar')
if they added in this order, then /foobar route wont ever match
because /foo will match any /foobar as well
brianthelion
so in the overriding scenario using includme, third-parties that want to add more routes might get hosed because includeme added "/foo" and they are then trying to add "/foobar"
Zart
yes
brianthelion
hmm
ok, that's good to know
i need to be thinking of this like iptables
;-)
Zart
it's possible to compose routes, but you will have to deal with ordering somehow
for example implementing priorities, like tweens do
or defining variables like pyramid.includes
brianthelion
i'll have to familiarize myself with that stuff
Zart: thanks for the pointers! is there any source code that you can think of that implements a capability for setting default routes via includeme that can than be overridden? I was hoping to find such a thing in cornice but i can't quite understand what it's doing under the hood
this is super useful for me insofar as it's a nice case study in what NOT to do
otter768 joined the channel
tisto has quit
lurker has quit
still not entirely clear that the new branch solves the foo/foobar problem
Zart
add_route is now explicit and separate
brianthelion
ah, i see. so the Services defined in views.py get added to the config in main(..) using the new register_service_views(...)
which presumably also adds the routes
TodPunk joined the channel
hvelarde is now known as hvelarde|mia
crooksey has quit
munch_ has quit
conan_the_destro joined the channel
pyramid375 has quit
kamalgill joined the channel
tokra100 joined the channel
yleclanche has quit
El_Rolando has quit
sakal joined the channel
tokra100 has quit
sakal has quit
travisfischer joined the channel
markm joined the channel
tokra100 joined the channel
tokra100 has left the channel
mejymejy joined the channel
lurker joined the channel
mejymejy has quit
mejymejy joined the channel
evilbungle has quit
cewing joined the channel
munch_ joined the channel
ronnix has quit
wiggy joined the channel
munch_ has quit
otter768 joined the channel
zepolen has quit
zepolen joined the channel
veeti joined the channel
Charlie_X
"Please customise your source code for us". "Sure, if you'll pay me". SILENCE
munch_ joined the channel
veeti has quit
veeti joined the channel
Loetkolben joined the channel
yeukhon joined the channel
mejymejy has quit
zmijunkie joined the channel
mejymejy joined the channel
munch_ has quit
lurker has quit
gxti joined the channel
mejymejy has quit
Charlie_X has quit
teix has quit
thomi joined the channel
kamalgill has quit
Charlie_X joined the channel
thdr has quit
NotreDev joined the channel
NotreDev
how is the pyramid leadership thinking about async? deferring to other libs like aiohttp or building that support in?
mejymejy joined the channel
Zart
pyramid is a wsgi framework
wsgi doesnt play well with async by design
d9k_ joined the channel
wiggy has quit
mejymejy has quit
thdr joined the channel
sendq joined the channel
sontek
NotreDev: aiopyramid does work though if its something you are interesting. Using async stuff isn't as big of a win as people think because its usually not the webframework blocking you, its your DB driver and majority of those aren't async aware
jMyles
NotreDev: I frequently use pyramid with Twisted (via hendrix) and it works well for async tasks.
zmijunkie has quit
rodfersou has quit
rodfersou joined the channel
wiggy joined the channel
Zart has quit
dstufft
sontek: NotreDev aiopg + SQLA's expression syntax works well if your DB is postgresql, but you don't get to use the ORM
Zart joined the channel
otter768 joined the channel
d9k_ has quit
kilodalton joined the channel
wiggy has quit
d42 joined the channel
mejymejy joined the channel
markm joined the channel
gustavofonseca joined the channel
fabiobatalha joined the channel
Lcaracol has quit
Lcaracol joined the channel
mejymejy has quit
kamalgill joined the channel
Loetkolben has quit
mejymejy joined the channel
d9k_ joined the channel
queso joined the channel
kamalgill has quit
tamarin_ joined the channel
dowwie
[redacted]
[redacted]
[redacted]
Pumukel has quit
[redacted]
raydeo
python got a new toy so now people want to try it out.. not surprising