Lines Matching refs:value
107 # The strings in the value field refer to the boolean properties of the
108 # Cryptography extension classes. If a property has a value True set, it means
109 # this property is added as an extension value in the certificate generation,
247 "disabled", value=disable)
256 "system", value=system)
262 def __set_priority(self, value):
263 if value is not None:
265 value = int(value)
267 raise api_errors.BadRepositoryURIPriority(value)
268 self.__priority = value
291 "proxies", value=proxy)
300 "proxies", value=proxies)
305 "proxies", value=proxies)
319 "ssl_cert", value=filename)
332 "ssl_key", value=filename)
338 def __set_trailing_slash(self, value):
339 if value not in (True, False):
341 "trailing_slash", value=value)
342 self.__trailing_slash = value
348 # if we're setting the URI to an existing value, do nothing.
439 "A boolean value indicating whether this repository URI should be "
452 "An integer value representing the importance of this repository "
464 "A boolean value indicating whether this repository URI is for"
476 "A boolean value indicating whether any URI provided for this "
482 """A class to represent the URI of a proxy. The 'uri' value can be
491 def __set_system(self, value):
495 if value not in (True, False):
497 "system", value=value)
498 self.__system = value
499 if value:
500 # Set a special value for the uri, intentionally an
510 def __unsupported(self, value):
516 "ProxyURI object.".format(value))
609 """Returns a value that can be used to identify this RepoURI
616 system, we may choose to override the proxy value here.
639 # Changing the proxy value causes us to clear any cached
640 # value we have in __runtime_proxy.
645 differ from the persisted proxy value. We check for http_proxy,
661 """The runtime proxy value is always computed dynamically,
664 assert False, "Refusing to set a runtime_proxy value."
702 "The proxy to use to access this repository. This value checks"
745 'collection_type' is an optional constant value indicating the
748 'description' is an optional string value containing a
764 'refresh_seconds' is an optional integer value indicating the
768 'registered' is an optional boolean value indicating whether
779 'sort_policy' is an optional constant value indicating how
835 def __replace_uris(self, attr, value, trailing_slash=True):
836 if value is None:
837 value = []
838 if not isinstance(value, list):
840 value=value)
842 for u in value:
852 def __set_collection_type(self, value):
853 if value not in REPO_COLLECTION_TYPES:
854 raise api_errors.BadRepositoryCollectionType(value)
855 self.__collection_type = value
857 def __set_legal_uris(self, value):
858 self.__legal_uris = self.__replace_uris("legal_uris", value,
861 def __set_mirrors(self, value):
862 self.__mirrors = self.__replace_uris("mirrors", value)
864 def __set_origins(self, value):
865 self.__origins = self.__replace_uris("origins", value)
867 def __set_registration_uri(self, value):
868 if value and not isinstance(value, RepositoryURI):
869 value = RepositoryURI(value, trailing_slash=False)
870 self.__registration_uri = value
872 def __set_related_uris(self, value):
874 value, trailing_slash=False)
876 def __set_refresh_seconds(self, value):
877 if value is not None:
879 value = int(value)
882 "refresh_seconds", value=value)
883 if value < 0:
885 "refresh_seconds", value=value)
886 self.__refresh_seconds = value
888 def __set_sort_policy(self, value):
889 if value not in URI_SORT_POLICIES:
890 raise api_errors.BadRepositoryURISortPolicy(value)
891 self.__sort_policy = value
982 """Returns a boolean value indicating whether a matching
992 """Returns a boolean value indicating whether a matching
1115 """A constant value indicating the type of packages in the
1137 can be retrieved. If any value in the list provided is a URI
1142 can be retrieved. If any value in the list provided is a URI
1149 the value provided is a URI string, it will be replaced with a
1156 value in the list provided is a URI string, it will be replaced with
1161 """An integer value indicating the number of seconds clients should
1163 value of None indicates that refreshes should be performed at the
1168 """A constant value indicating how legal_uris, mirrors, origins, and
1174 sorted according to the value of their priority
1372 def __set_alias(self, value):
1379 if value is not None and value != "" and \
1380 not misc.valid_pub_prefix(value):
1381 raise api_errors.BadPublisherAlias(value)
1382 self.__alias = value
1394 def __set_last_refreshed(self, value):
1398 if value is not None and not isinstance(value, dt.datetime):
1400 "last_refreshed", value=value)
1403 if not value:
1404 # If no value was provided, attempt to remove the
1425 calendar.timegm(value.utctimetuple())))))
1483 def __set_repository(self, value):
1484 if not isinstance(value, Repository):
1485 raise api_errors.UnknownRepository(value)
1486 self.__repository = value
1489 def __set_client_uuid(self, value):
1490 self.__client_uuid = value
1492 def __set_stickiness(self, value):
1496 self.__sticky = bool(value)
1693 """A boolean value indicating whether the publisher's
2133 containing a boolean value indicating whether any updates to the
2138 'full_refresh' is an optional boolean value indicating whether
2143 'immediate' is an optional boolean value indicating whether
2148 'include_updates' is an optional boolean value indicating
2532 "Cannot add a value to a single valued "
2534 "and the current value is '{value}'"
2535 ).format(name=n, value=self.properties[n]))
2541 "Cannot remove a value from the property "
2546 "Cannot remove a value from a single "
2549 "current value is '{value}'").format(
2550 name=n, value=self.properties[n]))
2556 "Cannot remove the value {value} "
2558 "because the value is not in the "
2560 value=v, name=n))
2665 x509.OID_CRL_REASON).value
2704 x509.oid.ExtensionOID.CRL_DISTRIBUTION_POINTS).value
2718 crl_uris.append(str(uri.value))
2744 etype = type(ext.value)
2748 pathlen = ext.value.path_length
2755 if not getattr(ext.value,
2766 if getattr(ext.value, key)
2826 str(c.value)
2949 doc="A boolean value indicating whether the publisher should be "
3008 "{val} is not a valid value for this "
3064 def __prop_getdefault(self, name, value):
3066 return self.__properties.get(name, value)
3068 def __prop_setdefault(self, name, value):
3074 self.properties[name] = value
3075 return value
3085 # Must iterate through each value and