#pyramid

/

      • mejymejy has quit
      • cyp_work has quit
      • tiwula has quit
      • cyp_work joined the channel
      • otter768 has quit
      • -- BotBot disconnected, possible missing messages --
      • -- BotBot disconnected, possible missing messages --
      • -- BotBot disconnected, possible missing messages --
      • [d__d] joined the channel
      • NOTICE: [freenode-info] if you're at a conference and other people are having trouble connecting, please mention it to staff: http://freenode.net/faq.shtml#gettinghelp
      • RicoAlpha has quit
      • nmix joined the channel
      • monokrome joined the channel
      • sawdog has quit
      • Akagi201 joined the channel
      • Lcaracol has quit
      • erasmas has quit
      • asarch joined the channel
      • silviud has quit
      • otter768 has quit
      • log` has quit
      • karlpinc joined the channel
      • karlpinc
        I've an app that's data driven. Various "types" of data have configuration settings that go with them. Occasionally new "types" get added to the data and the configuration file must be added to. What's the right way to associate configuration data with a "type". It occurs to me that I could add lines like "type.foo.setting1=1" "type.foo.setting2=2" "type.bar.setting1=3" to the [app:main] section of the .ini file. But then my
      • main(global_config, **settings) would have to iterate through all the settings to find all the ones that look like type.* and parse them. This seems clunky. There must be a better way.
      • inklesspen
        use a config format such as JSON, YAML, TOML, etc, which supports nested datastructures.
      • or abuse ini format's "sections"
      • karlpinc
        It sounds so nice to get away from ini. ?ould I use Montague? Or how would I get away from .ini? On the other side of things, I don't see how to abuse .ini. I thought that [app:main] (or some other [app:*] was all pyramid would see? Basically, I don't know how config files plug into pyramid. Do I just drive my own bus and do "whatever" in main to setup the config or is there something more standard?
      • inklesspen
        well, you could just put the filename of the json file in the ini
      • and load that in
      • you also get the filename of the ini file in the global_conf in your make_app function
      • so you just pop that into configparser and get at the rest of the sections
      • karlpinc
        Ok. So I should kinda-sorta roll my own.
      • Ah, I see. That's how to abuse ini.
      • inklesspen
        yeah, montague will probably be very useful for this down the line, but it's not quite there yet in terms of seamless pyramid integration
      • that said i am using it with pyramid and so is sontek
      • karlpinc
        I so like the bind9 config format, which is basically a nested dict sort of structure.
      • asarch has quit
      • inklesspen: I'll have to take a look at montague and see. So long as whatever I do will continue to work later on I'd be happy to use something as long as it works for me.
      • inklesspen
        the good thing about formats is that there are always new ones
      • that is also the bad thing about formats
      • karlpinc
        good thing there's yac (or bison or whatever it's called. :)
      • Lcaracol joined the channel
      • I swear I saw some sort of nested dict config format somehow associated with pastedeploy. I thought maybe it was some sort of official upgrade path, but maybe I was looking at montegue and I'm just mis-remembering.
      • Thanks so much for the help.
      • queso has quit
      • queso joined the channel
      • tilgovi has quit
      • tiwula joined the channel
      • yacc_ joined the channel
      • c0le joined the channel
      • digitalsatori joined the channel
      • asarch joined the channel
      • yvl joined the channel
      • RicoAlpha joined the channel
      • otter768 joined the channel
      • otter768 has quit
      • asarch has quit
      • jstoiko joined the channel
      • conan_the_destro has quit
      • frkout joined the channel
      • frkout has quit
      • digitalsatori has quit
      • digitalsatori joined the channel
      • c0le has quit
      • digitalsatori1 joined the channel
      • c0le joined the channel
      • digitalsatori has quit
      • frispete_ joined the channel
      • frispete has quit
      • RicoAlpha has quit
      • ramteid joined the channel
      • tilgovi joined the channel
      • digitalsatori1 has quit
      • tilgovi has quit
      • cmaloney has quit
      • cmaloney joined the channel
      • otter768 joined the channel
      • otter768 has quit
      • El_Rolando joined the channel
      • jhauser joined the channel
      • wiggy joined the channel
      • tiwula has quit
      • ronnix joined the channel
      • karlpinc has quit
      • ramteid joined the channel
      • Charlie_X
        Good morning.
      • moo-_-
        Charlie_X: good evening
      • jhauser has quit
      • agroszer joined the channel
      • El_Rolando has quit
      • zupo_ joined the channel
      • otter768 joined the channel
      • TodPunk has quit
      • TodPunk joined the channel
      • carl- joined the channel
      • otter768 has quit
      • ronnix has quit
      • jenner
        raydeo: thx
      • markm joined the channel
      • hpeter joined the channel
      • Enthralled has quit
      • lubyou has quit
      • zupo_ has quit
      • Enthralled joined the channel
      • lubyou joined the channel
      • aodag has quit
      • aodag joined the channel
      • Ergo joined the channel
      • zupo_ joined the channel
      • atomekk joined the channel
      • plamut joined the channel
      • uralbash has quit
      • ronnix joined the channel
      • Lcaracol has quit
      • waveform joined the channel
      • tbenita joined the channel
      • digitalsatori joined the channel
      • crooksey joined the channel
      • wiggy has quit
      • El_Rolando joined the channel
      • uralbash joined the channel
      • fabiobat_ joined the channel
      • wiggy joined the channel
      • fabiobatalha has quit
      • digitalsatori has quit
      • wiggy has quit
      • kiorky joined the channel
      • digitalsatori joined the channel
      • MrTango joined the channel
      • evilbungle joined the channel
      • otter768 joined the channel
      • frkout joined the channel
      • teix joined the channel
      • areski joined the channel
      • ramteid joined the channel
      • Ergo
        did anyone here try polymer already?
      • bduncan joined the channel
      • tbenita has quit
      • digitalsatori has quit
      • digitalsatori joined the channel
      • ljosberinn joined the channel
      • wiggy joined the channel
      • frkout has quit
      • tbenita joined the channel
      • digitalsatori has quit
      • digitalsatori joined the channel
      • stevepiercy joined the channel
      • stevepiercy
        morning
      • Akagi201 has quit
      • shredding joined the channel