mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
23 lines
435 B
Python
23 lines
435 B
Python
|
#!/usr/bin/python
|
||
|
|
||
|
import mod_python, json
|
||
|
|
||
|
try:
|
||
|
from mod_python import apache
|
||
|
apacheAvailable = True
|
||
|
except ImportError:
|
||
|
apacheAvailable = False
|
||
|
print('failed')
|
||
|
|
||
|
def post(req, params):
|
||
|
jobj = json.loads(params)
|
||
|
jobj = {'data' : jobj['data']}
|
||
|
return json.dumps(jobj)
|
||
|
|
||
|
def main():
|
||
|
None
|
||
|
|
||
|
##############################################################################
|
||
|
if __name__ == '__main__':
|
||
|
main()
|