Home | Trees | Indices | Help |
---|
|
1 # -*- encoding: utf-8 -*- 2 ############################################################################## 3 # 4 # ETL system- Extract Transfer Load system 5 # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved 6 # $Id$ 7 # 8 # This program is free software: you can redistribute it and/or modify 9 # it under the terms of the GNU General Public License as published by 10 # the Free Software Foundation, either version 3 of the License, or 11 # (at your option) any later version. 12 # 13 # This program is distributed in the hope that it will be useful, 14 # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 # GNU General Public License for more details. 17 # 18 # You should have received a copy of the GNU General Public License 19 # along with this program. If not, see <http://www.gnu.org/licenses/>. 20 # 21 ############################################################################## 22 """ 23 To run xmlrpc server. 24 25 Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). 26 GNU General Public License. 27 """ 28 from etl.component import component 29 30 #32 """ 33 To connect server with xmlrpc request. 34 35 """ 36 _register_functions=[] 3775 84 85 if __name__ == '__main__': 86 test() 8738 - def __init__(self, xmlrpc_connector, name='component.input.xmlrpc_in', transformer=None, row_limit=0):39 """ 40 To be update 41 """ 42 super(xmlrpc_in, self).__init__(name=name, connector=xmlrpc_connector, transformer=transformer, row_limit=0) 43 self._type = 'component.input.xmlrpc_in' 44 self.datas = [] 45 self.isStarted = False 46 self.register_functions(self.import_data)4749 res = xmlrpc_in(self.xmlrpc_connector, self.name, self.transformer, self.row_limit) 50 return res5153 self._register_functions.append(fun)5456 from SimpleXMLRPCServer import SimpleXMLRPCServer 57 from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler 58 import threading 59 self.connector.start(self.import_data) 60 for d in self.datas: 61 yield d, 'main'6264 if self.transformer: 65 row = self.transformer.transform(self.datas) 66 for d in datas: 67 yield d, 'main'68 71
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Apr 29 20:37:27 2009 | http://epydoc.sourceforge.net |