def rule(value):
 def add_attribute(function):
  if (not hasattr(function, u'rule')):
   function.rule = []
  function.rule.append(value)
  return function
 return add_attribute

def rule ( value ) : def add_attribute ( function ) : if ( not hasattr ( function , u'rule' ) ) : function . rule = [ ] function . rule . append ( value ) return function return add_attribute
helper to build a firewall rule .