Team Chat Logs

April 17, 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    

[05:03:30.651132]<thijstriemstra>random note: python fucking rocks
[05:03:33.865775]<thijstriemstra>!!
[06:16:44.261837]<nedko>hi, i dislike the attachment lists for images in each page. how can i get rid of them? should i use subpages somehow?
[06:37:37.215057]<hasienda>hello all.
[06:39:00.129105]<hasienda>Hereby I annouce availability of patches to get custom time field support for Trac trunk at http://trac.edgewall.org/wiki/TracTicketsCustomTimeFields
[06:39:42.841264]<hasienda>development is currently little behind Trac SVN HEAD, at r9443, but will catch up soon
[06:40:19.046500]<hasienda>at least after fixing remaining bugs I already know from own tests.
[06:41:02.024223]<hasienda>As stated in the development wiki page, it's not for prime time right now.
[06:42:05.146971]<hasienda>But considering alpha code better than nothing at all I did the move now.
[06:43:17.670883]<hasienda>Will annouce call for beta-testing later. For now I recommend the patches for code review only.
[06:43:43.382025]<hasienda>However, any feedback is appreciated. Have fun.
[06:55:23.239370]<hasienda>bionoid: That's for you: will do bug hunting this weekend, rebase next week, hopefully ready for beta-test til next weekend. Hope you like it. :-)
[07:02:23.273941]<nedko>i dislike the attachment lists for images in each page. how can i get rid of them? should i use subpages somehow?
[07:06:32.415952]<hasienda>nedko: i.e. a) add to one separate, dedicated wiki page - according to your guess
[07:06:51.900282]<hasienda>b) add to htdocs and reference as mentioned in the docs
[07:08:23.665348]<hasienda>c) modifiy wiki page template to get rid of the attachment section (advanced, not recommended, since attachments a no longer reachable for review/update
[07:10:24.634744]<hasienda>nedko: btw, read your question; be little more patient before posting twice. Most of users here come along and review only from time to time ...
[07:10:59.644373]<hasienda>*** backing out to real life for some hours ;-)
[07:14:33.452287]<nedko>hasienda: how to reference them in a subpage? i ended with only full http:// links working :S
[07:52:16.862262]<andres>Has anybody ever tried to add a proper searching mechanism to trac instead of that ugly LIKE '%foo%'?
[07:59:19.129632]<doki_pen>andres: I have real searching and indexing in the irclogs plugin
[07:59:53.915811]<doki_pen>andres: using whoosh
[08:00:10.597365]<andres>doki_pen: but thats not integrated into trac for the wiki,tickets and code I gather?
[08:00:59.326580]<doki_pen>andres: no, but it could be used for reference if implementing something like that
[08:01:57.303788]<andres>ok.
[08:02:07.903827]<andres>I was thinking of doing a quick hack using tsearch2...
[08:02:47.164936]<doki_pen> andres I took a different approach,
[08:03:03.678489]<doki_pen>I used the api to get the logs (since they can be stored in multiple formats)
[08:03:05.613497]<andres>Oh, I didnt want so say yours was a bad approach, dont misunderstand me
[08:03:48.572349]<doki_pen>i don't know what the right approach for trac is, I can only vouch for whoosh being a decent project with a responsive maintainer
[11:16:57.588776]<hasienda>nedko: back to your attachment issue
[11:17:09.408234]<nedko>hasienda: :)
[11:17:45.661289]<hasienda>nedko: maybe we need to clarify what you think is subpage in trac wiki.?
[11:18:27.934171]<nedko>hasienda: http://ladish.org/wiki/mockups/attachments
[11:18:57.028622]<nedko>hasienda: page "mockups" with subpage "attachments"
[11:20:20.660652]<hasienda>all wiki pages are technically the same thing, building hierarchy only by name space, i.e. Doc, Doc/MainPage, Doc/OtherPage, Doc/Option/One, Doc/Option/Two, etc.
[11:21:29.528853]<hasienda>nedko: just to mention, my way to read your suggestion of subpage was 'dedicated resource upload page'.
[11:22:36.204098]<hasienda>nedko: exactly as your link :-)
[11:22:36.946544]<nedko>hasienda: kind of. we have a tutorial page (http://ladish.org/wiki/tutorial) as well that has long list of attached images at the end of the page
[11:23:48.320322]<nedko>hasienda: i'm looking for a way to hide this list at least for anonymous users, perfectly for everybody. but attachment list should still accessible somehow (as you suggested as well)
[11:25:03.287880]<hasienda>nedko: first get an idea of attachment links here http://ladish.org/wiki/TracLinks#attachment:links
[11:25:37.662555]<nedko>aha! attachment:the_file.txt:wiki:MyPage
[11:25:41.078084]<nedko>this is what i was missing
[11:26:52.823077]<hasienda>nedko: than I'll tell you about, how to refer to <env>/htdocs/<my_attachment>, wait a minute for I this, since I don't need it very often ...
[11:27:10.218888]<hasienda>*** looking into Trac wiki
[11:27:16.995387]<nedko>hasienda: i think i made it: http://ladish.org/wiki/mockups
[11:27:43.850324]<nedko>hasienda: why i need a way to refer to <env>/htdocs/<my_attachment> ?
[11:30:55.988008]<hasienda>nedko: since it's a way to have data at hand, that you don't need to upload to a certain wiki page, hence is not visible as an attachment there.
[11:33:28.763382]<nedko>hasienda: it is perfectly ok to upload these images as attachments
[11:33:34.834540]<nedko>hasienda: thank you for your help!
[11:35:03.472525]<hasienda>nedko: Oh, you're welcome. If it's ok to you, ok to me too.
[11:35:28.398748]<nedko>hasienda: this attachment syntax can be used for Image() macro calls as well, right?
[11:38:14.475028]<nedko>hasienda: it does not work :(
[11:38:37.297351]<nedko>[[Image(gladish-studio.png:wiki:mockups/attachments)]] does not embed the image :S
[11:39:57.521746]<hasienda>nedko: done it before, will give you an example in a minute, but certainly your resource syntax is wrong: file name is last thing for sure.
[11:55:51.306479]<hasienda>nedko: this is in (your) docs too: see http://ladish.org/wiki/WikiMacros and look for the second example box actually explaning common use cases for [[Image()]]
[11:56:22.667779]<hasienda>tnedko: here you read
[11:56:36.893906]<hasienda>nedko: [[Image(OtherPage:foo.bmp)]] # if current module is wiki
[11:56:46.526827]<hasienda>nedko: [[Image(base/sub:bar.bmp)]] # from hierarchical wiki page
[11:57:58.046457]<hasienda>nedko: so [[Image(wiki:mockups:gladish-studio.png)]] should do
[11:58:37.562080]<hasienda>nedko: reads much more logical, doesn't it?
[12:00:14.460931]<nedko>hasienda: the png is attached to the attachments subpage of mockups page
[12:01:30.466598]<hasienda>nedko: ah, well than [[Image(wiki:mockups/attachments:gladish-studio.png)]] should do
[12:01:34.217556]<nedko>hasienda: works now, thanks again!
[12:02:22.163070]<hasienda>nedko: np, glad it works for you too now.
[12:02:36.829333]<nedko>hasienda: can i use something like ./attachments:xxx.png ?
[12:02:49.547492]<nedko>so if page name changes links are not broken
[12:08:37.779297]<hasienda>nedko: No, wiki pseudo structur is not *nix file path, even if looking similar. At least this doesn't work with Trac wiki right now.
[12:09:16.837970]<nedko>hasienda: ok, good to know
[12:09:53.667686]<hasienda>nedko: [[Image(htdocs:foo/bar.png)]] # image file in project htdocs dir. - This is the example for attachments hidden in htdocs dir.
[12:10:17.553036]<hasienda>nedko: just for completeness
[12:11:33.518526]<nedko>hasienda: i have need for something similar. the tarball download link. i use full path currently and apache redirects for /download/* urls
[12:12:32.626182]<hasienda>nedko: I remember having see a download plugin at trac-hacks.org, but not sure.
[12:12:59.252328]<hasienda>nedko: Translating your site example from above for resources
[12:13:48.988774]<nedko>hasienda: i think i tried some download plugin and it didnt work as i wanted
[12:14:56.866787]<hasienda>nedko: you might have resource in htdocs like /var/www/gladish-trac-env/htdocs/images/mockups/gladish-studio.png
[12:15:34.221310]<hasienda>nedko: and refer to it like [[Image(htdocs:images/mockups/gladish-studio.png)]]
[12:15:41.215723]<nedko>hasienda: http://ladish.org/download/ladish-0.2.tar.bz2 looks much better :)
[12:18:39.589172]<hasienda>nedko: http://ladish.org/download/ is just the webserver, np, but can be done for single file (not dirs) somehow with 'raw-attachment:' links.
[12:19:40.967335]<nedko>hasienda: but raw-attachment will not allow list of all "download"able files, right?
[12:20:01.263255]*nedko googles for raw-attachment
[12:20:12.862563]<hasienda>nedko: right, just what I tried to say with "no dirs"
[12:22:17.795645]*nedko gives hasienda a kudo and a beer
[12:26:28.714233]<hasienda>nedko: cat nedko-thanks.txt | sed -e 's/beer/orange-juice/' | make --magic ;-)