stevepiercy: yeah, so the 2 fixes i found are to either a) move the location (compared to the existing docs) of self.session = _initTestingDB() call below the app = get_app('development.ini') call [suboptimal, for reasons discussed above]
stevepiercy
right
kilodalton
or b) add from .models import DBSession —> DBSession.remove() to the tearDown to clear the existing session so that the WikiViewTests initdb call can set the session properly with the data
stevepiercy
raydeo i'll make sure you said paul's tests are bonkers :P
kamalgill has quit
kilodalton
i guess really effectively doing the same thing, clearing the session so that the session can be set with the proper data in the later test
mcdonc: thanks man — much appreciated. I have a confession though… I'm using TG 2.1. I was hoping since paster is a common link between the two, the same solution might apply. I'll check this out though :)
mcdonc
doesnt really matter what wsgi app you're using, r.p won't care
driti has quit
heiths
oh, nice! trying it out now
mejymejy has quit
kilodalton
Can I ask one more question about http://docs.pylonsproject.org/projects/pyramid/... When running the $VENV/bin/initialize_tutorial_db development.ini script, it doesn't generate any output (even though it works)
There is output shown in the tutorial though, just curious if there was some setting I was missing
i verified the fix works, so i will merge it and backport it to all the current branches
eatkin has quit
eatkin joined the channel
kilodalton
I haven't issued a pull request for a repo that I didn't have the ability to push my branch to. Do I fork the repo, make the change and issue the pull request from there? (Need more info) Or are you saying you are going to change it yourself?
( stevepiercy )
stevepiercy
kilodalton you fork the repo, clone your fork, then set up remotes
git commit; git push (to your origin); switch to GitHub, clicking on PRs to create a new PR
kilodalton
ok
jwhisnant has left the channel
stevepiercy
er switch to your fork of the repo on GitHub, that is
kilodalton
right
stevepiercy
:D
kilodalton
:-)
thanks so much for your help
atomekk has quit
I need to run now, but I will add take care of it on Monday!
driti joined the channel
mejymejy joined the channel
digitalsatori joined the channel
otter768 joined the channel
mejymejy has quit
otter768 has quit
rodfersou joined the channel
davidjb has quit
digitalsatori has quit
ajmitch_ has quit
sontek has quit
cguardia has quit
cguardia joined the channel
digitalsatori joined the channel
jathanism joined the channel
DingoSaar_ joined the channel
DingoSaar has quit
otter768 joined the channel
jwhisnant joined the channel
jwhisnant has left the channel
otter768 has quit
rodfersou has quit
rickmak joined the channel
Lcaracol has quit
rickmak has quit
Lcaracol joined the channel
tamarin joined the channel
tamarin
Can I call another renderer from within Chameleon? Example - I have a template and I want to include a snippet highlighted via Pygments.
rickmak joined the channel
raydeo
chameleon supports slots
you can't call the renderer directly but you can call a function or send the rendered string into the template and insert it where you want
heiths has quit
rickmak has quit
tamarin
Slots, eh? hm
rickmak joined the channel
rickmak has quit
Would it make more sense to use render() with pygments and then send that to another render() for the main template?
raydeo
well I dunno about "more sense" than what... but it's certainly a valid approach
tamarin
Since I'm not 100% sure how to do this, maybe s/more sense/any sense/ :)
rickmak joined the channel
rickmak has quit
rickmak joined the channel
c0le joined the channel
rickmak has quit
tamarin_ joined the channel
tamarin has quit
rickmak joined the channel
rickmak has quit
frispete joined the channel
rtopliffe has quit
tamarin_ has quit
tamarin_ joined the channel
frispete_ has quit
driti joined the channel
dakra joined the channel
markm has quit
tamarin_ has quit
tamarin_ joined the channel
otter768 joined the channel
otter768 has quit
tamarin_ has quit
tamarin_ joined the channel
diefenbach has quit
chrstphrhrt has quit
symon6 joined the channel
dakra has quit
symon6
Hello, I just finishing blogr tutorial and in chapter 8 there is a task to add two methods to models.py Problem is that there is no models.py because I had to rename it and move to /models. Should I create new class models.py or just edit models/__init__.py?