RjOllos | 11 Jul 01:32 2015
Picon

[Trac] Testing plugin compatibility with Trac 1.2

Trac 1.2 will be released soon. Portions of the deprecated API have been removed (1), and many plugins will not yet work with Trac 1.2. If you are running any plugins that are not yet tagged as being compatible with Trac 1.2, now would be a good time to test them in order to smooth your upgrade experience.

Here what you can do:
 1. Check whether the plugin is compatible with Trac 1.2. If it is compatible, the plugin's wiki page should be tagged with "1.2" (2). Even if the plugin is tagged with 1.2, you may still want to test it. Several plugins were tagged with "1.1", which is very ambiguous, and I changed many of those to have tag "1.2" after briefly inspecting the code.
 2. Test the plugin in a clean installation environment. The procedure is described below. If the plugin works with the latest Trac trunk, please tag the page with 1.2. If the plugin does not work, please open a ticket and include the information suggested below. Many of the changes are fairly easy to fix. I'll be fixing as many of the unmaintained plugins as I can find time for.

Testing plugins on Linux (if there is need, I'll write up procedures for Windows and OSX):
1. Install required packages using package manager. For a Debian-like OS: "apt-get install python python-setuptools python-virtualenv"
2. Create a virtual environment and install Trac
$ mkdir plugin-test
$ cd plugin-test
$ virtualenv pve
$ source pve/bin/activate
$ easy_install genshi babel pytz docutils pygments
$ svn co http://svn.edgewall.org/repos/trac/trunk/ trac-trunk
$ cd trac-trunk
$ python setup.py install
$ cd ..

$ trac-admin trac initenv "trac" "sqlite:db/trac.db"

$ trac-admin trac permission add anonymous TRAC_ADMIN
$ trac-admin trac config set logging log_level DEBUG
$ trac-admin trac config set logging log_type stderr

3. Install plugins (example here is for the popular TagsPlugin).
$ svn co https://trac-hacks.org/svn/tagsplugin/trunk tagsplugin-trunk
$ cd tagsplugin-trunk
$ python setup.py install

4. Run the plugin test suite, if it has one,
$ python setup.py test

5. Enable the plugin, start Trac and test the plugin,
$ cd ..
$ trac-admin trac config set components tractags.* enabled
$ trac-admin trac upgrade
$ tracd -p 8000 -s trac

In the case of TagsPlugin, you'll see that many tests fail, and the plugin fails at "trac-admin trac upgrade" with output (3).

Check whether a ticket has already been opened for the issue. In the case of TagsPlugin, there is already a ticket (4).

If a ticket needs to be opened, please include the following information:
1. Version of Trac that you tested against.
2. Errors from the logs.
3. Version of plugin that you tested with.

Much more could be done of course. Testing could be done with PostgreSQL and MySQL. Many plugins have optional dependencies - TagsPlugin has XmlRpcPlugin as an optional dependency. Testing with a real webserver rather than TracStandalone may uncover some issues as well. I may writeup more steps later if this proves to be useful in stimulating effort towards testing plugins.

- Ryan

(1) http://trac.edgewall.org/wiki/TracDev/ApiChanges/1.1
(2) https://trac-hacks.org/tags/1.2
(3) 

The upgrade failed. Please fix the issue and try again.


AttributeError: 'Environment' object has no attribute 'get_db_cnx'

16:19:19 Trac[console] ERROR: Exception in trac-admin command: 

Traceback (most recent call last):

  File "build/bdist.macosx-10.10-x86_64/egg/trac/admin/console.py", line 108, in onecmd

    rv = cmd.Cmd.onecmd(self, line) or 0

  File "/usr/local/Cellar/python/2.7.10_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cmd.py", line 220, in onecmd

    return self.default(line)

  File "build/bdist.macosx-10.10-x86_64/egg/trac/admin/console.py", line 286, in default

    return self.cmd_mgr.execute_command(*args)

  File "build/bdist.macosx-10.10-x86_64/egg/trac/admin/api.py", line 127, in execute_command

    return f(*fargs)

  File "build/bdist.macosx-10.10-x86_64/egg/trac/env.py", line 976, in _do_upgrade

    self.env.upgrade(backup=no_backup is None)

  File "build/bdist.macosx-10.10-x86_64/egg/trac/env.py", line 738, in upgrade

    participant.upgrade_environment(*args)

  File "build/bdist.macosx-10.10-x86_64/egg/tractags/db.py", line 79, in upgrade_environment

    TicketTagProvider(self.env)._fetch_tkt_tags(db)

  File "build/bdist.macosx-10.10-x86_64/egg/trac/core.py", line 144, in __call__

    self.__init__()

  File "build/bdist.macosx-10.10-x86_64/egg/tractags/ticket.py", line 53, in __init__

    db = self.env.get_db_cnx()

AttributeError: 'Environment' object has no attribute 'get_db_cnx'


(4) https://trac-hacks.org/ticket/12137

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
MalaclypsedJ | 10 Jul 15:47 2015

[Trac] Disable Fields depending on Ticket Type

I have a maybe not common workflow in my project and try to support that with trac.

What I need:
The team members in my project open tickets by them self (if they find any problems) and can pick a work Packet out of a custom field. the work Packet (lets say small medium, big) is very important, because it say how much work will it be and what does the customer need to pay for. Because most issues are urgent, the project members start to work on the tickets.
Once a month the project manager give a list with all the open tickets to the customer and let him sign up. After that point, a work Packet can not be changed anymore. If the ticket is closed, it will be reported to the customer as an invoice.

How i would like to have trac to support this:
A ticket with the type - "to_be_ordered" will have a custom field "work-packet" (small, medium, high) -> no problem
After the customer signed the order, the ticket type change to "ordered" -> no problem
If the ticked type is "ordered", the custom field should be visible, but disabled to change (or only changed by an admin) -> ther is the problem.

What i did:
I tried the Plugin blackmagictickettweeks, but it can only generally disable fields, not depending on the ticket type.
I tryed the plugin dynfield, but it can only hide a field depending on a ticket type, disable is not possible (I want to disable, in order that anyone can see how big the work packet is).

Does anyone know a way to disable a field, depending on ticket type or depending on a second field?

Thanks in advance for any help




--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
Ita | 3 Jul 11:33 2015
Picon

[Trac] Installing docrenderplugin on Windows

I've been running Trac in the office for a few months now and it's been a great solution. Everyone loves it. As most of my colleagues have never used issue tracking software before, its simplicity has been a real boon. The Git integration is AMAZING. 
I have it installed on a Windows 7 machine.
This morning with some time to spare I went looking for a plugin to allow us to view Word documents attached by the QA team. At the moment we have to download them. I found docrenderplugin which looks like just what we need. 
It's only the second Trac plugin I've installed and it took me a while to get to grips with what was needed. I created an egg file, put it in the plugins directory and added a line to the attachments section in trac.ini.
My problem came with running init-script as it's not a Windows script. After peering at it for a while I decided that I could achieve the same thing by running LibreOffice as a Windows Service. Unfortunately, I haven't been able to discover a way of doing this, even with the help of Google. 
Since it looks like LibreOffice can be run as a service on Unix I can't see why it wouldn't be possible on Windows, but I'm in new territory here and would love some help from anyone who's done this or who knows how to go about it. Maybe my approach is totally wrong and I should be going about it another way? 
I've been a developer for years (C++, Java, C#) but have no Python experience.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
Craig Johnstone | 2 Jul 14:41 2015

[Trac] Notifications for only one milestone

Our TRAC instance has a number of users and a number of milestones.

Some users are interested in updates only within certain milestones.

Can I configure TRAC such that certain users receive e-mail notifications only about particular milestones?

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
anujgangwar | 2 Jul 13:00 2015
Picon

[Trac] Does Trac Issue Tracker support ticket generation by pulling emails from an email account?

I have installed Trac for issue tracking for my software product. My clients sends email to my support email id. I am not finding anything if Trac supports pulling these emails using POP3 and creates tickets on its own.

Please help me.

Thank you'
Anuj Gangwar

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
David Cozens | 30 Jun 17:50 2015
Picon

[Trac] Installation error undefined symbol svn_uri__is_child

I am trying to figure out a reliable way of installing trac and svn on the Raspberry Pi. I want to use subversion 1.8.x and trac 0.12.5 seems adequate for my needs. The full details of how I have installed can be found on my blog.
The issue occurs when I add a repository, I add the repository through the admin page in trac and then run

sudo -u www-data trac-admin /var/trac/projects/play repository resync "play"

This gives the following error

TracError: Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_core.so: undefined symbol: svn_uri__is_child

The trac system information is

TracBabelDocutilsGenshimod_pythonPygmentspysqlitePythonpytzsetuptoolsSQLitejQuery:
0.12.5
0.9.6
0.8.1
0.6 (with speedups)
3.3.1
1.5
2.6.0
2.7.3 (default, Mar 18 2014, 06:31:17) [GCC 4.6.3]
2012c
0.6
3.7.13
1.7.2



--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
Mo | 30 Jun 11:32 2015
Picon

[Trac] Wiki definition lists

Hi, on Trac 1.0.5 I try the Definition List syntax like this:

tterm::
  test
     test

I also tried variations:

tterm
::
       test
       test

tterm:: test
        test

This does not work as described here: http://trac.edgewall.org/wiki/WikiFormatting#DefinitionLists
Anything wrong?

Best regards.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
Alexey G | 29 Jun 12:26 2015
Picon

[Trac] TicketReminderPlugin: Failure sending reminder notification for ticket #11574: TypeError: format_subj() takes exactly 2 arguments (3 given).

Hello!
I'm have installed Trac version 1.0.6post2 and TicketReminderPlugin-0.1.3-py2.6.egg.
I can add ticket reminder in Web interface, but when command "trac-admin /path/to/trac/environment reminders" is executing, error:
Failure sending reminder notification for ticket #11574: TypeError: format_subj() takes exactly 2 arguments (3 given).

Package Version
Trac 1.0.6post2
Babel 0.9.6 (translations unavailable)
Genshi 0.6.1 (without speedups)
mod_python 3.3.1
psycopg2 2.2.1
Pygments 1.6
Python 2.6.6
setuptools 0.6
jQuery 1.7.2
jQuery UI 1.8.21
jQuery Timepicker 1.0.1

Please help me to solve this problem.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
whartlists | 25 Jun 22:02 2015
Picon

[Trac] Import ExportXLS plugin generates error

Installed xlrd and xlwt, created the .egg file from the current ExportImport plugin and get the following error:

721 Trac[loader] DEBUG: Loading importexportxls from /var/www/html/svbtrac/plugins/ImportExportXLS-0.1.8-py2.4.egg
722 Trac[loader] ERROR: Skipping "importexportxls = importexportxls": (can't import "ImportError: No module named xlwt")

RHEL 5.11 w/python 2.4 so I had to use xlrd v .8.x and xlwt v. 7.x.

Thanks in advance.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
Mo | 25 Jun 16:20 2015
Picon

[Trac] Sharing custom queries

Hi,

is it possible to share custom queries or reports with users, user groups or globally? From the users perspective that would mean to have an overlay of inherited queries and user-owned custom queries.

Best regards.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
Lukasz Szybalski | 24 Jun 18:11 2015
Picon

[Trac] Trac 1.0.2 query to ticket_custom wrong SQL costing 15seconds vs left outer join would cost 0.05seconds

Hello,
Can you tell me why trac 1.0.2 uses select from ticket_custom instead of inner or left outer join?
This is a major performance hit. The query runs in 15seconds vs 0.05second with left outer join?

How can I change that?



  SELECT t.id AS id,t.summary AS summary,t.version AS version,t.status AS status,t.priority AS priority,t.component AS component,t.keywords AS keywords,t.time AS time,t.changetime AS changetime,t.milestone AS milestone,
  (SELECT c.value FROM ticket_custom c WHERE c.ticket=t.id AND c.name='contract_number') AS `contract_number`
  FROM ticket AS t
  LEFT OUTER JOIN ticket_custom c2
    on c2.ticket=t.id
    and c2.name='contract_number'
  LEFT OUTER JOIN enum AS priority ON (priority.type='priority' AND priority.name=priority)
WHERE (t.status IN ('new','reopened') AND t.version NOT IN ('ILC','INC') AND (t.milestone='Endorsement'))



  SELECT t.id AS id,t.summary AS summary,t.version AS version,t.status AS status,t.priority AS priority,t.component AS component,t.keywords AS keywords,t.time AS time,t.changetime AS changetime,t.milestone AS milestone, c2.value as contract_number
AS `contract_number`
  FROM ticket AS t
  LEFT OUTER JOIN ticket_custom c2
    on c2.ticket=t.id
    and c2.name='contract_number'
  LEFT OUTER JOIN enum AS priority ON (priority.type='priority' AND priority.name=priority)
WHERE (t.status IN ('new','reopened') AND t.version NOT IN ('ILC','INC') AND (t.milestone='Endorsement'))

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Gmane