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

2008-04-21 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: [Trac 0.11b2] [apache+mod_python] Basic authentication configuration issue

2008-04-21 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:
...
Location /test
...
PythonOption TracEnv /home/httpd/trac-env/test
...
LocationMatch /test/login
...

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 LocationMatch /test/login 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] Re: 答复: [Trac] R e: NameError: global name 'sqlite' is not defin ed

2008-04-21 Thread Erik Andersson
If anyone else finds this thread, this actually is listed as an requirement
on http://trac.edgewall.org/wiki/TracInstall

Cheers / Erik

2008/4/21 LiXueJiang [EMAIL PROTECTED]:


 No, i didn't installed it(i don't find any informations that it should be
 installed).
 Now, after pysqlite2.4.1 installed, I have initiated the trac environment.
 Thank you very much!

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


  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 ?

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

 Not your SQLite version, your PySQLite version.
 Have you ever installed it ?


 


--~--~-~--~~~---~--~~
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] Re: 答 复: [Trac] Re: NameError: global name 'sqlite' is not define d

2008-04-21 Thread Emmanuel Blot

  No, i didn't installed it(i don't find any informations that it should be
  installed).

Such as in the installation page, maybe ? ;-)
http://trac.edgewall.org/wiki/TracInstall#ForSQLite

--~--~-~--~~~---~--~~
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: 答复: [Trac] Re: N ameError: global name 'sqlite' is not defined

2008-04-21 Thread LiXueJiang

No, i didn't installed it(i don't find any informations that it should be
installed).
Now, after pysqlite2.4.1 installed, I have initiated the trac environment.
Thank you very much!

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


 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 ?

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

Not your SQLite version, your PySQLite version.
Have you ever installed it ?


--~--~-~--~~~---~--~~
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] Re: NameError: global name 'sqlite' is not defined

2008-04-21 Thread Emmanuel Blot

 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 ?

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

Not your SQLite version, your PySQLite version.
Have you ever installed it ?

--~--~-~--~~~---~--~~
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: Tutorial on customizing the new ticket form

2008-04-21 Thread Eirik Schwenke

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Isaac.PEG skrev 18-04-2008 03:33:
| Could someone point me to a simple (perhaps even step-by-step)
| tutorial or help page explaining exactly how to add static content to
| the wiki edit / new ticket / ticket edit forms?
|
| I read through the following page, and found it inadequate (and a bit
| confusing on exactly where that example snippet is supposed to go).
| http://trac.edgewall.org/wiki/TracInterfaceCustomization

I agree this documentation could use an update -- but I'm afraid I don't have
the time to do anything about it right now.

| I also skimmed through the Genshi tutorial, but it seemed way more
| complex than what I want to do.  I have never used a templating system
| before (except through MS Word), though I understand the philosophy
| behind it.

Well, the upside is that the simple stuff actually *is* simple with genshi. If
you're using trac version 0.11b, with Genshi-templates, you can simply copy

~  /trac-install-path/ticket/templates/ticket.html

to the template folder of your trac-instance(s), and edit it in a normal text
editor.

Personally I find these templates include way too much logic in the view (in
model-view-controller terminology) -- but if you look at the file you'll notice
some familiar sections, such as:

~   Create ticket (...) on line 85.

and

~  Note: see (...) for help on using tickets on line 387


You can basically include any text you'd like here, probably adding a
paragraph-tag -- or better yet -- just a link to a wiki-page -- eg:

~  h2a href=${href.wiki('TracTickets')}READ THIS FIRST!/a/h2

| I'm using Trac as an issue tracker for the undergraduate curriculum
| written by the Physics Education Research Group at the University of
| Washington, and would like to have clear instructions on the naming
| conventions for tickets and wiki pages we are establishing.
|
| Thanks for any help or pointers you can share.

Again, I'd recommend keeping most of this documentation in the wiki, and just
make prominent links to it on the trac front-page, and maybe a help-link on
the ticket-page.

As you'll see if you follow the help-link -- you're free to edit all these
pages as you see fit.


Hope this gets you started.


Best regards,

- --
~ .---.  Eirik Schwenke [EMAIL PROTECTED]
( NSD ) Harald Hårfagresgate 29Rom 150
~ '---'  N-5007 Bergentlf: (555) 889 13

~  GPG-key at pgp.mit.edu  Id 0x8AA3392C
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIDJnvxUW7FIqjOSwRAkEjAJ9GyBfO4tS5dJ9fawv6+0bDY0aJiwCgq3F0
UuOu1pDPrrle6ZnCCRCsKXw=
=WwVU
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
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 0.11b2] [apache+mod_python] Basic authentication configuration issue

2008-04-21 Thread Eirik Schwenke

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Virtual Dust skrev 21-04-2008 08:27:
| 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:
| ...
| Location /test
| ...
| PythonOption TracEnv /home/httpd/trac-env/test
| ...
| LocationMatch /test/login
| ...
|
| 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 LocationMatch /test/login in
| place of the regexp.

You have diagnosed the problem -- your apache config is wrong, and does not
demand/request authentication from the client.

But apache is successfully forwarding the request username to trac, so once you
figure out what's wrong with the LocationMatch-stuff, you should be home free.

| 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.

Unfortunately that's redundant in this case. For help debugging problems like
this I recommend the firefox liveheaders extention:

~ http://livehttpheaders.mozdev.org/

It's more convenient that just telneting to port 80 and trying to remember how
to speak http/1.1 fluently -- if not as much fun ;-)

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

It most likely won't - The problem is with apache not requesting authentication.

| I keep you informed.

I just now tested with the following in my local apache-config:

~ LocationMatch /[^/]+/login$
~  AuthType Basic
~  AuthName Projects
~  AuthUserFile /home/httpd/trac-env/trac.htpasswd
~  Require valid-user
~  /LocationMatch

And it demanded login-credentials for all /foo/bar/login-urls i threw at it.

(Note the trailing $ didn't make any difference wrt wether or not the section
worked, but it's best to be reasonably specific about LocationMatch-directives,
in case they're included in a complex apache-config).

I'd double-check my apache-config for typos and see if the apache error.log has
anything helpful to add -- because as far as I can understand the code you
posted earlier *should* work.


Best regards,

- --
~ .---.  Eirik Schwenke [EMAIL PROTECTED]
( NSD ) Harald Hårfagresgate 29Rom 150
~ '---'  N-5007 Bergentlf: (555) 889 13

~  GPG-key at pgp.mit.edu  Id 0x8AA3392C
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIDJRfxUW7FIqjOSwRAu02AKDM0eL7rERAWXfcuJfBwtd64/D9gQCgge0A
A2nkCdrVfZO8o3rA5NXoj8Y=
=cxZd
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
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] Forms for Trac

2008-04-21 Thread didley

Is there any possibilty to create forms in wiki pages?

didley
--~--~-~--~~~---~--~~
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: Forms for Trac

2008-04-21 Thread Noah Kantrowitz

didley wrote:

Is there any possibilty to create forms in wiki pages?


Wiki != structured data. Make a plugin.

--Noah



signature.asc
Description: OpenPGP digital signature


[Trac] Re: add arbitrary entries into timeline?

2008-04-21 Thread Doug Douglass
@Kate, not feeling left hanging, but thanks!

@Noah, hmmm, iCal, eh? The Hudson plugin got me thinking that a generic RSS
ITimelineEventProvider implementation might also be an option. P.S. I just
noticed your rpi.edu domain, how's life in Troy/Rensselaer? I used to
live/school/work across the river in Albany, but that was well over a decade
ago.


I'm still sussing out how the dated sticky note might work best, and what
these mini-milestones within a Milestone really mean to our process. We
might do this a different way altogether, or continue experimenting with
using tickets or maybe MasterTickets.

Thanks both,
Doug

On Sun, Apr 20, 2008 at 11:22 PM, Noah Kantrowitz [EMAIL PROTECTED] wrote:



 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] Re: Issues opening trac with mod_wsgi and Apache 2.2

2008-04-21 Thread Jamie Fellrath

Please ignore this question.  I discovered that the problem was in my
trac.wsgi file and using the common back-slash for windows in my
folder references.  Changing them to forward-slashes fixed the
problem.  Apparently I need to learn Python a bit more.

Jamie

On Apr 18, 2:40 pm, James Fellrath [EMAIL PROTECTED] wrote:
 Hi all,

 I'm trying to configure our trac application with an Apache 2.2 web server,
 using mod_wsgi 2.0 as our WSGI adapter module.  We have Python 2.4 on our
 Windows 2003 Server box, and we've previously successfully run trac in test
 using tracd.py.  I've also got the Apache server working already.

 Our trac install is at *c:\projects\trac\ccc_solutions\*.  All the normal
 subdirectories (*attachments*, *conf*, *db*, etc.) follow underneath.  We
 are using only a single trac project.

 I've put *mod_wsgi.so* into the Apache 2.2 modules directory and properly
 loaded it in *httpd.conf* with a LoadModule wsgi_module
 modules/mod_wsgi.sostatement.  I've verified that I have the right
 version of
 *mod_wsgi.so* for our versions of Apache and Python.

 I've created a *trac.wsgi* script with the following code and placed it into
 *c:\projects\trac\ccc_solutions\apache\*:

 import os

 os.environ['TRAC_ENV'] = 'C:\projects\trac\ccc_solutions'
 os.environ['PYTHON_EGG_CACHE'] = 'C:\projects\trac\ccc_solutions\plugins'

 import trac.web.main
 application = trac.web.main.dispatch_request

 I've added the following code to my *httpd.conf* file as well:

 WSGIScriptAlias /ccc_solutions
 C:\projects\trac\ccc_solutions\apache\trac.wsgi

 Directory C:\projects\trac\ccc_solutions\apache
 WSGIApplicationGroup %{GLOBAL}
 Order deny,allow
 Allow from all
 /Directory

 When I try to hit the trac URL on our server at *http://
 servername:port#/ccc_solutions*, I get the following message:
 Internal Server Error

 The server encountered an internal error or misconfiguration and was unable
 to complete your request.

 Please contact the server administrator, email address and inform them of
 the time the error occurred, and anything you might have done that may have
 caused the error.

 More information about this error may be available in the server error log.

 The error log reads as follows:
 [Fri Apr 18 14:09:49 2008] [error] [client IP address] mod_wsgi
 (pid=3056): Exception occurred processing WSGI script
 'C:/projects/trac/ccc_solutions/apache/trac.wsgi'.
 [Fri Apr 18 14:09:49 2008] [error] [client IP address] Traceback (most
 recent call last):
 [Fri Apr 18 14:09:49 2008] [error] [client IP address]   File
 C:\\Python24\\Lib\\site-packages\\trac\\web\\main.py, line 346, in
 dispatch_request
 [Fri Apr 18 14:09:49 2008] [error] [client IP address] env =
 _open_environment(env_path, run_once=environ['wsgi.run_once'])
 [Fri Apr 18 14:09:49 2008] [error] [client IP address]   File
 C:\\Python24\\Lib\\site-packages\\trac\\web\\main.py, line 57, in
 _open_environment
 [Fri Apr 18 14:09:49 2008] [error] [client IP address]
 env_cache[env_path] = open_environment(env_path)
 [Fri Apr 18 14:09:49 2008] [error] [client IP address]   File
 C:\\Python24\\Lib\\site-packages\\trac\\env.py, line 433, in
 open_environment
 [Fri Apr 18 14:09:49 2008] [error] [client IP address] env =
 Environment(env_path)
 [Fri Apr 18 14:09:49 2008] [error] [client IP address]   File
 C:\\Python24\\Lib\\site-packages\\trac\\env.py, line 126, in __init__
 [Fri Apr 18 14:09:49 2008] [error] [client IP address] self.verify()
 [Fri Apr 18 14:09:49 2008] [error] [client IP address]   File
 C:\\Python24\\Lib\\site-packages\\trac\\env.py, line 174, in verify
 [Fri Apr 18 14:09:49 2008] [error] [client IP address] fd =
 open(os.path.join(self.path, 'VERSION'), 'r')
 [Fri Apr 18 14:09:49 2008] [error] [client IP address] IOError: [Errno 2]
 No such file or directory:
 'C:projects\\tracccc_solutionsVERSION'

 I'm a bit puzzled.  I don't have a VERSION directory set up in our
 environment, and it seems to me that this section of the Python code (though
 I'm not a Python developer) is asking for something that isn't necessarily
 going to be there across the board for all environments.
 Can anyone give me some advice on getting this running?

 Thanks,
 Jamie Fellrath
--~--~-~--~~~---~--~~
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] Unable to start Apache 2.2.8 after installing LDAPPlugin

2008-04-21 Thread James Fellrath
Hi all,

I'm following the instructions at http://trac-hacks.org/wiki/LdapPlugin to
install LdapPlugin on our local Trac project.  We have previously had Trac
running using the Tracd.py server but want to take advantage of our local
LDAP in setting up user permissions and the like.

We are running Apache 2.2.8, Python 2.4, Trac 0.10, and using mod_wsgi as
our Python/Apache link.  Our OS is Windows 2003 Server.

I have been successful in getting the WSGI connection to work and bringing
up our project's webpage without setting up any LDAP authentication.  Now
I've installed the plugin per the instructions, but it appears that the
installation process hasn't loaded everything it should have.  I'm unable to
restart Apache.

Here are the lines from our httpd.conf file that pertain to the LDAP
authentication and LdapPlugin settings:

Location C:/projects/trac/ccc_solutions
   PythonOption TracEnv C:/projects/trac/ccc_solutions
   PythonOption TracUriRoot /ccc_solutions
   AuthType Basic
   AuthName ccc_solutions
   AuthBasicProvider ldap
   Order Allow,Deny
   Allow from All
   AuthLDAPURL ldapURL
   AuthzLDAPAuthoritative off
   Require valid-user
/Location

Commenting out the two PythonOption lines results in Apache starting (but
without the LDAP authentication).  Leaving them there results in the
following error from the Apache error log.

[Mon Apr 21 16:25:07 2008] [notice] Parent: Received restart signal --
Restarting the server.
Syntax error on line 502 of C:/Program Files/Apache Software
Foundation/Apache2.2/conf/httpd.conf:
Invalid command 'PythonOption', perhaps misspelled or defined by a module
not included in the server configuration
[Mon Apr 21 16:25:07 2008] [notice] Child 4068: Exit event signaled. Child
process is ending.
[Mon Apr 21 16:25:07 2008] [warn] (OS 995)The I/O operation has been aborted
because of either a thread exit or an application request.  : winnt_accept:
Asynchronous AcceptEx failed.
[Mon Apr 21 16:25:08 2008] [notice] Child 4068: Released the start mutex
[Mon Apr 21 16:25:09 2008] [notice] Child 4068: All worker threads have
exited.
[Mon Apr 21 16:25:09 2008] [notice] Child 4068: Child process is exiting

I didn't get any error messages when I was running setup.py to install
LdapPlugin-0.5.1dev-py2.4.egg.  But it seems that somewhere in that
installation may be where the error lies.

Any help or advice you can offer would be most welcome.

-- 
Jamie Fellrath

--~--~-~--~~~---~--~~
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] Private Tickets plugin

2008-04-21 Thread Mcgill Guy

hi,
I am having trouble using the grouping feature of the private ticket
plugin . here is my problem:
I have a restricted access to all my users to have
ticket_view_reporter only which works fine ! a new requirement is
that some of these users are in one group (call it X) and need to be
able to see the tickets that were reported by any user in this group
(X)!

so when i add both permissions (Ticket_view_reporter , and
ticket_view_reporter_group) and then created a group (X) and put each
of the users in. now the problem is that when i do that . these users
can see all tickets by everyone . even people who are dont share the
same group with them .

any help? coderanger ?

thanks
Guy
--~--~-~--~~~---~--~~
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: Unable to start Apache 2.2.8 after installing LDAPPlugin

2008-04-21 Thread Emmanuel Blot

 Location C:/projects/trac/ccc_solutions

? Weird directive, you probably meant Directory, not Location...

LdapPlugin is *not* related to LDAP authentication, only to LDAP permissions.

Try to set up your environment without the LDAP plugin (i.e.
authentication only), then once it works try re-activating the
LdapPlugin.

Cheers,
Manu

--~--~-~--~~~---~--~~
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] Method to Automate Export Wiki to HTML Files?

2008-04-21 Thread Brett

Hi all--

I would like to export the entire contents of a project Trac Wiki
(including all sub pages, etc.) to individual HTML files that I can
burn to a CD as a snapshot of documentation for a particular project
release.  Is there a way to automate this process (via plugin or other
method) or will I need to open a web browser and manually save each
Wiki page by hand?  I am running the standalone tracd server on a
Windows SBS system.   I don't consider myself a Trac power user, but I
assume that the wiki contents are located in the db/trac.db file
within the Trac environment for the project.

Thanks in advance for all your help.


Brett
--~--~-~--~~~---~--~~
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: Method to Automate Export Wiki to HTML Files?

2008-04-21 Thread Noah Kantrowitz

Brett wrote:

Hi all--

I would like to export the entire contents of a project Trac Wiki
(including all sub pages, etc.) to individual HTML files that I can
burn to a CD as a snapshot of documentation for a particular project
release.  Is there a way to automate this process (via plugin or other
method) or will I need to open a web browser and manually save each
Wiki page by hand?  I am running the standalone tracd server on a
Windows SBS system.   I don't consider myself a Trac power user, but I
assume that the wiki contents are located in the db/trac.db file
within the Trac environment for the project.


Look at the CombineWiki plugin. Either the HTML or TiddlyWiki output 
formats should do what you want.


--Noah



signature.asc
Description: OpenPGP digital signature


[Trac] Re: Custom ticket validations?

2008-04-21 Thread Scott Bussinger

Christian,

 You can write a component implementing the ITicketManipulator interface
 (see in trac/ticket/api.py).

 If you're talking about 0.11dev, you should have a look to
 http://trac.edgewall.org/ticket/6879

Looks like things a bit in flux here still. I'm running 0.11b2 so
perhaps I'll wait a bit until 0.11 is finally release before pursuing
this. I know nothing about Trac's codebase and don't know Python so I
think I'll try and find someone to do the plugin for me rather than
try to get up to speed for something like this.

Thanks for the info Christian!

   If anyone out there's interested in a simple side project
for some cash, let me know and we'll work something out!
--~--~-~--~~~---~--~~
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: Query on modified date?

2008-04-21 Thread Erik Bray

On 4/20/08, Scott Bussinger [EMAIL PROTECTED] wrote:

  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.


There's a ticket for this at http://trac.edgewall.org/ticket/2288, so
you could add yourself to the CC list.  Though this seems to be on
hold until 0.12.

--~--~-~--~~~---~--~~
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: Unable to start Apache 2.2.8 after installing LDAPPlugin

2008-04-21 Thread Erik Bray

On 4/21/08, James Fellrath [EMAIL PROTECTED] wrote:
 We are running Apache 2.2.8, Python 2.4, Trac 0.10, and using mod_wsgi as
 our Python/Apache link.  Our OS is Windows 2003 Server.

 I have been successful in getting the WSGI connection to work and bringing
 up our project's webpage without setting up any LDAP authentication.  Now
 I've installed the plugin per the instructions, but it appears that the
 installation process hasn't loaded everything it should have.  I'm unable to
 restart Apache.

 Here are the lines from our httpd.conf file that pertain to the LDAP
 authentication and LdapPlugin settings:

 Location C:/projects/trac/ccc_solutions
PythonOption TracEnv C:/projects/trac/ccc_solutions
 PythonOption TracUriRoot /ccc_solutions
AuthType Basic
AuthName ccc_solutions
AuthBasicProvider ldap
Order Allow,Deny
Allow from All
AuthLDAPURL ldapURL
 AuthzLDAPAuthoritative off
Require valid-user
 /Location

 Commenting out the two PythonOption lines results in Apache starting (but
 without the LDAP authentication).  Leaving them there results in the
 following error from the Apache error log.

 [Mon Apr 21 16:25:07 2008] [notice] Parent: Received restart signal --
 Restarting the server.
 Syntax error on line 502 of C:/Program Files/Apache Software
 Foundation/Apache2.2/conf/httpd.conf:
  Invalid command 'PythonOption', perhaps misspelled or defined by a module
 not included in the server configuration
 [Mon Apr 21 16:25:07 2008] [notice] Child 4068: Exit event signaled. Child
 process is ending.
  [Mon Apr 21 16:25:07 2008] [warn] (OS 995)The I/O operation has been
 aborted because of either a thread exit or an application request.  :
 winnt_accept: Asynchronous AcceptEx failed.
 [Mon Apr 21 16:25:08 2008] [notice] Child 4068: Released the start mutex
  [Mon Apr 21 16:25:09 2008] [notice] Child 4068: All worker threads have
 exited.
 [Mon Apr 21 16:25:09 2008] [notice] Child 4068: Child process is exiting

 I didn't get any error messages when I was running setup.py to install
 LdapPlugin-0.5.1dev-py2.4.egg.  But it seems that somewhere in that
 installation may be where the error lies.


Are you sure you're running Trac through mod_wsgi?  Whatever you're
trying to do with LDAP isn't even directly related here...
PythonOption is a directive specific to mod_python, so it doesn't make
sense to have that in your config if you're using mod_wsgi (of which I
see no evidence in the config you posted).

--~--~-~--~~~---~--~~
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-21 Thread Richard Liao

On Sat, Apr 19, 2008 at 12:31 AM, Jeroen Ruigrok van der Werven
[EMAIL PROTECTED] wrote:

  -On [20080418 17:48], Richard Liao ([EMAIL PROTECTED]) wrote:
  We have created a wiki page:
  http://trac-hacks.org/wiki/TracSandboxI18nChinese

  There is already an open ticket for the Chinese translation.


We are almost finishing the whole translation of po file of zh_CN.
How do we upload the po file to eventually commit to subversion repository?

Another, according to http://trac.edgewall.org/wiki/TracTermsZhCn,
some terms do not coincide with ours.
Can we update above wiki page to reflect our terms?

Since current i18n branch are not fully functional, and we want to
make a full I10N version(zh_CN) of trac 0.11.
So our plan is use the i18n branch to provide the translation of all
py files and part of templates file.
Plus, we will translate all template files and all default wiki pages manually.

Since this is not i18n-ed, so we are plan to publish our version in
trac-hacks.org.

BTW, we found that some UI string can not be translated since they are
not i18n string in py files.

Any suggestions?

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: Private Tickets plugin

2008-04-21 Thread Noah Kantrowitz

On Apr 21, 2008, at 5:26 PM, Mcgill Guy wrote:

 hi,
 I am having trouble using the grouping feature of the private ticket
 plugin . here is my problem:
 I have a restricted access to all my users to have
 ticket_view_reporter only which works fine ! a new requirement is
 that some of these users are in one group (call it X) and need to be
 able to see the tickets that were reported by any user in this group
 (X)!

 so when i add both permissions (Ticket_view_reporter , and
 ticket_view_reporter_group) and then created a group (X) and put each
 of the users in. now the problem is that when i do that . these users
 can see all tickets by everyone . even people who are dont share the
 same group with them .

Please post the full output of trac-admin ... permission list.

--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] Re: Save all Wiki content

2008-04-21 Thread jmt4b04d4v

Hola compañero,

On Apr 2, 10:17 pm, Reynier Perez Mira [EMAIL PROTECTED] wrote:
 Hi every:
 It is posible save all wiki pages including images and directories? I do this 
 trac-admin /path/to/env wiki dump /path/to/dump but this only save Pages and 
 I don't want this because all images stored in the Wiki are lost. Any guide 
 or chance to do this?

Well images at wiki pages are mostly[1] attachments stored physically
in the related trac enviroment, and the logical relations to wiki
pages are stored at the 'attachment' table in the related trac
enviroment database backend (SQLite mostly). If you can't or don't
want to dump and restore the complete database, maybe you can...

  [1] Image macro can fetch files directly from the repository.

1. Dump the wiki pages from the source trac enviroment:
$ trac-admin path/to/some/tracenv/ wiki dump /path/to/dump/wiki/pages
2. Dump the 'attachment' table only (example if SQLite is the
backend):
$ sqlite -batch /path/to/some/tracenv/db/trac.db .dump attachment 
trac-attachment.sql
3. (Optionally if ticket attachments are not relevant) Filter the wiki-
attachment entries in that table (rough example):
$ cat trac-attachment.sql | grep 'wiki' | trac-attachment-wiki-
entries.sql
4. Restore the wiki pages to the target trac enviroment:
$ trac-admin /path/to/another/tracenv/ wiki load /path/to/dump/wiki/
pages
5. And finally restore data in the target trac enviroment database
(example if SQLite is the backend)
$ sqlite -batch /path/to/another/tracenv/db/trac.db .read trac-
attachment-wiki-entries.sql

Of course you must also copy the physical file attachments stored in /
path/to/some/tracenv/attachments/wiki/* to the target location /path/
to/another/tracenv/attachments/wiki/* (you may need to create a 'wiki'
folder under attachments folder in the target trac enviroment).

This way you can preserve all attachments and not only image files.

For information about Trac's database schema take a look at:

 * http://trac.edgewall.org/wiki/TracDev/DatabaseSchema

I hope this helps.

Johans Marvin Taboada Villca-`^_^´- .o0O( 2007-04-24, Bienvenida
Bebecita )

--~--~-~--~~~---~--~~
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: Translating Trac from Eng to Esp

2008-04-21 Thread Reynier Perez Mira
Hi every:
Now I have Babel installed, what's next step?? How to use sandbox for see 
Spanish Translation?
Cheers
Ing. Reynier Pérez Mira
Grupo Soporte al Desarrollo - Dirección Técnica IP  

 -Original Message-
 From: trac-users@googlegroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Reynier Perez Mira
 Sent: Monday, February 18, 2008 2:12 PM
 To: trac-users@googlegroups.com
 Subject: [Trac] Re: Translating Trac from Eng to Esp
 
 
 I have setuptools but this PC haven't Internet, then your 
 solution work?
 Cheers
 Ing Reynier Pérez Mira
 Grupo Soporte al Desarrollo - Dirección Técnica IP 
 
  -Original Message-
  From: trac-users@googlegroups.com 
 [mailto:[EMAIL PROTECTED]
  On Behalf Of Jeroen Ruigrok van der Werven
  Sent: Monday, February 18, 2008 1:36 PM
  To: trac-users@googlegroups.com
  Subject: [Trac] Re: Translating Trac from Eng to Esp
  
  
  -On [20080218 19:22], Reynier Perez Mira ([EMAIL PROTECTED]) wrote:
  Thanks for this reply. I try the URL you give me but I 
 don't know how 
  to install Babel. I search in the repository and I didn't 
 find anything.
  Exists any guide?
  
  I'll have to see about that.
  
  Anyway:
  
  you need setuptools
  and then do easy_install Babel
  
  That should be it...
  
  --
  Jeroen Ruigrok van der Werven asmodai(-at-)in-nomine.org / asmodai
  イェルン ラウフロック ヴァン デル ウェルヴェン
  http://www.in-nomine.org/ | http://www.rangaku.org/ The way you're 
  bathed in Light, reminds me of that Night, god laid me down 
 into your 
  rose garden of Trust...
  
  
 
  
 

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---