]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/python/oils/system.py
more IDL api work. moving to more pythonic lower/underscore method names. moved...
[Evergreen.git] / Open-ILS / src / python / oils / system.py
1 # -----------------------------------------------------------------------
2 # Copyright (C) 2007  Georgia Public Library Service
3 # Bill Erickson <billserickson@gmail.com>
4
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 # -----------------------------------------------------------------------
15
16 import osrf.log
17 from osrf.system import connect
18 from oils.utils.idl import IDLParser
19 from oils.utils.csedit import oilsLoadCSEditor
20
21 def oilsConnect(config, configContext):
22         """Connects to the opensrf network,  parses the IDL file, and loads the CSEditor"""
23         osrf.log.log_info("oilsConnect(): connecting with config %s" % config)
24         connect(config, configContext)
25         IDLParser.parse()
26         oilsLoadCSEditor()