[Opensrf-commits] r1704 - trunk/src/python (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue May 19 10:14:47 EDT 2009


Author: erickson
Date: 2009-05-19 10:14:46 -0400 (Tue, 19 May 2009)
New Revision: 1704

Modified:
   trunk/src/python/opensrf.py
Log:
until full settings support is added, comment that out for now.  added example keepalive

Modified: trunk/src/python/opensrf.py
===================================================================
--- trunk/src/python/opensrf.py	2009-05-19 14:12:40 UTC (rev 1703)
+++ trunk/src/python/opensrf.py	2009-05-19 14:14:46 UTC (rev 1704)
@@ -82,12 +82,12 @@
     osrf.system.System.net_connect(
         config_file = config_file, config_context = config_ctx)
 
-    osrf.set.load(osrf.conf.get('domain'))
-    settings = osrf.json.to_json(osrf.set.get('apps/%s' % service))
+#    osrf.set.load(osrf.conf.get('domain'))
+#    settings = osrf.json.to_json(osrf.set.get('apps/%s' % service))
 
-    if settings['language'].lower() != 'python':
-        print '%s is not a Python application' % service
-        return
+#    if settings['language'].lower() != 'python':
+#        print '%s is not a Python application' % service
+#        return
 
     # XXX load the settings configs...
     osrf.app.Application.load(service, 'osrf.apps.example') # XXX example only for now
@@ -98,6 +98,7 @@
     controller.max_requests = 100
     controller.max_children = 6
     controller.min_children = 3
+    controller.keepalive = 5
 
     if as_daemon:
         osrf.system.System.daemonize()



More information about the opensrf-commits mailing list