Team Chat Logs

March 28, 2010

2010 2
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 31        

[00:28:45.770582]<ralphz>hello. i configured trac with ghit backend but when i go to browse source i dont see anything
[00:31:12.068540]<ralphz>anyone ?
[06:20:36.330290]<Meliorator>hi all, is there any way to "globally" set the templates directory for all projects? ...or do i _have_ to specify it in each trac.ini?
[06:26:10.482355]<Meliorator>i guess there must be, so you can use a custom "Available Projects" list ...?
[06:29:36.473067]<hasienda>Meliorator: Try inherit it via [inherit] section in trac.ini and specify file = trac_custom.ini where you may add things like a common template dir.
[06:30:02.859192]<Meliorator>tbh, all i really want to do is edit the Available Projects page
[06:30:14.281320]<Meliorator>editing the trac.ini's of projects has no effect
[06:31:38.354957]<Meliorator>i guess i need to do some stuff in python2.6/site-packages/trac/env.py ?
[06:33:20.772664]<Meliorator>i could edit the installed index.html directly, but it'll be a pain whenever i need to upgrade/reintall/whatever
[06:33:28.475932]<Meliorator>*reinstall
[06:35:21.115063]<hasienda>Meliorator: Exactly. Had the same problem: template is not specific to any env so no place to change it eighter. I tried and failed to find the correct place where to put a custom template, like it works to replace any other (env-specific) template. Resorted to direct install as well. :-(
[06:35:50.839573]<Meliorator>most displeasing :(
[06:36:12.367914]<Meliorator>certainly a much needed feature to be added in next version of trac
[06:36:15.462299]<Meliorator>(please!)
[06:36:34.575197]<Meliorator>some kinda /etc/trac.conf or something maybe?
[06:36:57.911508]<Meliorator>or maybe it should reside in the pwd of the trac root
[06:37:16.815000]<Meliorator>/var/www/hostname/trac/trac.conf would ne nice
[06:37:22.972952]<Meliorator>*be
[06:37:29.527345]<hasienda>Meliorator: Wait, found this right now: http://trac.edgewall.org/wiki/TracInterfaceCustomization#ProjectList
[06:37:58.565039]<Meliorator>ahhh
[06:38:08.190735]<Meliorator>ofc we can just manitpulate the env vars
[06:38:08.410444]<hasienda>:)
[06:38:14.725078]<Meliorator>how stupid do we feel now :|
[06:38:24.324416]<Meliorator>so obvious :\
[06:38:36.620549]<Meliorator>well thanks
[06:38:51.610521]<Meliorator>clearly your google/search skills are greater than mine :)
[06:40:44.284394]<hasienda>you're welcome. Actually I failed badly last time in seaching of ticket duplicates when preparing a new ticket for Trac. Sometimes a mixture of luck and concentration.
[06:42:13.889122]<hasienda>and after all I used your wording "custom "Available Projects" list", failed with other search terms before ...
[06:43:10.933737]<hasienda>So this was true collaboration and I have to thank you too. :)
[07:25:57.271081]<Meliorator>any idea how i populate a html table with the project names, in python?
[07:26:14.935129]<Meliorator>i'm a total python newbie :o
[07:29:10.895358]<Meliorator>this should work, but it doesn't: http://pastebin.com/pw2mMeJ4 :s ...and it doesn't split into 3 columns :(
[07:29:25.367142]<Meliorator>hasienda: any good with python? :p
[09:18:43.891477]<anchovy>Hi, I installed a post-commit hook for subversion using the default trac-post-commit-hook file and the suggested post-commit and the author is completely incorrect in trac
[09:18:57.566796]<anchovy>however, when I just remove the post-commit, the author is correct
[10:15:47.169329]<anchovy>anyone have any idea why my post-commit would use the incorrect author?
[11:20:21.646265]<anchovy>anyone around?
[11:28:16.837105]<Izzy>No
[12:09:34.568267]<anchovy>Hi, is there any reason why the 'out-of-the-box' trac-post-commit-hook script sets the incorrect author?
[12:15:27.984648]<Sacho>for 0.11?
[12:15:40.617416]<anchovy>yes sir, 0.11.7
[12:15:41.759100]<Sacho>does it set it as the user your svn runs as?
[12:15:46.419303]<anchovy>yes
[12:15:52.755229]<Sacho>heh, I thought that was just a problem for me
[12:16:00.484599]<Sacho>since I was using a svn-synced repo
[12:16:15.336317]<anchovy>I just created a ticket but I have been looking at this for a long time with no luck
[12:16:27.194920]<anchovy>if I remove the post-commit script the author is correct
[12:17:04.494981]<Sacho>the repo.sync() causes it I think? But the internals are a mystery to me, since I have no python experience
[12:17:37.236997]<anchovy>hm, may be a bug with the sync() command or we are both doing something wrong with permissions
[12:17:39.736132]<anchovy>is all I can think of
[12:18:30.763084]<Sacho>I deleted the hack I made to work around it, since I upgraded to 0.12 :/
[12:18:43.707972]<Sacho>oh yeah
[12:18:50.669381]<Sacho>calling trac-admin resync rev will fix the version
[12:18:55.956733]<Sacho>err, the author*
[12:19:09.466673]<anchovy>do you only have to run that once or run it every time you commit?
[12:19:17.233536]<Sacho>But then the author is wrong in the log message
[12:19:44.398174]<Sacho>comment message*
[12:19:49.354105]<anchovy>hm
[12:21:57.053924]<Sacho>have you tried resyncing to get the right author, and then running the trac hook manually?
[12:23:03.205943]<anchovy>trying to resync still
[12:23:07.598265]<Sacho>nod
[12:23:41.316349]<anchovy>geting a Failed to open environment. (2, 'No such file or directory') when resynching
[12:23:48.247305]<anchovy>I guess I don't really know how to resync
[12:23:49.916350]<Sacho>trac-admin path/to/env resync
[12:24:04.148587]<anchovy>path/to/repos or path/to/env?
[12:24:09.632097]<Sacho>to the trac environment
[12:24:12.416388]<anchovy>ah
[12:24:12.785471]<anchovy>k
[12:24:23.735996]<Sacho>or just trac-admin path/to/env, that puts you in interactive mode
[12:24:51.453714]<anchovy>yeah I resynched the revision and it fixed the author
[12:24:54.770999]<anchovy>you are absolutely right
[12:25:34.494167]<anchovy>i was reading that possibly the hook needs to go in post-revprop-change rather than post-commit
[12:25:40.606218]<anchovy>but I didn't know if that seemed right
[12:27:37.946284]<Sacho>I'm not sure :D
[12:27:52.774594]<Sacho>Well, it makes sense
[12:28:12.765814]<Sacho>if svn sets the properties for the revision after calling the post-commit hook
[12:28:34.841209]<Sacho>and trac defaults to the system user if it can't find the propertty
[12:29:28.216201]<Sacho>plus, you might want to add messages if someone changes their log from "" to "more elaborate description(references #ticket)"
[12:29:41.817254]<Sacho>and that's only a revprop change, not a commit
[12:29:42.670246]<anchovy>i don't really utilize the log right now
[12:30:00.592798]<Sacho>well that's all the trac commit hook does really
[12:30:31.773863]<anchovy>is this problem fixed in 0.12 ?
[12:30:35.982271]<Sacho>scans your log for command #ticket and does something to the ticket
[12:30:42.066095]<Sacho>yeah
[12:31:26.484176]<anchovy>maybe I can just upgrade trac then
[12:32:36.146069]<Sacho>the post-commit-hook is gone in 0.12 anyway
[12:33:17.503971]<Sacho>You can turn it on as an option from admin-plugins-trac0.12 :)
[12:33:46.237084]<anchovy>no kidding
[12:34:07.374412]<anchovy>nice :)
[12:34:15.771830]<anchovy>I will just upgrade then and cross my fingers
[12:34:26.414916]<exarkun>What takes the place of the post commit hook?
[12:34:31.605594]<alecs>hi there!
[12:34:54.224450]<anchovy>exarkun, what do you mean?
[12:35:12.778298]<alecs>how can remove this page ? http://sfshop.net/trac
[12:35:37.447609]<alecs>instead i would like to activate this http://sfshop.net/trac/sfShop
[12:35:43.919331]<Sacho>exarkun: there's an option you can enable that does what the commit hook did
[12:35:46.424679]<exarkun>anchovy: Sacho says it's gone. What provides the functionality it provided?
[12:36:38.006668]<exarkun>Sacho: What does trac do then? Look at the svn repo before every page render to see if it is up to date?
[12:36:43.087073]<Sacho>additionally, if I understood correctly, you can disable the "old" way trac refreshes its data from svn(I assume it tries to sync on some interval?), and have a trac-svn-hook which is run only on commits and propchanges
[12:37:22.963121]<anchovy>alecs, are you using mod_python in apache for trac?
[12:37:29.774874]<alecs>yes
[12:37:52.362082]<anchovy>Are you using PythonOption TracEnvParentDir
[12:37:54.276170]<Sacho>alecs: it's just a question of changing your document root
[12:38:46.370592]<Sacho>exarkun: I'm not sure how it really works. But there's a trac-svn-hook, which you can run on post-commit and post-revprop-change, which calls the new trac-admin changeset * commands
[12:39:24.946294]<alecs>Sacho: can you detaliate ?
[12:42:09.095513]<Sacho>alecs: http://trac.edgewall.org/wiki/TracModPython You are probably using the "multiple projects" set up
[12:42:37.092870]<alecs>Sacho: i want to setup a simple
[12:42:52.969214]*Sacho tests
[12:46:57.425481]<slam>alecs: simply rewrite the url via mod_rewrite
[12:57:54.175044]<anchovy>Sacho, when you installed Trac 0.12, how did you get Genshi 0.6dev-r1072 installed?
[12:58:10.176051]<Sacho>I didn't
[12:58:19.661373]<anchovy>the python install script in 0.12 says it's a required dep
[12:58:24.892229]<anchovy>and cannot find it
[12:58:40.834178]<Sacho>I compiled the latest genshi and edited the script to look fro 0.6dev instead of 0.6dev-r1072
[12:59:11.703178]<anchovy>ok, latest genshi from trunk or latest stable?
[12:59:19.271570]<Sacho>from trunk
[12:59:22.394021]<anchovy>ah, 0.6dev
[12:59:22.461451]<anchovy>ok
[12:59:39.606070]<Sacho>and then in setup.py, there's a install_requires = [ ... ]
[13:00:08.444482]<Sacho>when I compiled the trunk genshi it ended up as Genshi 0.6dev-r0
[13:00:39.834870]<anchovy>ok, so you just changed the requires for genshi in trac 0.12
[13:02:50.573665]<Sacho>yeah, to Genshi>=0.6dev
[13:02:56.097255]<anchovy>yeah, worked :)
[13:02:56.964864]<Sacho>since I know I compiled it with the latest ;o
[13:04:13.064049]<Sacho>I was honestly kinda worried that besides that, updating was really simple...though no problems so far
[13:06:06.767095]<anchovy>hm, it appears the resync command isn't found
[13:06:12.064665]<anchovy>under the new trac-admin
[13:06:15.761843]<anchovy>is that normal?
[13:06:33.515686]<anchovy>i ran trac-admin upgrade and wiki upgrade just fine
[13:10:02.557263]<Sacho>it's repository resync
[13:13:43.712805]<anchovy>there we go, thanks :)
[13:15:15.101605]<anchovy>ok, so this new commit change you're talking about is just a new plugin
[13:17:49.258597]<Sacho>yeah you can enable it from plugins-trac0.12
[13:19:01.537159]<anchovy>ok, enabled CommitTicketUpdater
[13:21:39.969098]<anchovy>ok, now my commit has the correct author but it is not closing the ticket when I do 'closes #3'
[13:21:58.375508]<anchovy>do I need to enable logging or something?
[13:23:11.561881]<Sacho>it's not?
[13:23:33.292442]<anchovy>no
[13:23:40.161925]<anchovy>the plugin is enabled too
[13:23:52.486023]<anchovy>and I removed my old post-commit script from the repos/hooks
[13:27:19.616782]<Sacho>do you see your change in the timeline?
[13:27:24.794845]<Sacho>your revision*
[13:28:26.291287]<anchovy>yes
[13:28:40.102093]<Sacho>Not sure why it would happen then
[13:28:55.202395]<anchovy>this thing is just not meant to work for me :p
[13:30:07.009586]<Sacho>Maybe someone else could shed insight :)
[13:32:39.536377]<anchovy>I guess I feel like I'm closer to getting it
[13:33:14.717038]<anchovy>did you have to do anything special to your trac.ini or create any type of hook script after you upgraded to 0.12dev ?
[13:35:37.726849]<Sacho>I used the trac-svn-hook to send changesets into trac
[13:36:12.515522]<Sacho>there's an option, http://trac.edgewall.org/wiki/0.12/TracRepositoryAdmin repository_sync_per_request that's its replacement though..
[13:36:20.968535]<Sacho>and by default you should be getting synced
[13:36:26.680724]<Sacho>maybe I'm missing something (:
[13:37:13.435610]<Sacho>ah, you're supposed to use explicit synchronization...
[13:37:18.336082]<Sacho>so you'd need such a hook as well :)
[13:37:57.203145]<anchovy>ok, trying Explicit synchronization
[13:39:21.557147]<anchovy>it looks like my trac.ini file is outdated
[13:39:36.582503]<Sacho>yeah it doesn't get changed
[13:40:15.720759]<anchovy>ya, I need to update this first
[14:03:42.612629]<anchovy>Sacho, no luck yet but getting closer I think. I am going to take a break. thanks for all of the input so far appreciated
[14:03:48.426206]<Sacho>o/
[14:03:48.961926]<anchovy>i'll be back in a couple hours
[17:16:39.211539]<anchovy>Hi Sacho, you around?
[17:47:18.889795]<anchovy>has anyone gotten the post-commit hooks for repository synchronization?
[17:47:22.910003]<anchovy>in trac 0.12dev
[20:34:05.730771]<anchovy>for some reason my changesets are showing as the user running the repository rather than the author who actually made the commit
[20:34:16.087253]<anchovy>i am running trac with mod_python
[20:34:31.309816]<anchovy>does anyone have any idea how to fix this? running trac 0.11 and 0.12dev with same problem
[20:35:44.638721]<anchovy>i think everyone in this channel are mostly zombies
[20:37:37.481585]<wildintellect>we're stuck on the couch because we ate too many brains for dinner
[20:38:48.534126]<wildintellect>what do you mean by user running the repository?
[20:47:26.900371]<anchovy>the filesystem user running the repository
[20:47:39.248984]<anchovy>trac and svn are all running as <myuser>:nobody
[20:48:01.116316]<anchovy>:) ^^
[20:48:33.243426]<anchovy>so, the author of the commits are running as the filesystem user
[20:48:36.847023]<anchovy>I am on a freebsd system
[20:51:12.937975]<wildintellect>so when someone commits to your repo are they authenticating in anyway before being allowed to commit to the repo?
[20:51:41.662560]<anchovy>yes, when I do an svnlook <repo> <rev> it has the correct author
[20:51:47.876915]<anchovy>however, trac shows the incorrect author
[20:52:50.972375]<anchovy>users are authenticating successfully when they commit
[20:54:11.638766]<wildintellect>trac-admin /path/to/trac/env resync
[20:54:29.706526]<wildintellect>possibly similar in nature to http://trac.edgewall.org/ticket/9178
[20:54:58.203242]<wildintellect>it might be a missing post-commit hook or something of the sort or trac is just not quite in sync with svn
[20:54:58.752127]<anchovy>wildintellect, that is my ticket :)
[20:55:23.846712]<wildintellect>ha
[20:55:33.095834]<anchovy>ok here's the thing though
[20:55:40.750961]<anchovy>it works like 50% of the time
[20:55:45.675433]<anchovy>with the correct author
[20:55:55.547014]<wildintellect>I agree thats odd, but out of my range of expertise
[20:55:58.499354]<anchovy>I think trac is setting some incorrect permissions on files after I do a commit
[20:56:13.205766]<wildintellect>you'll have to wait for the experts to repsond to your ticket
[20:56:41.268491]<anchovy>so when I: chmod <svn user>:nobody /path/to/trac /path/to/repos && chmod -R 751 /path/to/trac /path/to/repos
[20:56:56.857343]<anchovy>the problem goes away for the first couple of commits and then just breaks itself again
[20:56:57.564118]<anchovy>ha
[20:57:02.503503]<anchovy>ok, thanks for the input
[20:57:21.990877]<anchovy>do you recommend running trac with FastCGI?
[20:57:26.010576]<anchovy>instead of mod_python?
[21:00:17.929459]<wildintellect>never tried it yet
[21:03:33.175292]<anchovy>oh ok
[21:03:34.922842]<anchovy>thanks anyways
[21:17:13.270646]<wildintellect>I imagine that Fastcgi would be better if you can get it to work
[21:17:45.344168]<anchovy>ya, looks like it can run as suexec
[21:17:56.312611]<anchovy>I think mod_python is causing a lot of weird permission problems
[21:18:08.789177]<wildintellect>yes mod_python is known for a few quirks
[21:18:15.406352]<anchovy>since it's running some things as my filesystem user and other things as the apache nobody user
[22:46:19.711878]<anchovy>When doing "closes #ticket-number" in an svn commit comment, it shows the ticket is closed by the wrong author
[22:46:31.932699]<anchovy>has anyone else experienced this issue? running mod_python if it matter