summaryrefslogtreecommitdiff
path: root/gstudio/views
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/views')
-rw-r--r--gstudio/views/pageadd.py4
-rw-r--r--gstudio/views/sectionadd1.py4
-rw-r--r--gstudio/views/topicadd.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/gstudio/views/pageadd.py b/gstudio/views/pageadd.py
index 4f63ead..d51017c 100644
--- a/gstudio/views/pageadd.py
+++ b/gstudio/views/pageadd.py
@@ -29,9 +29,9 @@ def pageadd(request):
# if not request.POST.get('org1', ''):
# errors.append('Enter a page.')
if not errors:
- title=request.POST['subject']
+ title=unicode(request.POST['subject'])
# content=request.POST['page']
- content_org=request.POST['org1']
+ content_org=unicode(request.POST['org1'])
idusr=request.POST['idusr']
pageId = create_wikipage(title,int(idusr),content_org)
if pageId :
diff --git a/gstudio/views/sectionadd1.py b/gstudio/views/sectionadd1.py
index 0c5643c..8bc3dd1 100644
--- a/gstudio/views/sectionadd1.py
+++ b/gstudio/views/sectionadd1.py
@@ -19,9 +19,9 @@ def sectionadd1(request,pageid):
if not request.POST.get('org', ''):
errors.append('Enter a page.')
if not errors:
- title=request.POST['subject']
+ title=unicode(request.POST['subject'])
# content=request.POST['page']
- content_org=request.POST['org']
+ content_org=unicode(request.POST['org'])
idusr=request.POST['idusr']
tp = make_section_object(title,int(idusr),content_org)
System.objects.get(id=int(pageid)).system_set.all()[0].gbobject_set.add(tp)
diff --git a/gstudio/views/topicadd.py b/gstudio/views/topicadd.py
index ba094c5..31e780e 100644
--- a/gstudio/views/topicadd.py
+++ b/gstudio/views/topicadd.py
@@ -32,8 +32,8 @@ def topicadd(request):
if not request.POST.get('message', ''):
errors.append('Enter a message.')
if not errors:
- title=request.POST['subject']
- content=request.POST['message']
+ title=unicode(request.POST['subject'])
+ content=unicode(request.POST['message'])
idusr=request.POST['idusr']
boolean = make_topic_object(title,int(idusr),content)
if boolean :