Team Chat Logs

March 29, 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:10:37.898348]<otaku42>moin
[00:34:59.751796]<anchovy>moin?
[00:35:08.243984]<anchovy>morning
[02:14:22.259628]<Delis>Hello, the week jast started and I already have another problem. Is there any possibility through macros get an current ticket id. I mean the id of the ticket where the macro called from ?
[02:46:24.467212]<bionoid>Delis you could look at formatter.req.path_info
[02:46:57.951944]<Delis>bionoid: thanks.
[02:47:02.856060]<bionoid>apart from that, don't know any elegant way. Perhaps someone more experienced with macros will come along ;-)
[02:59:43.048925]<osimons>Delis: seeing macros can appear in any wiki context (ticket or wiki pages or elsewhere), you may want to check the resource instead of req.
[03:00:26.085023]<Delis>thanks. will try.
[03:00:35.148613]<osimons>in a macro you get the formatter, and formatter has a context, and the context is based around a resource - so formatter.context.resource iirc
[03:01:06.246439]<Delis>osimons: thanks. will try it this way.
[03:01:12.969374]<osimons>if formatter.context.resource.realm == 'ticket': tid = formatter.context.resource.id
[03:18:04.729874]<lxsameer>hi i installed http://trac-hacks.org/wiki/AccountManagerPlugin plugin , but my auth system is f***. can any one please help me through it
[03:23:04.467351]<pyqwer>Hi, I'm fiddling around with Apache2 authentication + Trac (with WSDL) and can't figure out how to configure it: I want specific parts of Trac viewable without authentication, others only with authentication - is this doable?
[03:25:26.865703]<lxsameer>my /logout does not work what should i do
[03:27:10.882817]<bionoid>lxsameer: With HTTP auth, the browser must be closed in order to "log out"
[03:28:52.914757]<bionoid>pyqwer: Certainly, depends what you want to show/hide. Basically do authentication only with apache, and use trac permissions for "anonymous" (ie anyone, logged in or not) and "authenticated" for those logged in.
[03:29:15.955242]<lxsameer>bionoid: no with that plugins i mentioned above
[03:29:42.960346]<bionoid>lxsameer no idea sorry, don't use it.
[03:30:25.490281]<lxsameer>bionoid: then how my users register in my trac system
[03:31:01.714055]<bionoid>I meant _I_ don't use it so can't help you
[03:31:14.680161]<pyqwer>bionoid: Exactly, that's how I configured it - this also worked with tracd, now I switched to WSGI and have the following in my apache config: <Location /trac/linuxfw> AuthType Digest AuthName "qwer" AuthDigestDomain linuxfw AuthUserFile /var/trac/apache/linuxfw.htdigest Require valid-user
[03:31:30.159782]<pyqwer>This always requires a login, no anonymous access is granted...
[03:32:23.129219]<lxsameer>bionoid: aha thanks
[03:32:42.170078]<bionoid>pyqwer Ah, location should be /trac/linuxfw/login
[03:32:42.635735]<Delis>osimons: wow!!! great!!! thx!
[03:32:45.384181]<zerm>hey.. i dont get it, how can i launch tracd as deamon (-d) as different user? root is definitvely bad
[03:33:02.325602]<zerm>(is it)?
[03:33:53.190928]<zerm>adding os.setuid to tracd and nothing happens, launching using sudo from my rc.d and nothing happens
[03:34:23.024739]<pyqwer>bionoid: Ah, WAY better! :-)
[03:34:57.903747]<pyqwer>bionoid: BTW, do you know what this "AuthDigestDomain" is for? I see no use in it.
[03:35:10.548891]<talley>zerm: and any new instance is still running as root? or it's just one control process used to bind and listen on :80?
[03:35:25.934416]<zerm>running on port 3050
[03:35:31.939531]<zerm>have to check if it suids
[03:35:54.350880]<zerm>one instance of python2.5 running as root
[03:37:14.034999]<bionoid>pyqwer nope havn't used digest auth in ages, check apache docs
[04:30:00.889807]<hetii>Hello
[04:30:02.298397]<hetii>:)
[04:30:40.343880]<hetii>i try to develop my first plugin for trac but i stock on: AssertionError: HDF dataset not available. Check your clearsilver installation
[04:31:11.377017]<hetii>i use trac 0.11.5
[04:45:41.440084]<hetii>anybody ?
[05:23:51.396595]<lxsameer>hi , how can i restart my db ?
[05:23:53.698993]<lxsameer>sqlite
[05:47:44.422304]<Xeross>I'm planning on setting up trac on apache, was wondering, what's the best mod for doing so, for example ruby has Passenger
[05:49:20.224292]<lxsameer>Xeross, i believe mod_wsgi
[05:49:34.877018]<Xeross>Seems the wiki agrees, mod_wsgi is fastest
[05:51:08.224976]<lxsameer>Xeross, :)
[05:53:03.620683]<Xeross>HMm now lets see if I can migrate my projects over from doctrine
[05:53:07.595819]<Xeross>ehm redmine*
[06:02:20.352963]<lxsameer>Xeross, i have a bad time with redmine
[06:48:01.905294]<vick>Hello, i would like to make a plugin that execute a cmd and then return the result of that cmd.. Is that something achievable using trac plugins ?
[06:51:59.771181]<Xeross>Is there a way to uninstall python through install.py ?
[06:53:13.553876]<Xeross>or atleast keep trac in a seperate directory
[06:54:38.477451]<osimons>Xeross: setup.py you mean? setup.py / easy_install has no uninstall feature. you need to manually remove the code and edit the .pth file in site-packages directory. i think 'pip' has this feature, but not looked into it.
[06:55:38.859095]<osimons>if you want flexibility, then look into virtualenv for creating virtual python installs - make separate python "workspaces"
[06:56:55.429733]<osimons>vick: sure. how would you like it to work? a macro on a wiki page, or as something answering requests (like /vick or whatever)?
[06:58:36.552935]<osimons>look into subprocess.Popen (or its earlier alternatives for supporting older python version) - it makes running commands and reading stdout/stderr easy
[07:00:22.629269]<vick>osimons, I am not really much into trac plugin development, therefore the easiest way. I am not quite sure how it would work ? Perhaps an extra button with just the output or so ?
[07:04:40.259133]<osimons>vick: find a way to express your needs using patterns already in trac - like "a new menu item and when pressed go to a new page listing various stuff"? or, "to a wiki page add [[MyStuff]] macro and have it list the stuff that my command outputs"?
[07:04:51.825306]<osimons>the basics of plugins are here: http://trac-hacks.org/wiki/EggCookingTutorialTrac0.11
[07:05:51.935572]<osimons>- but there are many more interfaces that can be implementing, allowing you to add macros, permissions, and all kinds of stuff. read the code of others, and of plugins you know, to get a better understanding. also the trac source contains various sample plugins.
[07:21:22.049787]<Xeross>Do I have to make my python eggs directory writable by my webserver user ?
[07:22:08.400714]<Xeross>Guess I have to indeed :/
[07:25:38.746022]<Xeross>I dont feel comfortable having my eggs folder world writable :/
[07:28:58.023822]<Xeross>Would it be possible to create a script in php that uses http authentication together with a mysql db to auth in trac ?
[07:29:38.182656]<cmc>Xeross: look at xmlrpc plugin
[07:29:52.742747]<cmc>it logs in through xmlrpc, which will get you a session id
[07:31:19.140617]<Xeross>Hmm well I currently have a user database and want to link it into trac
[07:33:28.226697]<Xeross>Including setting the users emai address, etc. to a fixed value if possible
[07:35:34.934285]<cmc>I see I see
[07:36:13.946187]<cmc>I think there are plugins on trac-hacks that do something similar with other technologies
[07:38:35.033645]<Xeross>As long as I can use a custom authentication function as it's a quite uncommon password format
[07:40:53.660010]<Xeross>Isn't there a way to emulate the http auth through php and make trac pick it up
[07:41:34.622341]<Xeross>http://php.net/manual/en/features.http-auth.php
[07:41:42.693717]<Xeross>can make php ask for http auth and if checks out redirect to trac
[07:41:51.778170]<Xeross>would that work ?
[07:42:58.977564]<lxsameer>my trac tabs remain in a status that is for long ago when i click on them , ( for example i change webadmin but when i click in admin tab i see its old state , then i should select a link inside of admin tab to redraw it and see the current state)
[07:43:04.923116]<lxsameer>where is the problem
[07:45:23.146744]<Xeross>http://trac-hacks.org/wiki/DbAuthPlugin
[07:45:27.331905]<Xeross>seems I could try modifying that
[07:51:09.086722]<Xeross>Yeh I will modify dbAuth
[07:51:10.992210]<osimons>Xeross: also, anything that works as auth in apache will be used by trac - be it a module or a custom auth handler using whatever technology you can get supported
[07:52:46.898844]<Xeross>If I just use the http auth I still cant block the email update stuff etc
[07:53:53.478600]<osimons>Xeross: ah - you want to manage your db through trac. i see. that is at a slightly higher ambition level than just a custom auth script for apache.
[07:55:29.261923]<Xeross>No I want to make people auth with a DB that already have their email etc filled
[07:56:15.413544]<osimons>Xeross: that plugin looks abandoned - how about making a custom password store for accountmanager plugin?
[07:56:55.067004]<Xeross>Hmm passwords are stored SHA1(UPPER($USERNAME + ":" + $PASSWORD))
[07:57:10.830411]<osimons>http://trac-hacks.org/wiki/AccountManagerPlugin
[07:57:36.334057]<osimons>- don't use it myself, but know others have made custom user/pwd stored for it
[07:58:59.134847]<Xeross>they are in a different database though
[07:59:13.221322]<Xeross>so I dont need a manager just the auth part with perhaps automatic setting of email
[07:59:16.374352]<Xeross>and name
[08:00:26.693375]<Xeross>Perhaps I can pull it off through php, dunno how trac stores everything
[08:00:56.994297]<osimons>Xeross: trac has no notion of users or passwords - it just uses the authname as set on the request
[08:01:08.041328]<Xeross>k
[08:01:12.875941]<cmc>session + session_attribute table stores some extra info, though
[08:01:19.071658]<Xeross>like email etc ?
[08:01:34.745043]<cmc>yes
[08:01:37.748612]<cmc>not password
[08:02:01.531745]<Xeross>ye ofc
[08:02:14.438604]<Xeross>So I would have to somehow externally set email/name/session_id
[08:09:43.332760]<osimons>Xeross: or sync to trac.db - for authenticated users, the sessionid is the authname
[08:10:19.750428]<cmc>syncing seems like the easiest solution
[08:11:31.531263]<Xeross>so just sync all their data into the track session db thingie and use the php for auth ?
[08:12:27.799694]<cmc>seems like a solution
[08:15:50.439230]<osimons>Xeross: sure, that should work. note that users may change their username/email in trac preferences, so you need a plan for what becomes master data
[08:16:36.096281]<osimons>you can of course disable trac preferences component
[08:18:26.254174]<Xeross>How would I do that ?
[08:19:36.812648]<osimons>in your trac.ini ifile: [components] trac.prefs.* = disabled
[08:20:53.599986]<Xeross>trac.prefs.general = disabled
[08:20:58.129451]<Xeross>would disable email/name settings ?
[08:21:11.242720]<Xeross>and perhaps also trac.prefs.advanced = disabled then ?
[08:21:30.919070]<osimons>it will disable all preferences - there is an open ticket for making this finer grained (each feature in prefs should be a separate component so that it can be selectively enabled/disabled)
[08:23:01.601073]<osimons>it refers to name/namespace of the python components - not related to what you see visually on web
[08:23:33.458925]<Xeross>what header in the trac.ini should I put it under
[08:23:47.551553]<osimons>[components]
[08:23:55.303528]<osimons>create if it does not exist
[08:24:46.501037]<Xeross>ok works
[08:24:53.902024]<cmc>you should also be able to do that through the plugin interface in Admin
[08:25:42.827726]<Xeross>Haven't even configured authentication yet
[08:31:36.805093]<Xeross>Is there some kind of rights management in track as to whom can edit wiki pages etc ?
[08:31:46.744495]<Xeross>or do I need the authpanel plugin thing
[08:32:26.154899]<cmc>generic permissions exist out of the box, but they are not fine-grained to specific wiki pages
[08:32:46.466771]<Xeross>generic permissions seem to be anyone can edit the wiki pages
[08:33:03.012271]<cmc>remove that permission from the anonymous user
[08:35:39.613417]<Xeross>by default anyone authenticated can modify the wiki
[08:37:08.350527]<cmc>http://trac.edgewall.org/wiki/TracPermissions
[08:38:48.941831]<Xeross>Ye I found it already :)
[08:40:22.014755]<Xeross>needs a bit of getting used to this trac way of managing stuff
[08:44:53.033476]<Xeross>Seems I can't get a php script to work for authentication
[08:46:41.248211]<Xeross>it will show me as logged in through http auth but trac will not process it somehow
[08:50:01.693506]<Xeross>Seems I can use phpbb authentication which I doubt will work as my phpbb forum uses a bridge already
[08:50:03.976980]<Xeross>worth a try
[08:50:44.815473]<Xeross>brb
[09:20:28.658431]<macmaN>!seen lxsameer
[09:20:28.664380]<evil_twin>lxsameer was last seen on irc.freenode.net at Mon, 29 Mar 2010 08:09:34 +0100, quitting: Quit: Leaving
[10:07:27.334801]<macmaN>cd
[10:10:38.863216]<Xeross>Can't get this stupid plugin to show up
[10:11:21.474553]<Xeross>How do I get a plugin to show-up I modified a plugin and did a python setup.py install but it doesn't show up on my trac
[10:11:39.873454]<cmc>restart trac
[10:12:30.577215]<Xeross>already restarted apache 3 times now
[10:14:10.280669]<Xeross>IT jsut wont show on my admin panel but sais it's enabled
[10:14:48.484209]<cmc>run tracd with debug logging enabled
[10:14:56.222139]<cmc>it will show you which plugins are failing to load
[10:16:52.866909]<Xeross>how do I enable debug ?
[10:17:27.448374]<Xeross>use gdb ?
[10:18:06.175707]<cmc>First, Trac is written in python
[10:18:35.193422]<cmc>more importantly though, look at http://trac.edgewall.org/demo-0.11/wiki/TracIni#logging-section
[10:19:06.603079]<Xeross>I know it's written in python I just saw some GDB stuff on the troubleshooting page
[10:19:11.766961]<Xeross>turns out that's for segfaults
[10:20:41.580200]<Xeross>debug is working thanks
[10:20:51.592224]<Xeross>I love trac already, much more helpful community then redmine
[10:26:56.849176]<Xeross>Yay
[10:27:11.806050]<Xeross>I now have a list of the users I already had in my db inside the AccountManager plugin
[10:27:17.482318]<Xeross>now the logout function just wont log me out
[10:34:36.593259]<Xeross>Hmm now I just need to figure out how to convert a unicode object into uppercase
[10:41:54.638838]<Xeross>Woohoo I did it
[10:44:44.830260]<jhammel>Xeross: foo.upper() ? ;)
[10:45:51.294541]<Xeross>jhammel: Yeh figured that out
[10:46:03.315107]<Xeross>I ment I managed to create an authentication module that works with my db
[10:46:35.031974]<cmc>good job
[10:46:51.695425]<Xeross>I basically modified the phpbb auth module but still cool it worked :)
[10:47:51.564935]*jhammel gets depressed even hearing the name phpbb
[10:49:19.885687]<Xeross>What's wrong with phpbb
[10:49:59.617376]<jhammel>Xeross: no mailing list, at least not on the forum i use
[10:50:24.040975]<jhammel>i need information pushed to me
[10:50:50.961899]<Xeross>I find the phpbb community weak when it comes to modding
[10:50:58.234252]<Xeross>Hard to get some answers
[10:51:04.902325]<jhammel>i just don't understand how its 2010 and there is no decent mailing list + forum software
[10:51:06.580903]<Xeross>had to figure the auth bridge out on my own
[10:51:16.527500]<Xeross>subscribe to the forum ?
[10:52:47.011603]<jhammel>does that allow me to email replies?
[10:53:02.859644]<Xeross>no :(
[10:53:11.259555]<jhammel>:(
[10:59:24.823132]<Xeross>Hmm what's the standard procedure, empty out the wiki once everythingis setup ?
[11:00:14.088134]<jhammel>Xeross: that's not my standard procedure
[11:00:23.244164]<Xeross>You just leave all the normal pages in>
[11:00:23.761699]<Xeross>?
[11:00:25.051177]<jhammel>Xeross: i usually edit WikiStart and leave everything else
[11:00:34.746305]<jhammel>yeah, the help pages are usually....helpful ;)
[11:00:36.494388]<Xeross>Crap how do I undelete :/
[11:00:47.065464]<jhammel>db rollback ?
[11:00:53.890114]<Xeross>uh how
[11:01:12.754573]<Xeross>hmm this is bad mysql made all tables myisam
[11:01:14.549749]<jhammel>db specific; in sqlite, you don't unless you make backups
[11:02:20.740365]<Xeross>My db should be innodb afaik :/
[11:04:53.542191]<Xeross>isn't the default data stored in some sql file somewhere
[11:08:09.101244]<Xeross>So where is the default data stored ?
[11:08:52.956439]<cmc>not sure. grep's probably your friend
[11:09:25.904491]<bionoid>Xeross initenv and dump the database
[11:09:59.383208]<bionoid>(it is generated from code, not available as a source .sql)
[11:16:36.461845]<Xeross>ok
[11:17:10.712313]<jhammel>RaceCondition must have met his namesake ;)
[11:22:17.563579]<cmc>;)
[11:42:56.610683]<anchovy>When doing "closes #ticket-number" in an svn commit comment, it shows the ticket is closed by the wrong author
[11:43:06.376268]<anchovy>instead the author is showing as the owner of the repos
[11:43:20.862623]<anchovy>anyone know why?
[11:45:38.536215]<cmc>when committing, are you using subversion user names?
[12:35:15.731384]<Xeross>Is it possible to delete the timeline part that shows all default wiki pages
[13:23:49.389651]<hasienda>Xeross: No, at least no easy way. Timeline is generated from wiki db table that holds content of all versions of all wiki pages. So suppressing initial import of default wiki pages would require to a) delete all these pages or b) modify timeline constructor with filter for (first version of) default pages.
[13:30:36.220830]<pacopablo>Xeross: what you do want to do? do you simply want to turn off the timeline? or just wiki updates to the timeline?
[13:30:58.077226]<pacopablo>or just the default wiki pages from the timeline?
[13:31:52.942351]<dunk_>oi paco ;]
[13:32:02.088105]<dunk_>hows live going with you ?
[13:34:41.109896]<Xeross>Is it possible to have categories
[13:34:55.411415]<Xeross>because I have the type defect, but there's multiple categories of defectts
[13:35:02.591046]<Xeross>defects*
[13:35:34.414154]<jhammel>Xeross: there are many ways of doing it; if you don't want to use any of the default fields, you can make your own custom one
[13:35:46.946843]<jhammel>Xeross: or use tags, whichever works for you
[13:36:09.954252]<Xeross>jhammel: I'll have normal users filling in the tickets so dropdown list would be best
[13:39:04.680080]<pacopablo>dunk_: crazy insane busy as always ;)
[13:42:06.076726]<dunk_>man the story doesnt change ;]
[13:42:24.619657]<dunk_>same overhere though still busy programming bots
[13:42:45.901945]<dunk_>doing a new one now though GAE stuff its going to be nice ;]
[13:43:03.797713]<pacopablo>a gozerbot for app engine?
[13:43:56.155803]<dunk_>kind of
[13:44:04.218159]<dunk_>check http://feedparser.org ;]
[13:44:23.064937]<dunk_>its does web xmpp wave and irc
[13:44:35.918219]<dunk_>although irc is a seperate app
[13:44:43.468776]<Xeross>So I see there's form field plugins, do they allow dropdowns ?
[13:45:28.789464]<pacopablo>cool
[13:45:30.322229]<pacopablo>bbiab
[13:45:36.091540]<dunk_>utt
[13:45:41.781756]<dunk_>sorry its feedprovider.org
[13:45:42.790109]<dunk_>lol
[14:12:43.680625]<pacopablo>dunk_: looks cool
[14:14:48.889038]<dunk_>paco its fun programming .. lot of new tek to learn etc
[15:51:19.319661]<ronny>hi
[15:53:23.871247]<ronny>anyone aware if there is a python lib that can help to report unhandled exceptions in a app to a trac
[15:54:01.633088]<misc>abrt ?
[16:07:26.914870]<ronny>misc: i wasnt thinking of a system-level daemon
[16:07:51.713978]<misc>ronny: well, you can take a look at the way they intercept exception
[16:07:59.536492]<misc>( ie, they override some stuff )
[16:08:43.164978]<ronny>misc: im well aware of the possibilities of exception hooks, but i dont want to invent yet another thing that reports my traces to trac
[16:09:54.693600]<misc>well, there is abort, but that's the same as abrt , so I guess that's no :/
[17:28:31.120795]<macmaN>any AuthzPolicy users ticking around here right now?
[20:41:47.395638]<anchovy>nope, svn+ssh here