rjcarr | 1 Nov 05:23
Picon

[Trac] Trac, Apache, and Subversion with Multiple Projects


I'm sure this has been asked many times before, and is in a doc
somewhere, but all I found was this (and it didn't quite answer my
questions):

http://trac.edgewall.org/wiki/TracMultipleProjectsSVNAccess

I have an active multi-project environment for trac+svn served by
apache.  It all works fine and in my apache config files I have block
pairs like this:

<Location "/trac/project1">
  AuthType Basic
  AuthName "Trac Auth"
  AuthUserFile /path/to/project1/auth.htpasswd
  Require valid-user
</Location>

<Location "/svn/project1">
  AuthType Basic
  AuthName "SVN Auth"
  AuthUserFile /path/to/project1/auth.htpasswd
  Require valid-user
</Location>

As you see, each project (trac+svn) has (and needs) its own auth
file.  As I said, this works, but the problem is each time a new
project is added, an apache restart is needed (as far as I know).
This isn't convenient so I'm looking for a better solution.

(Continue reading)

Rainer Sokoll | 1 Nov 09:38
Picon
Favicon

[Trac] Re: Trac, Apache, and Subversion with Multiple Projects


On Thu, Nov 01, 2007 at 04:23:03AM -0000, rjcarr wrote:

> I've come across mod_authz_svn and the AuthzSVNAccessFile for
> Subversion, which looks like it will solve my problem (assuming this
> file is checked when updated).

Yes, but keep in mind that path based checking can be expensive.

> I'd like to get it working for Trac as
> well, preferably using the same file, but I'm not entirely sure how to
> do it (and the above mentioned wiki doesn't go into details).

You could use in your trac.ini:

[trac]
authz_file = /path/to/subversions/authzfile
authz_module_name = foo # if you use SVNParentPath and foo is your module

But this is valid for trac's browser only, not for the entire
environment.

Rainer

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
(Continue reading)

Erik Andersson | 1 Nov 12:00
Picon

[Trac] Re: Domain upgrade Problem

Hi

I've done the same mistake. You really should use TracLinks instead of full url's if possible. (http://trac.edgewall.org/wiki/TracLinks)

This is one way to change the urls for all wiki-pages (you could make it all as a script if you like):
sqlite> .output wiki.sql
sqlite> .dump wiki
>cp wiki.sql wiki.sql.org
>rpl orldurl newurl wiki.sql (or whatever other tool you have for search and replace)
sqlite> drop table wiki;
sqlite> .read wiki.sql;

Maybe someone else knows of a better way?

GL / Erik

On 10/31/07, Andreas Reiss <andreas.reiss-h7J5bGZQZXPtSdSCg1fRlA@public.gmane.org > wrote:

Hi Trac-Users,

 

I'm very new to this group and I already have a serious problem with my existing Trac environment.

 

I have a few hundred pages with several links among Trac pages.

 

My problem is, that my domain name changed and now all the links go to the wrong domain/page means to the nirvana.

 

Is their any script for DB or Trac to update all the links or maybe to do a string replacements?

 

Thank you very much

 

Cheers

Andreas

 

 

 





--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to trac-users-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Yves Serrano | 1 Nov 12:08
Picon

http://trac-hacks.org/wiki/TracWysiwygPlugin


When dreams comes true!
Thanks a lot jun66j5!

One question:
When I put a code block on the last line, how do I come out of the
code block, to proceed with other types of text?
I can do that, if I switch back to textarea but not in the wysiwyg
editor. For lists, this works with a double return, but this can't be
used obviously for code blocks.
I also have the same issue with quotes.

Is this a bug? Or can someone enlighten me?

Yves

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Andrew | 1 Nov 12:51
Favicon

[Trac] Re: Patching Problems


Hi Erik,

Thanks for replying. I'm running Trac 0.10.3, so the report plugin
should work. The no notify patch is for 0.10.4, I was more hopeful
that the patch would apply.

Thanks again

On 31 Oct, 17:16, "Erik Bray" <hyugaricd...@...> wrote:
> On 10/31/07, Andrew <andrew_t...@...> wrote:
>
>
>
>
>
>
>
> > I'm trying to apply patches to my Trac install. I'm running Trac on a
> > Windows system and have installed the patch command, but I keep
> > getting hunk failed error messages as below:
>
> > patch --binary -p0 < trac-0.10.3-report-plugin.patch
> > patching file trac/ticket/report.py
> > Hunk #1 FAILED at 32.
> > Hunk #2 FAILED at 131.
> > Hunk #3 FAILED at 386.
> > Hunk #4 FAILED at 412.
> > 4 out of 4 hunks FAILED -- saving rejects to file trac/ticket/
> > report.py.rej
>
> > patch --binary -p0 < trac-no-notify-updater-2247.patch
> > patching file trac/ticket/notification.py
> > Hunk #1 FAILED at 247.
> > 1 out of 1 hunk FAILED -- saving rejects to file trac/ticket/
> > notification.py.rej
>
> > If someone could point out what I'm going wrong that would be great.
>
> > Also do the patches patch the live system or the install files?
>
> Well, what version of Trac are you trying to patch?  The first one
> says that it's for 0.10.3.  If you're not patching 0.10.3 then the
> results cannot be guaranteed.  Same with the other one--whatever
> documentation it came with should specify which version of Trac it's
> diffed against.
>
> As for which files you're patching, that entirely depends on what your
> current working directory is when you run patch.- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Noah Kantrowitz | 1 Nov 13:46
Picon
Favicon

[Trac] Re: Trac, Apache, and Subversion with Multiple Projects


One solution is to use AccountManager to do authentication for Trac,  
with mod_auth_acctmgr doing it for subversion.

--Noah

On Nov 1, 2007, at 12:23 AM, rjcarr wrote:

>
> I'm sure this has been asked many times before, and is in a doc
> somewhere, but all I found was this (and it didn't quite answer my
> questions):
>
> http://trac.edgewall.org/wiki/TracMultipleProjectsSVNAccess
>
> I have an active multi-project environment for trac+svn served by
> apache.  It all works fine and in my apache config files I have block
> pairs like this:
>
> <Location "/trac/project1">
>  AuthType Basic
>  AuthName "Trac Auth"
>  AuthUserFile /path/to/project1/auth.htpasswd
>  Require valid-user
> </Location>
>
> <Location "/svn/project1">
>  AuthType Basic
>  AuthName "SVN Auth"
>  AuthUserFile /path/to/project1/auth.htpasswd
>  Require valid-user
> </Location>
>
> As you see, each project (trac+svn) has (and needs) its own auth
> file.  As I said, this works, but the problem is each time a new
> project is added, an apache restart is needed (as far as I know).
> This isn't convenient so I'm looking for a better solution.
>
> I've come across mod_authz_svn and the AuthzSVNAccessFile for
> Subversion, which looks like it will solve my problem (assuming this
> file is checked when updated).  I'd like to get it working for Trac as
> well, preferably using the same file, but I'm not entirely sure how to
> do it (and the above mentioned wiki doesn't go into details).
>
> I found this useful thread, and along with the wiki, seems to indicate
> what I'm looking for is possible, but it talks about making special
> additions to trac.ini (authz_file and authz_module_name):
>
> http://groups.google.com/group/trac-users/browse_thread/thread/d8278f7217b12008/7cc8b8aefcf0349f
>
> Where can I find a complete reference about setting up an environment
> as I describe?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

itmozart | 1 Nov 14:39
Picon

[Trac] Starting a blank environment


Is there a way to start a new environment without all the default
pages (TracBlahBlah*, WikiBlahBlah*), but instead just a skeleton?

I read the FAQ and there is nothing similar :-)

Thanks!
Saverio

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Chris Black | 1 Nov 16:54
Favicon

[Trac] PrivateTickets for 0.11


We have been working on moving to trac and decided to go with 0.11 due 
to the customizable workflow engine and extra permissions. Unfortunately 
I can not figure out how to make a submit-only user that can also see 
the ticket they submitted (but no other tickets that they are not 
associated with). We have set it up so these users have TICKET_CREATE 
access and nothing else which allows them to login, get an error about 
insufficient permissions (since they can not view the default wiki 
page), click new ticket, submit a ticket, and then get another 
insufficient permissions error. The ticket does get submitted but we 
imagine the error will be confusing and would like the user to be able 
to see their own tickets. It seems like the PrivateTickets plugin is 
exactly what we need but is not available for 0.11. Is there anything I 
can do to get the functionality we desire?

Best,
Chris

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Noah Kantrowitz | 1 Nov 17:05
Picon
Favicon

[Trac] Re: PrivateTickets for 0.11


Due to lack of tuits, this may not happen for a few weeks after the  
upcoming context-refactoring merge.

--Noah

On Nov 1, 2007, at 11:54 AM, Chris Black wrote:

>
> We have been working on moving to trac and decided to go with 0.11 due
> to the customizable workflow engine and extra permissions.  
> Unfortunately
> I can not figure out how to make a submit-only user that can also see
> the ticket they submitted (but no other tickets that they are not
> associated with). We have set it up so these users have TICKET_CREATE
> access and nothing else which allows them to login, get an error about
> insufficient permissions (since they can not view the default wiki
> page), click new ticket, submit a ticket, and then get another
> insufficient permissions error. The ticket does get submitted but we
> imagine the error will be confusing and would like the user to be able
> to see their own tickets. It seems like the PrivateTickets plugin is
> exactly what we need but is not available for 0.11. Is there  
> anything I
> can do to get the functionality we desire?
>
> Best,
> Chris
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Erik Bray | 1 Nov 17:06
Picon

[Trac] Re: Patching Problems


On 11/1/07, Andrew <andrew_trac@...> wrote:
>
> Hi Erik,
>
> Thanks for replying. I'm running Trac 0.10.3, so the report plugin
> should work. The no notify patch is for 0.10.4, I was more hopeful
> that the patch would apply.
>

I tried out the report patch on a fresh checkout of 0.10.3 and had no
problems.  So either you're not using the final version of 0.10.3, or
it has other modifications already that conflict with the patch.  If
you check the rejects file you

Erik

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane