

def order(self, *keys, **kw):
    'Set the search order for this namespace. The arguments\n        should be the list of keys in the order you wish to search,\n        or a dictionary/Bunch that you want to search.\n        Keys that are left out will not be searched. If you pass in\n        no arguments, then the default ordering will be used. (The default\n        is to search the global space first, then in the order in\n        which the sections were created.)\n        \n        If you pass in a key name that is not a section, that\n        key will be silently removed from the list.\n        \n        Keyword arguments are:\n        \n        add_rest=False\n            put the sections you list at the front of the search\n            and add the remaining sections to the end\n        '
    if (not keys):
        self._ordering = None
        return
    order = []
    for item in keys:
        if (isinstance(item, dict) or (item in self._sections)):
            order.append(item)
    if kw.get('add_rest'):
        for item in self._sections:
            if (item not in order):
                order.append(order)
    self._ordering = order

dataset/ETHPy150Open paver/paver/paver/options.py Namespace.order/VarMisuse@109/404 `item`->`order`