Description: Custom Modules Path for sqlalchemy
 Add /usr/share/diaspora to the path which Python searches while importing
 modules. Done to make sure that program uses embedded sqlalchemy version.
Author: Balasankar C <balasankarc@autistici.org>
Last-Update: 2015-05-08
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/gnukhataserver/dbconnect.py
+++ b/gnukhataserver/dbconnect.py
@@ -28,6 +28,10 @@
 Ujwala Pawade <pawadesonu2@gmail.com>
 Ruchika Pai <pairuchi23@gmail.com>
 '''
+
+import sys
+sys.path.insert(0,'/usr/share/gnukhata/modules')
+
 from sqlalchemy import create_engine, func, select, literal_column
 from sqlalchemy.engine import create_engine
 from sqlalchemy import orm
--- a/gnukhataserver/rpc_account.py
+++ b/gnukhataserver/rpc_account.py
@@ -30,7 +30,8 @@
 '''
 #from sqlalchemy.engine.base import ResultProxy
 #from beaker.ext.google import db
-
+import sys
+sys.path.insert(0,'/usr/share/gnukhata/modules')
 
 '''import the database connector and functions for stored procedure.'''
  
@@ -414,4 +415,4 @@
 		else:
 			return reportGrid
 			
- 
\ No newline at end of file
+ 
--- a/gnukhataserver/rpc_getaccountsbyrule.py
+++ b/gnukhataserver/rpc_getaccountsbyrule.py
@@ -26,6 +26,10 @@
 """
 
 
+
+import sys
+sys.path.insert(0,'/usr/share/gnukhata/modules')
+
 #import the database connector and functions for stored procedure.
 import dbconnect
 #import the twisted modules for executing rpc calls and also to implement the server
--- a/gnukhataserver/rpc_groups.py
+++ b/gnukhataserver/rpc_groups.py
@@ -23,6 +23,10 @@
 '''
 
 
+import sys
+sys.path.insert(0,'/usr/share/gnukhata/modules')
+
+
 #import the database connector and functions for stored procedure.
 import dbconnect
 #import the twisted modules for executing rpc calls and also to implement the server
--- a/gnukhataserver/rpc_inventory.py
+++ b/gnukhataserver/rpc_inventory.py
@@ -4,6 +4,10 @@
 '''import the database connector and functions for stored procedure.'''
  
 '''import the twisted modules for executing rpc calls and also to implement the server'''
+
+import sys
+sys.path.insert(0,'/usr/share/gnukhata/modules')
+
 from twisted.web import xmlrpc, server
 '''reactor from the twisted library starts the server with a published object and listens on a given port.'''
 from twisted.internet import reactor
--- a/gnukhataserver/rpc_main.py
+++ b/gnukhataserver/rpc_main.py
@@ -24,6 +24,10 @@
 		 Ashwini Shinde <ashwinids308@gmail.com>
 
 '''
+
+import sys
+sys.path.insert(0,'/usr/share/gnukhata/modules')
+
 from dbconnect import getOrgList
 from dbconnect import getConf
 #from mx.DateTime import DateTime
--- a/gnukhataserver/rpc_transaction.py
+++ b/gnukhataserver/rpc_transaction.py
@@ -23,6 +23,8 @@
 
 '''
 
+import sys
+sys.path.insert(0,'/usr/share/gnukhata/modules')
 
 #import the database connector and functions for stored procedure.
 import dbconnect
--- a/gnukhataserver/rpc_user.py
+++ b/gnukhataserver/rpc_user.py
@@ -27,6 +27,10 @@
 '''
 
 
+import sys
+sys.path.insert(0,'/usr/share/gnukhata/modules')
+
+
 #import the database connector and functions for stored procedure.
 import dbconnect
 #import the twisted modules for executing rpc calls and also to implement the server
@@ -209,4 +213,4 @@
 		
 			
 				
-			
\ No newline at end of file
+			
