parameters: (self, constraint, object_relative_url='',
                message='', mapping = {}, **kw)
docstring: init specific variable to constraint
docstring_summary: init specific variable to constraint
docstring_tokens: init specific variable to constraint
function: def __init__(self, constraint, object_relative_url='',
                message='', mapping = {}, **kw):
      """
      init specific variable to constraint
      """
      ObjectMessage.__init__(self, object_relative_url, message, mapping)
      self.description = constraint.description
      self.class_name = constraint.__class__.__name__
      # keep track of the relative URL of the constraint to have it included in
      # the message
      constraint_relative_url = getattr(aq_base(constraint), 'relative_url', None)
      if not constraint_relative_url:
        try:
          constraint_relative_url = constraint.getRelativeUrl()
        except AttributeError:
          constraint_relative_url = constraint.id
      self.constraint_relative_url = constraint_relative_url
  
      self.__dict__.update(kw)
function_tokens: def __init__ ( self , constraint , object_relative_url = '' , message = '' , mapping = { } , * * kw ) : ObjectMessage . __init__ ( self , object_relative_url , message , mapping ) self . description = constraint . description self . class_name = constraint . __class__ . __name__ # keep track of the relative URL of the constraint to have it included in # the message constraint_relative_url = getattr ( aq_base ( constraint ) , 'relative_url' , None ) if not constraint_relative_url : try : constraint_relative_url = constraint . getRelativeUrl ( ) except AttributeError : constraint_relative_url = constraint . id self . constraint_relative_url = constraint_relative_url self . __dict__ . update ( kw )