diff options
author | Kabir Kukreti <kabir@gnowledge.org> | 2012-09-04 23:46:35 +0530 |
---|---|---|
committer | Kabir Kukreti <kabir@gnowledge.org> | 2012-09-04 23:46:35 +0530 |
commit | 975e4380ea41eb151f5488da436e28c7b1d1082a (patch) | |
tree | 49c85045d5bbf5489ffed493d75f060c31de7f5a /gstudio/views | |
parent | 85f7d716309b79fb1f46dc887897a127017841cb (diff) | |
download | gnowsys-975e4380ea41eb151f5488da436e28c7b1d1082a.tar.gz |
Unicode error solved and unicode support added
Diffstat (limited to 'gstudio/views')
-rw-r--r-- | gstudio/views/pageadd.py | 4 | ||||
-rw-r--r-- | gstudio/views/sectionadd1.py | 4 | ||||
-rw-r--r-- | gstudio/views/topicadd.py | 4 |
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 : |