Permalink
Browse files

Some small modifications (docs)

  • Loading branch information...
1 parent 797d6c5 commit 49358d54077ff0394a60297bae1116d7d8596df9 @daltonmatos committed Nov 25, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 conditionalfields/0.11/conditionalfields/validation.py
@@ -1,6 +1,4 @@
-
-
from trac.core import *
from trac.ticket.api import ITicketManipulator
from trac.util.translation import _
@@ -20,6 +18,9 @@ def _is_empty(self, value):
return False
+
+ # Get the label for a given ticket field.
+ # If the field does not exist, return the field name
def _get_field_label(self, field_name):
label = [field['label'] for field in TicketSystem(self.env).get_ticket_fields() if field['name'] == field_name]
if len(label) > 0:

0 comments on commit 49358d5

Please sign in to comment.