Team Chat Logs

2006 8
Mo Tu We Th Fr Sa Su
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  

September 06, 2006

[00:18:33] * peppelorum has quit IRC
[00:25:59] * Miek has quit IRC
[01:00:29] * kousuke has joined #trac
[01:18:10] * kousuke0 has quit IRC
[01:38:18] * cedricOB has joined #trac
[01:45:47] * cmlenz has quit IRC
[01:48:01] * kousuke has quit IRC
[01:48:22] * hlb has quit IRC
[02:03:11] * cmlenz has joined #trac
[02:10:55] <alect> sup cmlenz
[02:11:03] <cmlenz> hi
[02:11:31] <alect> how goes it?
[02:11:55] <cmlenz> fine
[02:12:00] <cmlenz> yourself?
[02:12:35] <alect> pretty good
[02:12:44] <alect> the psf guys are reviewing trac atm
[02:13:38] <cmlenz> ah
[02:13:55] <alect> the head honcho liked wiki formatting in the tickets
[02:14:07] <alect> but did not like the two steps to get to diffs
[02:14:50] <cmlenz> two steps?
[02:15:03] * steveg1 has quit IRC
[02:15:04] <alect> yeah, preview, then raw file
[02:15:22] <cmlenz> ah, right
[02:15:35] <cmlenz> that's something we should really clean up
[02:15:40] <alect> liked the option of a preview, but not that it was the default
[02:15:49] <cmlenz> i.e. provide both (download) and (preview) links from the attachments list
[02:15:54] <alect> yeah agreed
[02:16:08] <alect> contentconverter hooks there could be good too...maybe
[02:16:12] <alect> feature creep!
[02:16:34] <cmlenz> hmm, where does contentconverter come in here? :-P
[02:16:56] <alect> converting attachments into random stuff :)
[02:17:20] <cmlenz> heh
[02:17:27] <alect> seriously though, it could be used generically for converting between <whatever> and the preview, as well as to raw
[02:17:45] * alect swings a wild hit
[02:20:50] * sam` has joined #trac
[02:21:42] <cmlenz> are the psf folks they considering the svn browser at all?
[02:21:47] <cmlenz> s/they/
[02:22:00] <alect> i did mention it, so i would hope so
[02:22:06] <alect> and the roadmap is all set up too
[02:22:21] <alect> which is quite cool for a project like python, imo
[02:22:55] <cmlenz> yeah
[02:23:46] * wimpy has joined #trac
[02:24:03] <cmlenz> did you try the query paginator plugin (by coderanger?) on the site?
[02:24:35] <wimpy> hello, I'm on the glpi's channel ?:)
[02:24:43] <alect> no not yet
[02:24:49] <alect> the psf guy said he didn't care about that...
[02:24:59] <alect> the default report didn't work for some reason either
[02:25:15] <alect> "active tickets" i mean
[02:25:24] <alect> older tickets didn't show up
[02:26:09] <cmlenz> oh
[02:26:33] <alect> anyway, query is the future :)
[02:26:35] * alect -> out
[02:29:41] * tuxipuxi has joined #trac
[02:30:28] * wimpy has quit IRC
[02:31:47] * chandlerc has quit IRC
[02:32:27] * wimpy has joined #trac
[02:32:41] <wimpy> Hello,
[02:32:50] <wimpy> i want to package gpli for debian
[02:33:00] <wimpy> are you interested ?
[02:37:25] <wimpy> nobody is here ?:(
[02:38:47] <misc> wimpy: this is not gpli channel
[02:38:58] <misc> wimpy: as the name and the topic implies :)
[02:39:53] <wimpy> ah oki !! sorry ! i don't find the glpi channel !! i go to find it ! thanks
[02:40:08] <wimpy> misc: ah oki !! sorry ! i don't find the glpi channel !! i go to find it ! thanks
[02:42:58] * wimpy has left #trac
[02:47:11] <jesterKing> :S
[02:53:35] * Riccc has quit IRC
[02:59:53] * mbroeken has joined #trac
[03:03:37] * hlb has joined #trac
[03:09:09] * hikozaemon has quit IRC
[03:19:46] * mbroeken has quit IRC
[03:20:49] * pygi has joined #trac
[03:20:58] <pygi> hello, anyone know when will 0.10-stable be released
[03:33:53] * moolight has quit IRC
[03:43:35] * Blackhex has joined #trac
[03:45:24] * joshmoore has quit IRC
[03:47:02] <cmlenz> probably early next week
[03:48:55] <pygi> k, thanks cmlenz
[04:06:19] * tomster has joined #trac
[04:12:20] * evil_twin has joined #trac
[04:22:04] * cboos has joined #trac
[04:39:45] * pygi has left #trac
[04:46:47] * otaku42_away is now known as otaku42
[05:09:23] * _idostyle has joined #trac
[05:20:23] * bryanl_ has joined #trac
[05:21:00] * oxff has joined #trac
[05:21:05] <oxff> hello ppl
[05:21:10] <oxff> following setup
[05:21:27] <oxff> one big svn repository with several projects in top-level directories
[05:21:36] <oxff> e.g. /proj-a /proj-b
[05:21:41] <oxff> relative to svn root of course
[05:21:59] <oxff> we have one big trac at svn.domain.org to just browse the svn
[05:22:17] <oxff> now i wanted to set up an additional trac for proj-b at proj-b.domain.org
[05:22:19] <oxff> worked fine
[05:22:31] <oxff> but it shows changesets and allos for browsing of svn /
[05:22:39] <oxff> how can i restrict these to /proj-a
[05:22:44] <oxff> * /proj-b
[05:22:45] <oxff> ?
[05:22:50] <oxff> thanks in advance :)
[05:23:40] * idostyle has quit IRC
[05:23:42] * _idostyle is now known as idostyle
[05:26:34] * kousuke has joined #trac
[05:29:23] <ranq> from trac.ini, see documentation
[05:30:15] <oxff> any pointer into doc, ranq ?
[05:31:23] <oxff> http://trac.edgewall.org/wiki/TracIni <- doesn't give any hint
[05:31:25] <appel> oxff: http://trac.edgewall.org/wiki/TracEnvironment#SourceCodeRepository
[05:31:34] <appel> I think
[05:33:54] <oxff> works
[05:33:58] <oxff> thank you a lot ranq and appel
[05:34:01] * oxff has left #trac
[05:34:33] * _Getty has joined #trac
[05:36:51] * Getty has quit IRC
[05:36:51] * _Getty is now known as Getty
[05:38:40] * converter has joined #trac
[05:52:53] * chandlerc has joined #trac
[05:56:43] * xjjk has joined #trac
[06:06:14] * DirkReiners has joined #trac
[06:06:29] * jesterKing is now known as amino
[06:10:32] * tuxipuxi has quit IRC
[06:11:40] * MasterC has joined #trac
[06:18:54] * ryepup has joined #trac
[06:29:11] * chandlerc has quit IRC
[06:30:38] * xjjk has quit IRC
[06:30:58] * xjjk has joined #trac
[06:40:40] * jtoy has quit IRC
[06:40:56] * msoares has joined #trac
[06:42:19] * milk-it has joined #trac
[06:50:04] * converter has quit IRC
[06:50:58] * converter has joined #trac
[06:55:45] * xjjk has quit IRC
[07:10:19] * Miek has joined #trac
[07:15:35] * agile has quit IRC
[07:24:55] * danbeck has joined #trac
[07:28:52] * agile has joined #trac
[07:29:11] * xjjk has joined #trac
[07:41:37] * Marlun has joined #trac
[07:44:28] <Marlun> I want to make trac work with lighttpd instead of Apache and now I'm installing required software, I've come to Clearsilver. Before I had to do "--with-apache=/usr/local/apache2/" when configureing clearsilver. What about now when I want to use lighttpd? (I know this isn't the right place to ask but there are no #clearsilver channel and I though proberbly some of you have tried this before, and theres no big discussion going on in here right now)
[07:47:28] * milk-it has left #trac
[07:53:32] * Riccc has joined #trac
[07:57:10] * MasterC has quit IRC
[08:01:18] * chandlerc has joined #trac
[08:05:33] * klasstek has joined #trac
[08:11:47] * xjjk has quit IRC
[08:19:43] <matt_good> Marlun: hmm, maybe thats
[08:19:58] <matt_good> maybe that's for some optional part to compile
[08:20:42] <matt_good> at least for the Ubuntu package there's no dependencies related to Apache
[08:20:43] <sky> Marlun: --disable-apache
[08:22:44] * chandlerc has quit IRC
[08:26:36] * xjjk has joined #trac
[08:26:45] * thansen_ has joined #trac
[08:27:31] * chandlerc has joined #trac
[08:35:00] * otaku42 is now known as otaku42_away
[08:39:06] * thansen has quit IRC
[08:48:24] * chandlerc has quit IRC
[08:49:18] * chandlerc has joined #trac
[08:55:07] * chandlerc has quit IRC
[08:56:03] <Marlun> matt_good, sky: ok, thanks I'll try that :)
[08:57:37] <coderanger> matt_good: When did the "notify anyone that has commented on this ticket" behavior get added?
[08:57:59] <coderanger> I seem to remember 0.9 didnt do that, but its been a while since I've used !trunk
[08:58:24] <matt_good> coderanger: it's been like that for a long time
[08:59:39] <coderanger> okay
[09:04:42] * xjjk has quit IRC
[09:04:42] * chandlerc has joined #trac
[09:07:11] * neddy has quit IRC
[09:29:36] * shawn_work has joined #trac
[09:29:47] <shawn_work> Is the WorkFlow in sandbox good enough for production use in 0.8.2?
[09:30:06] <shawn_work> we'd like to use the workflow for our QA people
[09:30:23] <shawn_work> but, I don't know if the patches against 0.8.2 are in a production state
[09:31:41] <matt_good> the workflow sandbox is not a patch it's a branch
[09:32:07] <matt_good> and it's based on 0.10, so you wouldn't be able to use it from 0.8.2
[09:32:18] <shawn_work> oh?
[09:32:22] <shawn_work> it applies against 0.10 now??
[09:32:28] <shawn_work> if so that is *GREAT*
[09:32:56] <shawn_work> I could diff 0.10dev vs workflow and apply the differences into 0.10dev?
[09:33:15] <matt_good> no, if you want to use it you just check out the branch
[09:33:30] <shawn_work> is the branch syncronized with bugs fixed in 0.10dev though?
[09:33:34] <shawn_work> since i've been tracking 0.10dev
[09:33:41] <matt_good> though it may be missing some recent updates
[09:34:16] <shawn_work> ok, then I could patch my local version since some bugs in trac 0.10dev got fixed
[09:35:08] <shawn_work> this is very good, I wasn't expecting WorkFlow to be off 0.10 (the wiki shows 0.8.2)
[09:35:26] <matt_good> well, it would probably be cleaner to get the branch and merge the trunk changes into it
[09:35:52] <shawn_work> SVN can do that i think?
[09:35:56] <shawn_work> (ive not used svn for merging)
[09:36:36] <matt_good> or you can bug alect to merge it with the trunk
[09:36:47] * shawn_work pokes alect
[09:37:49] <coderanger> shawn_work: Its a bit early in the morning in his part of the world
[09:37:57] <shawn_work> :-)
[09:40:34] <shawn_work> they are merged! :D
[09:40:50] <shawn_work> diff -Nrup --exclude .svn trac workflow = no differences?
[09:40:51] <shawn_work> hrm
[09:40:53] <shawn_work> that can't be
[09:41:35] * Blackhex has quit IRC
[09:41:56] <shawn_work> or is workflow in trunk different
[09:42:24] <shawn_work> oh silly me
[09:48:09] <shawn_work> svn merge -r 3378:3692 http://svn.edgewall.com/repos/trac/trunk
[09:48:19] <shawn_work> ok its merging trunk into workflow... *prays*
[09:48:45] <shawn_work> ew conflicts
[09:48:55] <coderanger> its a pretty major change
[09:49:00] <shawn_work> 4 so far
[09:49:03] <shawn_work> 6
[09:49:06] * cboos has quit IRC
[09:49:08] <coderanger> things like the two ticket modules got combined
[09:49:29] <shawn_work> 7
[09:49:33] <shawn_work> 8
[09:49:41] <shawn_work> 8 total
[09:50:31] <shawn_work> they seem easy to resolve
[09:59:27] * hpnadig has joined #trac
[10:01:47] <matt_good> can someone with IE 7 see if this has been fixed: http://trac.edgewall.org/ticket/3674
[10:04:15] <asmodai> sorry, no IE 7 here.
[10:04:36] <cmlenz> another ridiculous IE bug
[10:04:38] <cmlenz> :-P
[10:05:04] <coderanger> Get MS to make a Mac version and I'll check :)
[10:05:08] <cmlenz> got to love the HandleError() function in http://support.microsoft.com/default.aspx?scid=kb;en-us;314279
[10:06:01] <matt_good> cmlenz: is that a real function, or just an example?
[10:06:26] * asmodai could check if he could install IE 7
[10:06:29] <cmlenz> I think it's like saying: this example does no error handling, exercise for the reader
[10:06:42] <cmlenz> as if you even *need* error handling there
[10:07:31] <matt_good> cmlenz: yeah, I don't know what exceptions could possibly be raised
[10:07:51] <cmlenz> onfocusin isn't even a standard event callback AFAICT
[10:08:06] <matt_good> no, I don't think so
[10:08:06] <asmodai> matt_good: gimme a few minutes
[10:08:17] <matt_good> asmodai: ok
[10:08:23] <asmodai> matt_good: fetching RC1 now
[10:08:51] <matt_good> I considered installing it, but AFAIK you can't install it in parallel with IE 6, so then I wouldn't be able to test the fix
[10:09:18] <cmlenz> doesn't it work with the .local hack?
[10:09:35] <matt_good> I don't know
[10:09:57] <matt_good> I haven't followed Windows for quite a while
[10:09:58] <cmlenz> would be a shame if they broke that
[10:10:08] <matt_good> I just installed it recently to play some games
[10:10:29] <matt_good> what's the .local hack?
[10:10:37] <coderanger> hmm, for #3620, why not add an "if not self.config.site_config.has_option(blah):" before adding a default?
[10:11:22] <cmlenz> matt_good: http://labs.insert-title.com/labs/?ID=795
[10:11:52] <cmlenz> it lets you run IE5, IE5.5 and IE6 side by side
[10:11:57] <cmlenz> dunno about IE7 though
[10:15:25] * tolsen has quit IRC
[10:17:59] <matt_good> cmlenz: it appears that it does
[10:18:09] <matt_good> this looks like the easiest option: http://tredosoft.com/IE7_standalone
[10:18:34] <cmlenz> cool
[10:21:51] <asmodai> matt_good: I need a reboot in a sec
[10:21:52] * matt_good rofl
[10:22:19] <Marlun> does Trac work with Subversion 1.4 or am I better of choosing 1.3.2?
[10:22:20] <matt_good> the IE7 popup blocker is blocking the select boxes from opening
[10:22:23] <asmodai> HEY, A WEB BROWSER HAS IMPORTANT FILES FOR YOUR OS!
[10:22:39] <asmodai> </Microsoft>
[10:24:39] * thansen_ has quit IRC
[10:24:40] <asmodai> cmlenz: you might need Hotfix for Windows XP KB915865
[10:24:42] <matt_good> even if I turn *off* the popup blocker, it still prevents me from opening <select> boxes ... WTF?
[10:24:49] <asmodai> update NlsDl.exe "Microsoft National Language Support Downlevel APIs"
[10:24:55] <asmodai> and update IdnDl.exe "Microsoft Internationalized Domain Names Mitigation
[10:24:56] <asmodai> APIs
[10:25:46] <cmlenz> matt_good: WTF?
[10:26:00] <cmlenz> how i a select control a popup window?
[10:26:03] <cmlenz> is, even
[10:26:21] <asmodai> *reboot!*
[10:28:36] <matt_good> asmodai: I tried that, same thing
[10:29:23] <matt_good> I guess it may be a problem with running it in local mode, but WTF?
[10:29:37] <asmodai> ok
[10:29:40] <asmodai> back
[10:30:39] <matt_good> oh, no it's a real honest-to-god IE7 f*ckup http://www.mydigitallife.info/2006/07/02/internet-explorer-7-pop-up-blocker-blocks-script-generated-drop-down-or-on-page-input-dialog-boxes/
[10:30:40] <asmodai> ok, got IE7 now
[10:31:12] <matt_good> apparently it blocks every form field generated by JS regardless of the popup blocker settings
[10:31:56] <matt_good> though I didn't think the controls on the new ticket page were JS generated
[10:32:04] <cmlenz> nope, they aren'T
[10:32:20] <matt_good> wow, and this is supposed to be an RC?
[10:32:36] <asmodai> yes! :D
[10:32:49] <matt_good> we're so doomed :(
[10:32:56] <cmlenz> I don't even want to know about the Vista RC quality :-P
[10:33:21] <cmlenz> given that the *beta*s were already "developer preview" quality
[10:33:59] <cmlenz> matt_good: how about other sites on the web using select boxes? same thing
[10:34:00] <cmlenz> ?
[10:35:47] <matt_good> cmlenz: the registration site on msn.com does the same thing
[10:36:04] <cmlenz> asmodai: seeing the same problem?
[10:36:04] <matt_good> I tried adding t.e.o to my "trusted sites", but no luck
[10:36:41] <matt_good> IE7 also seems to have removed all the keyboard shortcuts I used :(
[10:37:38] <asmodai> Which where?
[10:37:41] <asmodai> I am on new ticket now
[10:37:57] <cmlenz> matt_good: http://tredosoft.com/IE7_standalone#comment-494
[10:38:54] * cmlenz wonders wtf opening windows has to do with registry keys
[10:39:18] <asmodai> IE 7 uses cleartype by default
[10:39:23] <asmodai> that explains why my eyes hurted
[10:39:44] <asmodai> oh, much better now
[10:40:18] <asmodai> matt_good: but which problems were you seeing on new ticket?
[10:40:24] <matt_good> cmlenz: ah, that'd do it
[10:41:03] * asmodai can select from the drop-down boxes without issues
[10:41:34] <matt_good> asmodai: I was wondering if IE7 fixed #3674
[10:41:34] <cmlenz> asmodai: can you test the ticket query page with select boxes added via dynamically added filters?
[10:41:54] * asmodai moves to query
[10:42:31] <asmodai> I could add a box Owner contains cmlenz
[10:42:55] <cmlenz> that's not a select box though, is it?
[10:43:00] <cmlenz> as in drop-down
[10:43:09] <cmlenz> (milestone, version, etc)
[10:43:16] <asmodai> Add filter is a drop down box isn't it?
[10:43:30] <cmlenz> true, but it isn't added dynamically
[10:43:37] * cmlenz is wondering about http://www.mydigitallife.info/2006/07/02/internet-explorer-7-pop-up-blocker-blocks-script-generated-drop-down-or-on-page-input-dialog-boxes
[10:43:57] <asmodai> When I select milestone
[10:44:00] <asmodai> I get:
[10:44:06] <asmodai> Milestone [is] [ ]
[10:44:13] <asmodai> in the empty one I get a list of versions
[10:44:20] <asmodai> I just selected a 0.9.1
[10:44:26] <asmodai> and am now updating the list
[10:44:28] <cmlenz> okay, so they've fixed that
[10:44:46] <cmlenz> I really don't want to be on the resurrected IE team... it must be so painful
[10:45:22] <asmodai> guess so :)
[10:45:34] <asmodai> and yes, you'd think they couldn't screw up IE7 worse than 5 or 6
[10:46:28] <cmlenz> adding code to a spaghetti monster is always a problem ;-)
[10:46:39] <asmodai> speaking of which
[10:46:42] <cmlenz> and for some reason I suspect the IE code falls in that category
[10:46:46] * asmodai shows cmlenz the source code for tendra :)
[10:47:00] <asmodai> at least middle mouse button == new tab open link
[10:47:16] <cmlenz> yay innovation ;-)
[10:47:35] <asmodai> hehe
[10:47:42] * asmodai gets to do lots of refactoring
[10:47:57] <asmodai> refactoring in C is kinda painful though
[10:48:36] <cmlenz> yeah
[10:48:48] <cmlenz> actually it's possibly even more painful in python
[10:49:00] <cmlenz> coz you only notice leftovers at runtime
[10:52:17] * wasabi has joined #trac
[10:52:17] <asmodai> Even though Java sucks in a lot of ways
[10:52:20] <asmodai> Eclipse makes up for a lot
[10:52:44] <wasabi> Hiya. Is there anyway to change the order of Components, or force a seperate between different components in the drop down list?
[10:53:13] <wasabi> Basically I have some top level things I'd like to users to set... "Web Site Foo", but I'd like to reassign them to the proper component when reviewed (CodeModuleName)
[10:54:17] * tomster has quit IRC
[10:54:46] * thansen has joined #trac
[10:59:50] * genocide has quit IRC
[10:59:58] <em-dash> can someone give me a quick pointer on restructuring a for loop? it works as is, but I know there's a more idiomatic way to do it
[11:00:16] * em-dash isn't sure about the pasting policy in #trac
[11:00:16] * chandlerc has quit IRC
[11:00:50] * asmodai can't believe how people place so much faith in CAPTCHA
[11:01:03] <asmodai> em-dash: depends on the size ;)
[11:01:09] <em-dash> 3 lines
[11:01:47] * em-dash falls back on the ol' "tis better to ask forgiveness than permission"
[11:01:50] <asmodai> just paste
[11:01:53] <em-dash> for c in items:
[11:01:59] <em-dash> html += wiki_to_oneliner(string.join(["%s" % c]), env, env.get_db_cnx())
[11:02:06] <em-dash> html += '<br/>'
[11:02:11] <em-dash> that's it
[11:03:09] <em-dash> I'm thinking I could restructure the pasted for in this style (no pun intended): style = string.join(["%s:%s" % (k,v) for k,v in styles.items() if v <> ""], "; ")
[11:08:07] <exarkun> em-dash: != is vastly preferred to <>
[11:08:20] <exarkun> em-dash: And "; ".join(seq) is better than string.join(seq, "; ")
[11:08:37] * chandlerc has joined #trac
[11:08:45] <exarkun> That's more than an idiomatic improvement, too. The for loop has O(N**2) runtime complexity. The join approach has O(N) runtime complexity.
[11:09:19] <em-dash> exarkun: great... that's a big help
[11:09:55] <em-dash> exarkun: putting it together now to make sure I understand correctly
[11:10:28] <matt_good> wasabi: what version of Trac are you using?
[11:11:00] <Marlun> Do you guys think this would work: I want Trac 0.10 but the repositories only has 0.9.3, do you think I can do apt-get install trac, to install all the dependencies, and then just upgrade trac? (don't know why I didn't think about that before)
[11:12:08] <em-dash> exarkun: I'm a little confused -- wouldn't "; ".join(seq) still require the for loop to iterate over styles.items() (in seq)?
[11:12:58] <exarkun> em-dash: probably (I guess "items" in your paste was styles.items()?)
[11:13:11] <em-dash> no, different collection
[11:13:35] <em-dash> just an example of the style I was shooting for
[11:13:48] <exarkun> The only transformation I was suggesting there was - "%s:%s" % (k,v) for
[11:13:51] <exarkun> urg
[11:13:57] <em-dash> er, the paste is what I'm trying to rework, the style = ... is what I'm trying to emulate
[11:14:07] <exarkun> "; ".join(["%s:%s" % (k,v) for k,v in styles.items() if v != ""])
[11:14:09] <matt_good> wasabi: n/m the components don't support ordering
[11:14:24] <exarkun> although you could also use styles.iteritems() instead of styles.items() to avoid making a copy of the entire dictionary
[11:15:18] <matt_good> em-dash: <> is not a Python operator
[11:15:44] <exarkun> >>> 1 <> 2
[11:15:44] <exarkun> True
[11:15:45] <exarkun> :)
[11:15:54] <em-dash> matt_good: funny, this is someone else's code I'm hacking on.... it's working :)
[11:16:06] <shawn_work> hmm, matt_good, do you see a WYSWYG wiki editor in trac's future?
[11:16:35] <idnar> matt_good: we *wish* it weren't, but it is :P
[11:16:48] <em-dash> looks like a VB operator to me :(
[11:17:16] <matt_good> idnar: hrm, I could've sworn there was someone in here the other day who tried the same thing and it didn't work
[11:17:26] <em-dash> exarkun: looking at the reference, it seems I can replace styles.items() directly with styles.iteritems()... sound right?
[11:17:55] <exarkun> em-dash: Yep.
[11:18:47] <em-dash> was that introduced in a recent python version (>2.3.5)?
[11:18:54] <em-dash> er, iteritems(), that is
[11:19:27] * X-Gen has quit IRC
[11:19:38] * ikonia has joined #trac
[11:19:46] <matt_good> em-dash: regarding the styles, it doesn't hurt to put ;s after each item: ' '.join(['%s: %s;' % (k,v) for k,v in styles.iteritems() if v]
[11:20:31] * thansen has quit IRC
[11:20:37] <matt_good> em-dash: it's in 2.3.5
[11:21:22] <em-dash> matt_good: great, just want to make sure this code doesn't get pegged to new python versions
[11:22:50] <matt_good> em-dash: also in 2.2.3
[11:23:04] <em-dash> that's plenty old for my purposes :)
[11:25:14] * tuxipuxi has joined #trac
[11:26:19] * timp has joined #trac
[11:27:02] <em-dash> ok, so that original paste could look like:
[11:27:04] <em-dash> html = '<br/>'.join([wiki_to_oneliner("%s" % c, env, env.get_db_cnx()) for c in items])
[11:30:30] <exarkun> the origina had one more '<br/>' at the end
[11:31:19] <em-dash> thanks for pointing it out... it happens to be disposable, thankfully
[11:32:59] <cmlenz> if you want that to work in Trac > 0.93 you should use:
[11:33:09] <cmlenz> Markup('<br/>').join([wiki_to_oneliner("%s" % c, env, env.get_db_cnx()) for c in items])
[11:33:14] <cmlenz> although it depends on the context
[11:33:21] <cmlenz> in wiki macros it should work as is
[11:33:30] <em-dash> this is for use in a wiki macro
[11:33:46] <em-dash> should I use Markup() anyway?
[11:34:12] <cmlenz> not needed, but doesn't hurt...
[11:34:29] <em-dash> will do -- I'd rather do it right this time :)
[11:36:07] <em-dash> dumb question: if I break a line with \, where does the trailing line need to start? eg, after the last method invocation paren?
[11:37:10] <em-dash> btw, this is in the middle of a list comprehension:
[11:37:21] <em-dash> html = Markup('<br/>').join([wiki_to_oneliner("%s" % c, env, env.get_db_cnx()) \
[11:37:28] <em-dash> for c in items])
[11:37:39] <ranq> em-da