[Trac] Re: TicketQuery: filter by one keywords, exclude other keyword

2017-02-23 Thread RjOllos


On Tuesday, February 21, 2017 at 2:19:19 AM UTC-8, Peter Suter wrote:
>
> Hi
>
> On Tuesday, February 21, 2017 at 8:40:30 AM UTC+1, Florian Schricker wrote:
>>
>>
>> I do not know whether this is possible at all but I dare asking: Is it 
>> possible to setup a TicketQuery macro to include tickets with a specific 
>> keyword (keywords~=word1) but excluding all tickets which contain another 
>> specific keywords (keywords!=word2)?
>>
>
> Yes, it is possible and easy, but not at all obvious from the 
> documentation. The trick (mentioned in 
> https://trac.edgewall.org/ticket/10152 only?) is to use a - (dash, minus 
> sign) for the excluded word2 in the same keywords clause:
> [[TicketQuery(keywords~=word1 -word2)]]
>
> Regards,
> Peter
>

I added some documentation. Feel free to improve on my attempt.
https://trac.edgewall.org/ticket/10152#comment:19 

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


Re: [Trac] Re: Notification in Trac 1.2

2017-02-23 Thread Peter Suter

On 23.02.2017 21:54, ivanelson wrote:

I put it in [notification]. After this came the error:

You should put them in the [notification-subscriber] section.

[notification-subscriber]
always_notify_owner =TicketOwnerSubscriber
always_notify_owner.format = text/html
always_notify_cc =CarbonCopySubscriber
always_notify_cc.format = text/html
always_notify_previous_updater =TicketPreviousUpdatersSubscriber
always_notify_previous_updater.format = text/html
always_notify_updater =TicketUpdaterSubscriber
always_notify_updater.format = text/html

2017-02-23 17:48:43,067 Trac[mail] DEBUG: EmailDistributor has found 
the following formats capable of handling 'email' of 'ticket': 
text/html, tex

t/plain
2017-02-23 17:48:43,068 Trac[web_ui] ERROR: Failure sending 
notification on change to ticket #14377: ConfigurationError: Cannot 
find implementatio
n(s) of the IEmailAddressResolver interface named 
DefaultDomainEmailResolver, 
SpecifiedEmailResolver. Pleas
e check that the Component is enabled or update the option 
[notification] email_address_resolvers in trac.ini.


Here it is:

[notification]
email_address_resolvers 
=SpecifiedEmailResolver,SessionEmailResolver,DefaultDomainEmailResolver

These  don't exist in Trac. You should just have this:
email_address_resolvers =SessionEmailResolver



email_enabled =enabled
email_from =siste...@xxx.com.br
email_from_name =xx - Depto de TI .:: Ger. de Desenvolvimento ::.
email_replyto =
email_subject_prefix =__default__
email_to =undisclosed-recipients:
mime_encoding =base64
smtp_port =25
smtp_enabled =enabled
smtp_password =xxx
smtp_server =xx
smtp_user =x...@xxxa.com.br
use_public_cc =disabled
use_tls =enabled
always_notify_cc.format =text/html
always_notify_previous_updater.format =text/html
always_notify_updater.format =text/html

[notification-subscriber]
always_notify_owner =TicketOwnerSubscriber
always_notify_cc =CarbonCopySubscriber
always_notify_previous_updater =TicketPreviousUpdatersSubscriber
always_notify_updater =TicketUpdaterSubscriber


Em quinta-feira, 23 de fevereiro de 2017 16:51:49 UTC-3, Peter Suter 
escreveu:


On 23.02.2017 19:41, ivanelson wrote:
> The documentation is not clear.
>
> I am currently like this:
>
> [notification]
> ...
> default_format =text/html
This option does not exist. You can delete this line.
https://trac.edgewall.org/wiki/TracIni#notification-section


> [notification-subscriber]
> always_notify_cc =CarbonCopySubscriber
> always_notify_previous_updater =TicketPreviousUpdatersSubscriber
> always_notify_updater =TicketUpdaterSubscriber
This section configures the default subscriptions.
If you have TracHtmlNotificationPlugin installed, you can add the
following lines here:
always_notify_cc.format = text/html
always_notify_previous_updater.format = text/html
always_notify_updater.format = text/html

This format will then be used for these default subscriptions.
If a user has custom rules defined that override default
subscriptions,
then the user's saved format preference will be used for emails
triggered by that rule.

Peter

--
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: Notification in Trac 1.2

2017-02-23 Thread ivanelson
I put it in [notification]. After this came the error:

2017-02-23 17:48:43,067 Trac[mail] DEBUG: EmailDistributor has found the 
following formats capable of handling 'email' of 'ticket': text/html, tex
t/plain 
2017-02-23 17:48:43,068 Trac[web_ui] ERROR: Failure sending notification on 
change to ticket #14377: ConfigurationError: Cannot find implementatio
n(s) of the IEmailAddressResolver interface named 
DefaultDomainEmailResolver, 
SpecifiedEmailResolver. Pleas
e check that the Component is enabled or update the option 
[notification] email_address_resolvers in trac.ini.

Here it is:

[notification] 
email_address_resolvers = 
SpecifiedEmailResolver,SessionEmailResolver,DefaultDomainEmailResolver 
email_enabled = enabled 
email_from = siste...@xxx.com.br 
email_from_name = xx - Depto de TI .:: Ger. de Desenvolvimento ::. 
email_replyto = 
email_subject_prefix = __default__ 
email_to = undisclosed-recipients: 
mime_encoding = base64 
smtp_port = 25 
smtp_enabled = enabled 
smtp_password = xxx
smtp_server = xx 
smtp_user = x...@xxxa.com.br 
use_public_cc = disabled 
use_tls = enabled 
always_notify_cc.format = text/html 
always_notify_previous_updater.format = text/html 
always_notify_updater.format = text/html 

[notification-subscriber] 
always_notify_owner = TicketOwnerSubscriber 
always_notify_cc = CarbonCopySubscriber 
always_notify_previous_updater = TicketPreviousUpdatersSubscriber 
always_notify_updater = TicketUpdaterSubscriber


Em quinta-feira, 23 de fevereiro de 2017 16:51:49 UTC-3, Peter Suter 
escreveu:
>
> On 23.02.2017 19:41, ivanelson wrote: 
> > The documentation is not clear. 
> > 
> > I am currently like this: 
> > 
> > [notification] 
> > ... 
> > default_format =text/html 
> This option does not exist. You can delete this line. 
> https://trac.edgewall.org/wiki/TracIni#notification-section 
>
> > [notification-subscriber] 
> > always_notify_cc =CarbonCopySubscriber 
> > always_notify_previous_updater =TicketPreviousUpdatersSubscriber 
> > always_notify_updater =TicketUpdaterSubscriber 
> This section configures the default subscriptions. 
> If you have TracHtmlNotificationPlugin installed, you can add the 
> following lines here: 
> always_notify_cc.format = text/html 
> always_notify_previous_updater.format = text/html 
> always_notify_updater.format = text/html 
>
> This format will then be used for these default subscriptions. 
> If a user has custom rules defined that override default subscriptions, 
> then the user's saved format preference will be used for emails 
> triggered by that rule. 
>
> Peter 
>
>

-- 
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: Notification in Trac 1.2

2017-02-23 Thread Peter Suter

On 23.02.2017 19:41, ivanelson wrote:

The documentation is not clear.

I am currently like this:

[notification]
...
default_format =text/html

This option does not exist. You can delete this line.
https://trac.edgewall.org/wiki/TracIni#notification-section


[notification-subscriber]
always_notify_cc =CarbonCopySubscriber
always_notify_previous_updater =TicketPreviousUpdatersSubscriber
always_notify_updater =TicketUpdaterSubscriber

This section configures the default subscriptions.
If you have TracHtmlNotificationPlugin installed, you can add the 
following lines here:

always_notify_cc.format = text/html
always_notify_previous_updater.format = text/html
always_notify_updater.format = text/html

This format will then be used for these default subscriptions.
If a user has custom rules defined that override default subscriptions, 
then the user's saved format preference will be used for emails 
triggered by that rule.


Peter

--
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: Notification in Trac 1.2

2017-02-23 Thread ivanelson
The documentation is not clear.

I am currently like this:

[notification] 
email_address_resolvers = 
SpecifiedEmailResolver,SessionEmailResolver,DefaultDomainEmailResolver 
email_enabled = enabled 
email_from = siste...@bb.com.br 
email_from_name = It Depto .:: Ger. de Desenvolvimento ::. 
email_replyto = x...@bb.com.br, z...@bb.com.br
email_subject_prefix = __default__ 
email_to = undisclosed-recipients: 
mime_encoding = base64 
smtp_port = 25 
smtp_enabled = enabled 
smtp_password = password 
smtp_server = myserver.com 
smtp_user = siste...@bb.com.br 
use_public_cc = disabled 
use_tls = enabled 
default_format = text/html 

[notification-subscriber] 
always_notify_cc = CarbonCopySubscriber 
always_notify_previous_updater = TicketPreviousUpdatersSubscriber 
always_notify_updater = TicketUpdaterSubscriber

What is missing ? Or is it something wrong?

Em quinta-feira, 23 de fevereiro de 2017 15:10:15 UTC-3, RjOllos escreveu:
>
>
>
> On Thursday, February 23, 2017 at 9:47:37 AM UTC-8, ivanelson wrote:
>>
>> I managed to save(text/html). However, it still does not send in html 
>> format.
>>
>
> See https://groups.google.com/d/msg/trac-users/d1VfehAzsWM/yfjG3BOYEAAJ
>
> - 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.


Re: [Trac] Re: Notification in Trac 1.2

2017-02-23 Thread RjOllos


On Thursday, February 23, 2017 at 9:47:37 AM UTC-8, ivanelson wrote:
>
> I managed to save(text/html). However, it still does not send in html 
> format.
>

See https://groups.google.com/d/msg/trac-users/d1VfehAzsWM/yfjG3BOYEAAJ

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


Re: [Trac] Re: Notification in Trac 1.2

2017-02-23 Thread ivanelson
I managed to save(text/html). However, it still does not send in html 
format.




Em quinta-feira, 23 de fevereiro de 2017 11:47:00 UTC-3, Mo escreveu:
>
> Am Donnerstag, 23. Februar 2017 15:39:44 UTC+1
>>
>> Then I went into Preferences -> Notifications and changed to "text/html" 
>> and saved, without errors. However, when I come back in the same 
>> "notifications", text/plain is still there.
>>
>> And it does not send emails in html format.
>>
>
> This is a bug: 
> https://groups.google.com/d/msg/trac-users/d1VfehAzsWM/yfjG3BOYEAAJ
>
> You need to save at least one custom rule, so I usually take one of the 
> already set and set it again.
>

-- 
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: Notification in Trac 1.2

2017-02-23 Thread Mo
Am Donnerstag, 23. Februar 2017 15:39:44 UTC+1
>
> Then I went into Preferences -> Notifications and changed to "text/html" 
> and saved, without errors. However, when I come back in the same 
> "notifications", text/plain is still there.
>
> And it does not send emails in html format.
>

This is a bug: 
https://groups.google.com/d/msg/trac-users/d1VfehAzsWM/yfjG3BOYEAAJ

You need to save at least one custom rule, so I usually take one of the 
already set and set it again.

-- 
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: Notification in Trac 1.2

2017-02-23 Thread ivanelson
My trac is 1.2.

I configured this:

[components]
> trachtmlnotification. * = enabled


Then I went into Preferences -> Notifications and changed to "text/html" 
and saved, without errors. However, when I come back in the same 
"notifications", text/plain is still there.

And it does not send emails in html format.



Em quarta-feira, 22 de fevereiro de 2017 17:26:07 UTC-3, Peter Suter 
escreveu:
>
> On 22.02.2017 21:08, ivanelson wrote: 
> > Hi 
> > 
> > Does the notification system already support sending emails in html? 
>
> Yes, with this plugin: 
> https://trac-hacks.org/wiki/TracHtmlNotificationPlugin 
>

-- 
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: Updating trac.db

2017-02-23 Thread Cooke, Mark
> -Original Message-
> From: trac-users@googlegroups.com On Behalf Of RjOllos
> 
> On Wednesday, February 22, 2017 at 6:04:48 AM UTC-8, Roger Oberholtzer wrote:
> 
> > On Tue, Feb 21, 2017 at 9:48 PM, RjOllos  wrote:
> > 
> > If it's still not clear what's a good solution, I might be able to
> > give better advice if you provide a few more details about what you
> > are trying to accomplish with the script.
> > 
> > It is something I have put off for a long time. I am using the
> > download feature where I have files that users can download via a wiki
> > page. These files are updated by a software build script. So the file
> > is always what we expect. It is a file in a directory. The wiki page,
> > otoh, shows the date/size that was placed in a table when the file was
> > uploaded via the wiki. But we do not want to upload these files
> > interactively when they change. Updating the download table would
> > accomplish what we want. I could rewrite in python the script I have
> > now. But I still need to arrange that it run in a safe fashion. Like
> > by trac...
> 
> Is this using DownloadsPlugin? Related to #12107?
> https://trac-hacks.org/ticket/12107
> 
> - Ryan

Just a thought but what about changing the wiki page to use a macro that can 
generate the table on the fly from data in the relevant folder?  Then you do 
not need to do any modifications to trac from your independent processes...

If you know any python I found it reasonably easy to write a simple one-file 
macro based on all the examples on trac-hacks.

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