summaryrefslogtreecommitdiffstats
path: root/agenda/billboardviews.py
diff options
context:
space:
mode:
Diffstat (limited to 'agenda/billboardviews.py')
-rw-r--r--agenda/billboardviews.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/agenda/billboardviews.py b/agenda/billboardviews.py
index 50139ee..fb5ee83 100644
--- a/agenda/billboardviews.py
+++ b/agenda/billboardviews.py
@@ -1,3 +1,4 @@
+# vim: ai ts=4 sts=4 et sw=4
# Create your views here.
from django.shortcuts import render_to_response, get_object_or_404, get_list_or_404
from infopoint.agenda.models import *
@@ -8,7 +9,7 @@ from django.contrib.auth import authenticate, login
from django.contrib.auth.models import Group,User
from django.contrib.comments.models import Comment
from infopoint.agenda.templatetags import *
-from infopoint.agenda.models import Event, Attendance,Todo, Billboard
+from infopoint.agenda.models import *
from infopoint.agenda.forms import TodoCreateForm, TodoForm
from django.contrib.formtools.preview import FormPreview
from django.views.generic import create_update
@@ -30,15 +31,16 @@ def event_galaxy(request,object_id):
map = pydot.Dot("ev"+str(event.id), graph_type="digraph",strict="True", suppress_disconnected="False", fontname="Arial",ratio="compress",size="8,8",overlap="False", bgcolor="#ffffff6d", packmode="clust",URL="/",remincross="True" )
map.add_node(pydot.Node("ev"+str(event.id),label=str(event.title)+" "+str(event.start_date.strftime('%d %b')),color='purple',fontname='Arial',style='filled',fontsize='30',shape='record' ,URL="/agenda/map/"+str(object_id)))
map.add_node(pydot.Node("lo"+str(event.location.id),label=str(event.location.title),fontname='Arial',style='filled',fontsize='20',shape='record', fillcolor='#00ff005d',URL='/agenda/location/'+str(event.location.id)))
- map.add_edge(pydot.Edge("ev"+str(event.id),"lo"+str(event.location.id),style='rounded',len='1'))
+ map.add_edge(pydot.Edge("ev"+str(event.id),"lo"+str(event.location.id),len='4'))
cluster_Groups = pydot.Subgraph(graph_name='cluster_Groups',label='Groups',fontname='Arial',style='rounded')
todos = pydot.Subgraph(graph_name='cluster_Todos',label='Tasks',fontname='Arial',style='rounded')
events = pydot.Subgraph(label='Events',shape='note',fillcolor='lightgrey',fontname='Arial',style='rounded')
comments_graph = pydot.Subgraph(graph_name='Comments',label='Comments',style='rounded',fontname='Arial')
for todo in event.todo.all()[:3]:
- todos.add_node(pydot.Node("td"+str(todo.id),label=todo.title,color='lightpink',fontname='Arial',style='filled',fontsize='10',shape='box'))
- events.add_edge(pydot.Edge("ev"+str(event.id),"td"+str(todo.id)))
+ if todo.closed != True:
+ todos.add_node(pydot.Node("td"+str(todo.id),label=todo.title,color='lightpink',fontname='Arial',style='filled',fontsize='10',shape='box'))
+ events.add_edge(pydot.Edge("ev"+str(event.id),"td"+str(todo.id)))
for todo in event.location.todolocation.all()[:3]:
todos.add_node(pydot.Node("td"+str(todo.id),label=todo.title,color='lightpink',fontname='Arial',style='filled',fontsize='10',shape='box'))
events.add_edge(pydot.Edge("lo"+str(event.location.id),"td"+str(todo.id)))