Team Chat Logs

April 27, 2010

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

[00:21:36.888476]<macmaN>morningz
[00:22:30.696143]<macmaN>could any plugin devs here say a few words about accessing data from another database inside a plugin?
[00:22:40.354776]<macmaN>are there any particular problems with this
[00:23:25.695997]<macmaN>is it best to always put your data inside trac-db
[00:28:17.167130]<bionoid>macmaN well that depends on your requirements for portability etc. Ie if internal, you might get away with just attaching another database (sqlite can open several .db files at once).
[04:12:16.751735]<robse>hi
[04:13:23.538224]<robse>I'm new to trac and I need it simply to do a "todo list" that i'll use to speedup a django project development
[04:13:36.550888]<robse>should I go for 0.12-dev or 0.11 ?
[08:38:44.496961]<riot>hi
[08:39:30.406140]<riot>can trac "import" a whole existing tree of various directories with some of them containing VCS's (e.g. several mercurials)?
[08:57:15.827134]<riot>http://trac.edgewall.org/wiki/TracMultipleProjects/SingleEnvironment :D
[09:06:35.771239]<slam_>riot: never ending story ;-)
[09:07:39.148750]<slam_>riot: all those multi/single/multi variants try to duplicate the behaviour of different products competing trac, after all
[09:08:05.687020]<riot>slam_: could use that right now.. i'd like to have one trac-environment with a bunch of repos i have lying around in one dir..
[09:09:16.214439]<slam_>riot: well, this is actually quite trivial to do. did something like that using "component" and some svn complex svn permissions
[09:09:57.649728]<slam_>riot: i spent more time on serious multi/multi/multi
[09:09:58.757788]<riot>hmm, there it starts, i'm using mercurial
[09:10:22.558295]<riot>mercurial can do nested repos, but i don't really know wether TracMercurial can
[09:10:42.622383]<slam_>riot: hm, never played much with mercurial
[09:11:13.256457]<slam_>riot: i spent so much time to move people from cvs to svn, i am tired now about moving them again ;-)
[09:11:18.763362]<riot>i love it, generally. If i can now manage to do what i want using trac, too, i'll love both together even more.
[09:16:08.374787]<rts>i have one problem here with a patch i am currently making for trac, so that one can get more information on available plugins during runtime
[09:16:44.907772]<rts>basically, i need to get a class object for a given name, e.g. "foobar" would resolve into a class object of type foobar
[09:17:12.426385]<rts>basically this is the same as in Java: ClassLoader.forName(...)
[09:17:41.398047]<rts>i have 'googled' on this but to no avail
[09:22:41.421554]<slam_>rts: you talk about the stuff used in admin/general/plugin?
[09:23:43.693891]<rts>slam_: basically, yes, but with the difference that i want to make avail the option to get an instance of a for a given class name or interface name thereof
[09:24:06.020217]<rts>slam_: from the entry_points descriptor of the egg, that is
[09:24:24.090744]<slam_>rts: ok
[09:25:02.393160]<rts>slam_: i meant... to get an instance of a component for a given...
[09:25:49.909471]<slam_>rts: i never looked into that part of the code, as it does what i need - sorry
[09:26:44.111237]<rts>slam_: np
[09:27:46.699604]<rts>just thought that there might be an on-board python solution for that problem, else i would have to iterate over the module's dict to find out any exports that it makes...
[09:29:32.276972]<slam_>there was kind of a complete system info function in older trac - don't know if that still exists
[09:29:59.966127]<slam_>this included plugin info
[09:34:15.372491]<rts>slam_: there still is, in loader.py, but it would not provide a class for a name
[09:35:40.271086]<slam_>rts: yep, just found it
[09:36:18.824759]<rts>slam_: i will recheck - in the egg loader there is a similar approach
[09:48:28.141946]<riot>sweet, now running 0.12dev and it does exactly what i want, with multiple repos..
[09:48:43.255377]<riot>just need to write a small script to add all my repos automatically :)
[09:49:00.557446]<riot>can i use external configuration files in trac.ini?
[09:49:53.594093]<CorvetteZR1> is there any way when a checkin is done and the svn message is added to the corresponding Trac item, for the list of files (or better yet, only the directory (ies)) to be added to the Trac item as well? What I'm looking for is some indication in the Trac item about which branch or svn tree is being updated
[09:50:11.690425]<slam_>riot: also with mercurial?
[09:51:29.316714]<riot>slam_: yep :)
[09:51:42.125587]<riot>http://trac.edgewall.org/wiki/TracRepositoryAdmin << just followed the hints here.
[09:52:03.263783]<riot>niiiiice. really really...
[09:53:50.620590]<rts>slam_: found it in pkg_resources.EntryPoint#load(...) - it is basically a try: __import__ except: ... pattern -> damn i have read about this earlier - learning takes time i think
[09:54:36.102224]<peepsalot>why is it that ticket.changetime is formatted differently by default than ticket.time?
[09:56:40.175647]<riot>uh, where does the header-logo.pn
[09:56:53.060454]<riot>g belong.. oops, sorry for linebreak
[09:57:03.640006]<rts>CorvetteZR1: do you mean in an associated ticket or simply in the repository browser?
[09:57:26.997592]<CorvetteZR1>rts, in an associated ticket
[09:58:17.536663]<rts>CorvetteZR1: why not simply add a [changeset:...] link to the ticket on commit? that way, users can navigate to that changeset and see which files have been updated/modified/added/deleted
[09:59:42.545723]<CorvetteZR1>hmm, that's a good idea :)
[09:59:44.349309]<rts>riot: in your htdocs folder, which is part of trac.web.chrome
[09:59:49.559532]<peepsalot>is there a way to get a report to sort a mm/dd/yy date column correclty when clicking the top of the column?
[09:59:57.653179]<CorvetteZR1>rts, where do i add that though?
[10:00:10.756888]<CorvetteZR1>i'm not to sure about the syntax either...
[10:00:28.977774]<rts>CorvetteZR1: good question, so you are using a post-commit script, do you not?
[10:00:44.805486]<riot>aaah, now it works. Thanks!
[10:01:37.802453]<CorvetteZR1>rts, yes, we have a post-commit script
[10:02:28.686471]<rts>CorvetteZR1: well then, basically you must "simply hook into" the part of the script which adds the information to your ticket on commit, and add a link to the changeset that the commit is being part of
[10:03:00.956691]<rts>CorvetteZR1: i am currently not familiar with the language being used in your commit script but I presume that it would be python?
[10:03:54.816460]<CorvetteZR1>yes, it's python. i'm not too farmiliar with it myself, the hook script we use now is one of the example ones that we copy pasted
[10:04:20.410174]<rts>CorvetteZR1: basically that part would just add yet another comment to your ticket, so you would have to adjust the comment's text and add the changeset link to it
[10:21:31.383942]<CorvetteZR1>what permissions does the user need to have in order to see all the file info in Changesets? my admin account sees everything, but regular users only see the comment
[10:21:53.542055]<CorvetteZR1>the regular user has every VIEW permission including file_view
[10:23:17.585575]<pacopablo>oh man, sourceforge trac is SOOOO msessed up (at least with chrome)
[10:23:48.014871]<pacopablo>the tree navigation borks due to adds being shown
[10:26:53.310516]<slam_>pacopablo: no good promotion for trac
[10:27:22.164361]<slam_>pacopablo: sometime i feel they keep their trac in bad shape by purpose
[10:28:26.883979]<pacopablo>slam_: possibly
[10:28:57.589493]<riot>can i create subpages with a breadcrumb-like navigation? Mediawiki does this using [[Foo/Bar/Subpage]]
[10:29:13.512189]<pacopablo>riot: 0.12, yes
[10:29:20.469747]<pacopablo>0.11, not without a plugin
[10:29:28.736464]<riot>i'm running 0.12.. How do i do it?
[10:29:39.097816]<pacopablo>should be automatic
[10:29:52.064726]<pacopablo>just jump to /wiki/Foo/Bar
[10:30:08.128473]<riot>in mediawiki i can do this automatically using [[/Subpage]]
[10:30:18.083733]<riot>which is very comfy
[10:30:26.767974]<pacopablo>I'm not understanding
[10:30:31.157914]<pacopablo>youc an do that with trac too
[10:30:45.198000]<pacopablo>if you're talking about when editing a wiki page
[10:31:00.849799]<pacopablo>simply put [wiki:/Foo/Bar/Baz Boo]
[10:31:01.768192]<riot>if on [[Page]] i add a link [[/Subpage]] i have the latter as Page/Subpage
[10:31:03.411806]<pacopablo>or whatever
[10:31:23.368516]<riot>i'll always have to reference the full path?? geez, thats gonna be lots of typing
[10:31:35.109675]<riot>it works, though, yes.
[10:31:46.422159]<pacopablo>then if you visit /wiki/Foo/Bar/Baz, you'll see at the top: wiki: Foo/Bar/Baz
[10:32:16.261314]<riot>yes.
[10:32:58.879659]<pacopablo>riot: http://trac.edgewall.org/wiki/TracLinks#Relativelinks
[10:33:05.241844]<riot>aah. thanks
[10:33:08.364983]<pacopablo>youc an use ./SubWikiPage
[10:33:20.585647]<riot>perfect
[10:36:06.794926]<rts>CorvetteZR1: good question, i will lokk
[10:36:09.567356]<riot>now i'm finally really starting to warm up with trac :D
[10:36:15.392956]<rts>-lokk + look
[10:36:30.879768]<CorvetteZR1>rts, i got it, it's BROWSER_VIEW
[10:36:50.687461]<CorvetteZR1>now trying to figure out the hookscript thing, that i'm stumped on :)
[10:36:56.054937]<rts>^^
[10:39:01.931129]<rts>CorvetteZR1: perhaps you can post it on pastebin and we together can have a look at it?
[10:40:27.083903]<CorvetteZR1>rts, sure, will send links in a minute, just have to try a few things first
[10:40:58.446692]<rts>CorvetteZR1: take your time
[10:54:06.166360]<CorvetteZR1>rts, here's what i'm using right now http://www.pastebin.org/185710
[10:54:06.698577]<rts>riot: you need to [./Foobar] in case you link to subpages in the current context
[10:56:04.405011]<riot>works well :)
[11:00:57.665514]<rts>CorvetteZR1: basically your commit hook does
[11:00:59.660188]<rts>def _cmdClose(self, ticket):
[11:00:59.874271]<rts> ticket['status'] = 'closed'
[11:01:00.079063]<rts> ticket['resolution'] = 'fixed'
[11:01:00.112329]<rts> def _cmdRefs(self, ticket):
[11:01:00.245662]<rts> pass
[11:01:33.233865]<rts>CorvetteZR1: so you need to extend on that based on the changeset information from line 151, if avail
[11:02:29.263338]<CorvetteZR1>rts, is this what generates the email that goes out?
[11:02:40.493816]<rts>CorvetteZR1: basically, you will have to create a new ticket change that is a comment that then will be persisted to the database, i am sure you can figure out how
[11:02:48.188363]<CorvetteZR1>i was hoping to add the link in that. i found some email notification template files, was wondering i should mess with those?
[11:03:40.608985]<rts>CorvetteZR1: it is not so trivial in that you face race conditions: users adding comments to tickets while you are processing the commit and so on
[11:08:59.431472]<andres>Hm. Somehow there still are some bugs in 0.12
[11:09:10.151693]*andres is about to fill the third bug in a row
[11:12:34.126761]<pacopablo>andres: as 0.12 hasn't been released, that's not surprising ;)
[11:13:07.740532]<rts>CorvetteZR1: yes, the email is generated in line 187: tn = TicketNotifyEmail(self.env)
[11:13:29.537274]<rts>CorvetteZR1: and the following line of course
[11:13:56.218569]<andres>pacopablo: I didnt say so ;-)
[11:16:39.184568]<CorvetteZR1>rts, ok, i'll see if i can make something out of it, thank you
[11:16:57.591617]<rts>CorvetteZR1: you are welcome, good luck
[11:44:15.014182]<The_Tick>is there a way to transfer a ticket from one trac system to another?
[11:47:42.794401]<doki_pen>The_Tick: AFAIK, not a simple way
[11:47:56.888441]<The_Tick>what's the complex way? :)
[11:48:00.791573]<doki_pen>The_Tick: but there are trac links... will the old site stay up?
[11:48:27.609213]<The_Tick>yes
[11:48:35.779587]<doki_pen>The_Tick: do you need to query on them?
[11:48:56.675325]<doki_pen>The_Tick: there is a wiki macro to link to tickets in other systems
[11:49:18.722146]<doki_pen>The_Tick: http://trac.edgewall.org/wiki/TracLinks
[11:49:28.484876]<doki_pen>The_Tick: other then that, you would have to do some DB work
[11:49:46.623692]<doki_pen>The_Tick: you could write a script to copy the tickets
[11:49:53.174210]<doki_pen>using the trac api
[11:49:58.586517]<doki_pen>that's probably the safest bet
[11:50:04.494937]<retracile>The_Tick: the hard way would require full access to both sides, writing a plugin to send an encoding of the ticket's state history to another site, and a plugin to accept said ticket... and access controls, and security to go along with it.
[11:50:28.063033]<retracile>.. or what doki_pen said
[11:57:22.862155]<The_Tick>hrmm
[11:58:00.557472]<The_Tick>basically I have 2 oss projects
[11:58:09.858182]<The_Tick>that pass issues back and forth
[11:58:22.261933]<The_Tick>would it make sense to use traclinks there?
[11:58:35.550298]<rts>
[11:58:39.658712]<rts>xf
[11:58:40.752572]<rts>x
[11:59:08.261640]<rts>sry
[11:59:32.180623]<rts>The_Tick: why not join both projects into a single trac since they are so closely related?
[12:00:25.210327]<The_Tick>because adium and pidgin don't need to do that
[12:01:12.747036]<The_Tick>ticket 13935 is the latest ticket number on adium for instance
[12:01:15.263075]<The_Tick>that's a ton of tickets
[12:01:37.934089]<The_Tick>and there's not a huge amount of tickets that get passed around by percentage
[12:02:44.601527]<rts>The_Tick: just as doki_pen mentioned, why not register each other for use with interwiki links, that way, you can address them by their alias name
[12:03:16.770365]<The_Tick>I think I missed that
[12:03:30.512417]<rts>The_Tick: however, if you need to move individual tickets you would have to, as retracile and doki_pen pointed out, implement your own suite of plugins for moving tickets between each system
[12:03:49.740147]<The_Tick>linking is adequate I think
[12:04:25.580666]<The_Tick>traclinks looks promising
[12:04:26.464936]<The_Tick>thanks
[12:04:37.175334]<The_Tick>does cr come around much anymore?
[12:04:44.694024]<rts>The_Tick: just like doki_pen said ;)
[12:13:15.439511]<doki_pen>The_Tick: cr?
[12:13:19.291398]<doki_pen>The_Tick: oh, coderanger
[12:13:27.871920]<doki_pen>The_Tick: no, he got a job that keeps him very busy
[12:13:41.678846]<doki_pen>he usually idles though..
[12:14:04.355778]<doki_pen>@seen coderanger
[12:14:04.364236]<evil_twin>coderanger was last seen on irc.freenode.net at Wed, 14 Apr 2010 22:34:35 +0100, quitting: *.net *.split
[12:14:19.177530]<doki_pen>I guess he quit doing that too
[12:15:05.319525]<The_Tick>ya
[12:15:12.661484]<The_Tick>I have him on twitter
[16:30:13.984061]<basic`>anyone know what http://new.topazproject.org/trac/roadmap that error is saying? that data type isn't compatible with postgres?
[17:07:44.347804]<isnoop>Hello, all. Is there any way I can specify a custom field as a numeric value so sorting doesn't treat 100 as coming before 2?
[17:14:53.434749]<isnoop>...alternatively, can one typecast a column when running a custom query?
[23:50:58.794784]<bionoid>isnoop: No, not really :-( Though if you are willing to use a core hack, you can modify sorting for your particular custom field quite easily.
[23:51:49.397293]<bionoid>basic`: Probably due to old Trac version, I expect this to be fixed in more recent releases.
[23:57:03.284534]<bionoid> *** No Ident response
[23:57:11.426128]<bionoid>ooops
[23:57:35.371050]<bionoid>sorry if I just sent some stuff to the channel, borked a client script