diff options
author | gnowgi <nagarjun@gnowledge.org> | 2012-09-26 08:46:47 -0700 |
---|---|---|
committer | gnowgi <nagarjun@gnowledge.org> | 2012-09-26 08:46:47 -0700 |
commit | 3ba6b57c6d605262ef9e1f7bba8d62ea20aacc36 (patch) | |
tree | 8d77de86b443495d67360dcd40786f2b8208d334 /gstudio/views/pageadd.py | |
parent | cad11e2f7ed848cdfd7779451bb0f4f931e062c3 (diff) | |
parent | 94535d4adc3a4960795d22e3b229a8375de10b74 (diff) | |
download | gnowsys-3ba6b57c6d605262ef9e1f7bba8d62ea20aacc36.tar.gz |
Merge pull request #85 from supriyasawant/master
All modules, wiki, loom, image, document and video libraries integrated.
Diffstat (limited to 'gstudio/views/pageadd.py')
-rw-r--r-- | gstudio/views/pageadd.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gstudio/views/pageadd.py b/gstudio/views/pageadd.py index d51017cc..1537fc7e 100644 --- a/gstudio/views/pageadd.py +++ b/gstudio/views/pageadd.py @@ -29,11 +29,23 @@ def pageadd(request): # if not request.POST.get('org1', ''): # errors.append('Enter a page.') if not errors: - title=unicode(request.POST['subject']) + title=request.POST['subject'] # content=request.POST['page'] content_org=unicode(request.POST['org1']) idusr=request.POST['idusr'] - pageId = create_wikipage(title,int(idusr),content_org) + usr = request.POST.get("usr",'') + editable= request.POST.get("edit","") + # print content_org,"content" + + if editable=='edited': + + #if id_no: + edit_section(idusr,content_org,usr) + # elif id_no1: + # edit_section(id_no1,rep) + + + pageId = create_wikipage(title,int(idusr),content_org,usr) if pageId : return HttpResponseRedirect('/gstudio/page/gnowsys-page/'+ str(pageId)) variables = RequestContext(request,{'errors' : errors, 'pageId' : pageId}) |