Hi Matthew/List,
Here are my patches to workflow. They will aid you in treating verified tickets as closed.
Let me know if you find something missing or add something cool. :)

Yours,
Philip


Index: htdocs/css/trac.css
===================================================================
--- htdocs/css/trac.css (revision 3549)
+++ htdocs/css/trac.css (working copy)
@@ -277,7 +277,9 @@
a.missing:link, a.missing:visited, span.missing { color: #998 }
a.missing:link, a.missing:visited { background: #fafaf0 }
a.missing:hover { color: #000 }
-a.closed:link, a.closed:visited { text-decoration: line-through }
+a.closed:link, a.closed:visited { color: #dddddd; text-decoration: line-through }
+a.resolved:link, a.resolved:visited { color: #00aa00 }
+a.verified:link, a.verified:visited { text-decoration: line-through }
dl.wiki dt { font-weight: bold }
dl.compact dt { float: left; padding-right: .5em }
Index: trac/attachment.py
===================================================================
--- trac/attachment.py (revision 3549)
+++ trac/attachment.py (working copy)
@@ -434,6 +434,13 @@
             binary = is_binary(str_data)
             mime_type = mimeview.get_mimetype(attachment.filename, str_data)
+            # PHILIP BERGEN ([EMAIL PROTECTED])
+            # For unsupported types
+            if not mime_type:
+                mime_type='text/plain'
+                if attachment.filename.endswith('.wiki'):
+                    mime_type='text/x-trac-wiki'
+
             # Eventually send the file directly
             format = req.args.get('format')
             if format in ('raw', 'txt'):
Index: trac/ticket/roadmap.py
===================================================================
--- trac/ticket/roadmap.py (revision 3549)
+++ trac/ticket/roadmap.py (working copy)
@@ -50,12 +50,14 @@
def get_query_links(env, milestone, grouped_by='component', group=None):
     q = {}
     not_closed = [status.name for status in Status.select(env)
-                  if status.name != 'closed']
+                  if (status.name != 'closed' and status.name != 'verified') ]
+    closed = [status.name for status in Status.select(env)
+              if (status.name == 'closed' or status.name == 'verified') ]
     if not group:
         q['all_tickets'] = env.href.query(milestone=milestone)
         q['active_tickets'] = env.href.query(milestone=milestone,
                                              status=not_closed)
-        q['closed_tickets'] = env.href.query(milestone=milestone, status='closed')
+        q['closed_tickets'] = env.href.query(milestone=milestone, status=closed)
     else:
         q['all_tickets'] = env.href.query({grouped_by: group},
                                           milestone=milestone)
@@ -64,12 +66,13 @@
                                              status=not_closed)
         q['closed_tickets'] = env.href.query({grouped_by: group},
                                              milestone=milestone,
-                                             status='closed')
+                                             status=closed)
     return q
def calc_ticket_stats(tickets):
     total_cnt = len(tickets)
-    active = [ticket for ticket in tickets if ticket['status'] != 'closed']
+## PB: Count verified as closed on roadmap status
+    active = [ticket for ticket in tickets if (ticket['status'] != 'closed' and ticket['status'] != 'verified')]
     active_cnt = len(active)
     closed_cnt = total_cnt - active_cnt
@@ -279,7 +282,6 @@
                 write_prop('END', 'VTODO')
         write_prop('END', 'VCALENDAR')
-
class MilestoneModule(Component):
     implements(INavigationContributor, IPermissionRequestor, IRequestHandler,



On Jul 20, 2006, at 6:04 PM, Matthew Keesan wrote:

Philip,


_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to