Skip to main content

Provides dango views with input transformed into a tree structure.

Project description

## Bug Reports and Development

Please report any problems to the `Martin Owens <>`_.

## Description

This module provides a decorator for your django views which will take the flat
django request response and convert the POST and FILES into a tree structure.

This tree can optionally be sent to be varified using an xsd like data-validator
if installed.

## Data Example

For example, your html web page might provide a way for javascript to generate
many input widgets and for these to be numbered and collated, once complete the
html form submits this data:


Into this:

'fruit': [
{ 'name': "banana", 'colour': "yellow" },
{ 'name': "apple", 'color': "red" },
'bread': { 'name': "tigle", 'type': "hairy" },

## Use Example

import request_tree

def example_view(request):
print request.TREE

## Validation Examples

import request_tree

def example_view(request):
print request.VALUS

## Work in Progress

This code is still a work in progress, please submit your ideas and patches directly to me via email.

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-request-tree-0.8.1.tar.gz (4.2 kB) Copy SHA256 hash SHA256 Source None Feb 23, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page