'A decorator to mark validator functions for use on a particular
named url. Use like so:
@Urls.validates(\'history\')
def must_have_actions(self, url, text):
\'Skip bill that hasn\'t been introduced yet.\'
if \'no actions yet\' in text:
raise Skip(\'Bill had no actions yet.\')'

@staticmethod
def validates(name, retry=False):

    def decorator(method):
        method.validates = name
        method.retry = retry
        return method
    return decorator
