Searched refs:val (Results 1 - 25 of 56) sorted by relevance

123

/pkg/src/modules/client/
H A D__init__.py177 def __set_error_log_handler(self, val):
181 self.__error_log_handler = val
182 if val:
183 logger.addHandler(val)
185 def __set_info_log_handler(self, val):
189 self.__info_log_handler = val
190 if val:
191 logger.addHandler(val)
193 def __set_verbose(self, val):
195 if val
[all...]
H A Drad_pkg.py166 def delegate_set(self, val):
167 setattr(self, attr, val)
334 def __set_mode(self, val):
335 if val is not None and not isinstance(val, six.string_types):
337 if val is None:
338 val = "native"
339 if val not in valid_modes:
342 self.__mode = val
347 def __set_interval(self, val)
[all...]
H A Dprintengine.py248 val = self._stringio.getvalue()
249 if val:
251 assert not "\n" in val
252 self._logger.log(self._loglevel, val)
H A Dhistory.py815 for entry, val in six.iteritems(error_results):
817 result = val
846 type, val, tb = sys.exc_info()
847 if error == val:
907 for name, val in six.iteritems(self.__snapshot):
909 object.__setattr__(self, name, val)
/pkg/src/modules/
H A Dp5s.py55 for val in urls:
58 if val.startswith("http://{0}".format(
61 urlparse(val)
71 r = publisher.RepositoryURI(val)
123 val = r.get(prop, None)
124 if val is None or val == "None":
126 rargs[prop] = val
129 val = r.get(prop, [])
130 if not isinstance(val, lis
[all...]
H A Dp5i.py122 val = r.get(prop, None)
123 if val is None or val == "None":
125 rargs[prop] = val
129 val = r.get(prop, [])
130 if not isinstance(val, list):
132 rargs[prop] = val
H A Dmogrify.py210 val = attrval_as_list(action.attrs, newattr)
212 if not val:
227 for v in val
261 val = attrval_as_list(action.attrs, attr)
262 if not val:
267 for v in val
356 val = True
359 val = tokstream.get_token()
360 if ('"', '"') == (val[0], val[
[all...]
H A Dmanifest.py474 for attr, val in six.iteritems(attrs):
476 variants[attr].add(val)
477 avariants.append((attr, val))
479 afacets.append((attr, val))
481 for name, val in afacets:
559 tuple((name, val)
560 for val in variants[name])
601 val = sorted(f[6:] for f in cfacets)
602 if not val:
608 val
[all...]
H A Dsysvpkg.py250 (key, val) = line.split('=', 1)
251 pkginfo[key] = val.strip('"')
H A Dcatalog.py1220 for key, val in six.iteritems(struct):
1221 if isinstance(val, datetime.datetime):
1224 struct[key] = datetime_to_basic_ts(val)
1228 for e in val:
1229 lm = val[e].get("last-modified", None)
1232 val[e]["last-modified"] = lm
1251 def cat_ts_to_datetime(val):
1253 return basic_ts_to_datetime(val)
1257 for key, val in six.iteritems(struct):
1261 if val
[all...]
H A Dversion.py673 for val in vals:
674 if not val:
677 val = MatchingDotSequence(val)
678 setattr(self, attr, val)
H A Dcfgfiles.py121 val = self.index.get(tuple(template[k] for k in self.keys), None)
122 if val:
123 return val[1]
H A Delf.c245 #define GI_SET_ITEM(key, valstr, val) \
249 if ((ent = Py_BuildValue(valstr, val)) == NULL) { \
/pkg/src/modules/actions/
H A Dattribute.py136 for val in self.attrlist("value"):
137 if ":" in val:
138 scheme, cats = val.split(":", 1)
141 cats = val
H A D_actions.c125 PyObject *val; local
127 if ((val = Py_BuildValue("sis", str, pos, msg)) != NULL) {
128 PyErr_SetObject(MalformedActionError, val);
129 Py_DECREF(val);
136 PyObject *val; local
138 if ((val = Py_BuildValue("ss", str, msg)) != NULL) {
139 PyErr_SetObject(InvalidActionError, val);
140 Py_DECREF(val);
H A D_common.c46 PyObject *val = NULL; local
70 if ((val = Py_BuildValue("OO", action, key_aname)) != NULL) {
71 PyErr_SetObject(exc, val);
72 Py_DECREF(val);
/pkg/src/util/qual-simulator/
H A Ddepot.py121 def __set_proxy(self, val):
122 self.__proxy = val
127 def __set_system(self, val):
128 self.__system = val
/pkg/src/modules/lint/
H A Dbase.py407 val = action.attrs.get(key, "false")
408 if isinstance(val, six.string_types):
409 if val.lower() == "true":
423 val = manifest.attributes.get(key, "false")
424 if isinstance(val, six.string_types):
425 if val.lower() == "true":
H A Dengine.py1177 val = None
1179 val = action.attrs[param_key]
1181 val = manifest[param_key]
1182 if val:
1183 if isinstance(val, six.string_types):
1184 return val
1186 return " ".join(val)
1188 val = self.conf.get("pkglint", key)
1189 if val:
1190 return val
[all...]
H A Dpkglint_action.py362 val = a.attrs[key]
363 if val in attr:
364 attr[val].append(pfmri)
366 attr[val] = \
368 for val in sorted(attr):
371 key, val,
374 sorted(attr[val])
823 for key, val in group:
824 vars.add("{0}={1}".format(key, val))
1440 linted=", ".join(["{0}={1}".format(key, val)
[all...]
/pkg/src/tests/cli/
H A Dt_pkg_image_create.py179 for prop, val in six.iteritems(pub_cfg[section]):
193 if not val:
194 val = set()
196 val = set(val.split(","))
204 self.assertEqual(val, pub_val)
H A Dt_pkg_publisher.py830 for prop, val in six.iteritems(pub_cfg[section]):
844 if not val:
845 val = set()
847 val = set(val)
855 self.assertEqual(val, pub_val)
942 val = t3cfg[section][prop]
944 val = 1800
946 val = "core"
949 val
[all...]
/pkg/src/tests/api/
H A Dt_action.py637 for prop, val in six.iteritems(props):
640 prop, val)
645 for prop, val in six.iteritems(props):
648 "{1}={2} {3}={4} ".format(aname, prop, val, prop,
649 val)
/pkg/src/
H A Dpkgrepo.py1372 prop, val = arg.split("=", 1)
1381 if len(val) > 0 and val[0] == "(" and \
1382 val[-1] == ")":
1383 val = shlex.split(val.strip("()"))
1392 if isinstance(val, list):
1393 pval.extend(val)
1395 pval.append(val)
1399 props[sname][pname] = val
[all...]
H A Dsysrepo.py470 raise SysrepoException("proxy value {val} "
472 uri=uri, val=proxy_map[uri]))
602 for key, val in [("http_proxy", http_proxy),
604 if not val:
607 result = urlparse(val)
613 if not _valid_proxy(val):
617 _("invalid {key}: {val}: {err}").format(
618 key=key, val=val, err=str(e)))

Completed in 369 milliseconds

123