RE: [Trac] Help with Trac Email Notifications

2023-09-13 Thread 'Patty Cottrill' via Trac Users
Thank you for the quick response.

Can I please get some clarification.

The plugins wikipage shows the stable version 18549 is in the tags directory.
I downloaded and installed this plugin and I am still getting the same behavior.

https://trac-hacks.org/wiki/AccountManagerPlugin

Your link is pointing to the trunk, which is considered a development version.
If I understand you correctly, I need to install this development version to 
correct this problem.

Please advise.

Best,
Patty Cottrill

-Original Message-
From: trac-users@googlegroups.com  On Behalf Of 
Jun Omae
Sent: Tuesday, September 12, 2023 8:04 PM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Help with Trac Email Notifications

*** CAUTION: This email originated outside of IMCI Technologies. Do NOT 
respond, take any action, click on any links or open any attachments unless you 
recognize the sender and trust the content is safe. ***


On Wed, Sep 13, 2023 at 5:56 AM 'Patty Cottrill' via Trac Users
 wrote:
>
> I recently configured password recovery.
> It is working fine, except that the email containing the temporary password 
> is not only being sent to the user, but it also includes the recipients 
> configured in the always_cc setting under notifications in trac.ini.
> Because of the security nature of the email, I never thought the password 
> reset email would include the cc recipients.
> Is there anyway to prevent the password reset email from including the 
> always_cc recipients?
>
> Below is our environment:
>
> Trac  1.2.3
> Genshi 0.7 (with speedups)
> mod_python 3.3.1
> Pygments 2.1
> pysqlite 2.7.0
> Python 2.7.12
> setuptools 20.7.0
> SQLite 3.11.0
> jQuery 1.11.3
> jQuery UI 1.11.4
> jQuery Timepicker 1.5.5
> Apache2 2.4.18
>
>
> Best,
> Patty Cottrill

It seems that the issue has been reported at
https://trac-hacks.org/ticket/13312 and fixed. Please try the latest
of https://trac-hacks.org/svn/accountmanagerplugin/trunk .

trac-hacks.org server shows currently "503 Service Unavailable"
however the page could be confirmed via Google web cache,
https://webcache.googleusercontent.com/search?q=cache:https%3A%2F%2Ftrac-hacks.org%2Fticket%2F13312
.


--
Jun Omae  (大前 潤)

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAEVLMahiE9uUtpDWz9CvuU3JeWGM17RgDMafy3CVmHN-XsaKUw%40mail.gmail.com.
*** CONFIDENTIALITY NOTICE: This email and any attachments from IMCI 
Technologies are for the sole use of the intended recipient and may contain 
material that is proprietary, confidential, privileged or otherwise legally 
protected or restricted under applicable government laws. Any review, 
disclosure, distributing or other use without expressed permission of the 
sender is strictly prohibited. If you are not the intended recipient, please 
contact the sender and delete all copies without reading, printing, or saving. 
***

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB3168C50A0FF75D78E83290C8C2F0A%40MN2PR15MB3168.namprd15.prod.outlook.com.


[Trac] Help with Trac Email Notifications

2023-09-12 Thread 'Patty Cottrill' via Trac Users
I recently configured password recovery.
It is working fine, except that the email containing the temporary password is 
not only being sent to the user, but it also includes the recipients configured 
in the always_cc setting under notifications in trac.ini.
Because of the security nature of the email, I never thought the password reset 
email would include the cc recipients.
Is there anyway to prevent the password reset email from including the 
always_cc recipients?

Below is our environment:
*   Trac  1.2.3
*   Genshi 0.7 (with speedups)
*   mod_python 3.3.1
*   Pygments 2.1
*   pysqlite 2.7.0
*   Python 2.7.12
*   setuptools 20.7.0
*   SQLite 3.11.0
*   jQuery 1.11.3
*   jQuery UI 1.11.4
*   jQuery Timepicker 1.5.5
*   Apache2 2.4.18

Best,
Patty Cottrill


*** CONFIDENTIALITY NOTICE: This email and any attachments from IMCI 
Technologies are for the sole use of the intended recipient and may contain 
material that is proprietary, confidential, privileged or otherwise legally 
protected or restricted under applicable government laws. Any review, 
disclosure, distributing or other use without expressed permission of the 
sender is strictly prohibited. If you are not the intended recipient, please 
contact the sender and delete all copies without reading, printing, or saving. 
***

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB3168701F76D3F618802D3CD2C2F1A%40MN2PR15MB3168.namprd15.prod.outlook.com.


[Trac] Help with Post-receive hook for Git

2023-08-10 Thread 'Patty Cottrill' via Trac Users
I have a question regarding the Git post-receive hook.

Per the Trac Repository Admin guide (link below), the suggested post-receive 
hook is:

#!/bin/sh
tracenv=/path/to/env  # set to your Trac environment's path
repos=# set to your repository's name
while read oldrev newrev refname; do
if [ "$oldrev" =  ]; then
git rev-list --reverse "$newrev" --
else
git rev-list --reverse "$newrev" "^$oldrev" --
fi | xargs trac-admin "$tracenv" changeset added "$repos"
done

https://trac.edgewall.org/wiki/TracRepositoryAdmin

Per the ticket below in Trac Edgewall, the above hook is dangerous and the 
recommended hook is:

#!/bin/sh
tracenv=/path/to/env # change with your Trac environment's path
repos=   # change with your repository's name
while read oldrev newrev refname; do
if expr "$oldrev" : '0*$' >/dev/null; then
branches=`git for-each-ref --format="%(refname)" | grep -vw "$refname"`
git rev-list --reverse "$newrev" --not $branches --
elif expr "$newrev" : '0*$' >/dev/null; then
: # do nothing upon removing a branch
else
git rev-list --reverse "$newrev" "^$oldrev" --
fi | xargs --no-run-if-empty trac-admin "$tracenv" changeset added "$repos"

done

https://trac.edgewall.org/ticket/12763

Can you please tell me which hook I should be using.
I read through the different comments on that ticket, as well as #10730, but I 
really did not see any conclusion.
As I understand it, the danger of the first script is generating many commits 
at once, as well as lots of email notifications.
However, the problem with the 2nd script is it won't work when pushing multiple 
branches.
Please advise.

Below is the environment:
*   Trac  1.2.3
*   Babel 1.3
*   Docutils 0.12
*   Genshi 0.7 (with speedups)
*   GIT 2.7.4
*   mod_python 3.3.1
*   Pygments 2.1
*   pysqlite 2.7.0
*   Python 2.7.12
*   Pytz 2014.10
*   setuptools 20.7.0
*   SQLite 3.11.0
*   jQuery 1.11.3
*   jQuery UI 1.11.4
*   jQuery Timepicker 1.5.5
*   Apache2 2.4.18


Best,
Patty Cottrill


*** CONFIDENTIALITY NOTICE: This email and any attachments from IMCI 
Technologies are for the sole use of the intended recipient and may contain 
material that is proprietary, confidential, privileged or otherwise legally 
protected or restricted under applicable government laws. Any review, 
disclosure, distributing or other use without expressed permission of the 
sender is strictly prohibited. If you are not the intended recipient, please 
contact the sender and delete all copies without reading, printing, or saving. 
***

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB316876BBE1C12D7B5137D4C9C213A%40MN2PR15MB3168.namprd15.prod.outlook.com.


[Trac] Questions about upgrading Trac 1.2.3 to 1.2.6

2023-05-18 Thread Patty Cottrill
I was recently advised to upgrade Trac 1.2.3 to 1.2.6 to address an issue with 
TracQuery using custom fields.
Specifically, I am getting the following error when using TracQuery with custom 
fields:
Trac detected an internal error:
OperationalError: ambiguous column name: id

Below is the environment:
*   Trac  1.2.3
*   Genshi 0.7 (with speedups)
*   mod_python 3.3.1
*   Pygments 2.1
*   pysqlite 2.7.0
*   Python 2.7.12
*   setuptools 20.7.0
*   SQLite 3.11.0
*   jQuery 1.11.3
*   jQuery UI 1.11.4
*   jQuery Timepicker 1.5.5
*   Apache2 2.4.18

I would appreciate some guidance on upgrading to 1.2.6.

When the system was upgraded in 2019 from Trac 1.0.9 to 1.2.3, it was done 
using easy_install --upgrade Trac.
A global directory was setup for the python egg cache.
An export statement was added to /etc/apache2/envvars as per Trac v. 1.2 
deployment instructions:
*   export PKG_RESOURCES_CACHE_ZIP_MANIFESTS=1

Since we used easy_install for the Trac 1.2.3 upgrade, does that mean we have 
to use it again to upgrade to Trac 1.2.6?
Can we instead use pip?
If we can use pip, can we remove the global python egg cache directory as well 
as the export PKG_RESOURCES_CACHE_ZIP_MANIFESTS=1 statement?
It is my understanding that pip does not use eggs, but rather flat packages.


Best,
Patty Cottrill


*** CONFIDENTIALITY NOTICE: This email and any attachments from IMCI 
Technologies are for the sole use of the intended recipient and may contain 
material that is proprietary, confidential, privileged or otherwise legally 
protected or restricted under applicable government laws. Any review, 
disclosure, distributing or other use without expressed permission of the 
sender is strictly prohibited. If you are not the intended recipient, please 
contact the sender and delete all copies without reading, printing, or saving. 
***

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB316845753A6D3AB5507CE6F6C27F9%40MN2PR15MB3168.namprd15.prod.outlook.com.


RE: [Trac] Help with TracQuery

2023-05-17 Thread Patty Cottrill
Thank you.
I was afraid you were going to tell me that.

I was hoping for a workaround in the current version.

Best,
Patty Cottrill

-Original Message-
From: trac-users@googlegroups.com  On Behalf Of 
Jun Omae
Sent: Tuesday, May 16, 2023 8:41 PM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Help with TracQuery

*** CAUTION: This email originated outside of IMCI Technologies. Do NOT 
respond, take any action, click on any links or open any attachments unless you 
recognize the sender and trust the content is safe. ***


On Wed, May 17, 2023 at 9:34 AM Patty Cottrill  wrote:
>
> I need help figuring out why my TracQuery is failing with the following error:
> Trac detected an internal error:
> OperationalError: ambiguous column name: id
>
> This is only occurring when I use a custom field in the query.
> I have two custom fields:
>
> referring_to
>
> No problem using this field in TracQuery
>
> Hostname
>
> Problem using this field in TracQuery
>
>
> These are my steps:
>
> Click on New Custom Query
> Select filters
> Select columns
>
> E.g. Summary, Status, Component, Created, Hostname, Referring to
>
> Click on Update
> The report displays with all the data selected, including the column for 
> Hostname
> Click on Save query
>
> This is when I get the error reported and I am not able to save query
> If I remove col=hostname, I can save successfully
>
>
>
> This is the query that is created when I click on Save query:
>
> query:?owner=pcottrill
> &
> col=id
> &
> col=summary
> &
> col=status
> &
> col=component
> &
> col=time
> &
> col=hostname
> &
> col=referring_to
> &
> order=priority
>
> Below is the environment:
>
> Trac  1.2.3
> Genshi 0.7 (with speedups)
> mod_python 3.3.1
> Pygments 2.1
> pysqlite 2.7.0
> Python 2.7.12
> setuptools 20.7.0
> SQLite 3.11.0
> jQuery 1.11.3
> jQuery UI 1.11.4
> jQuery Timepicker 1.5.5
> Apache2 2.4.18
>
>
> I am able to successfully create SQL queries using both custom fields with 
> the LEFT JOIN statement, but I should also be able to use TracQuery.
> Can you please help me figure out why this particular custom field is causing 
> this error with TracQuery.
> Again, the query itself works, but I am not able to save it for later use, so 
> I have to create a new one every time.
>
>
> Best,
> Patty Cottrill

That has been fixed in Trac 1.2.4 [1].
Please upgrade to Trac 1.2.6 (at least 1.2.4).

[1] https://trac.edgewall.org/ticket/13068

--
Jun Omae  (大前 潤)

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAEVLMag0DaOkWfG7%2BkUyLS5dsvRAO7r1Tt538D2cP%2B4%2BByEnow%40mail.gmail.com.
*** CONFIDENTIALITY NOTICE: This email and any attachments from IMCI 
Technologies are for the sole use of the intended recipient and may contain 
material that is proprietary, confidential, privileged or otherwise legally 
protected or restricted under applicable government laws. Any review, 
disclosure, distributing or other use without expressed permission of the 
sender is strictly prohibited. If you are not the intended recipient, please 
contact the sender and delete all copies without reading, printing, or saving. 
***

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB3168FCFD6EBC7FAD1E35E2DCC27E9%40MN2PR15MB3168.namprd15.prod.outlook.com.


[Trac] Help with TracQuery

2023-05-16 Thread Patty Cottrill
I need help figuring out why my TracQuery is failing with the following error:
Trac detected an internal error:
OperationalError: ambiguous column name: id

This is only occurring when I use a custom field in the query.
I have two custom fields:
*   referring_to
o   No problem using this field in TracQuery
*   Hostname
o   Problem using this field in TracQuery

These are my steps:
1.  Click on New Custom Query
2.  Select filters
3.  Select columns
a.  E.g. Summary, Status, Component, Created, Hostname, Referring to
4.  Click on Update
5.  The report displays with all the data selected, including the column 
for Hostname
6.  Click on Save query
a.  This is when I get the error reported and I am not able to save query
b.  If I remove col=hostname, I can save successfully


This is the query that is created when I click on Save query:

query:?owner=pcottrill
&
col=id
&
col=summary
&
col=status
&
col=component
&
col=time
&
col=hostname
&
col=referring_to
&
order=priority

Below is the environment:
*   Trac  1.2.3
*   Genshi 0.7 (with speedups)
*   mod_python 3.3.1
*   Pygments 2.1
*   pysqlite 2.7.0
*   Python 2.7.12
*   setuptools 20.7.0
*   SQLite 3.11.0
*   jQuery 1.11.3
*   jQuery UI 1.11.4
*   jQuery Timepicker 1.5.5
*   Apache2 2.4.18

I am able to successfully create SQL queries using both custom fields with the 
LEFT JOIN statement, but I should also be able to use TracQuery.
Can you please help me figure out why this particular custom field is causing 
this error with TracQuery.
Again, the query itself works, but I am not able to save it for later use, so I 
have to create a new one every time.


Best,
Patty Cottrill


*** CONFIDENTIALITY NOTICE: This email and any attachments from IMCI 
Technologies are for the sole use of the intended recipient and may contain 
material that is proprietary, confidential, privileged or otherwise legally 
protected or restricted under applicable government laws. Any review, 
disclosure, distributing or other use without expressed permission of the 
sender is strictly prohibited. If you are not the intended recipient, please 
contact the sender and delete all copies without reading, printing, or saving. 
***

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB31688C586583439E2ED21C0AC27E9%40MN2PR15MB3168.namprd15.prod.outlook.com.


RE: [Trac] Re: Unwanted Trac Notifications

2021-03-19 Thread Patty Cottrill
Thank you all for your feedback.
The problem appears to be resolved.

The problem was with a spam filter I had created a while back and forgot about 
it.
An extended Exchange message trace helped me figure this out!!

I had checked every Exchange configuration I could think about, but totally 
forgot about checking the spam filter. ☹


-- Patty

-Original Message-
From: trac-users@googlegroups.com  On Behalf Of 
Cooke, Mark
Sent: Wednesday, March 17, 2021 3:47 AM
To: trac-users@googlegroups.com
Subject: RE: [Trac] Re: Unwanted Trac Notifications

> Original Message-
> From: trac-users@googlegroups.com On Behalf Of Clemens Feige
> Sent: 17 March 2021 07:36
> Subject: Re: [Trac] Re: Unwanted Trac Notifications
>
> > Patty Cottrill wrote on 16.03.2021 at 22:55:
> > Apparently, I spoke too soon.
> > 
> > Changing the email sender from SmtpEmailSender to SendmailEmailSender 
> > did NOT resolve the problem.
> > 
> > I continue to get these notifications.
> > 
> > Yes, I have checked the email headers and my email address IS NOT in the 
> > headers.
> > 
> > I'm totally stumped by this problem.
> > 
> > I now have a case open with our Exchange online support to see if they 
> > can figure out what is happening.
> > 
> > Per the mail log on the Trac server, the message is leaving without my 
> > email address, but the message trace on Exchange shows my email address 
> > on the message, even though it is not in the message headers.
> > 
> > Thanks for the feedback.
> > 
> > -- Patty
>
> Hello Patty
>
> As an idea to isolate the problem, have you tried to manually send test 
> e-mails (without TRAC) to the same mail server?
>
> You would use any other e-mail client (preferably on the same machine 
> where TRAC is running) and send test e-mails with same sender address, 
> same recipient address, same port number, same credentials, same mail 
> server etc. like TRAC.
>
> If this experiment should trigger unwanted e-mail copies then it would 
> prove that this is not an issue with TRAC.
>
> Clemens

Hi Patty,

I have only skimmed the threads so sorry if you have already discounted these 
but I had a few thoughts:

- we had a similar issue a while back we traced to the trac.ini email settings 
e.g. `smtp_always_bcc`
https://trac.edgewall.org/wiki/TracIni#notification-smtp_always_bcc-option

- I wonder if your address is being used as the "from" address and therefore 
the emails are appearing in your outbox?

- perhaps you are the default address on your email server and one of the other 
addresses is invalid?

Cheers,

~ Mark C

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/AM7PR05MB6851B797A10DBADA3AE82920BE6A9%40AM7PR05MB6851.eurprd05.prod.outlook.com.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB31682D6945C1F645FD794DBCC2689%40MN2PR15MB3168.namprd15.prod.outlook.com.


RE: [Trac] Re: Unwanted Trac Notifications

2021-03-16 Thread Patty Cottrill
Apparently, I spoke too soon.
Changing the email sender from SmtpEmailSender to SendmailEmailSender did NOT 
resolve the problem.
I continue to get these notifications.

Yes, I have checked the email headers and my email address IS NOT in the 
headers.

I’m totally stumped by this problem.
I now have a case open with our Exchange online support to see if they can 
figure out what is happening.
Per the mail log on the Trac server, the message is leaving without my email 
address, but the message trace on Exchange shows my email address on the 
message, even though it is not in the message headers.

Thanks for the feedback.


-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
RjOllos
Sent: Tuesday, March 16, 2021 5:40 PM
To: Trac Users 
Subject: Re: [Trac] Re: Unwanted Trac Notifications


On Monday, March 15, 2021 at 6:04:02 PM UTC-7 pcottrill wrote:
Thanks for the feedback.

I have already checked the forwarding rules and connector settings on Exchange 
online; there is nothing there that would explain this behavior.
I have confirmed the email client is not an issue either.

I did change the email sender on the problem project from SmtpEmailSender to 
SendmailEmailSender.
Someone opened a new ticket after the change and I did not get a notification, 
so hopefully that means the problem is resolved.

What I don’t understand is why changing the sender would make a difference.
Wouldn’t both senders be using the same configuration file for sending emails?

I also have a question about the mail.py file; does each project have it’s own 
mail.py file?

-- Patty

If you are referring to mail.py in the Trac source, you likely only have a 
single Trac installation that is shared for your projects.

Did you inspect the email headers, as Peter suggested, to see if it contains 
your email address?


--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/0bf6795b-ff0d-4805-967a-45cd7912dcdbn%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB31680AAE067DAB7E6A20CA7AC26B9%40MN2PR15MB3168.namprd15.prod.outlook.com.


RE: [Trac] Re: Unwanted Trac Notifications

2021-03-15 Thread Patty Cottrill
Thanks for the feedback.

I have already checked the forwarding rules and connector settings on Exchange 
online; there is nothing there that would explain this behavior.
I have confirmed the email client is not an issue either.

I did change the email sender on the problem project from SmtpEmailSender to 
SendmailEmailSender.
Someone opened a new ticket after the change and I did not get a notification, 
so hopefully that means the problem is resolved.

What I don’t understand is why changing the sender would make a difference.
Wouldn’t both senders be using the same configuration file for sending emails?

I also have a question about the mail.py file; does each project have it’s own 
mail.py file?

-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
Peter Suter
Sent: Saturday, March 13, 2021 6:26 AM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Re: Unwanted Trac Notifications


SmtpEmailSender connects directly to the configured SMTP server. According to 
your logs that is "Sending notification through SMTP at 
imci-net.mail.protection.outlook.com:25<http://imci-net.mail.protection.outlook.com:25>".
 There is no command line.
https://trac.edgewall.org/browser/tags/trac-1.2.3/trac/notification/mail.py?marks=471,476-477,496-497,522#L471

You could switch to SendmailEmailSender to use sendmail instead. The command 
line will then be logged.
https://trac.edgewall.org/browser/tags/trac-1.2.3/trac/notification/mail.py?marks=539,557#L539

But if the email headers and trac.ini and the Trac log do not contain your 
email address anywhere at all, Trac is likely not responsible.
It could be your mail client, your Exchange Online Protection, mail server, 
forward rules, ...
https://docs.microsoft.com/en-us/exchange/troubleshoot/outlook-issues/emails-sent-to-wrong-account-if-has-many-accounts
https://docs.microsoft.com/en-us/exchange/monitoring/trace-an-email-message/run-a-message-trace-and-view-results
On 13/03/2021 00:19, Patty Cottrill wrote:

Thanks for getting back to me.

I have reviewed the sendmail configuration files and there is nothing that 
would explain adding my email address to the notifications.
When I use sendmail outside of trac, I do not have this problem; emails are 
only sent to the email addresses in the recipient fields (To, cc).
The other project on this same ubuntu server also does not have this problem; 
emails are only sent to the email addresses in the recipient fields (To, cc).

I have also checked our Exchange online configuration; again nothing to explain 
my email address being added.
The problem seems to be with this one specific project only.
I don’t know where else to look in the configuration files for this project.

I’m at a loss and getting frustrated with all these emails from Trac tickets 
for which I have nothing to do.

Is there anyway to see the actual command that trac is using to send emails?
Both the syslog and mail log show the mail commands for emails going outside of 
trac, but not for the emails from within trac.

The email sender in the trac.ini is set to SmtpEmailSender; if not using 
sendmail, what else would trac be using?

Below are the mail related packages installed on the ubuntu server:

dpkg -l | grep smtp
ii  libnet-smtp-ssl-perl  1.03-1
 all  Perl module providing SSL support to Net::SMTP

dpkg -l | grep mail
ii  bsd-mailx 8.1.2-0.20160123cvs-2 
 amd64simple mail user agent
ii  libcompfaceg1 1:1.5.2-5 
 amd64Compress/decompress images for mailheaders, libc6 runtime
ii  libemail-valid-perl   1.198-1   
 all  Perl module for checking the validity of Internet email 
addresses
ii  libmailtools-perl 2.13-1
 all  Manipulate email in perl programs
ii  mime-support  3.59ubuntu1   
 all  MIME files 'mime.types' & 'mailcap', and support programs
ii  procmail  3.22-25ubuntu0.16.04.1
 amd64Versatile e-mail processor
ii  sendmail  8.15.2-3  
 all  powerful, efficient, and scalable Mail Transport Agent 
(metapackage)
ii  sendmail-base 8.15.2-3  
 all  powerful, efficient, and scalable Mail Transport Agent (arch 
independent files)
ii  sendmail-bin  8.15.2-3  
 amd64powerful, efficient, and scalable Mail Transport Agent
ii  sendmail-cf   8.15.2-3  
 all  powerful, efficient, and scalable Mail Transport Agent 
(config macros)
ii  sylpheed

RE: [Trac] Re: Unwanted Trac Notifications

2021-03-12 Thread Patty Cottrill
Thanks for getting back to me.

I have reviewed the sendmail configuration files and there is nothing that 
would explain adding my email address to the notifications.
When I use sendmail outside of trac, I do not have this problem; emails are 
only sent to the email addresses in the recipient fields (To, cc).
The other project on this same ubuntu server also does not have this problem; 
emails are only sent to the email addresses in the recipient fields (To, cc).

I have also checked our Exchange online configuration; again nothing to explain 
my email address being added.
The problem seems to be with this one specific project only.
I don’t know where else to look in the configuration files for this project.

I’m at a loss and getting frustrated with all these emails from Trac tickets 
for which I have nothing to do.

Is there anyway to see the actual command that trac is using to send emails?
Both the syslog and mail log show the mail commands for emails going outside of 
trac, but not for the emails from within trac.

The email sender in the trac.ini is set to SmtpEmailSender; if not using 
sendmail, what else would trac be using?

Below are the mail related packages installed on the ubuntu server:

dpkg -l | grep smtp
ii  libnet-smtp-ssl-perl  1.03-1
 all  Perl module providing SSL support to Net::SMTP

dpkg -l | grep mail
ii  bsd-mailx 8.1.2-0.20160123cvs-2 
 amd64simple mail user agent
ii  libcompfaceg1 1:1.5.2-5 
 amd64Compress/decompress images for mailheaders, libc6 runtime
ii  libemail-valid-perl   1.198-1   
 all  Perl module for checking the validity of Internet email 
addresses
ii  libmailtools-perl 2.13-1
 all  Manipulate email in perl programs
ii  mime-support  3.59ubuntu1   
 all  MIME files 'mime.types' & 'mailcap', and support programs
ii  procmail  3.22-25ubuntu0.16.04.1
 amd64Versatile e-mail processor
ii  sendmail  8.15.2-3  
 all  powerful, efficient, and scalable Mail Transport Agent 
(metapackage)
ii  sendmail-base 8.15.2-3  
 all  powerful, efficient, and scalable Mail Transport Agent (arch 
independent files)
ii  sendmail-bin  8.15.2-3  
 amd64powerful, efficient, and scalable Mail Transport Agent
ii  sendmail-cf   8.15.2-3  
 all  powerful, efficient, and scalable Mail Transport Agent 
(config macros)
ii  sylpheed  3.5.0~rc2-1ubuntu1
 amd64Light weight e-mail client with GTK+
ii  sylpheed-doc  20140827-1
 all  Light weight e-mail client with GTK+ (documentation)

-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
RjOllos
Sent: Thursday, March 11, 2021 3:16 PM
To: Trac Users 
Subject: Re: [Trac] Re: Unwanted Trac Notifications


On Wednesday, March 10, 2021 at 10:42:35 AM UTC-8 pcottrill wrote:
We are using Trac 1.2.3.

Here is the screenshot of Preferences/Notifications.
As I mentioned, I’m not owner, reporter, previous updater or updater on any of 
these tickets, in fact I have never touched these tickets.

[cid:image001.png@01D71769.EA272D80]

Below is from the trac.log of the most recent notification on ticket #9219:

2021-03-10 12:46:26,816 Trac[perm] DEBUG: DefaultPermissionPolicy allows mfxxx 
performing TICKET_VIEW on 
2021-03-10 12:46:26,827 Trac[main] DEBUG: Negotiated locale: None -> en_US
2021-03-10 12:46:26,895 Trac[perm] DEBUG: DefaultPermissionPolicy allows mfxxx 
performing TICKET_MODIFY on 
2021-03-10 12:46:26,896 Trac[perm] DEBUG: DefaultPermissionPolicy allows mfxxx 
performing TICKET_CHGPROP on 
2021-03-10 12:46:26,896 Trac[perm] DEBUG: DefaultPermissionPolicy allows mfxxx  
performing TICKET_APPEND on 
2021-03-10 12:46:26,906 Trac[api] DEBUG: Adding (None [0]) for 'always' on rule 
(AlwaysEmailSubscriber) for (email)
2021-03-10 12:46:26,906 Trac[api] DEBUG: Adding (None [0]) for 'always' on rule 
(AlwaysEmailSubscriber) for (email)
2021-03-10 12:46:26,906 Trac[api] DEBUG: Adding (iyxxx [1]) for 'always' on 
rule (TicketOwnerSubscriber) for (email)
2021-03-10 12:46:26,907 Trac[api] DEBUG: Adding (ltxxx [1]) for 'always' on 
rule (TicketReporterSubscriber) for (email)
2021-03-10 12:46:26,907 Trac[api] DEBUG: Adding (mfxxx [1]) for 'always' on 
rule (TicketOwnerSubscriber) for (email)
2021-03-10 12:46:26,908 Trac[mail] DEBUG: EmailDistributor has found the 
following 

RE: [Trac] Re: Unwanted Trac Notifications

2021-03-10 Thread Patty Cottrill
We are using Trac 1.2.3.

Here is the screenshot of Preferences/Notifications.
As I mentioned, I’m not owner, reporter, previous updater or updater on any of 
these tickets, in fact I have never touched these tickets.

[cid:image001.png@01D715B0.E49311F0]

Below is from the trac.log of the most recent notification on ticket #9219:

2021-03-10 12:46:26,816 Trac[perm] DEBUG: DefaultPermissionPolicy allows mfxxx 
performing TICKET_VIEW on 
2021-03-10 12:46:26,827 Trac[main] DEBUG: Negotiated locale: None -> en_US
2021-03-10 12:46:26,895 Trac[perm] DEBUG: DefaultPermissionPolicy allows mfxxx 
performing TICKET_MODIFY on 
2021-03-10 12:46:26,896 Trac[perm] DEBUG: DefaultPermissionPolicy allows mfxxx 
performing TICKET_CHGPROP on 
2021-03-10 12:46:26,896 Trac[perm] DEBUG: DefaultPermissionPolicy allows mfxxx  
performing TICKET_APPEND on 
2021-03-10 12:46:26,906 Trac[api] DEBUG: Adding (None [0]) for 'always' on rule 
(AlwaysEmailSubscriber) for (email)
2021-03-10 12:46:26,906 Trac[api] DEBUG: Adding (None [0]) for 'always' on rule 
(AlwaysEmailSubscriber) for (email)
2021-03-10 12:46:26,906 Trac[api] DEBUG: Adding (iyxxx [1]) for 'always' on 
rule (TicketOwnerSubscriber) for (email)
2021-03-10 12:46:26,907 Trac[api] DEBUG: Adding (ltxxx [1]) for 'always' on 
rule (TicketReporterSubscriber) for (email)
2021-03-10 12:46:26,907 Trac[api] DEBUG: Adding (mfxxx [1]) for 'always' on 
rule (TicketOwnerSubscriber) for (email)
2021-03-10 12:46:26,908 Trac[mail] DEBUG: EmailDistributor has found the 
following formats capable of handling 'email' of 'ticket': text/plain
2021-03-10 12:46:26,908 Trac[mail] DEBUG: EmailDistributor found the address 
'lt...@imci.net' for 'ltxxx [1]' via SessionEmailResolver
2021-03-10 12:46:26,946 Trac[mail] DEBUG: EmailDistributor is sending event as 
'text/plain' to: op...@imci.net, 
lt...@imci.net, op...@imci.net, 
gw...@rxxx.com, m...@imci.net
2021-03-10 12:46:26,954 Trac[mail] INFO: Sending notification through SMTP at 
imci-net.mail.protection.outlook.com:25 to ['op...@imci.net', 'lt...@imci.net', 
'op...@imci.net', 'gw...@rxxx.com', 'mf...@imci.net']
2021-03-10 12:46:28,509 Trac[main] DEBUG: Dispatching 
2021-03-10 12:46:28,510 Trac[main] DEBUG: Chosen handler is 

As you can see from the log, my email address is not listed anywhere.
The op email addresses are configured in the always cc setting in trac.ini.
Lt is the reporter; iy (gw...@rxxx.com) is the owner and 
mf is the updater.

I also checked /var/log/mail.log; nothing in there either.
In fact the mail log does not log the trac email notifications.


-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
RjOllos
Sent: Wednesday, March 10, 2021 12:49 PM
To: Trac Users 
Subject: [Trac] Re: Unwanted Trac Notifications


On Wednesday, March 10, 2021 at 9:46:52 AM UTC-8 pcottrill wrote:
Hello,

I have been experiencing something very strange.

I’m getting email notifications on tickets that I should not be getting.

Below are the specifics:

  *   I am not:

  *   Owner
  *   Reporter
  *   Updater (current or previous)

  *   My email address is not in any recipient field:

  *   To
  *   CC
  *   BCC

  *   Trac.ini does not contain my email address in Always notify
  *   The email headers in these notifications do not contain my email address

I have debugging turned on and I can’t find anything in the logs.
What could be generating these emails?
Where else should I look?

-- Patty

Are you using Trac 1.2 or later? If yes, please send a screen capture of 
/prefs/notification

Ryan
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/f6c6141c-3911-47d3-8ab8-da7f47648d3dn%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB31689DB322F549DED11DD3E7C2919%40MN2PR15MB3168.namprd15.prod.outlook.com.


[Trac] Unwanted Trac Notifications

2021-03-10 Thread Patty Cottrill
Hello,

I have been experiencing something very strange.

I'm getting email notifications on tickets that I should not be getting.

Below are the specifics:
*   I am not:
o   Owner
o   Reporter
o   Updater (current or previous)
*   My email address is not in any recipient field:
o   To
o   CC
o   BCC
*   Trac.ini does not contain my email address in Always notify
*   The email headers in these notifications do not contain my email address

I have debugging turned on and I can't find anything in the logs.
What could be generating these emails?
Where else should I look?

-- Patty



-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB31684D16EF20E99B0EBD820CC2919%40MN2PR15MB3168.namprd15.prod.outlook.com.


RE: [Trac] Problems upgrading Trac 1.2 to 1.4

2020-12-14 Thread Patty Cottrill
Ok, here is my update.

I installed the trunk version (0.6.dev) and I’m making progress, but still have 
some issues.

All the components are back when using the trunk version.

When enabling the LoginModule component however, the login page generates the 
following error, even though the Trac LoginModule is disabled:

Internal Server Error

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

Please contact the server administrator at webmaster@localhost to inform them 
of the time this error occurred, and the actions you performed just before this 
error.

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

The only way I can login is to disable the Account Manager LoginModule and 
re-enable the Trac LoginModule.
I still need to review the logs to see what is causing the error in the login 
page; will update once I’ve had a chance to review.
I don’t think it is a configuration issue because the login worked before the 
upgrade to Trac 1.4.2.

The other weird thing, which I don’t believe to be Account Manager related is 
that when I run the trac-admin upgrade and trac-admin wiki upgrade on existing 
projects, the home page heading still says “Welcome to Trac 1.2”.
In the past, after running the trac-admin upgrade, this was updated to reflect 
the new version.
I never customized that heading in the existing projects, so I don’t understand 
why it is not updating.
In fact, the home page itself was never customized; it is the original home 
page.

The project itself does upgrade, as per the About Trac page, its just that 
heading in the home page that does not get updated to reflect the new version.
Worst case scenario, I will have to manually update the home pages of all our 
projects; thankfully, it is not a lot.
Any ideas why I might be experiencing this and has anyone else experienced this 
in their upgrades?

Thanks everyone for your help!

-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
Ryan Ollos
Sent: Friday, December 11, 2020 12:16 PM
To: Trac Users 
Subject: Re: [Trac] Problems upgrading Trac 1.2 to 1.4



On Fri, Dec 11, 2020 at 9:10 AM Patty Cottrill 
mailto:pcottr...@imci.net>> wrote:
Thank you for the quick response.

I did try using the SVN version, but I used pip install 
svn+https://trac-hacks.org/svn/accountmanagerplugin/tags/acct_mgr-0.5.0, as per 
the instructions on the plugin page.
I still get the same results.

Install from trunk, like Jeff mentioned:
pip install svn+https://trac-hacks.org/svn/accountmanagerplugin/trunk

The plugin page needs to be updated.


Ryan
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com<mailto:trac-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CA%2BBGpn_gqvJaefOVL4%2BhbqPJTCNzjUF132pfgpOowmWfo3FQxg%40mail.gmail.com<https://groups.google.com/d/msgid/trac-users/CA%2BBGpn_gqvJaefOVL4%2BhbqPJTCNzjUF132pfgpOowmWfo3FQxg%40mail.gmail.com?utm_medium=email_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB316835097C810DC199062EE9C2C70%40MN2PR15MB3168.namprd15.prod.outlook.com.


RE: [Trac] Problems upgrading Trac 1.2 to 1.4

2020-12-11 Thread Patty Cottrill
Thank you for the quick response.

I did try using the SVN version, but I used pip install 
svn+https://trac-hacks.org/svn/accountmanagerplugin/tags/acct_mgr-0.5.0, as per 
the instructions on the plugin page.
I still get the same results.

What is also strange is that not all the TracAccountManager components are 
listed in Manage Plugins web interface for the new project I created.
For example, the following components are not listed:
acct_mgr.admin.*
acct_mgr.macros.*
acct_mgr.notification.*
acct_mgr.register.*
acct_mgr.web_ui.*

I even tried adding those components to the trac.ini file, but that just broke 
the new project.


-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
Jeff McKenna
Sent: Friday, December 11, 2020 11:05 AM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Problems upgrading Trac 1.2 to 1.4

Hi Patty,

I had just went through upgrading 1.2.5 to 1.4.2 and for me the key was to use 
the SVN version of the AccountManager plugin:

 pip install svn+https://trac-hacks.org/svn/accountmanagerplugin/trunk

-jeff


---
Jeff McKenna
GatewayGeo: MapServer Consulting and Training Services
co-founder of FOSS4G
http://gatewaygeo.com/





On Fri, Dec 11, 2020 at 11:54 AM Patty Cottrill 
mailto:pcottr...@imci.net>> wrote:

I’m in the process of planning a Trac upgrade to 1.4.

For right now, I’m testing the upgrade on a test vm.



Below is the environment before upgrade:

Trac  1.2.2

Genshi 0.7 (with speedups)

mod_python 3.3.1

Pygments 2.1

pysqlite 2.7.0

Python 2.7.15

setuptools 39.0.1

SQLite 3.11.0

jQuery 1.11.3

jQuery UI 1.11.4

jQuery Timepicker 1.5.5

Apache2 2.4.18



We do not have any custom templates.



This is what I’ve done so far:

  1.  Upgraded to mod_python 3.5.0
  2.  Upgraded Trac from 1.2.2 to 1.4.2 using pip
  3.  Upgraded projects



After the upgrade, the projects do not have the following:

  *   Login
  *   Admin tab
  *   About Trac tab
  *   Home page still shows Trac 1.2



I can create a new project and it works as expected, but when I enable Trac 
Account Manager, I lose the login, as well as the admin and about trac tabs.



I have tried upgrading account manager to the latest version, but same results.

Is there a compatibility issue with Trac 1.4 and account manager?

What is causing account manager to break my Trac projects?





Thanks,

Patty
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com<mailto:trac-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB316863EA10E015BC56E8F572C2CA0%40MN2PR15MB3168.namprd15.prod.outlook.com<https://groups.google.com/d/msgid/trac-users/MN2PR15MB316863EA10E015BC56E8F572C2CA0%40MN2PR15MB3168.namprd15.prod.outlook.com?utm_medium=email_source=footer>.
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com<mailto:trac-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAPGmwqBM6En4Yf4V-GC5AtwZxNno3dBgXpTjjfBoS8O3pR5rUA%40mail.gmail.com<https://groups.google.com/d/msgid/trac-users/CAPGmwqBM6En4Yf4V-GC5AtwZxNno3dBgXpTjjfBoS8O3pR5rUA%40mail.gmail.com?utm_medium=email_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB3168D9C475B8C769A0D2AE7EC2CA0%40MN2PR15MB3168.namprd15.prod.outlook.com.


[Trac] Problems upgrading Trac 1.2 to 1.4

2020-12-11 Thread Patty Cottrill
I'm in the process of planning a Trac upgrade to 1.4.

For right now, I'm testing the upgrade on a test vm.



Below is the environment before upgrade:

Trac  1.2.2

Genshi 0.7 (with speedups)

mod_python 3.3.1

Pygments 2.1

pysqlite 2.7.0

Python 2.7.15

setuptools 39.0.1

SQLite 3.11.0

jQuery 1.11.3

jQuery UI 1.11.4

jQuery Timepicker 1.5.5

Apache2 2.4.18



We do not have any custom templates.



This is what I've done so far:

  1.  Upgraded to mod_python 3.5.0
  2.  Upgraded Trac from 1.2.2 to 1.4.2 using pip
  3.  Upgraded projects



After the upgrade, the projects do not have the following:

  *   Login
  *   Admin tab
  *   About Trac tab
  *   Home page still shows Trac 1.2



I can create a new project and it works as expected, but when I enable Trac 
Account Manager, I lose the login, as well as the admin and about trac tabs.



I have tried upgrading account manager to the latest version, but same results.

Is there a compatibility issue with Trac 1.4 and account manager?

What is causing account manager to break my Trac projects?





Thanks,

Patty

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB316863EA10E015BC56E8F572C2CA0%40MN2PR15MB3168.namprd15.prod.outlook.com.


[Trac] Question about Trac XML_RPC plugin

2019-05-23 Thread Patty Cottrill
Hi All,

I recently installed the Trac Test Manager plugin and now we are getting the 
following error:

Error importing optional Trac XML-RPC Plugin. No XML-RPC remote interface will 
be available.
If you require XML-RPC access to the Test Manager, download and install it from 
http://trac-hacks.org/wiki/XmlRpcPlugin.

I get this error when I run trac-admin commands and when pushing to Git 
repositories.

Do I really need to add this plugin to our project?
If not, can I suppress this error message?

Here is the link for the plugin I installed:
https://trac-hacks.org/wiki/TestManagerForTracPlugin


Thanks,
-- Patty



-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/BN8PR15MB34763DA3FE22309F466E2DE7C2010%40BN8PR15MB3476.namprd15.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


RE: [Trac] Help with plugins

2019-04-23 Thread Patty Cottrill
Hi Ryan,

I gave each project a PythonInterpreter with a unique name.
This seems to be working; each project is now pointing to its own plugin 
directory.

-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
RjOllos
Sent: Tuesday, April 23, 2019 2:50 PM
To: Trac Users 
Subject: Re: [Trac] Help with plugins



On Monday, April 8, 2019 at 8:53:37 AM UTC-7, RjOllos wrote:


On Monday, April 8, 2019 at 11:04:23 AM UTC-4, pcottrill wrote:
Ryan,

Thanks for your response.

We actually do us a virtualhost configuration, with each project having its own 
location.
We also have an alias for htdocs/common and htdoc/shared, but plugins are not 
included in that configuration.

Below is an example of the virtualhost configuration.
I was not sure about the TracEnvParentDir configuration; would that make a 
difference in what we are experiencing?


   SetHandler mod_python
   PythonInterpreter main_interpreter
   PythonHandler trac.web.modpython_frontend
   PythonOption TracEnv /home/trac/project_a
   PythonOption TracEnvParentDir /home/trac
   PythonOption TracUriRoot /project_a
   PythonOption TracLocale en_US.UTF8
   PythonOption PYTHON_EGG_CACHE /home/trac/python_egg_cache
   Order allow,deny
   Allow from all


  AuthType Basic
  AuthName "New Trac Project"
  AuthUserFile /home/trac.htpasswd
 # Require valid-user


-- Patty

You'll want to remove "PythonOption TracEnvParentDir /home/trac" for a 
configuration block that just serves a single project. Setting TracEnv is 
sufficient. I don't think that change will fix your plugin loading issue, but 
give it a check after making that change just in case.

I don't have much experience with mod_python, so maybe someone else will chime 
in here.

What is your mod_python version? This option looks applicable to your situation:
http://modpython.org/live/current/doc-html/directives.html#pythoninterpperdirective
It looks like that option should be specified at server config scope, i.e. 
outside the Location directive, and then remove "PythonInterpreter 
main_interpreter" within your Location directives.

Or, it might be sufficient to just give a unique name to each PythonInterpreter 
directive. Such as:

PythonInterpreter project_a

See also: 
http://modpython.org/live/current/doc-html/pythonapi.html#pyapi-interps

I don't know the history behind using "PythonInterpreter main_interpreter" in 
the configuration samples on the ModPython page, and whether that is entirely 
due to the issue described here:
https://trac.edgewall.org/wiki/TracModPython#Subversionissues

After making any changes to the python interpreter configuration, we'll need to 
be on the lookout for any undesirable behavior.

- Ryan

Did you get it working? If so, which change did you make?

- Ryan
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


RE: [Trac] Re: Help with Trac commit_updater.py

2019-04-22 Thread Patty Cottrill
Hi Ryan,

Thanks for your response.

I tried the following:


  *   Copied /usr/lib/python2.7/dist-packages/tracopt/ticket/commit_updater.py 
to the plugins directory of project env
  *   Added ticket['rev_fixed'] = changeset below the line indicated in your 
email (ticket = Ticket(self.env, tkt_id))
 *   rev_fixed is the custom text field
  *   Restarted apache service

I also tried:

  *   Adding the custom line directly to 
/usr/lib/python2.7/dist-packages/tracopt/ticket/commit_updater.py
  *   Restarted apache service

Neither was successful in populating the custom field with the revision number.
What did I do wrong?

Below is the customization on the trac-post-commit-hook on the Trac 0.12 
server: (third line under def _cmdClose(self, ticket))

def _cmdClose(self, ticket):
ticket['status'] = 'closed'
ticket['resolution'] = 'fixed'
ticket['rev_fixed'] = self.rev



-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
RjOllos
Sent: Friday, April 19, 2019 5:58 PM
To: Trac Users 
Subject: [Trac] Re: Help with Trac commit_updater.py



On Friday, April 19, 2019 at 2:49:44 PM UTC-7, pcottrill wrote:
Hi Guys,

I need your help again.

We have Trac running on two different servers.

Original server:
Trac 0.12 with SVN
Uses trac-post-commit-hook to update tickets from SVN commits.

New server:
Trac 1.2.3 with Git
Uses post-receive hook to update tickets from Git commits (pushes).

Can you please tell me if there is a way to customize the commit_updater.py 
script to populate a custom field in Trac tickets.
I want to populate this field with the Git revision number.

I was able to customize the trac-post-commit-hook to accomplish this, but I 
can’t figure out how to do the same in the commit_updater.py script.

Thanks,
-- Patty

I think you could simply add this line:
ticket['your_custom_field_name'] = changeset

below the highlighted line:
https://trac.edgewall.org/browser/tags/trac-1.2.3/tracopt/ticket/commit_updater.py?marks=226#L217

You'll need to copy commit_updater.py to your plugins directory, or you could 
make a new file and inherit from CommitTicketUpdater.

- Ryan
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Help with Trac commit_updater.py

2019-04-19 Thread Patty Cottrill
Hi Guys,

I need your help again.

We have Trac running on two different servers.

Original server:
Trac 0.12 with SVN
Uses trac-post-commit-hook to update tickets from SVN commits.

New server:
Trac 1.2.3 with Git
Uses post-receive hook to update tickets from Git commits (pushes).

Can you please tell me if there is a way to customize the commit_updater.py 
script to populate a custom field in Trac tickets.
I want to populate this field with the Git revision number.

I was able to customize the trac-post-commit-hook to accomplish this, but I 
can't figure out how to do the same in the commit_updater.py script.

Thanks,
-- Patty



-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


RE: [Trac] Help with plugins

2019-04-08 Thread Patty Cottrill
Ryan,

Thanks for your response.

We actually do us a virtualhost configuration, with each project having its own 
location.
We also have an alias for htdocs/common and htdoc/shared, but plugins are not 
included in that configuration.

Below is an example of the virtualhost configuration.
I was not sure about the TracEnvParentDir configuration; would that make a 
difference in what we are experiencing?


   SetHandler mod_python
   PythonInterpreter main_interpreter
   PythonHandler trac.web.modpython_frontend
   PythonOption TracEnv /home/trac/project_a
   PythonOption TracEnvParentDir /home/trac
   PythonOption TracUriRoot /project_a
   PythonOption TracLocale en_US.UTF8
   PythonOption PYTHON_EGG_CACHE /home/trac/python_egg_cache
   Order allow,deny
   Allow from all


  AuthType Basic
  AuthName "New Trac Project"
  AuthUserFile /home/trac.htpasswd
 # Require valid-user


-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
RjOllos
Sent: Saturday, April 6, 2019 7:14 AM
To: Trac Users 
Subject: Re: [Trac] Help with plugins



On Friday, April 5, 2019 at 5:16:41 PM UTC-4, pcottrill wrote:
Thanks for the quick reply.
We are actually using apache with mod_python.
Does that make a difference in your response?

-- Patty

The idea is the same. If you have all Trac sites running under same Python 
interpreter instance, plugins will be shared. I think you could use either a 
different VirtualHost directive for each environment, or maybe even just a 
different Location directive:
https://trac.edgewall.org/wiki/TracModPython#VirtualHostConfiguration
I would try to add a different configuration section for each Trac site, i.e. 
 ...

- Ryan
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


RE: [Trac] Help with plugins

2019-04-05 Thread Patty Cottrill
Thanks for the quick reply.
We are actually using apache with mod_python.
Does that make a difference in your response?

-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
Ryan Ollos
Sent: Friday, April 5, 2019 5:00 PM
To: Trac Users 
Subject: Re: [Trac] Help with plugins



On Fri, Apr 5, 2019 at 4:22 PM Patty Cottrill 
mailto:pcottr...@imci.net>> wrote:
Can someone please explain this strange behavior with plugins.

We are running Trac 1.2.3 on Ubuntu 16.04.

I installed the account manager plugin in a single project by placing the .egg 
in the project’s plugin directory as per instructions below For a single 
project:
https://trac.edgewall.org/wiki/TracPlugins

Let’s say I have the following project:
Project_a – placed TracAccountManager-0.5.0-py2.7.egg in this project’s plugin 
directory only
Project_b
Project_c

I expected this plugin to only be available to Project_a, but it is being 
inherited by all other projects.

The “About Trac” page of the other projects lists the plugins I installed for 
all projects under /usr/local/lib/python2.7/dist-packages, which I expect to 
see.
What seems weird though, is that it also lists the plugin I installed for 
Project_a (/home/trac/Project_a/plugins/ TracAccountManager-0.5.0-py2.7.egg)
The plugin is disabled, but it does allow me to enable it.

Did I do something wrong?
I do not use a global trac.ini, nor do I configure the other projects to 
inherit from /home/trac/Project_a/plugins.

Please advise.

Thanks
-- Patty

Hi Patty, You did nothing wrong. The plugins that are loaded in the process 
will be available for all Trac projects running under the same instance of 
tracd. There are more details here:
https://trac.edgewall.org/wiki/TracPlugins#Isthewrongversionofthepluginloading

If you wish to isolate the projects and have different plugins for each, you'll 
need to run multiple instances of tracd, one for each Trac project.

- Ryan
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com<mailto:trac-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
trac-users@googlegroups.com<mailto:trac-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Help with plugins

2019-04-05 Thread Patty Cottrill
Can someone please explain this strange behavior with plugins.

We are running Trac 1.2.3 on Ubuntu 16.04.

I installed the account manager plugin in a single project by placing the .egg 
in the project's plugin directory as per instructions below For a single 
project:
https://trac.edgewall.org/wiki/TracPlugins

Let's say I have the following project:
Project_a - placed TracAccountManager-0.5.0-py2.7.egg in this project's plugin 
directory only
Project_b
Project_c

I expected this plugin to only be available to Project_a, but it is being 
inherited by all other projects.

The "About Trac" page of the other projects lists the plugins I installed for 
all projects under /usr/local/lib/python2.7/dist-packages, which I expect to 
see.
What seems weird though, is that it also lists the plugin I installed for 
Project_a (/home/trac/Project_a/plugins/ TracAccountManager-0.5.0-py2.7.egg)
The plugin is disabled, but it does allow me to enable it.

Did I do something wrong?
I do not use a global trac.ini, nor do I configure the other projects to 
inherit from  /home/trac/Project_a/plugins.

Please advise.

Thanks
-- Patty



-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


RE: [Trac] Trac 1.2.3 Email Notification Issue -- Code for displaying To field

2019-03-05 Thread Patty Cottrill
Peter,

Haha!!!
Apparently, it was easier than I thought. (I feel like a Geico commercial.)
I just created a .py file using the code you provided me and placed it in the 
environment’s plugin directory and Voilà it works!!!

Thanks so much.


-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
Peter Suter
Sent: Tuesday, March 5, 2019 2:28 PM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Trac 1.2.3 Email Notification Issue -- Code for displaying 
To field


Hi Patty,

Could you elaborate a bit on why and when the current behavior is a problem for 
you?

And what exactly would have to be different? Is it just this?

from trac.core import Component, implements

from trac.notification.api import IEmailDecorator

from trac.notification.mail import set_header



class ToFieldEmailDecorator(Component):



implements(IEmailDecorator)



# IEmailDecorator methods



def decorate_message(self, event, message, charset):

set_header(message, 'To', message['Cc'], charset)



Many people seem to have all sorts of different special requirements for 
notifications, so such plugins are the only viable way how such individual 
tweaks can reasonably be supported.

Cheers,
Peter
On 05.03.2019 20:11, Patty Cottrill wrote:
Hi Peter,

Thank you for your response.
As I understand it, this is normal behavior in this new version of Trac.
The only way to change the behavior is to create a plugin; you cannot configure 
it in trac.ini.

This is unfortunate because I really don’t want to hassle with creating a 
plugin.
Really would be nice to be able to configure it in trac.ini, like it was in 
previous versions of Trac.

-- Patty

From: trac-users@googlegroups.com<mailto:trac-users@googlegroups.com> 
<mailto:trac-users@googlegroups.com> On Behalf Of 
Peter Suter
Sent: Tuesday, March 5, 2019 1:49 PM
To: trac-users@googlegroups.com<mailto:trac-users@googlegroups.com>
Subject: Re: [Trac] Trac 1.2.3 Email Notification Issue


Hi,

I think this was discussed here: https://trac.edgewall.org/ticket/11002

If you need to change this, you could maybe try something similar as discussed 
here: https://trac.edgewall.org/wiki/CookBook/Notification/Email

Let us know if that works for you.

Cheers,
Peter


On 05.03.2019 17:51, Patty Cottrill wrote:
Hi Trac Users,

I recently deployed a new Trac 1.2.3 server and I’m having issues with the 
email notifications.
The To field is blank, even though I enabled the 
use_public_cc<https://trac.edgewall.org/wiki/TracNotification>.
Once I enabled it, the address that should be in the To field is being 
displayed in the CC field.
Is this normal?
I did not have this problem with Trac 0.12.

Below is my configuration:
[notification]
admit_domains =
ambiguous_char_width = single
batch_subject_template = $prefix Batch modify: $tickets_descr
email_sender = SmtpEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain =
smtp_enabled = enabled
smtp_from = myproj...@imci.net<mailto:myproj...@imci.net>
smtp_from_author = disabled
smtp_from_name =
smtp_password =
smtp_port = 25
smtp_replyto = pcottr...@imci.net<mailto:pcottr...@imci.net>
smtp_server = x.imci.net
smtp_subject_prefix = __default__
smtp_user =
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = enabled
use_short_addr = disabled
use_tls = enabled

Thanks in advance.

-- Patty




-- Patty



--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com<mailto:trac-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
trac-users@googlegroups.com<mailto:trac-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com<mailto:trac-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
trac-users@googlegroups.com<mailto:trac-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com<mailto:trac-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
trac-users@googlegroups.com<mailto:trac-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/trac-users.
For more opti

RE: [Trac] Trac 1.2.3 Email Notification Issue

2019-03-05 Thread Patty Cottrill
Peter,

I think that using “undisclosed recipients” in the To field makes the email 
look suspicious and I’m concerned it might be filtered as spam.

You make it sound very easy to create a plugin, but I’m guessing you can 
probably do this in your sleep.
I reviewed the instructions, and to me it sounds a little more complicated than 
just being able to edit trac.ini.
I don’t mind using plugins that have been created by others, but I don’t feel 
comfortable having to create one myself. I just know enough python to be able 
to manage our Trac environment!
Besides, it worked fine in previous versions, why did they have to change it?

All that being said, I think I can deal with it, I just hope our development 
team, specifically their manager won’t have a problem  with it.
I will hang on to your code however, just in case I decide to get adventurous 
and create my own plugin!! Who knows, it might be fun!

Thanks,
-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
Peter Suter
Sent: Tuesday, March 5, 2019 2:28 PM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Trac 1.2.3 Email Notification Issue


Hi Patty,

Could you elaborate a bit on why and when the current behavior is a problem for 
you?

And what exactly would have to be different? Is it just this?

from trac.core import Component, implements

from trac.notification.api import IEmailDecorator

from trac.notification.mail import set_header



class ToFieldEmailDecorator(Component):



implements(IEmailDecorator)



# IEmailDecorator methods



def decorate_message(self, event, message, charset):

set_header(message, 'To', message['Cc'], charset)



Many people seem to have all sorts of different special requirements for 
notifications, so such plugins are the only viable way how such individual 
tweaks can reasonably be supported.

Cheers,
Peter
On 05.03.2019 20:11, Patty Cottrill wrote:
Hi Peter,

Thank you for your response.
As I understand it, this is normal behavior in this new version of Trac.
The only way to change the behavior is to create a plugin; you cannot configure 
it in trac.ini.

This is unfortunate because I really don’t want to hassle with creating a 
plugin.
Really would be nice to be able to configure it in trac.ini, like it was in 
previous versions of Trac.

-- Patty

From: trac-users@googlegroups.com<mailto:trac-users@googlegroups.com> 
<mailto:trac-users@googlegroups.com> On Behalf Of 
Peter Suter
Sent: Tuesday, March 5, 2019 1:49 PM
To: trac-users@googlegroups.com<mailto:trac-users@googlegroups.com>
Subject: Re: [Trac] Trac 1.2.3 Email Notification Issue


Hi,

I think this was discussed here: https://trac.edgewall.org/ticket/11002

If you need to change this, you could maybe try something similar as discussed 
here: https://trac.edgewall.org/wiki/CookBook/Notification/Email

Let us know if that works for you.

Cheers,
Peter


On 05.03.2019 17:51, Patty Cottrill wrote:
Hi Trac Users,

I recently deployed a new Trac 1.2.3 server and I’m having issues with the 
email notifications.
The To field is blank, even though I enabled the 
use_public_cc<https://trac.edgewall.org/wiki/TracNotification>.
Once I enabled it, the address that should be in the To field is being 
displayed in the CC field.
Is this normal?
I did not have this problem with Trac 0.12.

Below is my configuration:
[notification]
admit_domains =
ambiguous_char_width = single
batch_subject_template = $prefix Batch modify: $tickets_descr
email_sender = SmtpEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain =
smtp_enabled = enabled
smtp_from = myproj...@imci.net<mailto:myproj...@imci.net>
smtp_from_author = disabled
smtp_from_name =
smtp_password =
smtp_port = 25
smtp_replyto = pcottr...@imci.net<mailto:pcottr...@imci.net>
smtp_server = x.imci.net
smtp_subject_prefix = __default__
smtp_user =
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = enabled
use_short_addr = disabled
use_tls = enabled

Thanks in advance.

-- Patty




-- Patty



--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com<mailto:trac-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
trac-users@googlegroups.com<mailto:trac-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com<mailto:trac-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
trac-users@googl

RE: [Trac] Trac 1.2.3 Email Notification Issue

2019-03-05 Thread Patty Cottrill
Hi Peter,

Thank you for your response.
As I understand it, this is normal behavior in this new version of Trac.
The only way to change the behavior is to create a plugin; you cannot configure 
it in trac.ini.

This is unfortunate because I really don’t want to hassle with creating a 
plugin.
Really would be nice to be able to configure it in trac.ini, like it was in 
previous versions of Trac.

-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
Peter Suter
Sent: Tuesday, March 5, 2019 1:49 PM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Trac 1.2.3 Email Notification Issue


Hi,

I think this was discussed here: https://trac.edgewall.org/ticket/11002

If you need to change this, you could maybe try something similar as discussed 
here: https://trac.edgewall.org/wiki/CookBook/Notification/Email

Let us know if that works for you.

Cheers,
Peter


On 05.03.2019 17:51, Patty Cottrill wrote:
Hi Trac Users,

I recently deployed a new Trac 1.2.3 server and I’m having issues with the 
email notifications.
The To field is blank, even though I enabled the 
use_public_cc<https://trac.edgewall.org/wiki/TracNotification>.
Once I enabled it, the address that should be in the To field is being 
displayed in the CC field.
Is this normal?
I did not have this problem with Trac 0.12.

Below is my configuration:
[notification]
admit_domains =
ambiguous_char_width = single
batch_subject_template = $prefix Batch modify: $tickets_descr
email_sender = SmtpEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain =
smtp_enabled = enabled
smtp_from = myproj...@imci.net<mailto:myproj...@imci.net>
smtp_from_author = disabled
smtp_from_name =
smtp_password =
smtp_port = 25
smtp_replyto = pcottr...@imci.net<mailto:pcottr...@imci.net>
smtp_server = x.imci.net
smtp_subject_prefix = __default__
smtp_user =
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = enabled
use_short_addr = disabled
use_tls = enabled

Thanks in advance.

-- Patty




-- Patty



--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com<mailto:trac-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
trac-users@googlegroups.com<mailto:trac-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com<mailto:trac-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
trac-users@googlegroups.com<mailto:trac-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Trac 1.2.3 Email Notification Issue

2019-03-05 Thread Patty Cottrill
Hi Trac Users,

I recently deployed a new Trac 1.2.3 server and I'm having issues with the 
email notifications.
The To field is blank, even though I enabled the 
use_public_cc.
Once I enabled it, the address that should be in the To field is being 
displayed in the CC field.
Is this normal?
I did not have this problem with Trac 0.12.

Below is my configuration:
[notification]
admit_domains =
ambiguous_char_width = single
batch_subject_template = $prefix Batch modify: $tickets_descr
email_sender = SmtpEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain =
smtp_enabled = enabled
smtp_from = myproj...@imci.net
smtp_from_author = disabled
smtp_from_name =
smtp_password =
smtp_port = 25
smtp_replyto = pcottr...@imci.net
smtp_server = x.imci.net
smtp_subject_prefix = __default__
smtp_user =
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = enabled
use_short_addr = disabled
use_tls = enabled

Thanks in advance.

-- Patty




-- Patty



-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Trac email notifications being sent to previous owners

2013-08-08 Thread Patty Cottrill
All,

I just discovered that Trac is sending email notifications to all
previous owners of a ticket.
I have the notifications configured as: 
always_notify_owner  = true  
always_notify_reporter =  true   
always_notify_updater = true

I expected this configuration to only email the current owner of a
ticket, but the notifications are being sent to all previous owners of
the ticket.
Is this normal behavior?

Here is our info: (running on Ubuntu 10.04)

Trac 0.12.2  
Genshi   0.6 
mod_python   3.3.1   
pysqlite 2.5.5   
Python   2.6.5 (r265:79063, Apr 16 2010, 13:28:26) [GCC 4.4.3]   
pytz 2010b   
setuptools   0.6 
SQLite   3.6.22  
Subversion   1.6.6 (r40053)  
jQuery: 1.4.2   

Thanks,
-Patty

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.




RE: [Trac] RE: Help-can't open Trac ticket after making a change

2012-01-16 Thread Patty Cottrill
Yes, it did.
It contained the following: SR# 3-5078592598.

I tried to replicate the problem and found that if I entered a colon after the 
# it worked fine, e.g. SR#: 3-5078592598
Since I did not know how to get into the db table to modify the pending change, 
I just deleted the ticket and re-entered it.

-Patty





From: Willmer, Alex (PTS)
Sent: Mon 1/16/2012 4:15 AM
To: trac-users@googlegroups.com
Subject: [Trac] RE: Help-can't open Trac ticket after making a change


We saw a similar error internally quite recently. A customer received the same 
message when trying to save a new ticket. Their description was pasted form an 
email, one line of which contained [153075-5509011232]. Trac was interpreting 
this as a range of changelogs, but the second value was too large to fit in a 
32-bit int and for whatever reason wasn't promoted to a long integer. We didn't 
file a bug, as Trac 0.12.3dev seems to work ok e.g. 
http://trac.edgewall.org/demo-0.12/wiki/SandBox/ChangesetTest
 
Did your comment contain anything like that? The workaround is to place ! 
before the offending item.
 
Regards, Alex
-- 
Alex Willmer | #define Developer
2 Trinity Park,  Birmingham, B37 7ES | United Kingdom 
M: +44 7557 752744
al.will...@logica.com | www.logica.com
Logica UK Ltd, registered in UK (registered number 947968)
Registered Office: 250 Brook Drive, Green Park, Reading RG2 6UA, United Kingdom
 
From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com] On 
Behalf Of Patty Cottrill
Sent: 13 January 2012 18:12
To: trac-users@googlegroups.com
Subject: [Trac] Help-can't open Trac ticket after making a change
 
Hi Everyone,
 
I have an unsual problem.
I just added a comment to a closed ticket, and now when i try to open it I get 
the following error:
 
Oops.
Trac detected an internal error: 
OverflowError: long int too large to convert to int
Python Traceback
Most recent call last: 
File 
/home/trac/embedded/linux/.egg-cache/Trac-0.12.2-py2.6.egg-tmp/trac/ticket/templates/ticket_change.html,
 line 61, in Expression u'wiki_to_html(context, change.comment, 
escape_newlines=preserve_newlines)'
  py:otherwise${wiki_to_html(context, change.comment, 
escape_newlines=preserve_newlines)}/py:otherwise
File build/bdist.linux-i686/egg/trac/wiki/formatter.py, line 1497, in 
format_to_html
  return HtmlFormatter(env, context, wikidom).generate(escape_newlines)
File build/bdist.linux-i686/egg/trac/wiki/formatter.py, line 1452, in generate
  escape_newlines)
File build/bdist.linux-i686/egg/trac/wiki/formatter.py, line 1240, in format
  result = re.sub(self.wikiparser.rules, self.replace, line)
File /usr/lib/python2.6/re.py, line 151, in sub
  return _compile(pattern, 0).sub(repl, string, count)
File build/bdist.linux-i686/egg/trac/wiki/formatter.py, line 1158, in replace
  replacement = self.handle_match(fullmatch)
File build/bdist.linux-i686/egg/trac/wiki/formatter.py, line 1151, in 
handle_match
  return external_handler(self, match, fullmatch)
File build/bdist.linux-i686/egg/trac/ticket/api.py, line 436, in lambda
  lambda x, y, z: self._format_link(x, 'ticket', y[1:], y, z))
File build/bdist.linux-i686/egg/trac/ticket/api.py, line 446, in _format_link
  if len(r) == 1:
--
Now I can't even get back into the ticket to undo that comment, cuz I keep 
getting the error message above.
At this point, I'm not sure what to do.
 
Here is our info:
Running Trac on Kubuntu 10.04.3LTS
System Information
Trac0.12.2
Genshi0.6
mod_python3.3.1
pysqlite2.5.5
Python2.6.5 (r265:79063, Apr 16 2010, 13:28:26) [GCC 4.4.3]
pytz2010b
setuptools0.6c11
SQLite3.6.22
Subversion1.6.6 (r40053)
jQuery:1.4.2

 
 
-Patty
 
-- 
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 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Think green - keep it on the screen. This e-mail and any attachment is for 
authorised use by the intended recipient(s) only. It may contain proprietary 
material, confidential information and/or be subject to legal privilege. It 
should not be copied, disclosed to, retained or used by, any other party. If 
you are not an intended recipient then please promptly delete this e-mail and 
any attachment and all copies and inform the sender. Thank you. 
-- 
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 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

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

[Trac] Help-can't open Trac ticket after making a change

2012-01-13 Thread Patty Cottrill
Hi Everyone,
 
I have an unsual problem.
I just added a comment to a closed ticket, and now when i try to open it
I get the following error:
 

Oops...

Trac detected an internal error: 
OverflowError: long int too large to convert to int

Python Traceback


Most recent call last: 
File
/home/trac/embedded/linux/.egg-cache/Trac-0.12.2-py2.6.egg-tmp/trac/tic
ket/templates/ticket_change.html, line 61, in Expression
u'wiki_to_html(context, change.comment,
escape_newlines=preserve_newlines)'
  py:otherwise${wiki_to_html(context, change.comment,
escape_newlines=preserve_newlines)}/py:otherwise
File build/bdist.linux-i686/egg/trac/wiki/formatter.py, line 1497, in
format_to_html
  return HtmlFormatter(env, context, wikidom).generate(escape_newlines)
File build/bdist.linux-i686/egg/trac/wiki/formatter.py, line 1452, in
generate
  escape_newlines)
File build/bdist.linux-i686/egg/trac/wiki/formatter.py, line 1240, in
format
  result = re.sub(self.wikiparser.rules, self.replace, line)
File /usr/lib/python2.6/re.py, line 151, in sub
  return _compile(pattern, 0).sub(repl, string, count)
File build/bdist.linux-i686/egg/trac/wiki/formatter.py, line 1158, in
replace
  replacement = self.handle_match(fullmatch)
File build/bdist.linux-i686/egg/trac/wiki/formatter.py, line 1151, in
handle_match
  return external_handler(self, match, fullmatch)
File build/bdist.linux-i686/egg/trac/ticket/api.py, line 436, in
lambda
  lambda x, y, z: self._format_link(x, 'ticket', y[1:], y, z))
File build/bdist.linux-i686/egg/trac/ticket/api.py, line 446, in
_format_link
  if len(r) == 1:
--

Now I can't even get back into the ticket to undo that comment, cuz I
keep getting the error message above.
At this point, I'm not sure what to do.
 
Here is our info:
Running Trac on Kubuntu 10.04.3LTS

System Information

Trac 0.12.2 
Genshi   0.6
mod_python   3.3.1  
pysqlite 2.5.5  
Python   2.6.5 (r265:79063, Apr 16 2010, 13:28:26) [GCC 4.4.3]  
pytz 2010b  
setuptools   0.6c11 
SQLite   3.6.22 
Subversion   1.6.6 (r40053) 
jQuery:  1.4.2  
 
 
-Patty
 

-- 
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 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] Help with Trac egg

2011-10-31 Thread Patty Cottrill
Thanks for the response.
Unfortunately, I'm not anywhere near a sw developer.
I read the docs on creating plugins, and it requires knowledge in
writing code, which is definitey not me.
Can't I just unzip the .egg file in the current location? 


-Patty

-Original Message-
From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com]
On Behalf Of Remy Blank
Sent: Friday, October 28, 2011 1:58 AM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Help with Trac egg

Patty Cottrill wrote:
 I need to make this customization to the commit_updater.py, but I 
 don't have access to it because its in the Trac .egg file.
 The .egg file is located under /usr/local/lib/python2.6/dist-packages.
 Because it's an .egg file and not a directory, I can't get to the 
 commit_updater.py to edit.
 I ran unzip -t Trac-0.12.2-py2.6.egg and I can see the file in there.
 Any advise on how to address this issue.

You can create a single-file plugin, create a component that inherits
from the commit updater component, and override any methods you like.
Then, place your plugin into the plugins folder of your Trac
environment.

Note that you have to keep the original commit updater disabled in this
scenario, as your subclass will take its place.

-- Remy

-- 
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 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] RE: Help with Trac Commit Ticket Updater

2011-10-27 Thread Patty Cottrill
Hi Mark,

Many thanks for your help with this. 
Below are my comments, preceded by [Patty]

 


-Patty

-Original Message-
From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com]
On Behalf Of Cooke, Mark
Sent: Thursday, October 27, 2011 2:50 AM
To: trac-users@googlegroups.com
Subject: RE: [Trac] RE: Help with Trac Commit Ticket Updater

[Please reply in-line, it makes it easier to read...] 

  -Original Message-
  From: trac-users@googlegroups.com On Behalf Of Patty Cottrill
  Sent: 26 October 2011 00:50
  Subject: [Trac] Help with Trac Commit Ticket Updater
  
  Hi Guys,
   
  I need some help with this new component that is supposed to be 
  included with Trac v.12.
  I have tried to implement, but its not working for me at all.
  The documentation refers to a script called commit_updater.py, but I

  can't find it anywhere on our server.
  Am I supposed to download this to the server and if so, where am I 
  supposed to place it?
  The documentation is not very clear, at least not to me:
  http://trac.edgewall.org/wiki/CommitTicketUpdater
   
  I have read the document reference above, plus 
  http://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync.
  I followed the instructions, but no luck.
   
  I enabled the compoments on trac.ini I enabled  edited the 
  post-commit under the svn/hooks directory as instructed I added the 
  configuration from the second document.
   
  What am I missing?
  Please advise.
   
  -Patty
   
 -Original Message-
 From: trac-users@googlegroups.com On Behalf Of Cooke, Mark
 Sent: Wednesday, October 26, 2011 3:49 AM
 Subject: [Trac] RE: Help with Trac Commit Ticket Updater
 
 I followed that advice and got it working on windows, I'm guessing you

 are on *nix?  It would help if you could provide a bit more 
 information, e.g. platform, trac version etc.  Can you post the 
 relevant bits of your trac.ini and your hook script?
 
 ~ mark c
 
 -Original Message-
 From: trac-users@googlegroups.com On Behalf Of Patty Cottrill
 Sent: 26 October 2011 17:11
 To: trac-users@googlegroups.com
 Subject: RE: [Trac] RE: Help with Trac Commit Ticket Updater
 
 oops sorry about that.
 
 Kubuntu 10.04
 Trac 0.12.2
 Python2.6.5 (r265:79063, Apr 16 2010, 13:28:26) [GCC 4.4.3]
 Subversion1.6.6 (r40053)

Hmm, OK, I have limited *nix experience but here goes...

 Per the instructions on
 http://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync
 I added the following to the post-commit under the svn/project/hooks
 directory:
 
 export PYTHON_EGG_CACHE=/home/trac/project
 /usr/bin/trac-admin /home/trac/project changeset added $1 $2
 
 also commented out the following line that was included in the 
 post-commit template:
 
 #$REPOS/hooks/mailer.py commit $REPOS $REV $REPOS/mailer.conf
 
 Made sure it was executable by owner, users  groups.

...and that includes the user that runs trac?  How are you serving
trac/svn, via apache or standalone?  You need to make sure that the
apache user is included (or better the owner, AFAI...understand).

[Patty] We use apache2. The apache user is www-data, who owns both the
trac and svn directories. So www-data does have execute permissions to
the post-commit script.

Can you confirm that your value for PYTHON_EGG_CACHE matches your web
server config?  This is only needed if you changed it from its default
location.

[Patty] Yes, it matches the web server config.

Also, how is your svn configured, via trac.ini or via the admin
repository command?  If the former, you may need to add `[Trac]`
`repository_sync_per_request = false`, see
http://trac.edgewall.org/wiki/TracRepositoryAdmin#PerRequestSync

[Patty] The trac.ini is set to the following:
repository_sync_per_request = (default)


 Per the instructions on
 http://trac.edgewall.org/wiki/CommitTicketUpdater
 I added the following to trac.ini:
 
 Under [Components]
 tracopt.ticket.commit_updater.* = enabled
 
 Under [Ticket]
 commit_ticket_update_envelope =
 commit_ticket_update_commands.close = close closed closes fix fixed 
 fixes commit_ticket_update_commands.refs = ALL 
 commit_ticket_update_check_perms = true commit_ticket_update_notify = 
 true

...that all looks ok.  What did you use for a commit message and what
(if anything) happened in your trac?

[Patty] I used: svn ci -m closes #1
Nothing happened to the ticket; no comments, nothing. The svn commit
however was successful.

 As I stated in my email, I can not find anywhere on the server the 
 script commit_updater.py.
 Shouldn't I be able to see that script somewhere on the server?
 
 -Patty
 
More digging leads me to
http://trac.edgewall.org/wiki/CommitTicketUpdater#Location which says
that the script is part of the trunk source tree, so it will be in the
trac install or egg (if you use an egg).

[Patty] I have the following .egg file: (Trac-0.12.2-py2.6.egg is a
file, not a directory)
/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg

I suspect a permissions issue, can

RE: [Trac] Re: How do I include javascript in trac genshi template?

2011-10-27 Thread Patty Cottrill
Mark,

I got it to work!!
Apparently I was using the path to the old version of trac-admin (from
Trac 11.7).
I ran which trac-admin and got the path of the current version.
Once I updated the path, it worked!!

Thanks for your help!!


-Patty

-Original Message-
From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com]
On Behalf Of Cooke, Mark
Sent: Thursday, October 27, 2011 10:43 AM
To: trac-users@googlegroups.com
Subject: RE: [Trac] Re: How do I include javascript in trac genshi
template?

  On Oct 26, 11:57 am, Cooke, Mark wrote:
   Folks,
  
   I am trying to put some javascript into my genshi template (for a 
   plugin) but it is rejected as follows:
  
   TemplateSyntaxError: not well-formed (invalid token): line 32, 
   column 18
  
   ...which turns out to be the first '' character in the line:
  
  if (atpos1 || dotposatpos+2 || dotpos+2=x.length)
  
   So I have been searching to find out how to include javascript in 
   genshi templates and can only find questions but no documentation 
   or answers I understand.
  
   I am using `xi:include href=layout.html /` and trying to 
   include the script.../script in the head.../head block.  
   What am I doing wrong?
  
   Many thanks for any help,
  
   ~ mark c

  -Original Message-
  From: trac-users@googlegroups.com On Behalf Of osimons
  Sent: 26 October 2011 15:41
  To: Trac Users
  Subject: [Trac] Re: How do I include javascript in trac genshi 
  template?
  
 
  Templates are XHTML and need to be parsed correctly. 
  `` is a token reserved for XML tags/elements, so you need to escape

  it (as lt;) or wrap the code in a CDATA section. This is a general 
  web XML/XHTML/HTML/JavaScript issue, and lots of information 
  available on the web:
  
  http://stackoverflow.com/questions/66837/when-is-a-cdata-section-nec
  essary-within-a-script-tag
 
  :::simon

 On Wed, Oct 26, 2011 at 10:01 AM, Cooke, Mark wrote:
 Thanks very much simon, that is a great post to reference.
   
 For the list, I fixed my issue by moving the offending code into an 
 external file (when I eventually worked out how the 
 INavigationContributor get_navigation_items function should work), 
 however the post referenced seems to recommend the following 
 construct:-
   
   script
   //![CDATA[
   ...code...
   //]]
   /script
   
   Thanks again,
   
   ~ mark c
 
 -Original Message-
 From: trac-users@googlegroups.com
 [mailto:trac-users@googlegroups.com] On Behalf Of Brennan Todd
 Sent: 27 October 2011 15:04
 To: trac-users@googlegroups.com
 Subject: Re: [Trac] Re: How do I include javascript in trac genshi 
 template?
 
 You can also just use regular comment tags
 
 script
 !--
 // your script
 --
 /script

Thanks Brennan!  I have now had a chance to test both of these and can
confirm that both work.  One lives and learns...

~ mark c

--
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
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.

-- 
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 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] Re: How do I include javascript in trac genshi template?

2011-10-27 Thread Patty Cottrill
oops...disregard, wrong email 


-Patty

-Original Message-
From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com]
On Behalf Of Patty Cottrill
Sent: Thursday, October 27, 2011 5:11 PM
To: trac-users@googlegroups.com
Subject: RE: [Trac] Re: How do I include javascript in trac genshi
template?

Mark,

I got it to work!!
Apparently I was using the path to the old version of trac-admin (from
Trac 11.7).
I ran which trac-admin and got the path of the current version.
Once I updated the path, it worked!!

Thanks for your help!!


-Patty

-Original Message-
From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com]
On Behalf Of Cooke, Mark
Sent: Thursday, October 27, 2011 10:43 AM
To: trac-users@googlegroups.com
Subject: RE: [Trac] Re: How do I include javascript in trac genshi
template?

  On Oct 26, 11:57 am, Cooke, Mark wrote:
   Folks,
  
   I am trying to put some javascript into my genshi template (for a
   plugin) but it is rejected as follows:
  
   TemplateSyntaxError: not well-formed (invalid token): line 32, 
   column 18
  
   ...which turns out to be the first '' character in the line:
  
  if (atpos1 || dotposatpos+2 || dotpos+2=x.length)
  
   So I have been searching to find out how to include javascript in 
   genshi templates and can only find questions but no documentation 
   or answers I understand.
  
   I am using `xi:include href=layout.html /` and trying to 
   include the script.../script in the head.../head block.
   What am I doing wrong?
  
   Many thanks for any help,
  
   ~ mark c

  -Original Message-
  From: trac-users@googlegroups.com On Behalf Of osimons
  Sent: 26 October 2011 15:41
  To: Trac Users
  Subject: [Trac] Re: How do I include javascript in trac genshi 
  template?
  
 
  Templates are XHTML and need to be parsed correctly. 
  `` is a token reserved for XML tags/elements, so you need to escape

  it (as lt;) or wrap the code in a CDATA section. This is a general 
  web XML/XHTML/HTML/JavaScript issue, and lots of information 
  available on the web:
  
  http://stackoverflow.com/questions/66837/when-is-a-cdata-section-nec
  essary-within-a-script-tag
 
  :::simon

 On Wed, Oct 26, 2011 at 10:01 AM, Cooke, Mark wrote:
 Thanks very much simon, that is a great post to reference.
   
 For the list, I fixed my issue by moving the offending code into an 
 external file (when I eventually worked out how the 
 INavigationContributor get_navigation_items function should work), 
 however the post referenced seems to recommend the following
 construct:-
   
   script
   //![CDATA[
   ...code...
   //]]
   /script
   
   Thanks again,
   
   ~ mark c
 
 -Original Message-
 From: trac-users@googlegroups.com
 [mailto:trac-users@googlegroups.com] On Behalf Of Brennan Todd
 Sent: 27 October 2011 15:04
 To: trac-users@googlegroups.com
 Subject: Re: [Trac] Re: How do I include javascript in trac genshi 
 template?
 
 You can also just use regular comment tags
 
 script
 !--
 // your script
 --
 /script

Thanks Brennan!  I have now had a chance to test both of these and can
confirm that both work.  One lives and learns...

~ mark c

--
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
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.

--
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
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.

-- 
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 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] RE: Help with Trac Commit Ticket Updater

2011-10-27 Thread Patty Cottrill
Mark,

I got it to work!!
Apparently I was using the path to the old version of trac-admin (from
Trac 11.7).
I ran which trac-admin and got the path of the current version.
Once I updated the path, it worked!!

Thanks for your help!!


-Patty

-Original Message-
From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com]
On Behalf Of Cooke, Mark
Sent: Thursday, October 27, 2011 2:50 AM
To: trac-users@googlegroups.com
Subject: RE: [Trac] RE: Help with Trac Commit Ticket Updater

[Please reply in-line, it makes it easier to read...] 

  -Original Message-
  From: trac-users@googlegroups.com On Behalf Of Patty Cottrill
  Sent: 26 October 2011 00:50
  Subject: [Trac] Help with Trac Commit Ticket Updater
  
  Hi Guys,
   
  I need some help with this new component that is supposed to be 
  included with Trac v.12.
  I have tried to implement, but its not working for me at all.
  The documentation refers to a script called commit_updater.py, but I

  can't find it anywhere on our server.
  Am I supposed to download this to the server and if so, where am I 
  supposed to place it?
  The documentation is not very clear, at least not to me:
  http://trac.edgewall.org/wiki/CommitTicketUpdater
   
  I have read the document reference above, plus 
  http://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync.
  I followed the instructions, but no luck.
   
  I enabled the compoments on trac.ini I enabled  edited the 
  post-commit under the svn/hooks directory as instructed I added the 
  configuration from the second document.
   
  What am I missing?
  Please advise.
   
  -Patty
   
 -Original Message-
 From: trac-users@googlegroups.com On Behalf Of Cooke, Mark
 Sent: Wednesday, October 26, 2011 3:49 AM
 Subject: [Trac] RE: Help with Trac Commit Ticket Updater
 
 I followed that advice and got it working on windows, I'm guessing you

 are on *nix?  It would help if you could provide a bit more 
 information, e.g. platform, trac version etc.  Can you post the 
 relevant bits of your trac.ini and your hook script?
 
 ~ mark c
 
 -Original Message-
 From: trac-users@googlegroups.com On Behalf Of Patty Cottrill
 Sent: 26 October 2011 17:11
 To: trac-users@googlegroups.com
 Subject: RE: [Trac] RE: Help with Trac Commit Ticket Updater
 
 oops sorry about that.
 
 Kubuntu 10.04
 Trac 0.12.2
 Python2.6.5 (r265:79063, Apr 16 2010, 13:28:26) [GCC 4.4.3]
 Subversion1.6.6 (r40053)

Hmm, OK, I have limited *nix experience but here goes...

 Per the instructions on
 http://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync
 I added the following to the post-commit under the svn/project/hooks
 directory:
 
 export PYTHON_EGG_CACHE=/home/trac/project
 /usr/bin/trac-admin /home/trac/project changeset added $1 $2
 
 also commented out the following line that was included in the 
 post-commit template:
 
 #$REPOS/hooks/mailer.py commit $REPOS $REV $REPOS/mailer.conf
 
 Made sure it was executable by owner, users  groups.

...and that includes the user that runs trac?  How are you serving
trac/svn, via apache or standalone?  You need to make sure that the
apache user is included (or better the owner, AFAI...understand).

Can you confirm that your value for PYTHON_EGG_CACHE matches your web
server config?  This is only needed if you changed it from its default
location.

Also, how is your svn configured, via trac.ini or via the admin
repository command?  If the former, you may need to add `[Trac]`
`repository_sync_per_request = false`, see
http://trac.edgewall.org/wiki/TracRepositoryAdmin#PerRequestSync

 Per the instructions on
 http://trac.edgewall.org/wiki/CommitTicketUpdater
 I added the following to trac.ini:
 
 Under [Components]
 tracopt.ticket.commit_updater.* = enabled
 
 Under [Ticket]
 commit_ticket_update_envelope =
 commit_ticket_update_commands.close = close closed closes fix fixed 
 fixes commit_ticket_update_commands.refs = ALL 
 commit_ticket_update_check_perms = true commit_ticket_update_notify = 
 true

...that all looks ok.  What did you use for a commit message and what
(if anything) happened in your trac?

 As I stated in my email, I can not find anywhere on the server the 
 script commit_updater.py.
 Shouldn't I be able to see that script somewhere on the server?
 
 -Patty
 
More digging leads me to
http://trac.edgewall.org/wiki/CommitTicketUpdater#Location which says
that the script is part of the trunk source tree, so it will be in the
trac install or egg (if you use an egg).

I suspect a permissions issue, can you check that again?

Otherwise, do you have logging enabled to DEBUG in your Trac?  Can you
try a commit and see if anything appears in the log?

~ mark c

--
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
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group

[Trac] Help with Trac egg

2011-10-27 Thread Patty Cottrill
Hi Guys,

TGIF!!!

I just got the Commit Ticket Updater to workyeah!!
We recently upgraded from Trac 0.11 to 0.12.2.
I just got Commit Ticket Updater to work on my test project.
Our production projects are still using trac-post-commit.

Now I have another issue that I need to address before fully
implementing to our production projects.
As I mentioned previously, we've been using post-commit with
trac-post-commit to close/update our Trac tickets.
I had to edit the trac-post-commit hook to update a custom field in our
ticket.
It actually populates the custom field named Rev. Fixed with the number
of the revision that closed the ticket.
See below:

# Added self.rev to the close command. ppc 5/29/09
  # This will populate the custom field, Rev. Fixed with the
revision number.
def _cmdClose(self, ticket):
ticket['status'] = 'closed'
ticket['resolution'] = 'fixed'
ticket['rev_fixed'] = self.rev

I need to make this customization to the commit_updater.py, but I don't
have access to it because its in the Trac .egg file.
The .egg file is located under /usr/local/lib/python2.6/dist-packages.
Because it's an .egg file and not a directory, I can't get to the
commit_updater.py to edit.
I ran unzip -t Trac-0.12.2-py2.6.egg and I can see the file in there.
Any advise on how to address this issue.


Trac0.12.2
Genshi  0.6
mod_python  3.3.1
pysqlite2.5.5
Python  2.6.5 (r265:79063, Apr 16 2010, 13:28:26) [GCC 4.4.3]
pytz2010b
setuptools  0.6c11
SQLite  3.6.22
Subversion  1.6.6 (r40053)
jQuery: 1.4.2

Thanks  Happy Halloween!!
-Patty
 

-- 
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 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] RE: Help with Trac Commit Ticket Updater

2011-10-26 Thread Patty Cottrill
oops sorry about that.

Kubuntu 10.04
Trac 0.12.2
Python  2.6.5 (r265:79063, Apr 16 2010, 13:28:26) [GCC 4.4.3]
Subversion  1.6.6 (r40053)

Per the instructions on
http://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync
I added the following to the post-commit under the svn/project/hooks
directory:

export PYTHON_EGG_CACHE=/home/trac/project
/usr/bin/trac-admin /home/trac/project changeset added $1 $2

also commented out the following line that was included in the
post-commit template:

#$REPOS/hooks/mailer.py commit $REPOS $REV $REPOS/mailer.conf

Made sure it was executable by owner, users  groups.


Per the instructions on
http://trac.edgewall.org/wiki/CommitTicketUpdater
I added the following to trac.ini:

Under [Components]
tracopt.ticket.commit_updater.* = enabled

Under [Ticket]
commit_ticket_update_envelope = 
commit_ticket_update_commands.close = close closed closes fix fixed
fixes
commit_ticket_update_commands.refs = ALL
commit_ticket_update_check_perms = true
commit_ticket_update_notify = true

As I stated in my email, I can not find anywhere on the server the
script commit_updater.py.
Shouldn't I be able to see that script somewhere on the server?

-Patty

-Original Message-
From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com]
On Behalf Of Cooke, Mark
Sent: Wednesday, October 26, 2011 3:49 AM
To: trac-users@googlegroups.com
Subject: [Trac] RE: Help with Trac Commit Ticket Updater

 -Original Message-
 From: trac-users@googlegroups.com
 [mailto:trac-users@googlegroups.com] On Behalf Of Patty Cottrill
 Sent: 26 October 2011 00:50
 To: Trac Users
 Subject: [Trac] Help with Trac Commit Ticket Updater
 
 Hi Guys,
  
 I need some help with this new component that is supposed to be 
 included with Trac v.12.
 I have tried to implement, but its not working for me at all.
 The documentation refers to a script called commit_updater.py, but I 
 can't find it anywhere on our server.
 Am I supposed to download this to the server and if so, where am I 
 supposed to place it?
 The documentation is not very clear, at least not to me:
 http://trac.edgewall.org/wiki/CommitTicketUpdater
  
 I have read the document reference above, plus 
 http://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync.
 I followed the instructions, but no luck.
  
 I enabled the compoments on trac.ini
 I enabled  edited the post-commit under the svn/hooks directory as 
 instructed I added the configuration from the second document.
  
 What am I missing?
 Please advise.
  
 -Patty
  
I followed that advice and got it working on windows, I'm guessing you
are on *nix?  It would help if you could provide a bit more information,
e.g. platform, trac version etc.  Can you post the relevant bits of your
trac.ini and your hook script?

~ mark c

--
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
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.

-- 
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 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Help with Trac Commit Ticket Updater

2011-10-25 Thread Patty Cottrill
Hi Guys,
 
I need some help with this new component that is supposed to be included
with Trac v.12.
I have tried to implement, but its not working for me at all.
The documentation refers to a script called commit_updater.py, but I
can't find it anywhere on our server.
Am I supposed to download this to the server and if so, where am I
supposed to place it?
The documentation is not very clear, at least not to me:
http://trac.edgewall.org/wiki/CommitTicketUpdater
 
I have read the document reference above, plus
http://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync.
I followed the instructions, but no luck.
 
I enabled the compoments on trac.ini
I enabled  edited the post-commit under the svn/hooks directory as
instructed
I added the configuration from the second document.
 
What am I missing?
Please advise.
 
-Patty
 

-- 
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 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Help- Question on Trac upgrade

2011-09-13 Thread Patty Cottrill
Hi All,
 
I'm a bit confused about the latest stable version of Trac.
According to the Trac website, the most recent  stable version is
0.12.2, but the latest version available via apt-get is 0.11.7.
 
The upgrade instructions on Trac say to use easy_install to upgrade, if
that is how you installed Trac .11.
What if you didn't use easy_install?
 
I recently performed a system upgrade from Kubuntu 8.04 to 9.10, then
10.04, which included a Trac upgrade from 0.11.4 (Kubuntu 8.04) to
0.11.5(Kubunt 9.10) to 0.11.7(Kubuntu 10.04).
Should I stay with 11.7 until .12 is available via apt-get, since I
didn't use easy_install to arrive at this most upgrade of 11.7?
 
Also, do you guys recommend switching from mod_python to mod_wsgi?
If so, should I switch before going to 12 or after going to 12?
Please advise.
 
Thanks,
Patty
 
 
 

-- 
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 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] Question about hyperlinks

2011-02-25 Thread Patty Cottrill
Thanks. It works great. I built a 2.5 egg just like you suggested and we
are good to go!!
It just took me awhile to finally get to it; not a priority.
 
-Patty
 



From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com]
On Behalf Of Andy Baker
Sent: Tuesday, January 25, 2011 3:45 AM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Question about hyperlinks


Yup, the built egg is for 2.6, but should be easy enough to download the
source and build for 2.5. I'm assuming you're RHEL/CentOS if you're
stuck with python 2.5?


On 24 January 2011 16:48, Patty Cottrill pcottr...@imci.net wrote:


Thanks Andy.
I thought I reviewed the list of plugins, before I submitted my
question, but apparently I missed this one.
Do you know if it will work with Python 2.5?
I downloaded the plugin, but from what I can tell its for python
2.6.
 
-Patty
 



From: trac-users@googlegroups.com
[mailto:trac-users@googlegroups.com] On Behalf Of Andy Baker
Sent: Saturday, January 22, 2011 6:08 AM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Question about hyperlinks


If you want all externals to open in a new tab/window I've found
http://trac-hacks.org/wiki/ExternalLinksNewWindowPlugin works quite
nicely. Failing that, and assuming there isn't already a macro to do it,
it strikes me it should be fairly simple to knock one up.


On 21 January 2011 17:27, Patty Cottrill pcottr...@imci.net
wrote:


Is there anyway to create links in Trac to open in new
windows?
I found some information on the web, searching under
wiki markup, but it does not seem to work on the wiki used in Trac.
I know I can use html within the wiki pages, but I would
really prefer to use wiki formatting to accomplish this.
Please advise.
 
 
-Patty
 


-- 
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
trac-users+unsubscr...@googlegroups.com
mailto:trac-users%2bunsubscr...@googlegroups.com .
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.





-- 
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
trac-users+unsubscr...@googlegroups.com
mailto:trac-users%2bunsubscr...@googlegroups.com .
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.




-- 
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
trac-users+unsubscr...@googlegroups.com
mailto:trac-users%2bunsubscr...@googlegroups.com .
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.



-- 
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
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.

-- 
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 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] Question about hyperlinks

2011-01-24 Thread Patty Cottrill
Thanks Andy.
I thought I reviewed the list of plugins, before I submitted my
question, but apparently I missed this one.
Do you know if it will work with Python 2.5?
I downloaded the plugin, but from what I can tell its for python 2.6.
 
-Patty
 



From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com]
On Behalf Of Andy Baker
Sent: Saturday, January 22, 2011 6:08 AM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Question about hyperlinks


If you want all externals to open in a new tab/window I've found
http://trac-hacks.org/wiki/ExternalLinksNewWindowPlugin works quite
nicely. Failing that, and assuming there isn't already a macro to do it,
it strikes me it should be fairly simple to knock one up.


On 21 January 2011 17:27, Patty Cottrill pcottr...@imci.net wrote:


Is there anyway to create links in Trac to open in new windows?
I found some information on the web, searching under wiki
markup, but it does not seem to work on the wiki used in Trac.
I know I can use html within the wiki pages, but I would really
prefer to use wiki formatting to accomplish this.
Please advise.
 
 
-Patty
 


-- 
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
trac-users+unsubscr...@googlegroups.com
mailto:trac-users%2bunsubscr...@googlegroups.com .
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.



-- 
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
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.

-- 
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 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Question about hyperlinks

2011-01-21 Thread Patty Cottrill
Is there anyway to create links in Trac to open in new windows?
I found some information on the web, searching under wiki markup, but it
does not seem to work on the wiki used in Trac.
I know I can use html within the wiki pages, but I would really prefer
to use wiki formatting to accomplish this.
Please advise.
 
 
-Patty
 

-- 
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 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.