diff options
author | Santhosh Thottingal <santhosh.thottingal@gmail.com> | 2009-07-19 18:32:04 +0530 |
---|---|---|
committer | Santhosh Thottingal <santhosh.thottingal@gmail.com> | 2009-07-19 18:32:04 +0530 |
commit | c8a17ee264a269a59651936b34a960f4d40a9074 (patch) | |
tree | 3b2b21be4668f50a5c5f307c89e42323b8a8c292 /silpa/silpa.py | |
parent | 05f7f938168f9b3195c9b101f4b98f298ab2e981 (diff) | |
download | Rachana.git-c8a17ee264a269a59651936b34a960f4d40a9074.tar.gz Rachana.git-c8a17ee264a269a59651936b34a960f4d40a9074.tar.xz Rachana.git-c8a17ee264a269a59651936b34a960f4d40a9074.zip |
JSON RPC Based new architecture and corresponding changes
Diffstat (limited to 'silpa/silpa.py')
-rwxr-xr-x | silpa/silpa.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/silpa/silpa.py b/silpa/silpa.py deleted file mode 100755 index 377f1bc..0000000 --- a/silpa/silpa.py +++ /dev/null @@ -1,34 +0,0 @@ -#! /usr/bin/env python -# -*- coding: utf-8 -*- - -from common import * -from modules import * -from utils import * -import traceback -import cgitb -import cgi -cgitb.enable() -def index(form): - if(form.has_key('action')): - action=form['action'].value - else: - action="" - response=SilpaResponse() - if(action=="lemmatize"): - response.setBreadcrumb("Lemmatizer") - response. setContent("<textarea cols='100' rows='25' name='input_text' id='id1'>%s</textarea>") - if(action=="Detect Language"): - response.setBreadcrumb(action) - ldetector=LangDetect() - response. setContent(ldetector.process(form)) - if(action=="Hyphenate"): - response.setBreadcrumb(action) - hyphenator=Hyphenate() - response. setContent(hyphenator.process(form)) - response.setBreadcrumb("Coming Soon") - response.setContent("Not implemented in current version...!") - return response.toString(); - -if __name__ == '__main__': - print "Content-Type: text/html\n\n" - print index(cgi.FieldStorage()).encode('utf-8') |