Team Chat Logs

February 11, 2010

2010 1
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

[00:41:37.758590]<otaku42>moin
[00:48:06.444239]<gozerbot>trac: Changeset [9176]: l10n/zh_CN: translation updates from Hong Shuning (99%) - <http://trac.edgewall.org/changeset/9176>
[01:18:06.541535]<gozerbot>trac: Ticket #9048 (Wiki history empty if end revision precedes start revision) created - <http://trac.edgewall.org/ticket/9048>
[03:18:07.192710]<gozerbot>trac: Ticket #9049 ([PATCH] Trac Swedish translation, incorrect translation.) created - <http://trac.edgewall.org/ticket/9049>
[03:48:09.063042]<gozerbot>trac: Ticket #9050 (IntegrityError: column name is not unique) created - <http://trac.edgewall.org/ticket/9050> || Ticket #9049 ([PATCH] Trac Swedish translation, incorrect translation.) closed - <http://trac.edgewall.org/ticket/9049#comment:1> || Changeset [9177]: l10n/sv: fix a wrong translation. Patch by fatbrain@gmail.com on #9049. - <http://trac.edgewall.org/changeset/9177>
[04:01:38.033923]<kirean>I'm currently running Debian Etch with svn 1.4.2 and I want to upgrade to svn 1.6.9
[04:01:38.154494]<kirean>the plan is to upgrade to Debian Lenny and backport to svn 1.6.9
[04:02:03.536938]<kirean>anyone have experiences on such a stunt?
[04:16:03.371173]<kirean>@seen cboos
[04:16:03.377403]<evil_twin>cboos was last seen on irc.freenode.net at Fri, 09 Oct 2009 10:30:07 +0100, saying: see you later ... eventually ;-)
[04:16:04.648855]<gozerbot>cboos was last seen on irc.freenode.net at Sat, 09 Jan 2010 00:48:17 +0100, quitting: "ChatZilla 0.9.86 [Firefox 3.5.6/20091201220228]"
[04:18:10.010039]<gozerbot>trac: Ticket #9050 (IntegrityError: column name is not unique) closed - <http://trac.edgewall.org/ticket/9050#comment:2>
[04:48:08.583525]<gozerbot>trac: 0.12/TracBrowser created - <http://trac.edgewall.org/wiki/0.12/TracBrowser?version=1>
[05:18:10.014030]<gozerbot>trac: 0.12/TracBrowser edited - <http://trac.edgewall.org/wiki/0.12/TracBrowser?version=3> || 0.12/TracBrowser edited - <http://trac.edgewall.org/wiki/0.12/TracBrowser?version=2>
[05:39:31.983753]<thm>coderanger_: hi! are you still working on the masterticketsplugin?
[05:41:33.443910]<mitsuhiko>does anyone know who maintains the hg bridge of trac currently?
[05:48:10.077692]<gozerbot>trac: Changeset [9178]: MultiRepos: clean-up the branch that has been merged into trunk (r9125), ... - <http://trac.edgewall.org/changeset/9178> || 0.12/TracBrowser edited - <http://trac.edgewall.org/wiki/0.12/TracBrowser?version=4>
[05:49:00.538135]<thm>seems like masterticketsplugin is not really maintained anymore. there are many tickets even providing patches.
[06:05:16.772048]<Morbus>g'day. i'm inside a plugin returning code to a wiki page.
[06:05:34.129740]<Morbus>how would i return a link to another page? just format the <a> myself, or would [wiki:] be interpreted?
[06:12:56.119255]<Morbus>is there a way to get the current wiki page name from the formatter?
[06:13:07.776501]<Morbus>formatter.source is giving me the body, which is great, but i need the wiki page name.
[06:18:09.165785]<gozerbot>trac: Ticket #4542 (Inconsistent treatment of underscores in Wiki Page Names) closed - <http://trac.edgewall.org/ticket/4542#comment:2>
[06:33:33.721717]<Morbus>how can i find out the name of the current page requested?
[06:40:36.916710]<Morbus>how can i find out the name of the current wiki page requested from within a plugin?
[06:42:30.733188]<thm>req.args.get('page')
[06:42:53.670721]<Morbus>where does req come from?
[06:42:59.637575]<thm>formatter.req
[06:43:17.864420]<thm>or maybe you can use args['page'] directly
[06:43:26.842343]<Morbus>so, just statistics += formatter.req.args.get('page')
[06:43:26.951293]<Morbus>?
[06:43:38.608907]<Morbus>i'm inside an expand_macro.
[06:43:49.826364]<thm>could work
[06:44:20.003062]<Morbus>yay, it does.
[06:44:32.572824]<Morbus>so, when i'm returning a link, should i [wiki:] it or do my own <a ?
[06:44:50.945395]<thm>it will not be processed again.
[06:44:58.583384]<thm>(as far as I know)
[06:45:08.794933]<Morbus>k
[06:45:14.863735]<thm>so, better use tag.a(...(
[06:45:37.320994]<Morbus>i don't code python or trac plugins. where could i find that function defined so i can check the args?
[06:46:25.426068]<thm>tag.a("blabla", href=self.req.href.wiki(name))
[06:46:32.490611]<thm>sorry?
[06:46:45.174990]*Morbus tries.
[06:47:03.709332]<thm>from genshi.builder import tag
[06:47:41.945515]<Morbus> statistics += '<caption>Test plan statistics for %s</caption>' % tag.a(wiki_name, href=self.req.href.wiki(wiki_name))
[06:47:45.672657]<Morbus>so that should work?
[06:48:04.008196]<thm>no.
[06:48:13.313707]<Morbus>no. i used self, not formatter.
[06:48:25.066502]<thm>also, use tag.caption(..)
[06:48:26.746821]<Morbus>or. no, that's not right either.
[06:48:53.239198]<thm>or use trac.util.html.Markup, if you want to produce raw html.
[06:49:16.034315]<Morbus>not knowing any better, my expand_macro just returns a string of raw html.
[06:49:20.693319]<Morbus> statistics = '<table class="test-statistics">'
[06:49:20.764488]<Morbus> statistics += '<caption>Test plan statistics for %s</caption>' % tag.a(wiki_name, href=self.req.href.wiki(wiki_name))
[06:49:20.831755]<Morbus> statistics += '<tr>'
[06:49:21.200059]<Morbus>etc
[06:50:05.274024]<thm>you are still mixing raw html with tag.X
[06:50:16.271589]<thm>better use only tag.X for all html tags
[06:50:27.665262]<Morbus>how much longer will that take me to learn?
[06:50:35.950681]<Morbus>i'm adding something minor to an existing/working plugin.
[06:50:45.846603]<Morbus>don't have a huge amount of time to rewrite properly, though i want to.
[06:50:47.281182]<thm>it will help you generate valid HTML
[06:50:58.847441]<Morbus>i've been coding the web for 15 years.
[06:51:03.959653]<Morbus>don't need help generating valid html ;)
[06:51:07.756845]<thm>you are asking, I am answering.
[06:51:12.327010]<Morbus>sure. i appreciate that.
[06:51:29.542557]<Morbus> statistics += tag.caption(tag.a(wiki_name, href=formatter.req.href.wiki(wiki_name)))
[06:51:36.281913]<Morbus>so, does tag return a string, or is that still woefully wrong?
[06:51:58.941124]<thm>it will return an object the genshi output routine does like.
[06:52:20.929598]<Morbus>ah
[06:53:01.527532]<thm>(assuming you are coding against trac 0.11)
[06:53:15.251060]<Morbus>y
[06:55:14.695094]<Morbus>thm, well, you've given me enough to hang myself further:
[06:55:14.855597]<Morbus> statistics += '<caption>Test plan statistics for <a href="%s/wiki/%s">%s</a></caption>' % (formatter.req.href.base, wiki_name, wiki_name)
[06:55:19.796545]<Morbus>so, i appreciate that. thanks :
[06:55:21.134909]<Morbus>:D
[06:55:35.708303]<thm>urw
[07:10:11.535533]<Morbus>thm: not sure if you care, but this is internal usage only, so i won't be infecting the trac community with my suck ;)
[07:11:37.557317]<thm>ok!
[07:12:49.629196]<thm>and I don't think you would create bad html, or so. just wanting to make sure you know how it is *supposed* to be generated by a trac plugin.
[07:12:55.603110]<Morbus>yeah, exactly.
[07:13:33.355939]<Morbus>my day job is QA/testing lead, so i know the whole Doing It Right thing.
[07:13:45.719525]<Morbus>and i suspected this is quite wrong. but i know neither Python coding, nor Trac coding.
[07:13:49.764860]<Morbus>I did the best I could do in the time I had ;)
[07:14:10.384203]<thm>time is always the problem. but sometimes things will pay-off in the long run.
[07:18:14.365516]<gozerbot>trac: Ticket #9043 (Unable to link to browser files containing "#" in filename) closed - <http://trac.edgewall.org/ticket/9043#comment:2>
[07:55:24.549174]<fatbrain>Hi, I have a question regarding a translation file. When I translate some message, what exactly does the [1:Note:] and [1:[2:searching] for similar issues] mean? Should one translate translate what's inside [ ... ] too?
[08:02:16.125727]<zimmermanc>I'm having an issue with trac here, perhaps someone could help. I've added a user and addming them to TRAC_ADMIN, yet there is no Admin tab in trac. I'm using 0.11.6
[08:18:56.611191]<cmc>zimmermanc: odds are a typo when adding the permission
[08:20:20.706039]<cmc>did you add the permission through trac-admin at the command line?
[08:21:24.328864]<zimmermanc>ya
[08:21:52.594031]<zimmermanc>let me double check but I just did trac-admin /path/ permission add user TRAC_ADMIN
[08:22:23.608929]<zimmermanc>ya the permission list looks fine :s
[08:22:50.342943]<cmc>if you look in the db, at the permission table, you see the username and action?
[08:23:16.976189]<zimmermanc>You mean permission list ?
[08:23:27.726100]<cmc>do, in the database itself
[08:23:50.112730]<cmc>no, in the*
[08:24:30.803026]<cmc>wait, how are you seeing the permission list if you don't have TRAC_ADMIN permission?
[08:25:00.679821]<zimmermanc>command line
[08:25:16.672578]<cmc>using trac-admin?
[08:25:44.368309]<zimmermanc>yes sorry
[08:28:42.200528]<zimmermanc>Yeah I don't get it, docs say "just add the user to TRAC_ADMIN and it will show up" :s
[08:28:54.047519]<zimmermanc>clearly other possible problems here :)
[08:29:14.911107]<zimmermanc>user error most likely
[08:29:35.344007]<cmc>you are logged in as that user, right?
[08:56:44.105856]<fatbrain>Hi, I have a question regarding a translation file. When I translate some message, what exactly does the [1:Note:] and [1:[2:searching] for similar issues] mean? Should one translate translate what's inside [ ... ] too?
[08:58:55.403327]<zimmermanc>cmc - Yes I am. I tried admin as well as creating a new user and assigning them the rights as well.
[08:59:25.441935]<cmc>zimmermanc: Give the anonymous user TRAC_ADMIN and then log out
[09:00:31.771283]<cmc>if that doesn't work, restart apache/tracd (though that really shouldn't be required). You're positive this is same trac env?
[09:02:19.098367]<zimmermanc>weird, ya it's directly through port :8000 , not other projects on the machine
[09:02:19.809783]<zimmermanc>weird
[09:02:25.826871]<zimmermanc>still nothing
[09:04:19.693707]<cmc>and you checked the db under the permission table?
[10:18:12.270289]<gozerbot>trac: Ticket #9051 (AttributeError: 'NoneType' object has no attribute 'toordinal') created - <http://trac.edgewall.org/ticket/9051>
[11:55:22.121560]<infid>why does trac give you SQL to query tickets? i thought it doesn't use an rdbms, or is it using sqlite or something?
[11:56:00.927673]<cmc>trac uses rdbms
[11:56:27.652644]<cmc>by default it uses sqlite, but it also works with postgres, mysql, etc
[12:00:11.993150]<infid>ah
[12:01:38.466644]<infid>i see, db/trac.db is an sqlite db
[12:01:54.293787]<infid>what all does it store in there by default?
[12:02:17.852480]<infid>just tickets or wiki info too? and what all do i backup if i want to backup trac, the entire proj env? or just the db
[12:02:35.949863]<cmc>the db and any customizations you've made
[12:02:49.957423]<cmc>if you are just using vanilla trac, then yes, just the db
[12:03:49.976413]<scfe>cmc: Don't forget attachments - these are stored in the en folder as well
[12:04:04.023708]<cmc>oh shoot good call
[12:04:06.401319]<scfe>So to be sure, please backup the complete env directory
[12:04:27.263443]<scfe>+ db dump in case you're using postgres/mysql
[12:05:19.879328]<infid>ok thanks
[12:06:11.723117]<infid>my trac env has a folder called 'attachments'
[12:08:31.891658]<infid>as far as restoring a trac env backup, is all i need to worry about the trac version that i'm restoring to?
[12:18:10.818787]<gozerbot>trac: Ticket #9051 (AttributeError: 'NoneType' object has no attribute 'toordinal') closed - <http://trac.edgewall.org/ticket/9051#comment:1>
[13:41:58.543400]<cboos>hello
[13:42:29.165373]<cboos>FYI: t.e.o is going down for maintenance (upgrade)
[13:50:41.801361]<cboos>aat: ping
[14:34:51.756519]<cboos>@seen cmlenz
[14:34:51.764501]<evil_twin>cmlenz was last seen on irc.freenode.net at Tue, 13 Oct 2009 15:47:55 +0100, quitting
[14:34:52.716113]<gozerbot>cmlenz was last seen on irc.freenode.net at Wed, 27 Jan 2010 19:44:27 +0100, quitting: Client Quit
[15:03:28.087976]<infid>what tells the gozerbot what to say?
[15:18:18.858956]<gozerbot>trac: Changeset [9179]: l10n/sv: updates to the swedish translation contributed by Jonas Jonsson. - <http://trac.edgewall.org/changeset/9179>
[18:21:19.168256]<infid>what's better when using trac at home, just for yourself, to put every project in one trac env (where like every milestone is a different project) or to still separate every project?
[18:48:08.526851]<wildintellect>personal preference
[21:18:18.930962]<gozerbot>trac: Ticket #9052 (Exception: Error executing command (return code = 4): ...) created - <http://trac.edgewall.org/ticket/9052>