def hidden(self):
        fields = []

        def _add_field(name, value):
            html = self._field.form.html_builder
            fields.append(html.input(type='hidden', name=name, value=value))

        def _to_hidden(value, name):
            if isinstance(value, list):
                for idx, value in enumerate(value):
                    _to_hidden(value, make_name(name, idx))
            elif isinstance(value, dict):
                for key, value in value.iteritems():
                    _to_hidden(value, make_name(name, key))
            else:
                _add_field(name, value)

        _to_hidden(self.value, self.name)
        return u'\n'.join(fields)
Return permutations of the integers between 0 and n-1.
dataset/ETHPy150Open mitsuhiko/fungiform/fungiform/widgets.py/Widget.hidden--crossover with--dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/tensor/raw_random.py/permutation