Package backend :: Package server :: Package importlib :: Module productNamesImport
[hide private]
[frames] | no frames]

Source Code for Module backend.server.importlib.productNamesImport

 1  # 
 2  # Copyright (c) 2008--2015 Red Hat, Inc. 
 3  # 
 4  # This software is licensed to you under the GNU General Public License, 
 5  # version 2 (GPLv2). There is NO WARRANTY for this software, express or 
 6  # implied, including the implied warranties of MERCHANTABILITY or FITNESS 
 7  # FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 
 8  # along with this software; if not, see 
 9  # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 
10  # 
11  # Red Hat trademarks are not licensed under GPLv2. No permission is 
12  # granted to use or replicate Red Hat trademarks that are incorporated 
13  # in this software or its documentation. 
14  # 
15  # 
16  # Product Names Import 
17   
18  from importLib import Import 
19   
20   
21 -class ProductNamesImport(Import):
22
23 - def __init__(self, batch, backend):
24 Import.__init__(self, batch, backend)
25
26 - def preprocess(self):
27 pass
28
29 - def fix(self):
30 pass
31
32 - def submit(self):
33 try: 34 self.backend.processProductNames(self.batch) 35 except: 36 self.backend.rollback() 37 raise 38 self.backend.commit()
39