Commits

codernity committed f85f5cf

Documentation updates

  • Participants
  • Parent commits 8a37cc6

Comments (0)

Files changed (7)

+\.ropeproject/
+.*\.pyc
+.*\.egg-info.*
+_build/
+CodernityDBHTTP/interface/nbproject/*
+nbproject
+.*swp
 .+\.pyc
 .*~
 \.ropeproject
 htmlcov_.*
 coverage.*\.xml
 junit-.*\.xml
-.*\.orig
+.*\.orig
+testconf.json

File CodernityDBHTTP/misc.py

                         'error': error
                         }
     if with_traceback:
+        tb = traceback.format_exception(exc_type, exc_value, exc_traceback)
+        exception_output['traceback'] = ''.join(tb)
+        sys.stderr.writelines(tb)  # print the traceback to console
+    start_response(error, [('Content-Type', content_type), ])
+    return out_f(exception_output)
 
 
 def open_with_autosave(db, cfg_path, cfg):
             with open(cfg_path, 'w') as f:
                 f.write(json.dumps(cfg, sort_keys=True, indent=4))
     return _inner
-        tb = traceback.format_exception(exc_type, exc_value, exc_traceback)
-        exception_output['traceback'] = ''.join(tb)
-        sys.stderr.writelines(tb)  # print the traceback to console
-    start_response(error, [('Content-Type', content_type), ])
-    return out_f(exception_output)

File docs/imgs/CodernityDB_HTTP_new_index1.png

Added
New image

File docs/imgs/CodernityDB_HTTP_new_index2.png

Added
New image

File docs/index.rst

 CodernityDB-HTTP
 ================
 
-It's dependency less (except CodernityDB obviously), by default it will run using ``wsgiref`` python server. You can in :ref:`config` change the server to use `Gevent`_. We build custom WSGI application (no 3rd party framework).
+It's dependency less (except CodernityDB obviously), by default it will run using ``wsgiref`` python server. You :ref:`config` use `Gevent`_ as the server. We build custom WSGI application (no 3rd party framework).
 
 CodernityDB-HTTP is HTTP layer for CodernityDB.
 

File docs/interface.rst

 .. image:: imgs/CodernityDB_HTTP_id_all.png
 .. image:: imgs/CodernityDB_HTTP_index_overview.png
 .. image:: imgs/CodernityDB_HTTP_new_doc.png
-.. image:: imgs/CodernityDB_HTTP_new_index.png
+.. image:: imgs/CodernityDB_HTTP_new_index1.png
+.. image:: imgs/CodernityDB_HTTP_new_index2.png
 
 
 .. _KnockoutJS: http://knockoutjs.com

File docs/methods.rst

 All methods can be requested using ``POST`` or ``GET``
 method. The final parameters are joined from  ``query-string`` and ``POST`` request body.
 
-You just have to remember that, when doing ``GET`` request, all arguments after 2nd **must** be encoded using function taht you want to use.
+You just have to remember that, when doing ``GET`` request, all arguments after 2nd **must** be encoded using function that you want to use.