16 #General Public License for more details. |
16 #General Public License for more details. |
17 # |
17 # |
18 #You should have received a copy of the GNU General Public |
18 #You should have received a copy of the GNU General Public |
19 #License along with this library; if not, write to the Free Software |
19 #License along with this library; if not, write to the Free Software |
20 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 from LPCObject import LPCObject |
|
22 |
21 |
23 permanant_connector = None |
22 permanant_connector = None |
24 |
23 |
25 def LPC_connector_factory(uri, pluginsroot): |
24 def LPC_connector_factory(uri, pluginsroot): |
26 """ |
25 """ |
27 This returns the connector to LPC style PLCobject |
26 This returns the connector to LPC style PLCobject |
28 """ |
27 """ |
|
28 from LPCObject import LPCObject |
29 global permanant_connector |
29 global permanant_connector |
30 servicetype, location = uri.split("://") |
30 servicetype, location = uri.split("://") |
31 if permanant_connector is None: |
31 if permanant_connector is None: |
32 permanant_connector = LPCObject(pluginsroot,location) |
32 permanant_connector = LPCObject(pluginsroot,location) |
33 else: |
33 else: |