PMXBOT Log file Viewer

Help | Karma | Search:

#dcpython logs for Friday the 18th of November, 2011

(Back to #dcpython overview) (Back to channel listing) (Animate logs)
[03:20:01] <aclark> DCPython_Hubot: is pypi.python.org up?
[03:20:01] <DCPython_Hubot> pypi.python.org looks UP from here.
[15:38:16] <redir> hazmat sorry missed that beer this week, been under the weather
[15:39:43] <hazmat> redir, no worries, i've been busy getting the house prepped and a garage built.. if your feeling up for a drink though let me know.
[15:51:37] <aclark> hazmat, redir HALP http://stackoverflow.com/questions/8185059/how-to-use-ordered-dicts-in-mako-templates
[15:52:32] <redir> hazmat heading to ny this eve. Crazy week next week, hopefully the week after. I better be over the cold by then too
[15:53:29] <aclark> j00bar: i rewrote my redis code, almost done
[15:53:48] <j00bar> cool!
[15:54:04] <aclark> used sorted set, list, and "regular" keys in a sort of brain dump fashion
[15:54:26] <hazmat> aclark, just do a getattr hook for an ordered dict subclass and sub for bunch
[15:54:41] <hazmat> aclark, the or just skip bunch and iter the ordered dict in your template
[15:55:07] <aclark> hazmat: well, mako is "funny" about dicts…
[15:55:20] <aclark> so i used Bunch to get the right results to the template
[15:55:21] <hazmat> aclark, its not a python expression?
[15:55:45] <hazmat> the whole bunch thing just looks like syntatic sugar for attributed based key lookup
[15:55:56] <aclark> haha
[15:56:02] <aclark> errr
[15:56:08] <aclark> aha i mean
[15:56:48] <aclark> IIRC if you give mako templates a dict it will not iter them correctly
[15:57:11] <redir> aclark never used mako
[16:00:07] <redir> aclark as hazmat said it is syntactic sugar, putting keys/values in self.__dict__ let's you use attribute lookup on keys
[16:01:40] <aclark> yep, which is the only way to get at the data i want IIUC, e.g. https://github.com/ACLARKNET/vanity_aclark_net/blob/master/src/vanity_app/vanity_app/templates/vanity_root.mak#L160
[16:01:59] <aclark> but i'll take another wack at just passing in dicts
[16:13:16] <redir> aclark you are just using the __dict as a dict
[16:13:23] <aclark> hazmat, redir thanks you're right i just ditched Bunch: https://github.com/ACLARKNET/vanity_aclark_net/commit/b9f0f6bfeac37f7c60e1963eff8f9a79171da4ba
[16:13:47] <aclark> Not sure why I thought that wouldn't work as expected
[16:14:04] <redir> aclarkhttp://pastebin.com/R59qM9kL
[16:14:25] <redir> exactly
[16:14:46] <aclark> Cool now a migration script and i can launch
[16:47:04] <aclark> Done: http://vanity.aclark.net/
[16:53:10] <aclark> crap
[16:53:17] <aclark> most vain not working… hmmm
[17:00:06] <aclark> and… a new bug ;-)
[19:46:58] <richleland> aclark any interest in a presentation on multi-mechanize?
[19:47:53] <aclark> richleland: sure, what is it?
[19:48:02] <richleland> python load testing tool
[19:48:15] <richleland> http://code.google.com/p/multi-mechanize/
[19:48:26] <aclark> nice
[19:48:27] <richleland> I was just neck deep in it for a week and a half
[19:48:52] <aclark> i think feb is open, or you could tack on to dec or jan whichever you prefer
[19:49:24] <richleland> Feb works
[19:50:20] <richleland> I want to do some more w/it anyway, that gives me plenty of time
[19:53:08] <aclark> k
[19:53:32] <aclark> who was that "big" group that was supposed to talk in jan?
[21:29:48] <hazmat> anyone tried out the hosted mongodb monitoring system from 10gen?
[21:30:25] <hazmat> richleland, this might also be interesting for load testing.. http://locust.readthedocs.org/en/latest/what-is-locust.html#features
[21:31:04] <richleland> hazmat thx - will check this out
[21:52:19] <richleland> hazmat did you work on Locust?
[22:04:53] <MattBowen> richleland: that may be my favorite package description I've seen: "The idea is that during a test, a swarm of locusts will attack your website"