Пример #1
0
 def __init__(self, project, name, version, url_prefix,
         redirect_to=None, fqdn=None,
         redirect=False, prefix_regex=None, weight=1):
     self.project = project
     self.name = name
     self.version = version
     self.url_prefix = url_prefix
     self.prefix_regex = prefix_regex
     self.fqdn = normalize_fqdn(fqdn) or project.fqdn
     self.redirect_to = redirect_to or self.full_url
     self.redirect = redirect
     self.weight = weight
Пример #2
0
 def __init__(self, name, fqdn):
     self.name = name
     self.fqdn = normalize_fqdn(fqdn)