| [00:12:13] |
* |
__off__ is now known as __doc__ |
| [00:14:08] |
<__doc__> |
moin |
| [00:14:31] |
<__doc__> |
what, cmlenz not back yet? (man this newfangled stuff like honeymoon... ;) |
| [00:23:44] |
<mitsuhiko> |
wohooo. tekisuto lexes :D |
| [00:23:58] |
<mitsuhiko> |
in fact, darn slow but hey :) |
| [00:24:08] |
<mitsuhiko> |
hoi __doc__ |
| [00:24:26] |
<mitsuhiko> |
that genexp is already removed |
| [00:24:46] |
<__doc__> |
oy mitsuhiko |
| [00:24:54] |
<__doc__> |
what's tekisuto? |
| [00:25:09] |
<mitsuhiko> |
__doc__: have you ever looked at the trac wiki formatter? |
| [00:25:26] |
<__doc__> |
nope |
| [00:25:27] |
<mitsuhiko> |
tekisuto aims to be a text lexing framework :) |
| [00:25:29] |
<mitsuhiko> |
__doc__: don't do |
| [00:25:32] |
<coderanger> |
*shudder* |
| [00:25:50] |
* |
__doc__ .oO(a lexing framework, hey, I need that!) |
| [00:27:11] |
<mitsuhiko> |
__doc__: for your genshi javascript compiler? |
| [00:27:38] |
<__doc__> |
mitsuhiko: well, yes and no |
| [00:27:58] |
<__doc__> |
mitsuhiko: presently I parse texts with expressions in them by re |
| [00:28:02] |
<mitsuhiko> |
__doc__: btw. could you add a trac index to "/" on the codeflow server? |
| [00:28:14] |
<__doc__> |
mitsuhiko: ya will do, metatrac ^^ |
| [00:28:31] |
<mitsuhiko> |
heeh |
| [00:29:43] |
<__doc__> |
mitsuhiko: when I had a lexer that could handle different syntactic states and understand the escaping/quoting subset of python the ${asdf} expressions could be parsed so that ${"}"} won't trip up |
| [00:30:14] |
<mitsuhiko> |
__doc__: http://paste.pocoo.org/show/309/ |
| [00:30:23] |
<mitsuhiko> |
(first working draft) |
| [00:31:56] |
* |
mitsuhiko is out with the dogs |
| [00:32:35] |
<mitsuhiko> |
s/s$// |
| [00:40:41] |
* |
Getty has joined #trac |
| [01:12:03] |
* |
m_g has joined #trac |
| [01:14:54] |
* |
flox has joined #trac |
| [01:28:10] |
* |
pygi has joined #trac |
| [01:28:40] |
* |
pygi has quit IRC |
| [01:43:50] |
* |
anev has joined #trac |
| [01:50:17] |
<__doc__> |
hm |
| [01:50:34] |
<__doc__> |
question: http://dev.codeflow.org/index.html vs http://dev.codeflow.org/ |
| [01:51:25] |
<__doc__> |
with index.html it renders the css as /index.html/chrome/common/css/trac.css and without it it's /chrome/common/css/trac.css |
| [01:51:36] |
<__doc__> |
(the latter of which doesn't resolve) |
| [01:51:50] |
<__doc__> |
I'm using a lighttpd setup |
| [01:52:20] |
<__doc__> |
any idea how to fix that? |
| [01:54:12] |
* |
anev has quit IRC |
| [01:56:23] |
* |
__doc__ is putting a redirect on / for a workaround |
| [02:19:01] |
* |
rsalveti has quit IRC |
| [02:20:36] |
* |
rsalveti has joined #trac |
| [02:30:56] |
* |
hpnadig_ has quit IRC |
| [02:38:31] |
* |
Wombert has quit IRC |
| [02:41:20] |
* |
Guychi has joined #trac |
| [03:06:54] |
* |
Guychi has quit IRC |
| [03:41:00] |
* |
hpnadig has joined #trac |
| [03:43:50] |
* |
Sweetsha1k has joined #trac |
| [03:45:53] |
* |
Sweetshark has quit IRC |
| [03:48:40] |
* |
hpnadig has quit IRC |
| [03:48:41] |
* |
Guychi has joined #trac |
| [03:54:38] |
* |
hpnadig has joined #trac |
| [04:53:16] |
* |
Blackhex has joined #trac |
| [05:12:39] |
* |
Sweetsha1k is now known as Sweetshark |
| [05:13:24] |
<prologic> |
hey guys |
| [05:14:28] |
* |
Guychi has quit IRC |
| [05:15:13] |
<prologic> |
heh is his nick a play on the word genshi ? :) |
| [05:16:08] |
* |
Guychi has joined #trac |
| [05:25:48] |
* |
jesterKing is now known as amino |
| [06:01:26] |
* |
loca|host has joined #trac |
| [06:01:31] |
<loca|host> |
hello all |
| [06:02:26] |
<loca|host> |
when i point my repository_dir to the folder holding trunk, branches and tags it says /var/lib/svn/tritux/alvanet does not appear to be a Subversion repository. |
| [06:39:38] |
* |
gak has joined #trac |
| [06:50:03] |
* |
gakman has quit IRC |
| [07:03:41] |
* |
Sopwith has quit IRC |
| [07:10:03] |
* |
klasstek has joined #trac |
| [07:22:31] |
* |
klasstek has quit IRC |
| [07:31:39] |
* |
danbeck has joined #trac |
| [07:42:52] |
* |
kkurzweil has quit IRC |
| [07:50:06] |
* |
__doc__ has quit IRC |
| [07:56:23] |
* |
Wombert has joined #trac |
| [07:57:51] |
* |
flox has quit IRC |
| [08:03:19] |
<mitsuhiko> |
matt_good: pingeling |
| [08:42:45] |
* |
f13 has quit IRC |
| [08:49:56] |
* |
loca|host has quit IRC |
| [08:50:22] |
* |
loca|host has joined #trac |
| [08:50:54] |
* |
Blackhex has left #trac |
| [08:51:09] |
* |
agile has joined #trac |
| [08:53:16] |
* |
f13 has joined #trac |
| [09:08:26] |
* |
hpnadig has quit IRC |
| [09:09:39] |
* |
pombred1 has quit IRC |
| [09:16:38] |
* |
otaku42 is now known as otaku42_away |
| [09:25:47] |
* |
neddy has joined #trac |
| [09:28:53] |
* |
omry has quit IRC |
| [09:30:29] |
* |
major has quit IRC |
| [09:30:34] |
* |
major has joined #trac |
| [09:36:02] |
* |
converter has quit IRC |
| [09:41:30] |
* |
aib has joined #trac |
| [09:42:07] |
<aib> |
is there a trac processor for bourne shell script? |
| [09:44:59] |
<prologic> |
only sh |
| [09:45:03] |
<prologic> |
#!sh |
| [09:46:47] |
<aib> |
oh ok, this doesn't appear to be documented? |
| [09:47:58] |
<aib> |
oh, i meant a processor, not a syntax highlighter |
| [09:48:11] |
<prologic> |
to process it into what ? |
| [09:48:34] |
<aib> |
to execute some code on the underlying system and show the output |
| [09:48:43] |
<prologic> |
oh |
| [09:48:46] |
<prologic> |
no there is no such thing |
| [09:48:50] |
<aib> |
k |
| [09:48:56] |
<prologic> |
kinda break security don't you think ? :) |
| [09:49:28] |
<aib> |
no |
| [09:49:50] |
<aib> |
if you can access our trac installation we are already screwed! |
| [09:50:07] |
* |
pombreda has joined #trac |
| [09:50:14] |
<prologic> |
I don't see the logic in that :) |
| [09:50:30] |
<prologic> |
you're accessing the trac installation via the HTTP protocol/interface |
| [09:50:49] |
<prologic> |
executing shell code would allow any user to do arbitary things on yoru system if they were clever enough |
| [09:50:55] |
<prologic> |
or there was some exploit on your box |
| [09:51:02] |
* |
elvstone_ is now known as elvstone |
| [09:51:22] |
<aib> |
"any user" is me and the senior programmer |
| [09:51:38] |
<aib> |
that's a fruitless argument, none of our system is exposed to the internet |
| [09:52:06] |
<prologic> |
ahh |
| [09:52:09] |
<prologic> |
well I didn't know that :) |
| [09:52:17] |
<prologic> |
it would then be trivial to write a macro to do this |
| [10:07:01] |
* |
hotte has joined #trac |
| [10:43:20] |
* |
Cope has joined #trac |
| [10:44:12] |
<Cope> |
hello - can trac be used in a slimmed down / simplified way? I simply want to use it to track workstreams and actions for a project |
| [10:44:44] |
<Cope> |
or would i always see the degree of complexity i see on the trac demo |
| [10:49:59] |
<prologic> |
most things in trac can ba disabled |
| [10:50:19] |
<prologic> |
I run my personal website using trac but with a few things disabled --> http://prologic.shortcircuit.net.au |
| [10:53:19] |
* |
omry has joined #trac |
| [10:55:51] |
* |
Cope looks |
| [10:56:44] |
* |
rsalveti has quit IRC |
| [11:06:41] |
<loca|host> |
hello all |
| [11:07:07] |
<loca|host> |
what are the possible authentification modules that can Trac use ? |
| [11:09:33] |
<misc> |
anyone that can be used with apache ? |
| [11:11:57] |
<loca|host> |
no i dont want that htpasswd stuff |
| [11:12:22] |
<loca|host> |
any solution to get it working with svn's passwd file ? |
| [11:12:35] |
<misc> |
well, apache can use ldap, etc |
| [11:13:49] |
<Cope> |
pam? |
| [11:18:23] |
<loca|host> |
hem maybe .. |
| [11:18:38] |
<loca|host> |
using an ldap bridge to get pam ? |
| [11:19:10] |
<loca|host> |
i just installed trac on my svn project, it's working allmost good ! |
| [11:19:17] |
* |
neddy has quit IRC |
| [11:19:20] |
<loca|host> |
only two missed things |
| [11:19:51] |
<loca|host> |
i used to do an email notification hook on post-commit, trac seems to not to handle such thing |
| [11:20:38] |
<loca|host> |
and blah ... apach's authentification, i was waiting for a good internal authentification module ... anyway that doesnt matter |
| [11:20:50] |
<loca|host> |
any idea about the email postcommit hook ? |
| [11:23:03] |
<f13> |
damn, I missed cboos |
| [11:27:31] |
* |
boorad has quit IRC |
| [11:35:37] |
* |
_dmax has joined #trac |
| [11:43:44] |
* |
neddy has joined #trac |
| [11:46:42] |
* |
s0undt3ch_ has joined #trac |
| [11:47:12] |
* |
s0undt3ch has quit IRC |
| [11:47:15] |
* |
s0undt3ch_ is now known as s0undt3ch |
| [11:47:24] |
* |
dmax has quit IRC |
| [11:47:33] |
* |
_dmax is now known as dmax |
| [11:58:09] |
* |
loca|host has quit IRC |
| [11:58:24] |
* |
pygi has joined #trac |
| [11:58:30] |
* |
elehack|work has joined #trac |
| [12:01:23] |
* |
_shawn has quit IRC |
| [12:06:48] |
* |
chandlerc has joined #trac |
| [12:23:34] |
* |
_shawn has joined #trac |
| [12:24:12] |
* |
matt_good has quit IRC |
| [12:26:17] |
* |
s0undt3ch has quit IRC |
| [12:29:44] |
* |
dmax has quit IRC |
| [12:29:54] |
* |
neddy has quit IRC |
| [12:35:52] |
* |
chandlerc has quit IRC |
| [12:36:20] |
* |
pygi has quit IRC |
| [12:38:33] |
* |
chandlerc has joined #trac |
| [12:44:17] |
* |
pygi has joined #trac |
| [12:44:35] |
* |
danbeck has quit IRC |
| [12:50:02] |
* |
bakasan has joined #trac |
| [13:06:42] |
* |
elehack|work is now known as elehack|out |
| [13:20:56] |
* |
neddy has joined #trac |
| [13:38:33] |
* |
misc has quit IRC |
| [13:38:51] |
* |
misc has joined #trac |
| [13:39:31] |
* |
elehack|out is now known as elehack|work |
| [13:39:46] |
* |
lightcap has left #trac |
| [13:42:37] |
<coderanger> |
morning all |
| [14:07:59] |
* |
Guychi has joined #trac |
| [14:12:47] |
* |
Guychi has quit IRC |
| [14:19:34] |
* |
lightcap has joined #trac |
| [14:30:35] |
* |
lightcap has quit IRC |
| [14:30:52] |
* |
elehack|work has quit IRC |
| [15:20:15] |
* |
matt_good has joined #trac |
| [15:22:54] |
* |
Wombert has quit IRC |
| [15:23:02] |
<mitsuhiko> |
hoi major |
| [15:23:04] |
<mitsuhiko> |
argh |
| [15:23:07] |
* |
hotte has quit IRC |
| [15:23:07] |
<mitsuhiko> |
hoi matt_good |
| [15:23:32] |
<matt_good> |
hey mitsuhiko |
| [15:23:48] |
<mitsuhiko> |
matt_good: http://paste.pocoo.org/show/310/ |
| [15:24:09] |
* |
kaouete has quit IRC |
| [15:24:40] |
<mitsuhiko> |
the only problem with that kind of lexer is that it's kinda slow :( |
| [15:27:29] |
<matt_good> |
interesting, is tekisuto a new pocoo project? |
| [15:28:11] |
<mitsuhiko> |
matt_good: not a project right now |
| [15:28:31] |
<mitsuhiko> |
i just wanted to improve my parsing skills and create something which helps me parsing wiki syntax |
| [15:28:31] |
<matt_good> |
ah |
| [15:28:49] |
<mitsuhiko> |
long term plan is creating something like a better wiki_text module for python |
| [15:29:21] |
<mitsuhiko> |
matt_good: do you think something like that would be enough to parse, say, trac markup? |
| [15:30:49] |
<coderanger> |
mitsuhiko: Have you played with pyparsing? |
| [15:31:46] |
<mitsuhiko> |
coderanger: jep |
| [15:33:46] |
* |
subtleGradient has joined #trac |
| [15:34:21] |
<matt_good> |
mitsuhiko: yeah, that may work, it'd be nice to move to a stream-based parser to be more like Genshi |
| [15:34:48] |
<mitsuhiko> |
matt_good: the aim of tekisuto is just to yield tokens with data attached to it |
| [15:35:02] |
<mitsuhiko> |
and it outputs just a token stream |
| [15:35:35] |
<subtleGradient> |
quick debugging install questing: |
| [15:35:35] |
<subtleGradient> |
how the heck to I fix this error? http://projects.bundleforge.com/ |
| [15:36:29] |
<mitsuhiko> |
subtleGradient: trunk? |
| [15:36:30] |
<matt_good> |
subtleGradient: upgrade to Trac 0.10 |
| [15:36:34] |
<mitsuhiko> |
ah. no |
| [15:37:19] |
<subtleGradient> |
i followed these instructions: http://wiki.dreamhost.com/index.php/DreamTracInstall |
| [15:37:27] |
<subtleGradient> |
i'm on dreamhost |
| [15:37:40] |
* |
vampas has joined #trac |
| [15:38:07] |
<subtleGradient> |
would upgrading to 0.10 require updating any of that other stuff? |
| [15:38:53] |
<mitsuhiko> |
matt_good: do you know if one of the trac team already worked on a new parser for the wiki? |
| [15:39:08] |
<mitsuhiko> |
i'm still not sure if my approach is flexible and simple enough |
| [15:39:45] |
<vampas> |
hello ppl |
| [15:39:55] |
* |
eblot has joined #trac |
| [15:40:00] |
<matt_good> |
subtleGradient: actually I guess you need to upgrade Trac, AccountManager, and the WebAdmin plugin |
| [15:40:17] |
<subtleGradient> |
ug, thanks |
| [15:40:29] |
<matt_good> |
subtleGradient: looks like there was a bug when I ported some changes to the 0.9 branch of the AccountManager |
| [15:40:32] |
<vampas> |
bitten is trac 0.9 compliant, not 0.10? Too bad cmlenz ain't here to answer it personally |
| [15:40:52] |
<vampas> |
but does anyone know? |
| [15:41:25] |
<subtleGradient> |
matt_good: can I keep python 2.3.5 and everything else? |
| [15:42:06] |
<matt_good> |
subtleGradient: yeah, actually that script looks like it's much more complicated than it needs to be |
| [15:42:41] |
<subtleGradient> |
matt_good: if you guys can come up with a quick install script that works on dreamhost you will make many many friends ;) |
| [15:43:54] |
<matt_good> |
subtleGradient: not a script, but these are the best Dreamhost instructions I've seen http://e.cactuswax.net/blog/articles/2006/07/installing-trac-on-dreamhost.html |
| [15:45:14] |
<subtleGradient> |
thanks |
| [15:45:46] |
<coderanger> |
vampas: Works fine on 0.10 |
| [15:45:52] |
<matt_good> |
I think you can skip building clearsilver now too |
| [15:46:10] |
<matt_good> |
vampas: considering bitten.cmlenz.net is running 0.10.2 it should work ;) |
| [15:46:27] |
<coderanger> |
sdd.coderanger.net/projects/amadeus |
| [15:46:31] |
<coderanger> |
we run it there |
| [15:47:41] |
<vampas> |
matt_good, coderanger: heh, didn't noticed it was running 0.10.2 |
| [15:48:02] |
<vampas> |
wait, is .10.2 the genshi release? |
| [15:48:26] |
<coderanger> |
No |
| [15:48:30] |
<coderanger> |
thats trunk |
| [15:48:48] |
<coderanger> |
Very few plugins have been ported the Genshi so far |
| [15:49:06] |
<vampas> |
yeah, I know, I've been waiting for the release to port mine |
| [15:49:46] |
<vampas> |
but since I've been away for some time now, I though I missed the genshi version release |
| [15:49:52] |
* |
vampas is now known as s0undt3ch |
| [15:50:11] |
<coderanger> |
nope |
| [15:50:23] |
<coderanger> |
probably going to be a while with cmlenz gone too |
| [15:50:35] |
<s0undt3ch> |
cmlenz is gone? |
| [15:50:53] |
<coderanger> |
honeymoon/vacation for a month |
| [15:50:58] |
<s0undt3ch> |
ah! :) |
| [15:51:02] |
<s0undt3ch> |
good for him |
| [15:56:18] |
* |
Wombert has joined #trac |
| [15:58:02] |
* |
eblot has left #trac |
| [15:58:19] |
<matt_good> |
any Windows users care to verify if this actually works: http://trac.edgewall.org/wiki/TracOnWindows/Rewrite?action=diff&version=20 |
| [15:58:37] |
<matt_good> |
I didn't think Windows supported running Python files like that |
| [15:59:06] |
<coderanger> |
If you have .py bound to python.exe it will |
| [15:59:23] |
<coderanger> |
I have it bound to my text editor though, so it wouldn't for me |
| [16:06:12] |
<gordonjcp> |
hrm |
| [16:06:26] |
<gordonjcp> |
can anyone recommend some hosting package that supports trac? |
| [16:07:27] |
<coderanger> |
@wiki CommercialServices |
| [16:07:27] |
<evil_twin> |
coderanger: http://trac.edgewall.org/wiki/CommercialServices |
| [16:11:29] |
<gordonjcp> |
thanks |
| [16:11:53] |
<gordonjcp> |
and thanks for all the help and support getting trac going when I started |
| [16:15:26] |
<subtleGradient> |
matt_good: thanks! I got it working (or so it would seem at first glance anyway ;) |
| [16:20:41] |
* |
_shawn has quit IRC |
| [16:20:50] |
<subtleGradient> |
what do I have to do th get the "index.fcgi" out of my urls? http://projects.bundleforge.com/index.fcgi/timeline |
| [16:21:48] |
* |
_shawn has joined #trac |
| [16:23:48] |
<matt_good> |
subtleGradient: the instructions here use a file called "trac" to run Trac as http://yourdomain/trac/ |
| [16:23:53] |
<matt_good> |
http://e.cactuswax.net/blog/articles/2006/07/installing-trac-on-dreamhost.html |
| [16:24:02] |
* |
subtleGradient has left #trac |
| [16:24:10] |
* |
subtleGradient has joined #trac |
| [16:25:03] |
<subtleGradient> |
sorry, what was that link again |
| [16:25:08] |
<subtleGradient> |
closed the dang window :/ |
| [16:34:31] |
<matt_good> |
http://e.cactuswax.net/blog/articles/2006/07/installing-trac-on-dreamhost.html |
| [16:35:27] |
<matt_good> |
heh, someone saw my Ubuntu sticker and called out "Linux rocks!" as they left the coffee shop :) |
| [16:37:27] |
<subtleGradient> |
lol |
| [16:38:41] |
<subtleGradient> |
what about this hack: http://natmaster.com/articles/installing_trac.php |
| [16:38:52] |
<subtleGradient> |
Edit cgi_frontend.py, change |
| [16:38:52] |
<subtleGradient> |
self.cgi_location = self.__environ.get('SCRIPT_NAME') |
| [16:38:52] |
<subtleGradient> |
to |
| [16:38:53] |
<subtleGradient> |
self.cgi_location = os.path.dirname(self.__environ.get('SCRIPT_NAME')) |
| [16:38:56] |
<subtleGradient> |
does that still work? |
| [16:39:22] |
<coderanger> |
subtleGradient: No |
| [16:39:35] |
<subtleGradient> |
pity |
| [16:39:38] |
<coderanger> |
which version are you using? |
| [16:39:49] |
<pygi> |
prologic, ping |
| [16:40:02] |
<coderanger> |
subtleGradient: http://trac.edgewall.org/browser/tags/trac-0.10/trac/web/api.py#L226 |
| [16:40:05] |
<coderanger> |
Change that line |
| [16:40:30] |
<coderanger> |
base_path = '/path' |
| [16:42:51] |
<subtleGradient> |
literally '/path' or should I change that to something? |
| [16:43:42] |
* |
m_g has quit IRC |
| [16:46:04] |
<coderanger> |
whatever your site is based at |
| [16:46:19] |
<subtleGradient> |
oh, just '/' then for me |
| [16:46:20] |
<coderanger> |
like '/' or '/trac' usually |
| [16:46:27] |
<subtleGradient> |
awesome. thanks |
| [16:46:37] |
<coderanger> |
its a silly hack, but it works |
| [16:46:51] |
<coderanger> |
dreamhost should really find a better way to deploy Trac |
| [16:46:53] |
<subtleGradient> |
i'll take what I can get ;) |
| [16:47:06] |
<coderanger> |
or better yet, dreamhost should pay me to find a better way to deploy trac :P |
| [16:47:09] |
<subtleGradient> |
they just added activeCollab as a one-click install :/ |
| [16:48:09] |
<subtleGradient> |
which is incredibly useless for me |
| [16:53:05] |
<subtleGradient> |
now my url isn't responding at all |
| [16:53:39] |
<subtleGradient> |
do I have to reset anything or something? I killed my existing trac.fcgi instances |
| [16:54:45] |
<subtleGradient> |
ok, there it goes |
| [16:55:03] |
<subtleGradient> |
coderanger: works! thanks much much |
| [16:58:47] |
<subtleGradient> |
bye all |
| [16:58:50] |
<subtleGradient> |
thanks again |
| [16:58:52] |
* |
subtleGradient has left #trac |
| [17:04:45] |
<pygi> |
how do I disable trac usual logging, and use acc manager instead? |
| [17:04:59] |
<pygi> |
since : trac.web.auth.LoginModule = disabled |
| [17:04:59] |
<pygi> |
doesn't seem to work |
| [17:06:29] |
<pacopablo> |
trac.web.auth.LoginModule = disabled |
| [17:06:31] |
<pacopablo> |
acct_mgr.* = enabled |
| [17:06:33] |
<pacopablo> |
should do it |
| [17:06:55] |
<pacopablo> |
make sure you restart your web server |
| [17:08:42] |
<pygi> |
I have done that already |
| [17:08:57] |
<pygi> |
(well, I wrote every acct_mgr.* by myself but oh well :) |
| [17:11:31] |
* |
kop_ has joined #trac |
| [17:12:00] |
<coderanger> |
what version of trac/acctmgr? |
| [17:13:53] |
<pygi> |
coderanger, trac 0.10 ofcourse, acctmgr from svn? :P |
| [17:14:01] |
<pygi> |
lemme check |
| [17:14:04] |
<coderanger> |
which SVN |
| [17:14:20] |
<pygi> |
TracAccountManager-0.1.3dev_r1581-py2.4.egg |
| [17:14:42] |
<pygi> |
ttp://trac-hacks.org/svn/accountmanagerplugin/0.10 |
| [17:15:12] |
<coderanger> |
okay |
| [17:15:15] |
<coderanger> |
should work |
| [17:15:23] |
<coderanger> |
what error are you getting? |
| [17:15:34] |
<pygi> |
no errors, I just get the usual way of logging :P |
| [17:16:02] |
<coderanger> |
did you disable http auth? |
| [17:16:22] |
<pygi> |
trac.web.auth.LoginModule = disabled |
| [17:16:38] |
<pacopablo> |
in apache |
| [17:16:56] |
* |
pygi doesn't have access to apache |
| [17:17:09] |
<coderanger> |
yeah, if you leave HTTP auth active, thats before Trac ever does anything |
| [17:17:35] |
<pygi> |
coderanger, well, shouldnt the above line disable http auth? |
| [17:17:42] |
<coderanger> |
no |
| [17:17:49] |
<coderanger> |
HTTP auth is a server function |
| [17:17:52] |
<coderanger> |
nothing to do with Trac |
| [17:18:26] |
<kop_> |
coderanger, my man |
| [17:18:38] |
<kop_> |
I have an auth question as well |
| [17:18:58] |
<kop_> |
I was setting up mod_auth_kerb in apache and it works well |
| [17:19:34] |
<kop_> |
but I'd like the names in trac to stay short: as in kop instead of kop@domain.net |
| [17:19:50] |
<coderanger> |
three options |
| [17:20:10] |
<coderanger> |
1) hack trac.web.auth.LoginModule to .split('@',1)[0] |
| [17:20:24] |
<coderanger> |
2) make a plugin to do the same, and then disable the builtin module |
| [17:20:35] |
<coderanger> |
3) Use mod_auth_pam and pam_krb5 |
| [17:21:15] |
<kop_> |
I see in web/api.py that remote_user = property(fget=lambda |
| [17:21:33] |
<coderanger> |
there is actually a 4th, but i would require me to finish a project that I'm not sure I want to finish |
| [17:21:43] |
<coderanger> |
yeah |
| [17:21:52] |
<kop_> |
lambda self: self.environ.get('REMOTE_USER') |
| [17:21:55] |
<coderanger> |
you could change it there too |
| [17:22:14] |
<coderanger> |
http://trac.edgewall.org/browser/tags/trac-0.10/trac/web/auth.py#L62 |
| [17:22:17] |
<kop_> |
my current python skillz comes to short there |
| [17:22:22] |
<coderanger> |
this is a bit cleaner place to do it though |
| [17:22:34] |
<coderanger> |
authname = req.remote_user.split('@',1)[0] |
| [17:23:02] |
<kop_> |
doesn't it screw up cookie setting? |
| [17:23:44] |
<coderanger> |
you would have to change it in a few places (or make a plugin and subclass LoginModule and change it there) |
| [17:24:37] |
<kop_> |
the string springs from my HTTP-environment, so it should be least intrusive to change it as soon as possible |
| [17:25:22] |
<coderanger> |
Yes, but more modular to do it in a plugin |
| [17:25:25] |
* |
pombreda has quit IRC |
| [17:25:29] |
<kop_> |
grep:ing tells me that the lambda function in web.api is the only place that actually reads in REMOTE_USER |
| [17:25:34] |
<coderanger> |
probably a pre-req filter would do it |
| [17:26:41] |
<kop_> |
oh, yes of course it would be cleaner with a module, but I cannot asses the amount of work required.. |
| [17:29:18] |
<coderanger> |
one of these days I will finish my python kerberos library |
| [17:30:15] |
<coderanger> |
probably soon rather than later, as work will need it if their servers are too keep running after I graduate |
| [17:31:38] |
<kop_> |
one thing I don't understand about lambda: |
| [17:31:44] |
<kop_> |
this works: lambda self: self.environ.get('PATH_INFO', '').decode('utf-8') |
| [17:32:25] |
<kop_> |
this doesn't: self.environ.get('REMOTE_USER').find('x') |
| [17:32:53] |
<coderanger> |
what does it say? |
| [17:33:43] |
<matt_good> |
kop_: it compiles OK, does it not return what you expect? |
| [17:34:30] |
<kop_> |
well that depends on what the second parameter get('PATH_INFO', '') means as opposed to get('PATH_INFO') |
| [17:35:13] |
<matt_good> |
the second parameter is the default |
| [17:35:31] |
<matt_good> |
if 'PATH_INFO' isn't in self.environ |
| [17:35:36] |
<kop_> |
ah ok |
| [17:35:39] |
<kop_> |
figures |
| [17:35:45] |
<matt_good> |
it's None if you don't give one |
| [17:36:22] |
<kop_> |
I think I recall reading that in "Learning Python" :) |
| [17:37:02] |
<kop_> |
(which, btw, was not near as entertaining as LWalls "Learning Perl"...) |
| [17:37:08] |
<matt_good> |
heh |
| [17:38:56] |
<kop_> |
but in that case, shouldn't this work?: |
| [17:38:57] |
<kop_> |
lambda self: self.environ.get('REMOTE_USER', '').split('@',0)[0] |
| [17:39:30] |
<matt_good> |
split('@', 0) isn't valid |
| [17:39:51] |
<matt_good> |
the second param is the max # of times to split, which shouldn't be 0 |
| [17:40:17] |
<coderanger> |
probably want an "or None" in there too |
| [17:40:30] |
<kop_> |
oops |
| [17:40:37] |
<coderanger> |
just to be compatible with anything depending on that |
| [17:43:26] |
<kop_> |
lambda self: self.environ.get('REMOTE_USER', '').split('@',1)[0] or None |
| [17:44:15] |
<kop_> |
oh well it seems to work actually |
| [17:49:50] |
<kop_> |
seems fine, thanks a bunch :) |
| [17:52:17] |
<kop_> |
the cool parts (in this rather hackish solution) is that I now can use apaches auth, chop the usernames (-to stay in line with what is already used in SVN) and provide a functional "logout" |
| [17:54:27] |
<kop_> |
logging out doesn't really work well together with basic auth since the only way of (-programatically) clearing out authenticatd sessions !MSIE-browsers is to deliberately FAIL a request |
| [18:04:16] |
* |
jamonation has joined #trac |
| [18:06:49] |
<jamonation> |
got some odd behaviour with trac and lighttpd, it's serving up trac with index.php in the path |
| [18:10:36] |
<coderanger> |
Are you trying to run a Trac at /? |
| [18:11:06] |
* |
matt_good has quit IRC |
| [18:16:27] |
<jamonation> |
coderanger: yeah, trac.metalug.com |
| [18:16:36] |
<coderanger> |
bug in lighty |
| [18:16:46] |
<jamonation> |
ah man, ok |
| [18:16:51] |
<coderanger> |
I forget the number |
| [18:17:22] |
<coderanger> |
there are a few fixes floating around I think |
| [18:17:24] |
<coderanger> |
ask the ML |
| [18:17:33] |
<jamonation> |
so I have to have fastcgi.server = ("" => ("trac" => |
| [18:17:46] |
<jamonation> |
or rather, "/trac" in the first empty quites |
| [18:17:58] |
<jamonation> |
s/quites/quotes |
| [18:18:17] |
<coderanger> |
A lot of people just do that |
| [18:18:25] |
<coderanger> |
and have / redirect to /trac |
| [18:18:33] |
<coderanger> |
(people including the lighty team) |
| [18:18:42] |
<jamonation> |
i'm new to lighty, how do i redirect, alias.url? |
| [18:19:50] |
<jamonation> |
wait, url.redirect... |
| [18:19:56] |
* |
jamonation goes to figure it out |
| [18:19:57] |
<jamonation> |
thanks |
|