Team Chat Logs

January 5, 2010

2010 0
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:09:31.850945]<otaku42_>moin
[00:32:30.470661]<gozerbot>trac: Ticket #8932 (Template cache does not expire) closed - <http://trac.edgewall.org/ticket/8932#comment:1> || TracDev/DevelopmentEnvironmentSetup edited - <http://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup?version=18>
[02:02:31.452036]<gozerbot>trac: TracIni edited - <http://trac.edgewall.org/wiki/TracIni?version=163> || TracIni edited - <http://trac.edgewall.org/wiki/TracIni?version=162>
[03:24:38.676978]<Carsten>Hi all!
[03:25:55.790892]<Carsten>Any Trac experts here? ;-) I have a problem with "pretty" Trac URLs and the Trac script name as described on the trac-users mailing list, http://groups.google.com/group/trac-users/t/7f4db979765c4472
[03:28:31.945396]<Carsten>In short, Trac seems to guess from the URL it was called from, how the URLs in the links on the generated page should look like / where to refer to.
[03:29:20.805758]<Carsten>But when you use mod_rewrite in a .htaccess file, it guesses wrong and includes the script name (trac.fcgi) in the generated links.
[03:30:20.981190]<Carsten>What I'm looking for is the proper way to reconfigure or override this.
[04:21:58.169305]<Carsten>anyone?
[04:31:05.748334]<otaku42>Carsten: no idea. i could, however, probably give some tips in case you'd consider to switch from fcgid to mod_wsgi
[04:31:32.272158]<otaku42>(if you're using apache, that is)
[04:33:58.986576]<Carsten>otaku42: thanks, I'd have to check if that is possible. I run Trac on a hosted server, to which I however have ssh access.
[05:48:00.427888]<fredl>hi guys, I've set up Trac svn and I see some directories in 'Browse Source' but not all of them. Any idea why this might be?
[05:49:30.502655]<osimons>permissions, fredl. svn authz configured that don't include you as your current user (or anonymous if not logged in)
[05:50:37.189280]<fredl>hi osimons. So trac tries to use the username that's logged in on trac to do the subversion listing?
[05:51:11.702806]<osimons>yes - if authz is configured, then trac will respect that file and won't show you stuff you're not allowed to see. files, changesets ++
[05:54:47.893974]<fredl>well I don't have authentication checking on my subversion server (although not relevant here since Trac sits on the same box) and I don't have authz configured
[05:55:11.477576]<fredl>does trac then try to get the listing as www-data?
[05:55:24.086954]<fredl>(username apache is running under)
[05:56:49.359295]<fredl>if I simply do 'svn ls -v https://myserver.com/svn/trunk' I see all directories.
[06:02:39.285369]<fredl>I guess I'll just configure authz
[06:07:58.424505]<osimons>fredl: you have it configured in trac - see trac.ini [trac] section
[06:09:10.623099]<osimons>fredl: see http://trac.edgewall.org/wiki/0.11/TracIni#trac-section - authz_file (and possibly authz_module_name) settings
[06:09:53.440776]<osimons>trac only reads from disk using python bindings, and using whatever settings provided. it won't know anything at all about how that repos may otherwise be served externally
[06:10:16.832863]<fredl>osimons - well I checked the trac.ini, the setting is empty. I also found however that on Debian trac comes without an /etc/trac/trac.ini so I guess the setting is inherited then ?
[06:11:02.471599]<osimons>fredl: no, look for it as $project/conf/trac.ini
[06:11:06.114689]<Mitar>what is difference between formatter.wikidom and formatter.source?
[06:11:10.225996]<osimons>what trac version?
[06:11:47.000224]<Mitar>i am checking source of OutlineFormatter and it is written it should use formatter.wikidom instead of formatter.source?
[06:12:01.032213]<fredl>I'm using trac 0.11.6 stock Debian Sid package. I set up two projects for two virtual servers on Apache
[06:12:05.418659]<Mitar>as I would like to write a macro based on it i would like to know if I have to change anything?
[06:12:54.838055]<osimons>Mitar: none really... cboos had some idea of making the wiki source into a DOM and started renaming - but nothing has actually changed internally
[06:13:31.755596]<osimons>just prepared for an (undertain) future, and meanwhile just aims to confuse...
[06:13:40.100866]<Mitar>so what should i use?
[06:13:47.871544]<Mitar>if i want to get source of current wiki page?
[06:14:00.012083]<Mitar>to parse it and get some data from it to output from macro?
[06:14:35.613151]<Mitar>(i would like to parse all tables and make some data out of it, i will probably make a custom formatter and run it on formatter.source or wikidom, is this good approach?)
[06:15:08.767496]<osimons>Mitar: you are changing how the source is to be formatted?
[06:15:15.808426]<Mitar>no
[06:15:26.743753]<Mitar>i would like to make a macro to parse current page
[06:15:40.427339]<Mitar>and find all tables and process them in some way and output the result
[06:16:03.409305]<Mitar>(leaving the wiki page as it is otherwise, just output of the macro would be based on wiki content of a page where macro is)
[06:16:16.907306]<Mitar>is this possible?
[06:16:26.152356]<osimons>everything is possible ;-)
[06:16:29.749628]<Mitar>so i am checking OutlineFormatter
[06:16:36.345919]<Mitar>it seems it does the same thing just for headers
[06:16:42.513426]<Mitar>headings
[06:17:03.218572]<Mitar>so i will take the same approach, make a special formatter to parse all tables out
[06:17:15.514914]<Mitar>is there an easier way?
[06:17:50.657165]<osimons>Mitar: right, the typical use of a custom formatter is to take some wiki text and redo how it is presented (like the outline example that just does headings, or the oneliner that just takes the first x part and then ... the rest
[06:18:23.986905]<Mitar>yes, i will throw away the resoult of my formatter :-)
[06:18:33.909070]<Mitar>it will be just to get the content out :-)
[06:18:45.772249]<osimons>Mitar: seeing there is no "wikidom" you would need to discover the table structure yourself
[06:19:15.992835]<Mitar>but i can use custom formatter and reimplement _table_cell_formatter ?
[06:19:20.455969]<Mitar>is this not enough?
[06:20:06.206817]<fredl>okay, I now have an authz file for subversion and verified that it 'works', I need to login when committing, right now there's only [/]^Mfredl = rw in there
[06:20:54.977338]<fredl>I change $project/conf/trac.ini to have authz_file = /etc/apache2/svn_access_3dn_control and logged in as fredl on trac
[06:21:17.654731]<fredl>should I also set the authz_module_name?
[06:22:44.885648]<fredl>it says in the docs 'The module prefix used in the authz_file', I don't know exactly what that means.
[06:22:55.642581]<osimons>fredl: not if you don't use modules - however, if you added the file now you really should be able to see all directories before adding it (no file = no perm check = see everything)
[06:23:18.365781]<osimons>- perhaps you browsed the repos at a revision where not all folders existed?
[06:23:37.921312]<Mitar>what is difference between match and fullmatch?
[06:24:29.371337]<fredl>that is quite possible osimons.. let me check that first
[06:26:09.758136]<fredl>hmm this is interesting...
[06:26:39.185810]<fredl>when I click on 'last change' I see Changeset 430
[06:26:50.253623]<osimons>Mitar: when the page renders it renders with regular formatter. that formatter then hits your macro. your macro will then re-render the page source overriding the table-cell output. but that rendering will again trigger your macro, rendering the table again => recursion?
[06:27:13.837224]<fredl>however, there are much more recent revisions available
[06:27:15.872976]<Mitar>no, i have def _macro_formatter(self, match, fullmatch):
[06:27:15.993276]<Mitar> return ''
[06:27:23.553469]<Mitar>it is the same in outlinemacro :-)
[06:27:54.960209]<Mitar>what is difference between match and fullmatch?
[06:29:04.551289]<fredl>osimons - when I try to view revision 617 of the repository, trac says 'No changeset 617 in the repository'
[06:29:30.027530]<fredl>I have not used Trac in quite some time :)
[06:29:32.324651]<Mitar>hmm, it seems nobody is calling _table_cell_formatter ?
[06:29:58.106521]<osimons>Mitar: add self.env.log.debug() to output what you need to check...
[06:30:17.699264]<Mitar>no, from grep :-)
[06:30:18.366635]<osimons>the formatter gets env attached, and env has log attached...
[06:30:31.960687]<Mitar>i greped _table_cell_formatter in source and it is just defined ...
[06:30:32.002458]<fredl>I'm almost wondering if Trac is somehow looking in another repository *shrugs*
[06:31:22.373598]<fredl>repository_dir = /svn
[06:31:23.279857]<osimons>fredl: that would be [trac] repository_dir = setting
[06:31:29.415804]<fredl>yes...
[06:31:43.539055]<osimons>so, is there a single repos at /svn, or?
[06:32:01.660113]<fredl>there can be multiple repos in one directory??
[06:32:08.797596]*fredl frowns
[06:32:26.071546]<osimons>is there? well trac 0.11.x certainly can't handle that
[06:32:26.668218]<fredl>lets just say I *think* there's only one repo there
[06:32:50.942066]<fredl>hehe I couldnt handle that either :)
[06:32:51.736744]<osimons>you need to pick one (or a path inside one), and use that for the setting value
[06:33:16.839572]<osimons>then do trac-admin /path/to/project resync to get trac to cache all the repos data
[06:33:28.468993]<Mitar>ok, i see where it is called
[06:33:29.307271]<osimons>@logging
[06:33:30.479637]<evil_twin>logging is http://trac.edgewall.org/wiki/TracLogging <-- Enable debug logging to file, ensure your environments log/ directory is writeable by your web server user, check for errors.
[06:33:32.630871]<Mitar>regex magic :-)
[06:34:06.446044]<osimons>fredl: ^^ if you turn on debug logging, i suspect trac will complain about the repos it finds and just leaves things as-is
[06:34:44.027285]<fredl>oh resync...
[06:35:07.632836]<fredl>it's resyncing now. Should that be done periodically??
[06:35:47.691830]<fredl>oh... it gives errors...
[06:36:10.403949]<osimons>fredl: no, trac will check that in the repos and resync if needed. however, as trac can't find your proper repos (wrong setting) it won't sync or invalidate anything
[06:36:27.814714]<osimons>resync required whenever changing or moving repos
[06:36:38.120741]<fredl>well it can find the repository alright but it gives another error
[06:36:47.903959]<osimons>@paste
[06:36:48.066398]<fredl>_mysql_exceptions.IntegrityError: (1062, "Duplicate entry '431-trunk/Tracy/lukas.html-A' for key 1")
[06:36:48.191174]<evil_twin>paste is http://paste.lisp.org/new/trac
[06:37:20.876735]<lisppaste5>fredl pasted "untitled" at http://paste.lisp.org/display/93018
[06:38:09.074460]<fredl>hmm I guess that means there may be something wrong in my repository then?
[06:38:41.351508]<fredl>in revision 430/431 no less.
[06:39:08.230820]<osimons>fredl: looks like it - seems it tries to insert a duplicate row. the complain't is from trac, but can't say if it is because it is a problem in trac that makes two lines appear, or because it is the svn repos that supplies two lines
[06:39:52.887081]<osimons>use a mysql tool to access db, and look at the nodes/revisions stored in the trac db
[06:40:20.201010]<osimons>you can also do 'trac-admin $project resync 413' to just try to resync that changeset again
[06:40:32.539901]<osimons>(saves having to drop and resync everything)
[06:40:50.428809]<fredl>lemme try that first...
[06:41:21.686309]<fredl>hmm it resynched that succesfully it seems
[06:41:37.088079]<fredl>and now resync everything?
[06:43:47.006410]<fredl>this is peculiar Hrmmm
[06:44:11.724718]<fredl>a full resync will clear the DB first?
[06:45:50.442680]<fredl>I'll also go ask on #svn and see if there's some way to check my repo or to repair it
[06:50:21.252213]<Mitar>hm, osimons, how could i get cell contents?
[06:50:39.285874]<Mitar>_table_cell_formatter methods only give me delimeters
[06:55:08.670049]<fredl>heh: http://wiki.3dn.nl/index.php/TracSetup
[06:55:33.256809]<fredl>that's too funny, I actually documented this when I set things up and noticed the error message with initenv
[06:55:46.461738]<fredl>but since it all seemed to work well I decided it must be okay
[06:57:38.103032]<fredl>http://trac.edgewall.org/ticket/4378
[07:08:30.608770]<rbd_>hi guys...trac 0.11.4 ...installed the batchmodifyplugin ...it shows up as enabled in the admin plugins section, I see that it loads in the logs (dont see any errors), but I don't see anything for it under the admin tab...any ideas?
[07:11:10.461556]<rbd_>nvm, was looking in the wrong place
[07:12:37.115157]<fredl>I should really go find people that use Trac in combination with mysql to see if I can trigger their combo to stop working by checking in files with mixed upper/lower case filename :P
[07:13:02.690355]<fredl>'sprolly already fixed though
[07:13:45.446614]<fredl>maybe somebody can tell me... I guess what it says in that ticket: CREATE TABLE foo (x VARCHAR(10) BINARY);
[07:14:14.955421]<fredl>I'm thinking of recreating the node_change table that way
[07:19:38.595091]*retracile sputters something irreverent about mornings.
[07:20:59.722375]<fredl>aha fixed it I think
[07:21:15.386234]<fredl>alter table node_change convert to character set binary
[07:21:32.799014]<fredl>that works :)
[09:11:30.965347]<FantasyDivision>hi everbody, I would like to ask if there is a specific reason why there was a update of jquery.js to 1.3.x on Trac 12dev ?
[09:11:58.234741]<FantasyDivision>I just ask because it breaks ConditionalFieldsPlugin
[09:13:27.543838]<FantasyDivision>because after exchanging jquery.js with version 1.2.6 in my trac-installation everything still *seems* to work, and my plugin works correct...
[09:23:09.786730]<SoCo_cpp>Is it typical for a user who isn't logged in, to be able to view tickets and timeline? I just noticed I can put the link in the address bar and hop to a ticket, then navigate to the timeline from there...
[09:23:33.300432]<cmc>yep, you can remove the appropriate permissions though
[09:24:04.781098]<SoCo_cpp>ok...just a permissions thing
[09:24:18.609333]<cmc>http://trac.edgewall.org/wiki/TracPermissions#DefaultPermissions
[09:24:47.526808]<SoCo_cpp>ahh...greate link, ty
[09:25:08.071654]<freebsd_fan>what is an example of a "milestone"? What is meant by "milestone"? At the moment we are using it as "Backend", "Frontend" and so on.
[09:25:42.684184]<cmc>freebsd_fan, let me give an example
[09:26:16.210458]<cmc>I sign a client who wants to have the whole thing done in a year, but wants to see incremental progress every 2 months
[09:26:36.706796]<cmc>each month would have its own milestone, with all of the tickets for things that need to get done so that I can show the client
[09:26:47.395411]<cmc>does that make sense?
[09:51:49.403813]<Mitar>what is a nice way for a macro to throw error?
[09:52:38.859800]<SoCo_cpp>if it can fail, maybe it shouldn't be a macro
[09:53:14.957593]<cmc>I disagree; user input is always bad
[09:53:37.643163]<cmc>Mitar: probably expand into the error message
[09:54:21.357488]<Mitar>but i think that trac nicely catches errors
[09:54:24.629216]<Mitar>and displays them?
[09:54:59.355081]<cmc>any exception will be shown, yes. and if you have trac_admin permission, it will provide a backtrace
[09:55:13.795476]<agussman>Is there a setting that governs the width of the wiki edit area? I see a dropdown for height, but nothing about width.
[09:56:00.809691]<Mitar>so is there some trac exception defined for user errors?
[10:01:36.975017]<cmc>you can throw a tracerror
[10:01:40.498306]<cmc>sorry
[10:01:42.444617]<cmc>TracError
[10:01:49.739739]<cmc>that will display in a nice red box
[10:02:07.368081]<cmc>but that ends page execution, obviously
[10:30:52.115295]<Mitar>no problem
[10:31:07.951183]<Mitar>it is user's job to fix that
[10:31:10.382586]<Mitar>thanks
[10:49:52.683436]<osimons>Mitar: macros are contained to the page rendering - any error thrown by a macro will just be provided in a placeholder inside the rest of page/markup that renders as usual
[10:50:12.961847]<Mitar>yes, what is great!
[10:50:38.766230]<Mitar>great job
[10:51:19.911750]<Mitar>bah, why except ValueError as e: does not work in python 2.5 ...
[10:52:07.523862]<osimons>except ValueError, e:
[10:52:35.836080]<Mitar>why they changed this in 2.6 ... strange
[10:52:51.551230]<Mitar>is there a way to load a module from projects' plugin directory?
[10:52:57.383939]<Mitar>simply import is not enough
[10:53:31.368731]<osimons>i suppose it is changed for py3k, and that 2.6 provides a transition support for new syntax. the "old" syntax should work for any recent 2.x, which is what trac supports
[10:53:59.087154]<Mitar>thanks
[10:56:35.278772]<osimons>Mitar: such plugins are loaded automatically by trac - should be in env.components somewhere
[10:57:01.364820]<Mitar>yes, but if i want to load some extra code in that directory which is not trac plugin
[10:57:13.453485]<Mitar>(i will pack it later into an egg)
[10:57:43.145931]<osimons>ah, well then you need to extend the path list that python uses to search for importable code
[10:58:07.465521]<osimons>like... import sys; sys.path.append('/my/custom/plugin/location')
[10:59:46.397916]<Mitar>hm, thanks
[11:00:09.009381]<osimons>extending path can be done at any level - i typically do it as a directive to mod_wsgi or mod_python, and have a location for some scripts and debug checks that i can call on when needed
[12:02:41.375184]<gozerbot>trac: Changeset [9003]: zh_CN: translation updates contributed by Hong Shuning. Patch by zengjie. ... - <http://trac.edgewall.org/changeset/9003>
[13:02:39.527666]<gozerbot>trac: Ticket #8934 (Commit message truncated in timeline breaks formatting) created - <http://trac.edgewall.org/ticket/8934>
[13:32:40.543227]<gozerbot>trac: Ticket #8934 (Commit message truncated in timeline breaks formatting) closed - <http://trac.edgewall.org/ticket/8934#comment:1>
[13:57:50.982778]<Mitar>are there any plugins which would add some arrows to wiki syntax?
[14:20:10.845136]<rgammans> /join #python
[14:20:15.480417]<rgammans>bleah
[14:20:30.822395]<jhammel> /kick evil_twin
[15:02:42.839946]<gozerbot>trac: Changeset [9004]: zh_CN: follow-up to r9003, msgfmt fixes to make Transifex happy. - <http://trac.edgewall.org/changeset/9004>
[15:27:25.306855]<wino>Hey, is there a way to change a user's default page, as in right after they log in they're taken to tickets / report-view instead of the wiki ?
[15:29:26.714446]<wildintellect>I think you can change the default page for everyone in the trac settings file but not per user
[15:29:58.077851]<wino>wildintellect: thanks, I'll give it a look
[16:02:42.140112]<gozerbot>trac: TracImport edited - <http://trac.edgewall.org/wiki/TracImport?version=19> || 0.11/TracImport edited - <http://trac.edgewall.org/wiki/0.11/TracImport?version=3>
[19:02:44.127580]<gozerbot>trac: Ticket #8935 (Full text search of tickets can be very slow) created - <http://trac.edgewall.org/ticket/8935>
[22:32:46.062708]<gozerbot>trac: TracDev/DevelopmentEnvironmentSetup edited - <http://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup?version=19>
[23:25:41.057629]<Guest2528>hi all
[23:26:19.586919]<Guest2528>i have initialized a new project but when i open it, it gives me error
[23:27:01.250511]<Guest2528>http://pastebin.com/d3bfc9e3c
[23:42:51.455231]<macmaN>um that is quite elementary problem
[23:43:37.718939]<macmaN>the last line says all you need to know
[23:48:27.430541]<macmaN>how about why is my ticket comment edit not being saved
[23:49:21.064591]<macmaN>and isnt the Preview button a little redundant with the live preview?
[23:50:05.954024]<macmaN>running multirepos-r8996