Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Flowchart Model

Is anyone aware of a Django app for designing and storing flowcharts in a database? After searching for variations of "Django flowcharts", I've only found flowcharts of Django's internal design, not anything about authoring or storing flowcharts in a Django webapp.

As asked in a similar question, I've found several impressive Javascript and JQuery based libraries for browser-based flowchart design, but nothing for persisting these server-side.

like image 396
Cerin Avatar asked Dec 14 '11 18:12

Cerin


1 Answers

I wrote an app that stores and controls state machines in Django 1.2:

https://bitbucket.org/canassa/zinaflow

It uses a per-object permission model for controlling the transitions and GenericForeignKeys for attaching the state machine to any model in your application. With the per-object permissions you can assign a Django user for each transition.

Depending on what you need to do, this app might be a overkill for you. But reading the source code can give you some ideias on how to implement an app yourself.

like image 156
Cesar Canassa Avatar answered Oct 24 '22 08:10

Cesar Canassa