Hello Mark,

On 11/4/2011 10:44 AM, Cooke, Mark wrote:
-----Original Message-----
From: [email protected] On Behalf Of Cooke, Mark
Sent: 04 November 2011 09:36
To: [email protected]
Subject: RE: [Trac] Duplicate this ticket?

On 4 November 2011 08:57, Cooke, Mark
<[email protected]>  wrote:

        Dear list,
        
        Does anyone know if it is possible either in vanilla
0.12.2 or via a plugin to duplicate a ticket?
        
        The way we see this working is to create a new ticket,
then once submitted click on a button to open the new ticket
form with fields pre-populated with the source ticket's data
(no comments or change history required).
        
        Is this (a) available or (b) possible?
        
        Many thanks,
        
        ~ Mark C
        
-----Original Message-----
From: [email protected] On Behalf Of Andy Baker
Sent: 04 November 2011 09:14
Subject: Re: [Trac] Duplicate this ticket?

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


...brilliant!  I failed to search for "clone", did not think of that!

For info: the clone ticket "plugin" just creates a new ticket
based on the old that you then edit, so it does not let you
change any of the ticket values before the new ticket is
created but that's close enough for what we want.

No, normally you'd get to the Preview of this cloned ticket, so you can modify everything before creating it. Or you used an old version of that file (pre r6322).


Thanks very much,

~ mark c

...spoke too soon.  It worked once but now I am getting a genshi error 
regardles of what I try to view:

   File "C:\Python26\lib\site-packages\genshi\core.py", line 272, in _ensure
     event = stream.next()
   File "C:\Python26\lib\site-packages\trac\web\chrome.py", line 970, in 
_generate
     for kind, data, pos in stream:
   File "C:\Python26\lib\site-packages\genshi\core.py", line 271, in _ensure
     stream = iter(stream)
TypeError: 'NoneType' object is not iterable

...I've not got time to track this down at the moment and am not that up on the 
genshi stuff anyway, so if anyone can give me some pointers I would appreciate 
it!


Interesting, it's been a long time we haven't seen a weird Genshi error ;-) As usual we start clueless, so a few more hints will be helpful:
 - which version of Genshi?
- does the problem happen only after clicking "clone"? Or for any ticket once the plugin is active? And not for any page I hope? - does the problem persist if you disable all plugins but this one? If not, there must be some interaction with another plugin, try to identify which by re-enabling them one by one...
 - ... anything else you omitted to say? ;-)

I briefly tested on my 0.12.3dev test installation, with ticket_clone.py (r6326 and then the latest at r8149) and Genshi 0.6, and it worked fined for me...

-- Christian

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to