diff options
author | horntail <nktsrd@gmail.com> | 2012-07-13 15:13:32 +0530 |
---|---|---|
committer | horntail <nktsrd@gmail.com> | 2012-07-13 15:13:32 +0530 |
commit | bceb5db463caf067fd1392a2ee83f81c4247c675 (patch) | |
tree | 70abecc48ff738f1176b552fec75278123bc6516 /gstudio/views | |
parent | 527ab688a8608ded5fc854cf8641228181efa981 (diff) | |
parent | 06f170eae6261d894b9651e549d42abdfcecf46c (diff) | |
download | gnowsys-bceb5db463caf067fd1392a2ee83f81c4247c675.tar.gz |
merged with supriya's orgitdown code
Diffstat (limited to 'gstudio/views')
-rw-r--r-- | gstudio/views/ajaxviews.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gstudio/views/ajaxviews.py b/gstudio/views/ajaxviews.py index c35ca83..45064a1 100644 --- a/gstudio/views/ajaxviews.py +++ b/gstudio/views/ajaxviews.py @@ -361,6 +361,7 @@ def AjaxCreateFile(request): myfile.readline() myfile = open('/tmp/file.org', 'a') myfile.write("\n#+OPTIONS: timestamp:nil author:nil creator:nil H:3 num:nil toc:nil @:t ::t |:t ^:t -:t f:t *:t <:t") + myfile.write("\n#+TITLE:nil ") myfile = open('/tmp/file.org', 'r') # os.remove("/tmp/file.org") @@ -375,7 +376,7 @@ def AjaxCreateFile(request): def AjaxCreateHtml(request): stdout = os.popen(PYSCRIPT_URL_GSTUDIO) output = stdout.read() - return HttpResponse(output) + return HttpResponse("sucess") def AjaxAddContent(request): iden = request.GET["id"] |