chutchut: I knew you should have taken that left turn at Albuquerque
chutchut
haha thx offby1, hang on inklesspen X)
im using url dispatch, these routes allow the user to get info about themselves. the problem is when I do /user and /user/2 i get the same response (user 2 does not exist)
inklesspen
and?
(does it?)
chutchut
lol no
thats the point
user/1 is valid
user/2 is not
in my other views where I do something similar, the error is returned
i think im missing something obvious
inklesspen
you seem to be using a lot of custom utlity classes
but, get_my_user fetches a user based on your authenticated userid. is it possible that's 2?
and of course get_user has 2 hardcoded
chutchut
so for example, im authed as admin user (id 1) - /user and /user/1 are the same (as expected), but the same is true for /user and /user/2
pyeek has quit
no theres only one record in the db
table
offby1
pimp_my_ride pimps a ride based on your taste and budget
chutchut
nice! X)
inklesspen
chutchut: i would recommend adding some break points and making sure the program flow is what you think it is.
inklesspen: perhaps it's a decent UI for people who don't have Emacs :)
inklesspen
heh
goodwill
offby1: I know right? I feel for those sad people
chutchut
hmm its actually flowing as i expected, but it seems after 'return JSONAPIResponse("Couldnt find user id..' it actually calls the get_user view, why would this happen?
any ideas inklesspen?
or others X)
inklesspen
nope. based on little i've seen of your code there's no obvious reason why it would do that
chutchut
hmm can i add anything else that would help?
nouri has quit
yleclanche has quit
mejymejy has quit
Paradisee has quit
inklesspen, router.py seems to be calling invoke_subrequest(), can I disable that?
inklesspen
no
that's how the routing system works.
chutchut
ok
inklesspen
something is probably very wrong with your app configuration
chutchut
i think ill just use simple(r) routes, they were working fine in my other views