Team Chat Logs

September 21, 2009

2009 8
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:50:37.358854]<otaku42>moin
[01:01:53.682186]<evil_twin>t.e.o: Ticket #454 ([patch]Edit ticket comments) updated - <http://trac.edgewall.org/ticket/454#comment:186> - Drops <drop_s@…>
[04:01:56.649567]<evil_twin>t.e.o: WikiRename edited - <http://trac.edgewall.org/wiki/WikiRename?version=6> - anonymous
[04:14:39.839535]<seemant>is there any code for evil_twin floating around?
[04:17:16.318704]<seemant>ah, gozerbot
[04:17:17.613503]<seemant>thanks
[06:54:54.901777]<jhammel>evil_twin: what kind of bot are you again?
[06:54:54.913147]<evil_twin>nothing known about what kind of bot are you again
[06:54:58.185760]<jhammel>bah
[06:55:00.240150]<jhammel>evil_twin: help
[06:56:10.499290]<dunk_>!v
[06:56:30.874324]<dunk_>jhammel: http://gozerbot.org
[06:56:36.373892]<dunk_>if the site is still up that is
[06:56:37.739014]<jhammel>dunk_: thanks :)
[06:57:06.442053]<dunk_>;]
[06:58:46.524696]<jhammel>dunk_: i may or may not have gotten approval to put a bot in our channels
[06:58:51.870638]<jhammel>so i'm weighing my options
[06:59:03.713491]<dunk_>ah ok cool
[06:59:13.177769]<dunk_>well if you have any gozerbot question let me know
[06:59:32.530023]<jhammel>dunk_: cool, will do
[06:59:40.093757]<dunk_>what do you want the bot todo ?
[06:59:48.257634]<jhammel>well, lots of stupid things
[06:59:53.667245]<dunk_>hehe
[06:59:55.213942]<jhammel>me personally? Or everyone
[07:00:00.977999]<dunk_>can you program python ?
[07:00:01.232075]<jhammel>logging is a must
[07:00:04.721459]<dunk_>well the channel
[07:00:07.806554]<jhammel>dunk_: sure can
[07:00:18.101950]<dunk_>logging can be done and integrated in trac
[07:00:20.804253]<jhammel>!seen is vital
[07:00:20.816612]<evil_twin>no logs for is, however, I remember seeing: _riplakish, _wision, administrator_, aisipos, alamaison, alexis, avlis, bismol, bismol_, cannis + 86 others
[07:00:24.498890]<jhammel>er, sorry
[07:00:48.359046]<jhammel>heh
[07:01:01.889318]<jhammel>i mean, some requests have almost been up the line of "I want the bot to make coffee for me"
[07:02:18.342106]<dunk_>well there is a !coffee plugin ;]
[07:03:25.597573]<jhammel>hah!
[07:03:25.617540]<jhammel>that would be wonderful
[07:03:25.634625]<jhammel>actually, i really wish it would tell me the coffee status...but that will require an HTTP capable coffee maker
[07:03:30.874730]<jhammel>well, i should get back to it....
[07:03:43.963122]<dunk_>;]
[07:03:44.826267]<jhammel>time to build that coffee-maker!
[07:12:25.589828]<jhammel>dunk_: oh, i just noticed the cute favicon
[07:12:38.091315]<jhammel>dunk_: did you steal that from superjail!
[07:17:20.178087]<dunk_>no figured it was easier to type
[07:17:34.653601]<dunk_>anyways got to go bbl ;]
[07:18:01.753798]<jhammel>dunk_: have fun!
[08:35:48.242723]<blakehall>I'm having trouble getting the subversion-python bindings installed on RedHat 5... Can anyone point me to some documentation? Or do I just have to re-compile subversion?
[08:46:00.642068]<Jamesb`>hello
[08:47:04.230414]<Jamesb`>I've got a problem Trac+Genshi on Apache "ascii codec can't decode..." when sending a post in the admin interface
[08:48:13.681146]<scfe>blakehall: Do you use Fedora EPEL?
[08:48:31.861801]<scfe>Jamesb`: Do you use postgres?
[08:48:55.956115]<Jamesb`>scfe: no sqlite, and the error message is about genshi file output.py
[08:49:33.401189]<scfe>Can you give the exact error message?
[08:50:05.074155]<Jamesb`>here is it http://pastebin.com/d28314378
[08:51:08.945323]<scfe>Jamesb`: This should be the 'Ã' character.
[08:51:24.834081]<scfe>do you use this character somewhere in your inputs?
[08:51:53.322632]<Jamesb`>scfe: I'm in the admin interface, logging page, I can't enter anything
[08:52:05.178317]<Jamesb`>(/trac/admin/general/logging)
[08:52:17.554045]<blakehall>scfe: I don't think we use the Fedora EPEL
[08:52:49.638753]<scfe>So you go to the logging page, select the right options and as soon as you submit the form, there is this error?
[08:52:57.222263]<Jamesb`>yes
[08:53:04.214999]<Jamesb`>tried with Firefox and opera
[08:53:33.306848]<scfe>Jamesb`: It's a server error, unlikely that it has something to do with your client. Did you check the trac.log?
[08:53:57.913982]<scfe>Did you try to go to trac.ini and set the log settings manually to DEBUG - and check trac.log again?
[08:54:00.132824]<scfe>blakehall: RHEL 5 works without problems for me combined with trac
[08:54:48.126845]<blakehall>scfe: I didn't actually setup this server, but it looks like our version of subversion is pretty old... maybe upgrading that will fix the issue
[08:55:17.590989]<scfe>blakehall: I'm using subversion-1.4.2-4.el5_3.1
[08:55:23.929566]<Jamesb`>scfe: where can I found trac.log. i'll try your tip about trac.ini
[08:55:46.389165]<scfe>(this is on CentOS5), Python bindings are included in this package
[08:55:52.058636]<blakehall>scfe: 1.4.6 here... so that's not the problem then...
[08:56:07.833674]<scfe>blakehall: actually it could be exactly the problem
[08:56:30.734069]<blakehall>worth a shot at least
[08:56:40.055320]<scfe>I'm not sure if subversion was updated in 5.4 but if it wasn't probably you have a self-compiled subversion
[08:57:12.014131]<scfe>Python's svn bindings must be compiled with the right versions to match the rest of the system
[08:57:14.886840]<blakehall>yeah, it does look like it's self-compiled... bingo
[08:57:28.529121]<scfe>self-compiling svn + bindings is very tricky
[08:57:44.811000]<scfe>I recommend using Red Hat's svn
[08:57:57.763393]<scfe>Jamesb`: In your env dir, go to log/trac.log
[08:58:11.214361]<blakehall>scfe: yeah, that's a good idea... thanks
[08:58:14.573966]<scfe>however this file is only created if you enabled logging before
[08:58:17.706070]<scfe>blakehall: yaw
[08:58:56.616705]<Jamesb`>scfe: log/ is empty atm
[08:59:22.246877]<scfe>Jamesb`: because your logging is probably disabled atm
[08:59:52.610655]<scfe>go to trac.ini, find the [logging] section, set logging type to 'file' and log level to 'DEBUG'. restart trac and you will see trac.log
[09:00:17.121842]<Jamesb`>huh ?
[09:00:21.277694]<Jamesb`>Internal Server Error
[09:00:41.917765]<scfe>Jamesb`: Check your apache's error log :-)
[09:01:16.325800]<Jamesb`>:x
[09:01:24.218238]<Jamesb`>there is a python error inside
[09:01:50.033138]<Jamesb`>okay the log/ folder isn't write for apache :)
[09:02:51.197154]<scfe>trac.ini should be writable as well for apache
[09:02:52.294218]<scfe>:-)
[09:03:00.734238]<Jamesb`>yes indeed
[09:03:10.270959]<Jamesb`>I just see the error
[09:04:08.487490]<Jamesb`>oh
[09:04:12.609121]<Jamesb`>I understood the problem
[09:04:37.881286]<Jamesb`>The error message contains unicode characters
[09:04:51.217154]<Jamesb`>which says the directory isn't writable for apache
[09:05:33.663367]<Jamesb`>why doesn't the library support unicode message from the system ?
[09:23:12.587701]<Jamesb`>2nd question, how can I remove the whole pages about Trac cause I don't want them ?
[10:52:46.090594]<dikim33_>Hi, can anyone tell me how to use the configuration data of trac.ini on the plugin source code?
[10:56:11.585976]<bionoid> dikim33_: Using trac.config; ListOption, IntOption etc..
[10:57:24.706891]<dikim33_>bionoid: thanks for your input. So, how do you use "ListOption" and "IntOption"?
[11:01:01.616608]<bionoid>dikim33_: Int, List etc depending on what data type the variable (should) contains.. ListOption(
[11:01:04.868666]<bionoid>oops
[11:01:37.026815]<bionoid>ListOption('section', 'keyname', default='Default value if not set', doc='Explanation of setting')
[11:03:15.407015]<dikim33_>bionoid: is it ok to omit the third and fourth argument?
[11:05:10.863648]<dikim33_>I have tried to use this on the AccountManager plugin and I got an error.
[11:05:12.390761]<dikim33_>pg_dsn = ListOption('account-manager', 'pg_dsn', '', '')
[11:05:23.175259]<dikim33_>The error is on pastebin. hang on.
[11:06:03.034856]<dikim33_>http://pastebin.ca/1574210
[11:23:00.099712]<dikim33_>Anyone please help me with getting the configuration value of trac.ini?
[12:13:25.155190]<jhammel>dikim33_: self.env.config.get('foo', 'bar')
[12:14:29.979275]<dikim33_>jhammel: thanks.. but i kept getting the error "self" is not defined or such.
[12:15:51.751683]<jhammel>dikim33_: ah....welll.where are you trying to access this?
[12:15:57.717828]<jhammel>not from a component, I guess
[12:16:23.174876]<jhammel>what plugin do i need to use LDAP auth with Trac?
[12:16:36.481809]<dikim33_>I am sorry for my naive python difficulties. can you give me more detail?
[12:16:37.585918]<dikim33_>no.
[12:17:02.460085]<dikim33_>I am not using LDAP but I am using the local password stored in my PostgreSQL.
[12:17:04.218131]<jhammel>well, um....how are you trying to access this?
[12:17:29.349786]<jhammel>dikim33_: no, my LDAP question was intended for anyone who knew
[12:17:45.766247]<dunk_>self is with methods
[12:17:50.522633]<dikim33_>my trac uses sqlite as a main database back-end though.
[12:17:50.845571]<dunk_>functions on objects
[12:18:16.798048]<dikim33_>dunk_: thanks. Yes, that's what I have noticed so far.
[12:18:24.957374]<dunk_>so if its missing self you need to add that to your function definition
[12:18:24.976920]<dunk_>as the first argument
[12:18:24.992922]<dikim33_>So, is there any workaround.
[12:19:05.318319]<dikim33_>basically my method is not under a class.
[12:19:47.352145]<dikim33_>It is kind of a global method. Is it possible to put the "self" argument in it though?
[12:20:01.970292]<jhammel>dikim33_: let's back up....what are you trying to do?
[12:20:16.694630]<dunk_>you need object.method() if you use self
[12:20:36.361742]<dunk_>good question jhammel ;]
[12:20:51.810998]<jhammel>AttributeError: type object 'object' has no attribute 'method'
[12:20:52.808155]<dikim33_>I am implementing AccountManager with the login information stored in PostgreSQL which is not a trac database.
[12:22:38.118470]<dikim33_>I have mentioned this long times ago but my question/comments were buried by a lot of other messages.
[12:23:26.661547]<jhammel>dikim33_: yeah, that will be hard if you don't know python
[12:24:23.406212]<dikim33_>I am not total blind of python but I just need some python expertise of this issue.
[12:24:44.587004]<dunk_>check the tutorial on www,python.org
[12:24:56.946984]<dunk_>and the modules listing on the same site ;]
[12:25:06.282954]<dikim33_>dunk_: thanks for your kind suggestion. :-)
[12:25:11.269174]<dunk_>thats all the docs i needed to learn python
[12:25:18.723189]<dunk_>ow and dir()
[12:25:31.069272]<bionoid>jhammel: Use LDAP auth with apache :)
[12:27:18.909502]<dikim33_>I am asking a simple instruction to get the option value from trac.ini which a simple text file.
[12:27:32.345311]<dikim33_>Why is it so hard to get the value on python?
[12:27:47.889945]<dikim33_>It should not be hard, isn't it?
[12:28:29.694395]<jhammel>dikim33_: are you doing this from a Trac component? if not, where are you doing it and why?
[12:28:51.778159]<jhammel>its not hard, its just too general of a question
[12:28:52.505392]<dikim33_>I already implemented the AccountManager with PostgreSQL but the dsn information is hard coded in the plugin which is not good for reusability.
[12:28:54.605844]<bionoid>jhammel: Active Directory by chance?
[12:29:03.593321]<jhammel>bionoid: hell no
[12:29:19.599769]<jhammel>dikim33_: then if you have a component, then the code i gave above should work
[12:30:25.981834]<jhammel>dikim33_: if you don't have a Component, then I'm not sure what you're doing
[12:30:38.550043]<dikim33_>jhammel: you are talking about "self.env.config.get('foo', 'bar')", right?
[12:30:51.190153]<bionoid>jhammel: Hehe ok, just checking; anyway mod_ldap and mod_authnz_ldap should do the trick. just setup a <Location /login> with AuthBasicProvider ldap.
[12:31:14.218579]<jhammel>bah; i hate apache
[12:31:19.654575]<jhammel>dikim33_: yes
[12:31:44.282301]<bionoid>Oh. Well then ;-)
[12:32:05.025247]<bionoid>iirc there may be a trac hack for it. Not sure.
[12:32:42.853665]<jhammel>bionoid: there is...or rather, there are several, woven together in some sort of webby-soup thing
[12:32:56.394071]<jhammel>bionoid: i'm just trying to figure out how all of that fits together
[12:33:19.785886]<bionoid>jhammel: Ok, sorry can't help. Only did it with apache.
[12:34:15.881617]<dikim33_>jhammel: http://pastebin.ca/1574303
[12:34:46.994786]<dikim33_>I have the code in pwhash.py
[12:35:06.773368]<jhammel>dikim33_: i would advise opening the environment and using that
[12:35:14.607092]<dikim33_>It has some other classes but this method is not defined under any class.
[12:35:35.033234]<dikim33_>jhammel: sorry how?
[12:35:59.601897]<jhammel>dikim33_: >>> from trac.env import open_environment
[12:36:11.499062]<jhammel>>>> env = open_environment('/home/jhammel/Trac-2.4/projects/fleem')
[12:36:50.126498]<jhammel>dikim33_: or you can use ConfigParser if you're really sure you don't need the Trac environment
[12:37:12.873378]<dikim33_>Oh, great. that totally makes sense.
[12:37:48.601595]<jhammel>:)
[12:38:36.546984]<dikim33_>BTW, can you give me more help about getting the trac instance path?
[12:38:57.531100]<dikim33_>which is needed to put in "open_environment()".
[12:43:42.302964]<dikim33_>jhammel: it works great with the env = open_environment('/home/jhammel/Trac-2.4/projects/fleem')
[12:44:24.604720]<dikim33_>But it would be really great if the code can get the project path dynamically.
[12:45:28.371090]<dunk_>for file in os.listdir():
[12:45:30.481200]<dunk_>;]
[12:45:58.898420]<dunk_>i dont know most people now where there path is
[12:46:29.537819]<dikim33_>dunk_: are you talking to me?
[12:47:49.844606]<dunk_>well to get the path to the environment not sure many ppl have been doing such a thing
[12:48:09.745925]<dunk_>so i guess you need to scan the directory yourself
[12:49:26.161458]<dunk_>check if its a trac directory and if so open environment ok .... again might now be sure that i know what you are looking for
[12:49:49.522240]<dikim33_>I have seen a trac code referring to the project_path but I don't remember where.
[12:50:01.515509]<jhammel>dikim33_: well, its stored on env
[12:50:12.782033]<jhammel>dikim33_: but if you have that, you don't need to do open_environment
[12:50:12.802446]<dunk_>maybe use your own config to define the project dir
[12:50:22.558973]<jhammel>dikim33_: so.....yeah, not sure what you're asking
[12:52:23.475156]<dikim33_>OK, jhammel. I think I know what you guys talking about but as you saw my code in pastebin, the method is not under any class. Should I just pass self.env to my code and then use it?
[12:53:42.495176]<jhammel>dikim33_: yes, if you can; i saw your method but not how it is being called
[12:53:53.818122]<jhammel>dikim33_: if it is being called by a Component, then yes, absolutely
[12:54:05.542967]<dikim33_>from pwhash import initialize
[12:54:15.649294]<dikim33_>and then call initialze()
[12:54:24.606623]<dikim33_>It has worked.
[12:54:45.186995]<dikim33_>but it does with the hard coded dsn information in the plugin.
[12:54:58.657989]<dikim33_>cool. jhammel
[14:05:02.048625]<dikim33_>jhammel: thanks again. it works fine with passing "self.env" and my AcccountManager plugin seems to be ready for my trac server.
[14:16:19.574520]<Bfuchs>good evening :) ... somebode here who can help me with reporting issues?
[14:25:44.883145]<Bfuchs>someone with knowhow?
[14:25:54.294265]<Bfuchs>on reporting
[15:05:00.525819]<rindolf>Hi all.
[15:05:22.711502]<rindolf>Is there any way to load an svn dump using trac? I'm using projectlocker.com
[15:32:10.790146]<evil_twin>t.e.o: Ticket #8681 (Allow adding usernames to a ticket CC list) created - <http://trac.edgewall.org/ticket/8681> - Mitar
[16:32:11.722209]<evil_twin>t.e.o: Changeset [8612]: 0.12dev: Added support for AND/OR queries, on the custom query page, in ... - <http://trac.edgewall.org/changeset/8612> - rblank
[16:37:11.758135]<evil_twin>t.e.o: Ticket #2647 (Support AND/OR queries) updated - <http://trac.edgewall.org/ticket/2647#comment:17> - rblank
[17:57:13.227033]<evil_twin>t.e.o: Ticket #8682 (test failure for ase--3.2.0) created - <http://trac.edgewall.org/ticket/8682> - cole008@…
[20:10:19.739372]<wgl>I am trying to debug a tracd/squid installation and would like to enable tracd logging, as it appears that the installation that I have is not logging. This is a multi-project installation.
[21:01:49.778851]<wgl>Does tracd support logging in any form?
[23:27:24.768116]<evil_twin>t.e.o: Ticket #8682 (test failure for ase--3.2.0) closed - <http://trac.edgewall.org/ticket/8682#comment:1> - cboos