Lines Matching defs:RepositoryURI
99 # Supported RepositoryURI sorting policies.
141 class RepositoryURI(object):
187 "RepositoryURI object.")
196 uri = RepositoryURI(self.__uri, priority=self.__priority,
205 if isinstance(other, RepositoryURI):
212 if isinstance(other, RepositoryURI):
223 if not isinstance(other, RepositoryURI):
224 other = RepositoryURI(other)
230 if not isinstance(other, RepositoryURI):
231 other = RepositoryURI(other)
302 # for now, we only support a single proxy per RepositoryURI
481 class ProxyURI(RepositoryURI):
538 class TransportRepoURI(RepositoryURI):
540 RepositoryURI, each with different properties.
542 One RepositoryURI could be represented by several TransportRepoURIs,
554 RepositoryURI.__init__(self, uri, priority=priority,
669 properties from the given RepositoryURI, 'repouri'.
672 a given RepositoryURI, if more than one is possible."""
751 'legal_uris' should be a list of RepositoryURI objects or URI
755 'mirrors' is an optional list of RepositoryURI objects or URI
761 'origins' should be a list of RepositoryURI objects or URI
771 'registration_uri' is an optional RepositoryURI object or a URI
775 'related_uris' is an optional list of RepositoryURI objects or a
805 if not isinstance(uri, RepositoryURI):
806 uri = RepositoryURI(uri, priority=priority,
843 if not isinstance(u, RepositoryURI):
844 u = RepositoryURI(u,
868 if value and not isinstance(value, RepositoryURI):
869 value = RepositoryURI(value, trailing_slash=False)
897 'uri' can be a RepositoryURI object or a URI string. If
898 it is a RepositoryURI object, all other parameters will be
908 'mirror' can be a RepositoryURI object or a URI string. If
909 it is a RepositoryURI object, all other parameters will be
928 'origin' can be a RepositoryURI object or a URI string. If
929 it is a RepositoryURI object, all other parameters will be
948 'uri' can be a RepositoryURI object or a URI string. If
949 it is a RepositoryURI object, all other parameters will be
956 """Returns a RepositoryURI object representing the mirror
959 'mirror' can be a RepositoryURI object or a URI string."""
961 if not isinstance(mirror, RepositoryURI):
969 """Returns a RepositoryURI object representing the origin
972 'origin' can be a RepositoryURI object or a URI string."""
974 if not isinstance(origin, RepositoryURI):
985 'mirror' can be a RepositoryURI object or a URI string."""
987 if not isinstance(mirror, RepositoryURI):
988 mirror = RepositoryURI(mirror)
995 'origin' can be a RepositoryURI object or a URI string."""
997 if not isinstance(origin, RepositoryURI):
998 origin = RepositoryURI(origin)
1004 'uri' can be a RepositoryURI object or a URI string."""
1017 'mirror' can be a RepositoryURI object or a URI string."""
1019 if not isinstance(mirror, RepositoryURI):
1035 'origin' can be a RepositoryURI object or a URI string."""
1037 if not isinstance(origin, RepositoryURI):
1038 origin = RepositoryURI(origin)
1053 'uri' can be a RepositoryURI object or a URI string."""
1067 'mirror' can be a RepositoryURI object or a URI string.
1072 if not isinstance(mirror, RepositoryURI):
1073 mirror = RepositoryURI(mirror, priority=priority,
1087 'origin' can be a RepositoryURI object or a URI string.
1092 if not isinstance(origin, RepositoryURI):
1093 origin = RepositoryURI(origin, priority=priority,
1131 """A list of RepositoryURI objects indicating where licensing,
1136 """A list of RepositoryURI objects indicating where package content
1138 string, it will be replaced with a RepositoryURI object.""")
1141 """A list of RepositoryURI objects indicating where package content
1143 string, it will be replaced with a RepositoryURI object.""")
1147 """A RepositoryURI object indicating a location clients can use to
1150 RepositoryURI object.""")
1154 """A list of RepositoryURI objects indicating the location of
1157 a RepositoryURI object.""")
2243 'repo_uri' is an optional RepositoryURI object or URI string
2247 if repo_uri and not isinstance(repo_uri, RepositoryURI):
2248 repo = RepositoryURI(repo_uri)