you've got something screwy in your virtualenv... it's likely related to mixing "python setup.py develop" with "pip install"
they should not be mixed
jpenny
You know, once upon a time, programmers programmed. The programs were mostly a lot smaller and mostly a lot more simple, but damn, all this integration stuff gets to be a drag. I have some sympathy for jshipman.
chrstphrhrt
raydeo: ok thanks
raydeo
chrstphrhrt: if you're gonna use pip then use "pip install -e ." instead of setup.py develop
jstoiko joined the channel
kamalgill joined the channel
mejymejy joined the channel
cyp has quit
kilodalton
can anyone help with a (I think) quick question from the Pyramid quick tutorial? When I run the nosetest for the database tutorial it throws a warning that "SAWarning: At least one scoped session is already present. configure() can not affect sessions that have already been created. warn('At least one scoped session is already present. '
in the tearDown method for the test it has self.session.remove() ....so I am not sure why the session isn't cleared
raydeo
or self.session or whatever
kilodalton
so yes, raydeo
tamarin joined the channel
raydeo
I think it's probably occurring in the get_app() call
the app is probably re-initializing the session
that whole test file seems kinda bonkers
kilodalton
:-)
tamarin
Is there a autoindex-like view for Pyramid?
raydeo
huh
driti joined the channel
kilodalton
Just trying to walk through the tutorial as it's written to get a more experiential sense of the feature set of Pyramid
driti has quit
raydeo
well for that test I think you just want to remove the _initTestingDB stuff and self.session etc
none of it is used in test_it I don't think?
kilodalton
ok
raydeo
tamarin: I don't know what you're asking for
otter768 joined the channel
tamarin
raydeo: Oh, sorry. Similar to the 'autoindex' option in nginx, or 'index' in apache - basically a list of static files automatically grouped into an index.
Charlie_X
Dowwie: where is your source code being hosted?
raydeo
there is no such thing in pyramid... maybe there's an addon I've never heard of
tamarin
That's easy to set up with server software, but it would be super convenient to package it instead of reconfiguring each server.
Dowwie
Charlie_X: github
Charlie_X
Then use the tracker there. It's okay.
calvinhp has quit
Though I think you still can't attach files to issues except for images.
calvinhp joined the channel
sgflt joined the channel
otter768 has quit
raydeo
tamarin: well it'd be pretty easy to create ;-)
Charlie_X
raydeo: install apache behind pyramid and proxy? :-)
tamarin has quit
tamarin joined the channel
calvinhp has quit
goodwill hugs Charlie_X
Charlie_X goes into shock
rodfersou has quit
inklesspen
apache behind pyramid
that's ... ingenious
Charlie_X
muhaha
Charlie_X strokes long-haired cat
gavinc
nginx-> uwsgi-> apache works too ;)
Charlie_X
Little does inklesspen know that behind apache is a Pyramid app that does os.listdir()
driti joined the channel
gavinc: I see your apache and raise you an IIS running remotely on a cloud
goodwill
heheheh
what is this
for rouding?
routing
driti has quit
gavinc
no no, netscape server with altavista search extensions!
inklesspen
AOLServer
gavinc
inklesspen wins.
goodwill
oh man
Charlie_X
"The crowd's gone wild!"
gavinc
tcl for web applications
goodwill
have I walked thru a whole is space time continuum today?
hole
goodwill hugs Charlie_X tighter
Charlie_X
goodwill: above your pay-grade: generating a linked list of files
goodwill
Charlie_X: not skip list?
I once had an interview where the person asked one question skipped list for 1 hour, over and over
Charlie_X
no, a list of files you can click on. Tricky stuff
goodwill
since then I knew they are important
and must be used EVERYWHERE
kilodalton
raydeo, it was in the get_app('development.ini') call as you suggested (the "At least one scoped session" warning)
gustavofonseca has quit
raydeo
kilodalton: there are some better patterns online for doing sqlalchemy tests in pyramid
but definitely more advanced than what that tutorial is showing
kilodalton
if any come to mind or you have the links handy that would be great