the dev says "well, just omit the value from the doc, and have the code assume a missing value is a null"
but because of this you can't roundtrip json to toml and back
and "add special handling to all your code reading these files" is a lousy decision
dfee
does anyone implement the CQRS paradigm with python web development? specifically, driving development through Models / Controllers (views) really only gets us so far. I've seen the pyramid_services concept, and i think that's a step in a health direction, but I'd love to get some architecture thoughts here.
npilon has quit
raydeo
I found needing to put quotes around everything in toml to be pretty annoying... seems like it could easily have a null value as a result of that restriction
waigani has quit
davisagli joined the channel
davisagli has quit
davisagli joined the channel
waigani joined the channel
tiwula joined the channel
Belxjander has quit
tiwula has quit
Belxjander joined the channel
econoraptorman joined the channel
hvelarde has quit
Thorn has quit
Thorn joined the channel
davisagli has quit
ztane
dfee: well, I've using something beyond pyramid_services, but it would be something that Fowler nevertheless abhors (a business layer with anemic domain model lol)
dfee
ztane: i can imagine how to do to that quite easily :)
i'm not entirely certian what he means by anemic domain model...
that seems to be the solution pyramid_services offers too, anyway.
either an anemic domain model, or a "fat model" can exist, but i'm not clear of how to build orthognal to that... without doing something like pyramid_services, or by abstracting a service layer that is really just the C in CQRS.
SQLA seems to handle the query bit fine. i've read a bit of zzzeek's stuff, but it appears he believes that SQLA models qualify as domain models. (the first half of: http://techspot.zzzeek.org/2010/12/12/a-tale-of...)
jcarl43 joined the channel
ztane
I am using the SQLA models as anemic domain model or most of it
agitator joined the channel
djdduty joined the channel
Method__ has quit
MrTango joined the channel
Belxjander has quit
agitator joined the channel
Belxjander joined the channel
mr_jolly joined the channel
nilo joined the channel
nilo has quit
atomekk joined the channel
atomekk joined the channel
mr_jolly has quit
mr_jolly joined the channel
El_Rolando joined the channel
wiggy joined the channel
wiggy has quit
wiggy joined the channel
mr_jolly has quit
waigani has quit
Charlie_X_ joined the channel
Charlie_X has quit
Charlie_X_ is now known as Charlie_X
El_Rolando has quit
slav0nic joined the channel
nilo joined the channel
chakerbenhamed joined the channel
Belxjander has quit
Belxjander joined the channel
yleclanche joined the channel
mr_jolly joined the channel
El_Rolando joined the channel
mr_jolly has quit
f_ joined the channel
f_ has quit
agitator has quit
mengu joined the channel
agitator joined the channel
bochecha joined the channel
XeL64 joined the channel
dfee has quit
dfee joined the channel
jimman joined the channel
mr_jolly joined the channel
mr_jolly has quit
mr_jolly joined the channel
mr_jolly has quit
bochecha_ joined the channel
jcarl43 has quit
bochecha has quit
econoraptorman has quit
Belxjander has quit
evilbungle joined the channel
Belxjander joined the channel
Ergo joined the channel
moo-_-
good morning
wiggy
morning
dfee has quit
Ergo
morning
Belxjander has quit
Belxjander joined the channel
chakerbenhamed has quit
mr_jolly joined the channel
mr_jolly has quit
mr_jolly joined the channel
stevepiercy
morning
Belxjander has quit
Belxjander joined the channel
moo-_-
hey stevepiercy
nilo1 joined the channel
frispete has quit
nilo has quit
mengu has quit
frispete joined the channel
Belxjander has quit
Belxjander joined the channel
jimman has quit
frispete_ joined the channel
frispete has quit
Belxjander has quit
Belxjander joined the channel
castaway has quit
castaway joined the channel
mengu joined the channel
Belxjander has quit
Belxjander joined the channel
hvelarde joined the channel
mr_jolly has quit
mr_jolly joined the channel
hvelarde is now known as hvelarde|brb
nilo1 has quit
davisagli joined the channel
evilbungle has quit
dfee joined the channel
davisagli has quit
dfee has quit
davisagli joined the channel
hvelarde|brb is now known as hvelarde
mr_jolly has quit
evagelos joined the channel
evagelos
I am trying to understand how testing works with testing.setUp
So my test is using a dummy request and I access the view function directly. I use the testing.setUp(settings=my_settings) without passing any request.
How the threadlocal.get_current_registry() returns <Registry Testing> ?
I mean how does it know that there is a request happening without me passing the dummy request to setUp(request=request, ...) ?
mr_jolly joined the channel
evilbungle joined the channel
moo-_-
evagelos: I would *guess* that testing.setUp() sets up one default request automatically
evagelos
moo-_-: thanks i just thought maybe another fixture(using pytest) sets it up, I mean i probably have conflicts :/
moo-_-
evagelos: I would suggest avoiding thread locals, even in tests
evagelos
yeah i know i read that i just wanted quickly to say my problem
moo-_-: i saw in the setUp class that it passes the argument directly without any checking like: config.begin(request=request)
exept if in the begin instantiates a dummy one ill have to look that too :|
Ok so I am in the middle of my test and while my config fixture returns the settings(config.registry.settings) when i call the threadlocal doesnt :/
I mean the threadlocal.get_current_registry().settings is None