#pyramid

/

      • fabiobatalha joined the channel
      • stevepie_
        shweet
      • i guess i can no longer tweak your nipples
      • Charlie_X
        We can ask raydeo when he gets up
      • postlogic
        I could live with functions like '.issue #<num>' to actually get it to show me stuff, but other than that meh.
      • Charlie_X
        stevepie_: just have the cricket score open to wind up me and MatthewWilkes
      • c0le has quit
      • stevepie_
        i don't think i'll ever understand cricket
      • or sweater vests
      • rhubarb is a nasty vegetable. what does it have to do with cricket?
      • RobMcBroom has quit
      • i swear you cricket fans string random words together to make it sound like you're talking about a legitimate sport
      • Charlie_X
        It's more than sport. It's a cultural phenomenon.
      • The stick of rhubard is a cliché used by one the commentators. You can play Boycott bingo
      • stevepie_
        Johnson mailboxed the frigate, giving Smith the wombat for twiddling the spongecake
      • Charlie_X
        It's less numbers based than baseball
      • stevepie_
        and i will bet that has actual meaning in cricket culture
      • Charlie_X
        The game is constantly on a knife edge and England are always able to snatch defeat from the jaws of victory
      • America could be like this if only you could stop caring about success
      • stevepie_
        bayz boll is awful
      • Charlie_X
        We like anything we can mine for irony.
      • stevepie_
        failure is awesome. i'm very successful at it
      • Charlie_X
        Shit, Broad's out. Time for some last wicket swashbuckling by Anderson
      • stevepie_
        oh noez! Broad got jimmied on the fencepost!
      • Charlie_X
        The commentary is great. You can listen either to the BBC via YouTube or guerrilla cricket. Which is some sad middle age blokes commentating about what they can see on the telly.
      • stevepie_ practicing to be authentic BBC cricket color commentator
      • Beats programming for a living. There is always cake.
      • stevepie_
        what?!? there's cake?
      • blaflamme has quit
      • damn, i'm coming out of retirement
      • i am always amused by merkin commentators on soccer
      • applying american football terms to soccer
      • chrisrossi
        maybe if you had to directly address psyhinx to make it do something.
      • stevepie_
        psyhinx blow me
      • stevepie_ gratefully disappointed
      • chrisrossi
        that'll be $100, steve.
      • RicoAlpha joined the channel
      • stevepie_
        i gotcher bitcoins right here
      • chrisrossi
        i apologize for that comment.
      • Charlie_X
        chrisrossi: yeah, commands like in other channels. I think joules programmed some.
      • ?? request
      • plamut_ joined the channel
      • chrisrossi
        yeah, something to signify intent.
      • Charlie_X
        At the moment it's like clippy
      • ?? traversal
      • chrisrossi
        fwiw, setting the locale environ explicitly in supervisord.conf fixes my problem. seems kind of silly, though.
      • Charlie_X
        I seem to hit all kinds of problems when I set the locale.
      • atomekk joined the channel
      • I like to set it to EN_UK because a lot of the German translations are shitty but I hit weird tox/pytest issues if I do this.
      • stangeland has quit
      • plamut_ has quit
      • kusut joined the channel
      • miigotu
        stevepie_: still cant get it to work -.-
      • I can get vars into the header that are assigned directly in the main template
      • but
      • I cannot set variables in my python in the template object before calling render instead of passing them into render()?
      • Psyhinx
        Title: Private Paste - Pastie (at pastie.org)
      • miigotu
        I would expect to be able to just ${somevar} or ${self.somevar} in my template
      • can anyone tell me what I did wrong there in my mako initialization?
      • Charlie_X
        miigotu: I know nothing about Mako but the way you're setting up the template looks weird to me.
      • miigotu
        The object was to have a set of variables preset for any object of PageTemplate, because I have quite a few
      • namely because I didn't want to completely rewrite the cheetah template from scratch
      • c0le joined the channel
      • Charlie_X
        Like I said, I've no experience with Mako but I think the pattern should be similar to Chameleon: the view passes the template anything it needs and the view is visible ot templates.
      • So you may need to rewrite the views a bit more.
      • @route() is not a common pattern in Pyramid as far as I know. But I could be wrong.
      • plamut_ joined the channel
      • erasmas joined the channel
      • inklesspen
        the worst thing about the bot is that its owner is rarely here.
      • Charlie_X
        Let's kick it
      • otter768 joined the channel
      • miigotu
        Not using pyramid
      • markm joined the channel
      • @route is a tornado decorator
      • mr_jolly has quit
      • Just that mako doc said to go to #pylons and #pylons says to go here for help =P
      • Charlie_X
        oh, you might be out of luck on this channel then.
      • Use the ML
      • miigotu
        ML?
      • Charlie_X
        mailing list
      • miigotu
        ew
      • raj` joined the channel
      • thanks anyways
      • I think Ill just override render in my wrapper class, maybe that will work
      • stangeland joined the channel
      • frispete_
        FYI: the stable pyramid builds are currently broken due to failing tests: https://travis-ci.org/Pylons/pyramid/builds/732...
      • Psyhinx
        Title: Travis CI - Test and Deploy Your Code with Confidence (at travis-ci.org)
      • frispete_
        What pyramid version do you recommend?
      • e.g. for distributions
      • surabujin joined the channel
      • mr_jolly joined the channel
      • cyberchinna1 joined the channel
      • NotreDev joined the channel
      • jstoiko joined the channel
      • plamut_ has quit
      • plamut_ joined the channel
      • evilbungle joined the channel
      • x58
        frispete_: The latest "stable" is failing to build due to easy_install pulling in WebOB 1.5.0a0 rather than the latest stable WebOb.
      • Hmm, looks like pip is used during that install.
      • Weird.
      • rtopliffe has quit
      • tiwula joined the channel
      • mejymejy joined the channel
      • rtopliffe joined the channel
      • Elmer
        when I have two 'competing' view_configs, differing in the request_param predicate, the stricter predicate (with more terms to the request_param) isn't preferred over the other.. is this simply how it is, or considered a defect?
      • mejymejy has quit
      • raydeo
        Elmer: can you show an example
      • x58: yeah looks like pyramid is not digging the new webob very much
      • Elmer
        raydeo: I can definitely code with some text, a moment :)
      • raydeo
        x58: 2 runtime warnings and a whole bunch of failures in response.status = int_value
      • agroszer has quit
      • Elmer
        raydeo: http://paste.ofcode.org/Bpaf399b3yNBArWc3eYdgi hope that explains it better
      • Psyhinx
        Title: Paste ofCode (at paste.ofcode.org)
      • raydeo
        ah, they are ambiguous I think but let me look further
      • frispete_
        x58: thanks - I found it failing for the latest changes only, not when 1.5.8 was released...
      • plamut_ has quit
      • Elmer
        miigotu: have you looked at the BeforeRender event to make variables available to the template?
      • frispete_
        BTW: if looking for pyramid in PyPI, only pyramid 1.6a2 is shown, without a link to the stable version, no link in the docs...
      • in the docs, I found a reference to 1.5.8, and tried that as a PyPI URL - you shouldn't do it THAT hard to get newbees to the latest stable version
      • evilbungle has quit
      • raydeo
        we can't fix pypi
      • what do you suggest
      • hvelarde is now known as hvelarde|lunch
      • miigotu
        Elmer: where can I read about this? I saw a preprocessor, but that was different than what I need
      • Elmer
      • Psyhinx
        Title: pyramid.events The Pyramid Web Framework v1.5.7 (at docs.pylonsproject.org)
      • miigotu
        Aha, Elmer, I am not using pylons
      • or pyramid
      • I will look at the code in it though
      • Thorn joined the channel
      • raydeo
        frispete_: ok I hid 1.6a2 and made 1.5.7 visible
      • no idea where you found 1.5.8 which doesn't exist though
      • Elmer
        miigotu: ah that explains a bit.. not sure how to achieve the thing you want to then.. accessing a variable that isn't added to render() might not be a thing that Mako does though
      • miigotu
        As far as I can see it doesnt
      • raydeo
        Elmer: afaict we don't do any sorting of predicate values right now
      • predicates are not supposed to be a subset of eachother atm
      • miigotu
        I am currently working on a wrapper class that holds a dict of vars I want to pass to the templates, a method to add/remove items form the dict, and overriding render()
      • Elmer
        raydeo: yeah there's no relative weight/priority to them, that's what I got from the code.. understandable, but it'd be nice to have though
      • miigotu
        should keep my port from becoming hella messy
      • raydeo
        Elmer: yeah we'd have to add in some new constructs that aren't there atm to support it
      • like expecting the phash to be sortable
      • or a new order term
      • Elmer
        raydeo: well the values themselves are sorted by the `as_sorted_tuple(val)` call
      • so there's that
      • raydeo
        that's not between views
      • Elmer
        ahh, I get what you mean now.. sortable / solvable to create a graph
      • raydeo
        yeah you're asking for the predicate *value* to be included in the view weighting
      • instead of just the presence of the predicate