#pyramid

/

      • conan_the_destro joined the channel
      • brokencycle has quit
      • podhmo has quit
      • stevepiercy is now known as stevepiercy[away
      • brokencycle joined the channel
      • Charlie_X has quit
      • Circlefusion joined the channel
      • ra21vi joined the channel
      • rafaelhbarros joined the channel
      • ra21vi
        any example to integrate gevent-websocket for websocket app with Pyramid? In official repo, there is no demo/example with Pyramid. And I am getting hard time working on integration
      • m8 has quit
      • podhmo joined the channel
      • rafaelhbarros has quit
      • sluggo206 has quit
      • podhmo has quit
      • rafaelhbarros joined the channel
      • podhmo joined the channel
      • podhmo has quit
      • MrTango has quit
      • tiwula has quit
      • erasmas has quit
      • markm_ has quit
      • madjar has quit
      • vmatekole has quit
      • stevepiercy[away is now known as stevepiercy
      • KageSenshi joined the channel
      • atomekk has quit
      • gavinc
        sontek: I'll let you know on pyramid_celery, so far one issue is making it in fact share config VALUES :\ since celery only gets it's section
      • iShming__ joined the channel
      • stevepiercy is now known as stevepiercy[away
      • stevepiercy[away is now known as stevepiercy
      • github joined the channel
      • github
        [pylons] bbangert pushed 2 new commits to master: http://git.io/v9NNgQ
      • pylons/master 616c241 Darren Yin: Access WebOb exceptions directly (instead of calling exception property)...
      • pylons/master 1f00579 Ben Bangert: Merge pull request #22 from dareonion/master...
      • github has left the channel
      • github joined the channel
      • [pylons] bbangert pushed 2 new commits to master: http://git.io/zV8Odg
      • pylons/master 4bd3e44 Ralph Bean: Changed add_options to options for nose plugin....
      • pylons/master 0614ebe Ben Bangert: Merge pull request #12 from ralphbean/master...
      • github has left the channel
      • rafaelhbarros has quit
      • rafaelhbarros joined the channel
      • podhmo joined the channel
      • sontek
        gavinc: I throw the pyramid settings in celery_app.conf['PYRAMID_REGISTRY']
      • rafaelhbarros has quit
      • gavinc: So the config values should be there in the worker
      • podhmo has quit
      • gavinc
        heh, okay so I may only have a doc patch ;)
      • oh, and I'll add some list handlers for the ini as well, since you have to specify which seralizers you want now in 3.1
      • ah... and the registry is parsed from the normal paster deploy so includes works vs just the INI parser for the celery part
      • inklesspen
        ini parsing, huh
      • :P
      • gavinc
        inklesspen: oh much worse, celery by default wants a whole configuration module which it executes
      • inklesspen
        yum
      • gavinc
        "If you’re using the default loader, you must create the celeryconfig.py module and make sure it is available on the Python path."
      • goodwill
        yeah
      • it is sadness
      • 3.0 no longer does that I think
      • you can have a instance
      • gavinc
        nope, still does. but yeah you CAN specify a config module to execute in the command line
      • and you CAN as sontek has done replace the whole config process
      • goodwill
        gavinc: you can definately create your own instance
      • gavinc: I do not know how it hooks it up
      • gavinc
        you can either pass the commandline a App instance, or a config module
      • sontek
        inklesspen: don't worry, once montague is ready pyramid_celery will switch over as well :D
      • Then people will get all kinds of celery config goodness
      • inklesspen
        :D
      • goodwill
        I did a whole thing once where I did import of whatever was in celeryd and patched it to read configs
      • gavinc
        inklesspen: are people using the set semantics in the wild? Never seen it myself
      • goodwill
        from somewhere else
      • sontek
        The celeryconfig.py is bad but its really hard to configure celery without actual python objects
      • goodwill
        it is all sad
      • sontek
        for things like celerybeat
      • inklesspen
        gavinc: 'set semantics'?
      • gavinc
        using set to replace global config values
      • inklesspen
        oh.
      • gavinc
        is that in fact USED by anyone?
      • inklesspen
        i don't know.
      • i thought the "use = config:foo.ini" stuff wasn't used by sane people either
      • but then someone in here said it's vitally important
      • gavinc
        +1 vitally important ;)
      • but I at least haven't seen set used in the wild anywhere
      • inklesspen
        did you see the weirdness that results when you combine set with "use = config:foo.ini"?
      • it is pretty insane.
      • rafaelhbarros joined the channel
      • sontek
        I've only used use = config:foo.ini because ini itself doesn't have a good inheritance model
      • inklesspen
        it doesn't have _any_ inheritance model
      • just globals that aren't globals
      • gavinc
        we do use = for varying development inis with/without ssh tunnels with some local bits and some remote bits, but keeping the giant pile of other configuration the same
      • sontek
        I saw a project the other day that added inheritance to ini but can't find it now
      • vmatekole joined the channel
      • goodwill
        yeah hold on
      • sontek
        Yeah, that one
      • inklesspen
        sontek: i know https://github.com/axialmarket/betterconfig has something similar
      • (my ex-boss decided to reinvent ini parsing)
      • supton has quit
      • gavinc
        I mean I've done bad things with make + sed to fake it
      • vmatekole has quit
      • sontek
        gavinc: So what you are saying is we just document ini inheritance with make + sed and move on?
      • gavinc
        heh
      • tempting
      • inklesspen
        noooooooooo
      • my ex boss also introduced makefiles
      • for python
      • :(
      • gavinc
        What's wrong with make files? ;)
      • inklesspen
        they're not djb's redo
      • goodwill
        djb?
      • gavinc
        -.-
      • inklesspen
        djb is the guy who invented qmail
      • sontek
        We were using make a ton but recently started using click for building little clis instead
      • goodwill
        click makes me sad
      • inklesspen
      • goodwill
        decorators galore
      • unreadable
      • sontek
        I love me some click, its so composable
      • Invoke is the only decent alternative
      • dstufft
        click is pretty ok
      • goodwill
        a function that has more more then 2 decorators basically is unreadable
      • ree
        goodwill, really? I used it a few times only, but it looked awesome
      • dstufft
        click and invoke sort of are for different things
      • Wu joined the channel
      • ree
        can you show an example for how it becomes messy?
      • goodwill
      • gavinc
        gah
      • goodwill
        that example there is already 1 step toward disaster
      • dstufft
      • ree
        explain! is the problem is with the decorators, or... ?
      • goodwill
        holy potato
      • that is unreadable
      • decorators
      • gavinc starts twitching
      • gavinc
        ... that isn't even much shorter then arg parse
      • goodwill
        yeah that example dstufft has ... pretty much
      • its not that it is shorter
      • it is more that it is decorate the decorated the decorated the decorated the decorated the decorated the decorated
      • sontek
        dstufft: They are sort of different, I wish invoke would split out its cli tools separate from its execution stuff
      • ree
        goodwill, I don't see why you see that unreadable.
      • dstufft
        I like click fwiw
      • so far anyways
      • goodwill
        ree: I guess I just do
      • sontek
        dstufft: I actually use them together but feel dirty because invoke has a lot of duplication from what click does
      • ree
        and if it were readable, how would it be like?
      • dstufft
        although I'm kind of down on the fact it just bails out if you set LC_ALL=C
      • goodwill
        basically that is a method with like 40 lines
      • most of my methods are not that long
      • and again: the decorated the decorated the decorated the decorated