]> git.evergreen-ils.org Git - working/random.git/blob - contrib/evergreen/eg_checkin.py
fixed bug in property reading from eg_data module. more python style tweaks
[working/random.git] / contrib / evergreen / eg_checkin.py
1 from constrictor.script import Script
2 import eg_utils
3 from eg_data import *
4 from eg_workflow import *
5
6 eg_utils.init()
7
8 class CheckinScript(Script):
9
10     def on_thread_init(self, scriptThread):
11         eg_utils.init_thread()
12
13     def run(self):
14
15         dm = DataManager()
16         copyBarcode = dm.get_thread_data(PROP_COPY_BARCODE)
17
18         evt = do_checkin(copyBarcode)
19         if not evt: return False
20
21 ScriptManager.go(CheckinScript())
22