[Trac] Re: [Trac 0.11b2] [apache+mod_python] Basic authentication configuration issue

2008-04-20 Thread Virtual Dust

Eirik Schwenke wrote:
> Does the webserver/webclient prompt for http-login on the url?
>   
No, there is no prompt at all.
> As I understand it, in the standard configuration, with basic http-auth
> enabled, and python running through mod_python, trac acquires the 
> http-username
> from apache.
>
> Still, the locationmatch looks correct to me, which leaves an error in the
> passwd-file name -- as apache should refuse to start if you're missing
> mod_authn_file in the apache config.
>   
if the passwd-file was not found (or in the wrong format), apache would 
prompt for authentication anyway, but never success. 
> Anything in the apache error.log ?
>
> You could try setting the log_level to DEBUG in trac.ini also -- might shed
> some light on what goes wrong, and when.
>   

I made some tests. At first, I explicitly set only one project:
...

...
PythonOption TracEnv /home/httpd/trac-env/test
...

...

With that, apache prompts for authentication and login process completes 
succesfully.

Next, without reloading my browser, i restored my previous apache 
configuration and restarted the server : i reloaded the page in the 
browser. Login information was kept, and everything worked fine. But 
when I restarted the browser... No prompt, only the same error as 
ever... There is no relevant information in the log (Debug level is 
set). Only a WARNING: 500 Trac Error.

This error persists even with an explicit  in 
place of the regexp.

Note that I did this test with several browsers (firefox 2, firefox 3, 
lynx, opera), to be sure it was not a bug in it.

I will try with Trac 0.10 this afternoon or tomorrow to see if the 
problem may come from Trac 0.11b2.

I keep you informed.

Raph.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: trac-post-commit-hook - on windows

2008-04-20 Thread Scott Bussinger

> I am setting up a subversion + apache + trac (0.11b2) + build server and
> I am having problems getting the subversion -> trac intergration working
> properly (or even at all).

I'm running SVN and Trac on a Windows box. Here's what I've got for
working for me. I'm sure the formatting will be totally mangled by
posting here, but hopefully you can make it out. I've substituted
"xxx" for all the site-specific stuff. The svnnotify file is just a
handy utility for sending emails upon SVN commits. It's a perl script
that's called by a batch file. Google on SVN::Notify if you interested
in that.

POST-COMMIT.BAT:
@echo off
set REPOSITORY=%1
set REVISION=%2

set PATH=c:\windows\system32;c:\windows;c:\progra~1\collab~1;c:
\python25;c:\perl\bin
set COMSPEC=c:\windows\system32\cmd.exe
set OS=Windows_NT
set SYSTEMROOT=c:\windows

call c:\perl\site\bin\svnnotify.bat --repos-path %REPOSITORY% -r
%REVISION% --revision-url "http://svn.xxx.com:8000/xxx/changeset/%%%
%s" --subject-prefix "[SVN] " --from "SVN <[EMAIL PROTECTED]>" --smtp
mail.xxx.com --handler HTML::ColorDiff --with-diff --to [EMAIL PROTECTED]

call C:\trac\trac-post-commit-hook.cmd %REPOSITORY% %REVISION% c:
\trac\xxx

The trac-post-commit-hook.cmd is just from the trac repository as I
recall but I'll show it here so you can see what I'm using:

TRAC-POST-COMMIT-HOOK.CMD:
@ECHO OFF
::
:: Trac post-commit-hook script for Windows
::
:: Contributed by markus, modified by cboos.

:: Usage:
::
:: 1) Insert the following line in your post-commit.bat script
::
:: call %~dp0\trac-post-commit-hook.cmd %1 %2 %3
::
:: 2) Check the 'Modify paths' section below, be sure to set at
least TRAC_ENV


:: --
:: Modify paths here:

:: -- this one *must* be set
SET TRAC_ENV=%3

:: -- set if Python is not in the system path
SET PYTHON_PATH=c:\python25

:: -- set to the folder containing trac/ if installed in a non-
standard location
SET TRAC_PATH=c:\progra~1\trac
:: --

:: Do not execute hook if trac environment does not exist
IF NOT EXIST %TRAC_ENV% GOTO :EOF

set PATH=%PYTHON_PATH%;%PATH%
set PYTHONPATH=%TRAC_PATH%;%PYTHONPATH%

SET REV=%2

Python "%~dp0\trac-post-commit-hook" -p "%TRAC_ENV%" -r "%REV%"

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: add arbitrary "entries" into timeline?

2008-04-20 Thread Noah Kantrowitz


On Apr 17, 2008, at 3:29 PM, Doug Douglass wrote:
> We use trac in a mainly SCRUM process team and lately I've been  
> finding the need to add arbitrary entries into the timeline to help  
> facilitate retrospective timeline analysis. These entries could be  
> seen as milestones-within-a-Milestone (e.g., "released foo 1.0- 
> SNAPSHOT to beta testing, during the foo 1.0 Milestone", or "Add  
> John Doe to team during some other Milestone").
>
> Yes, we could create tickets, probably of some special type, to  
> indicate such things, and we have at times, but they tend to get  
> lost in the timeline view. I'm thinking something more like a "Dated  
> Sticky Note".
>
>
> I searched around trac-hacks, but didn't find anything related.
>
> So, before I go off and hack up a plugin:
>
>  * Does anyone know of such a plugin, or something similar?

Not directly.

>
>
>  * Does this seem like a good idea?

Yep.

>
>
>  * Anyone have a better idea? Someone must!

I think it would probably be easier to make something to display an  
iCal file in the timeline. Then you can use your favorite scheduling  
program to edit it.

--Noah


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] 答复: [Trac] Re: NameError: global name 'sqlite' is not defined

2008-04-20 Thread LiXueJiang

My sqlite version is 3.5.8: sqlite-amalgamation-3.5.8.tar.gz 

-邮件原件-
发件人: trac-users@googlegroups.com [mailto:[EMAIL PROTECTED] 代
表 Emmanuel Blot
发送时间: 2008年4月18日 16:33
收件人: trac-users@googlegroups.com
主题: [Trac] Re: NameError: global name 'sqlite' is not defined


> cnx = sqlite.connect(path, timeout=int(params.get('timeout', 
> 1)))
> NameError: global name 'sqlite' is not defined My OS is FreeBSD-6.2 
> Python 2.5.1
> Trac-0.11b2
> And I have all other requested components installed.

Which version of pysqlite have you installed ?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: add arbitrary "entries" into timeline?

2008-04-20 Thread Kate Yoak
I haven't noticed a response to this message and was hoping you didn't
feel left hanging...
We use SCRUM also and would love to see the same exact feature. I'd be
happy to be the first one to check out your plugin when it becomes
available!
 
Hope you can make it work.
Cheers,
Kate

-Original Message-
From: trac-users@googlegroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Doug Douglass
Sent: Thursday, April 17, 2008 12:30 PM
To: trac-users@googlegroups.com
Subject: [Trac] add arbitrary "entries" into timeline?


We use trac in a mainly SCRUM process team and lately I've been finding
the need to add arbitrary entries into the timeline to help facilitate
retrospective timeline analysis. These entries could be seen as
milestones-within-a-Milestone (e.g., "released foo 1.0-SNAPSHOT to beta
testing, during the foo 1.0 Milestone", or "Add John Doe to team during
some other Milestone").

Yes, we could create tickets, probably of some special type, to indicate
such things, and we have at times, but they tend to get lost in the
timeline view. I'm thinking something more like a "Dated Sticky Note".


I searched around trac-hacks, but didn't find anything related.

So, before I go off and hack up a plugin:

 * Does anyone know of such a plugin, or something similar?

 * Does this seem like a good idea?

 * Anyone have a better idea? Someone must!

TIA,
Doug 







--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Using trac auth for other things

2008-04-20 Thread Kate Yoak
Has anyone tried to make use of TracAccountManger - SessionStore for
content, which lives outside of trac?
It feels like, we don't need anything more than what the account manager
has to offer to do general admin authentication. So, if I could let trac
know that I wanted it to authente another area, that would solve all
problems with very little effort.
 
So... I could check for trac_auth cookie, then redirect to trac login
page, somehow (not yet sure how) populate the referer field within that
form, so it would bounce back to the orignal page - and i don't need a
new auth system!
 
So..
1) has anyone done anything similar?
2) any ideas how I go about populating the referer on the login page?
(Passing it as a get parameter doesn't work)
3) it appears, trac_auth stays in place when you log out - what's the
best way to figure out the user is not currently logged in?
4) any other comments/suggestions
 
Thanks!
Kate

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: trac-post-commit-hook - on windows

2008-04-20 Thread Steven Higgan
I have a little more information, through bludgeoned debugging I have
figured out the place where everything is falling over:

 

First a recap

Trac-post-commit-hook executes fine within a dos-box within a 'normal'
environment

However trac-post-commit-hook falls over when executed within a more
'confined' subversion environment where there are no no pre-defined
environmental variables.

 

I am already providing all of the system-wide environmental variables
(that I know of) to the hook-script so there must be something
specifically peculiar about the different environments.

 

Can somebody tell me what this line does, and why it falls over in the
'confined' environment as opposed to the 'normal' environment.

 

Trac-post-commit-hook.py

chgset = repos.get_changeset(rev)

 

up to this point everything is fine in both dos environments, we can get
the trac environment, something that points to the subversion repository
- except when we try to perform an action on the repository it flops
over.

 

Can anybody help ?

 

From: trac-users@googlegroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Steven Higgan
Sent: Friday, 18 April 2008 4:26 p.m.
To: trac-users@googlegroups.com
Subject: [Trac] trac-post-commit-hook - on windows

 

Gedday all,

 

I am setting up a subversion + apache + trac (0.11b2) + build server and
I am having problems getting the subversion -> trac intergration working
properly (or even at all).

 

Firstly my scripts.

 



SET REPOS-PATH=%1

SET REV=%2

 

SET TEMP=%USERPROFILE%\Local Settings\Temp

SET TMP=%USERPROFILE%\Local Settings\Temp

SET ComSpec=%SystemRoot%\system32\cmd.exe

SET
Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\IN
STALLS\SVN\svn-win32-1.4.6\bin;D:\INSTALLS\PYTHON\2.5

SET PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

SET windir=%SystemRoot%

 

D:\DATABASES\SUBVERSION\REPOS\test-repo\hooks\trac-post-commit-hook.cmd
%REPOS-PATH% %REV%

 



SET TRAC_ENV=D:\DATABASES\TRAC-DB\test-repo

SET REV=%2

 

D:\INSTALLS\PYTHON\2.5\Python.exe
D:\DATABASES\SUBVERSION\REPOS\scripts\trac-post-commit-hook.py -p
%TRAC_ENV% -r %REV%

 

As you can see the subversion post-commit hook just sets up the
environment and invokes the trac hook script. I wasn't completely sure
what environmental things needed to be setup however I knew that
subversion gives us a 'clean' environment for hook scripts so as you can
see I basically setup everything I could find.

 

These scripts work fine in testing (when I simply invoke post-commit.cmd
passing in required variables) - however when I try to run the scripts
from the 'hook enviroment' subversion produces I don't have any success.

 

Can somebody who knows a little more than me shed some light on what may
be happening ?

 

Finally, big thanks to the developers, this is a nice pice of kit. 

 

Steven Higgan
Development & Integration Services 

INTERGEN: SUITE 6, CENTRE FOR INNOVATION, 87 ST DAVID STREET, PO BOX
6485, DUNEDIN, NEW ZEALAND.
TEL +64 3 479 4099 FAX +64 3 479 8576 MOB +64 21 936 439
WWW.INTERGEN.CO.NZ   

 

Want me to do something? Send me an action item: www.actionthis.com
 
Catch the latest on our blog: www.intergen.co.nz/blog
 
Be kind to the planet: Do you really need to print this? 



This electronic message together with any attachments is confidential.
If you are not the intended recipient: (i) do not copy, disclose or use
the contents in any way (ii) please let us know by return e-mail
immediately and then destroy the message. Intergen is not responsible
for any changes made to this message and/or any attachments after
sending by Intergen. 



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Custom default trac.ini

2008-04-20 Thread Olaf Meeuwissen

Jani Tiainen <[EMAIL PROTECTED]> writes:

> Is there way to provide custom default trac.ini that would be used every 
> time I setup new environment?

Create that default trac.ini as your global ini file and use the
--inherit option to trac-admin.  See:

  http://trac.edgewall.com/wiki/TracIni#GlobalConfiguration

> Mostly I would like to setup default logo, url, smtp and few other 
> options that would be used to new environments as well.

Hope this helps,
-- 
Olaf Meeuwissen   FLOSS Engineer -- AVASYS Corporation
FSF Associate Member #1962   sign up at http://member.fsf.org/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Custom default trac.ini

2008-04-20 Thread Jani Tiainen

Is there way to provide custom default trac.ini that would be used every 
time I setup new environment?

Mostly I would like to setup default logo, url, smtp and few other 
options that would be used to new environments as well.

-- 
Jani Tiainen

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Query on modified date?

2008-04-20 Thread Scott Bussinger

How do you run a query where the selection is based on the modified
date? For example, I'd like a query which shows all the tickets closed
since a particular date or perhaps in the last 30 days.

I saw some emails in the group that showed how to do this sort of
thing with reports, but nothing for the query module. Since you're
deprecating the report module I assumed that there's probably a way to
do this with queries as well.

Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Available projects customization

2008-04-20 Thread Joseph Hagerty

I am using 0.10.4, so I guess I am out of luck.. Maybe what I will do is
just modify an HTM version with a list in the format I need.

Has anyone talked about a release data for 0.11?

Thanks!

RevJoe

-Original Message-
From: trac-users@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Emmanuel Blot
Sent: Sunday, April 20, 2008 1:28 PM
To: trac-users@googlegroups.com
Subject: [Trac] Re: Available projects customization


>  So it looks to me like I missed something obvious (getting GENSHI
templates
>  working maybe)?

Which version of Trac do you use ?

0.10.x does not support Genshi templates, but Clearsilver ones.

The documentation is quite confusing AFAIR. There are two pages about
interface customization, but both the 0.11 version and the "current"
version refer to Genshi (that is 0.11) templating system.




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Available projects customization

2008-04-20 Thread Emmanuel Blot

>  So it looks to me like I missed something obvious (getting GENSHI templates
>  working maybe)?

Which version of Trac do you use ?

0.10.x does not support Genshi templates, but Clearsilver ones.

The documentation is quite confusing AFAIR. There are two pages about
interface customization, but both the 0.11 version and the "current"
version refer to Genshi (that is 0.11) templating system.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Available projects customization

2008-04-20 Thread Joseph Hagerty

Sorry, I guess I could have been more clear.  In the template there is a
error case (py:else) that displays to the screen.  So my display displays to
the screen:

Available Projects

* $project.name $project.name: Error
  ($project.description)

So it looks to me like I missed something obvious (getting GENSHI templates
working maybe)?

Thanks

RevJoe
-Original Message-
From: trac-users@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Emmanuel Blot
Sent: Sunday, April 20, 2008 11:41 AM
To: trac-users@googlegroups.com
Subject: [Trac] Re: Available projects customization


> mod_python) configuration.  The good news is I get the new page, the bad
> news is that the page does not list any projects, but only the error
> sequence.

What's the exact error message ?




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Available projects customization

2008-04-20 Thread Emmanuel Blot

> mod_python) configuration.  The good news is I get the new page, the bad
> news is that the page does not list any projects, but only the error
> sequence.

What's the exact error message ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Available projects customization

2008-04-20 Thread Joseph Hagerty
I am trying to customize the appearance of the "Available Projects" page.
Following the instructions on the trac.edgewall.org website, I took the
template provided and made the modification to apache's (I am using
mod_python) configuration.  The good news is I get the new page, the bad
news is that the page does not list any projects, but only the error
sequence.  Is there any other configuration needed to allow the template to
see the list of templates properly?

 

Thanks

 

Revjoe

 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: i18n internationalization

2008-04-20 Thread Jeroen Ruigrok van der Werven

-On [20080419 21:53], Zoom.Quiet ([EMAIL PROTECTED]) wrote:
>On Sat, Apr 19, 2008 at 12:55 AM, Jeroen Ruigrok van der Werven
>>  Wiki pages cannot be done as of yet. There's another ticket open for that,
>>  but it is scheduled for after 0.12 at least.
>>
>OK, but we will do it now,of course shring in track-hack in time ;)

Odd Simon is working on a new help system that might push this one sooner
though. It's in the sandbox/newhelp part of the repository.

>>  First thing to be absolutely clear about: the sandbox is a work in progress,
>>  so it is not yet a full product...
>understand, we will hacked them all to make can woring...
>because in my com. had teams usage 0.11 yet ..

Well, just wanted to point out that while I strive to keep it stable and
functional it might not always be.

>we will focus them ticket for help done Chinese support..

Genshi's #129 is the biggest hurdle actually right now.

-- 
Jeroen Ruigrok van der Werven  / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
It is better to be silent and be thought a fool, than speak and remove all
doubt...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Project-management in TRAC

2008-04-20 Thread Jeroen Ruigrok van der Werven

-On [20080420 08:17], Michael Östling ([EMAIL PROTECTED]) wrote:
>I would like to be able add possibility to add something like a  weekly
>progressreport, hours spent, hours to go, Estimated deliverydate.

http://www.trac-hacks.org/tags/'timing' and from that list I guess the
http://www.trac-hacks.org/wiki/TimingAndEstimationPlugin is the most
popular.

-- 
Jeroen Ruigrok van der Werven  / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
Seize from every moment its unique novelty and do not prepare your joys...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---