/pkg/src/modules/ |
H A D | mediator.py | 31 def valid_mediator(value): 36 if isinstance(value, six.string_types): 37 if re.match("^[a-zA-Z0-9\-]+$", value): 40 "characters are allowed").format(value) 42 def valid_mediator_version(value): 48 if isinstance(value, six.string_types): 50 version.Version(value) 56 return False, _("'{value}' is not a valid mediator-version: " 58 return False, _("'{0}' is not a valid mediator-version").format(value) 60 def parse_mediator_implementation(value) [all...] |
H A D | config.py | 113 """Exception class used to indicate an invalid property value.""" 116 value=None): 121 self.value = value 125 return _("'{value}' is less than the minimum " 130 return _("'{value}' is greater than the maximum " 135 return _("Invalid value '{value}' for property " 138 return _("Invalid value '{value}' fo 313 def value(self): member in class:Property 318 def value(self, value): member in class:Property 400 def value(self, value): member in class:PropBool 448 def value(self, value): member in class:PropInt 473 def value(self, value): member in class:PropPublisher 561 def value(self, value): member in class:PropList 607 def value(self, value): member in class:PropDictionaryList 861 def value(self, value): member in class:PropVersion [all...] |
H A D | _varcet.c | 43 PyObject *value = NULL; local 81 while (PyDict_Next(act_attrs, &fpos, &attr, &value)) { 113 * If wildcard facet value cannot be 138 char *vs = PyBytes_AS_STRING(value); 189 PyObject *value = NULL; local 202 while (PyDict_Next(act_attrs, &pos, &attr, &value)) { 206 char *av = PyBytes_AsString(value); 211 * If system variant value doesn't exist, then 225 * If system variant value doesn't match action 226 * variant value, do [all...] |
H A D | facet.py | 56 # image, and the value assigned by the system is always true. These 85 # inherited value masks the local value. Users can list and update 173 # Check for effective facet value changes that could affect 186 # There are no outwardly visible facet priority or value 191 # facet with a value that is masked by an inherited facet, or 193 # local without a priority or value change. Check if this is 261 def __setitem_internal(self, item, value, inherited=False): 265 if not (value == True or value [all...] |
H A D | variant.py | 71 We return a tuple of the form (<key>, <value>) where key is the 81 # Unknown variants have a default implicit value 'false'. 102 # one value and adds it to the instance. It creates all possible combination 115 def __setitem__(self, item, value): 119 if isinstance(value, list): 120 value = set(value) 121 elif not isinstance(value, set): 122 value = set([value]) [all...] |
H A D | sysattr.py | 87 raise OSError("could not read attr value") 190 value = force_text(ffi.string(lib.attr_to_option(i))) 191 sys_attrs.setdefault(key, value)
|
H A D | mogrify.py | 76 attr, value = shlex.split(op[1]) 84 newval = substitute_values(value, action, matches, 96 attr, value = shlex.split(op[1]) 106 newval = substitute_values(value, action, 132 "operation syntax error: illegal exit value").format( 149 attr, value = shlex.split(op[1]) 158 newval = substitute_values(value, action, matches, 592 value = macros[key] 593 s = s.replace(key, value) 759 value [all...] |
H A D | smf.py | 176 def set_prop(fmri, prop, value, zone=None): 178 value))
|
H A D | cfgfiles.py | 144 """ set value of record in file, replacing any previous def. 145 for any missing info, use defaults. Will insert new value """ 247 """ merge dbs... do passwd file first to get right passwd value""" 414 def setuser(self, username, value): 416 ability to ftp into the system. If 'value' is True, allow the user, and 417 if False, deny the user. If the value matches what is already encoded, 421 if not value and self.getuser(username): 423 elif value and not self.getuser(username):
|
/pkg/src/util/log-scripts/ |
H A D | config.py | 35 value = cfg.get("default", option) 36 if not value: 38 return value
|
/pkg/src/modules/client/ |
H A D | debugvalues.py | 46 """Singleton dict that returns None if unknown value 56 def set_value(self, key, value): 57 self[key] = value
|
H A D | publisher.py | 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) [all...] |
H A D | history.py | 129 def __setattr__(self, name, value): 135 value = str(value) 137 return object.__setattr__(self, name, value) 312 def __setattr__(self, name, value): 318 return object.__setattr__(self, name, value) 337 setattr(op, name[len("operation_"):], value) 368 # Fallback for clients that provide no value. 383 value != RESULT_NOTHING_TO_DO: 745 indicated by the value sel [all...] |
H A D | imageconfig.py | 363 """Return a boolean value for the named policy. Returns 364 the default value for the policy if the named policy is 371 """Return the string value for the named policy. Returns 372 the default value for the policy if the named policy is 380 # default_policy_map, we substitute the correct value if it's 390 """Returns the value of the property object matching the given 485 # Setup defaults for properties that have no value. 505 for entry, value in six.iteritems(idx.get("mediators", {})): 510 self.mediators.setdefault(mname, {})[mtype] = value 522 def set_property(self, section, name, value) [all...] |
/pkg/src/modules/lint/ |
H A D | log.py | 113 def _set_tracker(self, value): 114 self._th.tracker = value 124 def _set_level(self, value): 125 if isinstance(value, str): 126 if value.upper() not in LEVELS: 128 _("{value} is not a valid level").format( 129 **value)) 130 self._level = LEVELS[value] 132 self._level = value
|
H A D | pkglint_manifest.py | 490 """Logs an INFO message with the key/value pairs of all 526 for item in action.attrlist("value"): 533 def _check_info_classification_value(self, engine, value, fmri, msgid): 537 if not prefix in value: 543 classification = value.replace(prefix, "") 547 engine.error(_("info.classification value {value} " 570 engine.error(_("info.classification value {value} " 573 value [all...] |
/pkg/src/tests/api/ |
H A D | t_config.py | 62 self.assertEqual(p.value, expval) 66 p.value = defval 67 self.assertEqual(p.value, expval) 78 setattr, p, "value", badval) 104 # value matches what is expected. 113 # Verify that a property value's stringified form 117 p2.value = six.text_type(p1) 118 self.assertEqual(p1.value, p2.value) 121 p2.value [all...] |
H A D | t_action.py | 50 "set name=foo value=foo", 51 "set name=foo value=\"\"", 52 "set name=foo value=f'o'o", 53 "set name=foo value='f\"o \"o'", 54 "set name=foo value='b\"a \"r' value='f\"o \"o'", 55 "set name=foo value=\"f'o 'o\"", 56 "set name=foo value=\"b'a 'r\" value=\"f'o 'o\"", 57 "set name=foo value [all...] |
/pkg/src/util/mkcert/ |
H A D | mkcert.c | 44 int add_ext(X509 *cert, int nid, char *value); 132 * Normally we'd check the return value for errors... 179 add_ext(X509 *cert, int nid, char *value) argument 191 ex = X509V3_EXT_conf_nid(NULL, &ctx, nid, value);
|
/pkg/src/modules/flavor/ |
H A D | base.py | 67 are found in a pkg.depend.runpath attribute value.""" 79 pkg.depend.bypass-generate attribute value.""" 81 def __init__(self, value, error): 82 self.value = value 88 "Invalid pkg.depend.bypass-generate value {val}: " 89 "{err}").format(val=self.value, err=self.error) 145 # Only lists are permitted for multi-value action attributes. 302 """Return the a value that represents the path of the 395 value i [all...] |
/pkg/src/tests/cli/ |
H A D | t_pkgmogrify.py | 72 set name=pkg.fmri value=wombat/heaven@1.0,5.11-0.101 73 set name=bugs value=12345 value=54321 value=13524 74 set name=justonebug value=12345 82 set name=pkg.summary value="Doo wah diddy" 114 "fmrival": "<transform set name=pkg.fmri -> print test of \"%(value)\" ... or is it?>", 118 "fmrinotsaved": "<transform set name=pkg.fmri -> print test of \"%(value;notfound=noprint)\" ... or is it?>", 119 "list": "<transform set name=bugs -> print test of listval \"%(value)\">", 120 "listsep": "<transform set name=bugs -> print test of listval \"%(value;se [all...] |
H A D | t_depot_config.py | 316 _svcs_conf = " ".join(["%".join([value for value in item]) 319 [value.format(**rdirs) for value in item]) 815 # expected header (name,value) pairs for each 834 def header_contains(url, header, value): 836 expected value 'value'.""" 847 if value in h: 856 name, value [all...] |
/pkg/src/modules/actions/ |
H A D | _actions.c | 174 UQVAL, /* unquoted value */ 175 QVAL, /* quoted value */ 368 malformed("missing value"); 379 malformed("missing value"); 413 * value so we don't think there's a 611 malformed("unfinished quoted value"); 615 malformed("missing value"); 691 * a value. However, they should set an exception if appropriate.
|
/pkg/src/modules/bundle/ |
H A D | SolarisPackageDirBundle.py | 279 value=pkginfo[key])) 292 value=pkginfo["DESC"])) 295 value=pkginfo["NAME"]))
|
/pkg/src/svc/ |
H A D | svc-pkg-mirror | 50 # special value 'random'. 112 # special value 'random' in the 'day of the month' field of the crontab 113 # schedule, we randomize the day, choosing a value from 1-28, storing 125 # Validate the cron_period property value, checking that we have 137 print "only field 3 can have the value random"; 141 check_failure $? "invalid value for config/crontab_period." \ 170 same 'config/repository' value, which is not supported." $SMF_FMRI exit 385 while read value; do 386 if [ "$value" = '""' ]; then 389 echo $value [all...] |