Modify

Opened 14 years ago

Closed 4 years ago

#7454 closed enhancement (wontfix)

Patch to get BlackMagic working with Agilo

Reported by: Andy Baker Owned by: obs
Priority: lowest Component: BlackMagicTicketTweaksPlugin
Severity: trivial Keywords:
Cc: Andy Baker Trac Release: 0.11

Description

Not sure if this something you'd be interested in, but here's a quick'n'dirty patch (against 0.11) so that BlackMagic works with Agilo.

Index: blackmagic/blackmagic.py
===================================================================
--- blackmagic/blackmagic.py	(revision 8334)
+++ blackmagic/blackmagic.py	(working copy)
@@ -100,7 +100,7 @@
         #reset blocked tickets to 0
         self.blockedTickets = 0
         #ticket page
-        if template == "ticket.html":
+        if template == "ticket.html" or template == "agilo_ticket_new.html" or template == "agilo_ticket_edit.html" :
             #remove ticket types user doesn't have permission to
             fields = data.get("fields")
             i = 0
@@ -260,7 +260,7 @@
         if filename == "query.html":
             stream |= Transformer('//div[@class="query"]/h1/span[@class="numrows"]/text()').replace("")
 
-        if filename == "ticket.html":
+        if filename == "ticket.html" or filename == "agilo_ticket_new.html" or filename == "agilo_ticket_edit.html" :
             for field,e in self.enchants.items():
                 disabled = e["disable"]
                 hidden = e["hide"]

Attachments (0)

Change History (4)

comment:1 Changed 13 years ago by NETAVIS Software <ck5@…>

Thank you very much ... it helped us a lot!!!!

comment:2 Changed 9 years ago by anonymous

you forgot agilo_ticket_view.html.

Last edited 9 years ago by Ryan J Ollos (previous) (diff)

comment:4 Changed 4 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

This plugin is deprecated in Trac 1.4 and later. See migration tips on BlackMagicTicketTweaksPlugin page.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain obs.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.