From f5aa055c011c0cf60b7722da2a3d6192a233122d Mon Sep 17 00:00:00 2001 From: anujag Date: Fri, 14 Dec 2012 14:24:09 +0530 Subject: Updated code with recent changes --- gstudio/methods.py | 149 +++++++++++----- gstudio/models.py | 2 +- gstudio/static/gstudio/js/addcontent.js | 54 +++++- .../js/orgitdown/orgitdown/jquery.orgitdown.js | 6 +- .../orgitdown/orgitdown/sets/org/images/video.jpeg | Bin 0 -> 440 bytes .../gstudio/js/orgitdown/orgitdown/sets/org/set.js | 1 + gstudio/templates/gstudio/_header.html | 2 + gstudio/templates/gstudio/addingtag.html | 82 +++++++++ gstudio/templates/gstudio/addreln.html | 76 +++++++++ gstudio/templates/gstudio/addrelnform.html | 51 ++++++ gstudio/templates/gstudio/addrelnform_refresh.html | 15 ++ gstudio/templates/gstudio/edittitle.html | 37 ++++ gstudio/templates/gstudio/home.html | 16 +- gstudio/templates/gstudio/priorpost.html | 68 ++++++++ gstudio/templates/gstudio/repriorpost.html | 34 ++++ gstudio/templates/gstudio/tags/comment.html | 41 ++++- gstudio/templates/gstudio/video.html | 8 +- gstudio/templates/metadashboard/grpdashboard.html | 190 +++++++++++++++------ gstudio/templates/metadashboard/pgedashboard.html | 94 +++++----- gstudio/templates/metadashboard/wikidashboard.html | 5 + gstudio/templatetags/gstudio_tags.py | 93 ++++++++++ gstudio/urls/__init__.py | 1 + gstudio/urls/addreln.py | 22 +++ gstudio/urls/image.py | 6 +- gstudio/views/addreln.py | 84 +++++++++ gstudio/views/image.py | 125 +++++++++++++- gstudio/views/video.py | 49 ++++-- 27 files changed, 1129 insertions(+), 182 deletions(-) create mode 100644 gstudio/static/gstudio/js/orgitdown/orgitdown/sets/org/images/video.jpeg create mode 100644 gstudio/templates/gstudio/addingtag.html create mode 100644 gstudio/templates/gstudio/addreln.html create mode 100644 gstudio/templates/gstudio/addrelnform.html create mode 100644 gstudio/templates/gstudio/addrelnform_refresh.html create mode 100644 gstudio/templates/gstudio/edittitle.html create mode 100644 gstudio/templates/gstudio/priorpost.html create mode 100644 gstudio/templates/gstudio/repriorpost.html create mode 100644 gstudio/urls/addreln.py create mode 100644 gstudio/views/addreln.py (limited to 'gstudio') diff --git a/gstudio/methods.py b/gstudio/methods.py index b0b75d3..3d3b263 100644 --- a/gstudio/methods.py +++ b/gstudio/methods.py @@ -6,6 +6,16 @@ import os from demo.settings import PYSCRIPT_URL_GSTUDIO from demo.settings import FILE_URL +def get_threadbox_of_twist(twistid): + thid="" + for each in System.objects.all(): + sys_set=each.system_set.all() + if sys_set: + sys_set=each.system_set.all()[0] + for eachsys in sys_set.gbobject_set.all(): + if eachsys.id==twistid: + return sys_set + return thid def delete(idnum): del_ob = Gbobject.objects.get(id=idnum) @@ -41,8 +51,9 @@ def make_rep_object(title,auth_id,usr): data = open(os.path.join(FILE_URL,fname+html)) data1 = data.readlines() - data2 = data1[72:] - data3 = data2[:-3] + data2 = data1[107:] + dataa = data2[data2.index('
\n')]='
\n')]='
\n')]='
\n')]='
\n')]='
\n')]='
\n')]='
\n')]='
\n')]='
\n')]='