diff options
Diffstat (limited to 'gstudio/views')
-rw-r--r-- | gstudio/views/history.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gstudio/views/history.py b/gstudio/views/history.py new file mode 100644 index 00000000..bcaedd70 --- /dev/null +++ b/gstudio/views/history.py @@ -0,0 +1,27 @@ +from django.http import * +from reversion.models import * +from gstudio.models import * +from django.template import RequestContext +from django.shortcuts import render_to_response +from django.views.generic.date_based import object_detail + + +from gstudio.models import * +from reversion.models import * +from gstudio.views.decorators import protect_nodetype +from gstudio.views.decorators import update_queryset + +def history(request,ssid): + # iden=request.GET["id"] + nt1=Version.objects.get(id=ssid) + nt=nt1.object + ver_dict=nt.version_info(ssid) + variables = RequestContext(request,{'ver_dict':ver_dict ,'nt':nt,'ssid':ssid }) + template="gstudio/display.html" + return render_to_response(template,variables) + +def showHistory(request,obj): + obj=Objecttype.objects.get(id=obj) + variables=RequestContext(request,{'ob':ob}) + template="gstudio/history.html" + return render_to_response(template,variables) |