Lines Matching full:items

199         inline_option: the option containing the items           (--label)
214 """Splits a string of comma separated items. Escaped commas will not
242 for items in add_on:
245 result.update(__get_items(items, split_spaces=False))
249 items = getattr(options, self.inline_option)
250 result.update(__get_items(items))
255 # The file can contain space and/or comma separated items
324 items and returns them
334 # the items that failed.
342 otherwise, queue the error and accumulate all the items
362 # of items as values.
383 for (errmsg, items) in self.failed[what_failed].iteritems():
384 if len(items) == 0:
386 elif items == set(['']):
388 elif len(items) == 1:
391 errmsg = errmsg.replace(FAIL_TAG, items.pop())
393 errmsg = '%s (%s)' % (errmsg, items.pop())
399 items = list(items)
400 items.sort()
401 print >> sys.stderr, twrap.fill(', '.join(items))
578 @param req_items: A list of required items.
644 items, **data_create):
645 """Create the items if they don't exist already.
649 @param items: Actionable items specified in CLI command, e.g., hostname,
653 for item in items:
744 def print_fields_std(self, items, keys, title=None): argument
747 @param items: Items to print.
748 @param keys: Name of the keys to look up each item in items.
751 if not items:
755 for item in items:
762 def print_fields_parse(self, items, keys, title=None): argument
765 @param items: Items to print.
766 @param keys: Name of the keys to look up each item in items.
769 for item in items:
779 def __find_justified_fmt(self, items, keys): argument
782 @param items: Items to lookup for.
783 @param keys: Name of the keys to look up each item in items.
789 if not items:
795 for item in items)
802 def print_dict(self, items, title=None, line_before=False): argument
805 @param items: Dictionary to print.
810 if not items:
815 for key, value in items.items():
819 def print_table_std(self, items, keys_header, sublist_keys=()): argument
824 @param items: Items to print.
825 @param keys_header: Header of the keys, use to look up in items.
828 if not items:
830 fmt = self.__find_justified_fmt(items, keys_header)
833 for item in items:
845 def print_table_parse(self, items, keys_header, sublist_keys=()): argument
848 @param items: Items to print.
849 @param keys_header: Header of the keys, use to look up in items.
852 for item in items:
868 def print_by_ids_std(self, items, title=None, line_before=False): argument
869 """Prints ID & names of items in a user readable form.
871 @param items: Items to print.
876 if not items:
882 self.print_table_std(items, keys_header=['id', 'name'])
885 def print_by_ids_parse(self, items, title=None, line_before=False): argument
886 """Prints ID & names of items in a parseable format.
888 @param items: Items to print.
893 if not items:
900 for item in items:
910 def print_list_std(self, items, key): argument
913 @param items: Items to to lookup for given key, could be a nested
917 if not items:
919 print(' '.join(_get_item_key(item, key) for item in items))
922 def print_list_parse(self, items, key): argument
925 @param items: Items to to lookup for given key, could be a nested
929 if not items:
932 ','.join(_get_item_key(item, key) for item in items)))