From 175a73a84e9f6f1ddb217bc23f46961fa7e1292b Mon Sep 17 00:00:00 2001 From: aschwinn <al.schwinn@gsi.de> Date: Wed, 7 Jun 2017 15:03:40 +0200 Subject: [PATCH] Bug 1412 - Refactor Codegen - Introduce class "Block" --- .../src/xml/fesa/fesa_3_0_0/fesaGeneral.py | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 silecs-codegen/src/xml/fesa/fesa_3_0_0/fesaGeneral.py diff --git a/silecs-codegen/src/xml/fesa/fesa_3_0_0/fesaGeneral.py b/silecs-codegen/src/xml/fesa/fesa_3_0_0/fesaGeneral.py deleted file mode 100644 index 91cb2a2..0000000 --- a/silecs-codegen/src/xml/fesa/fesa_3_0_0/fesaGeneral.py +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python -# Copyright 2016 CERN and GSI -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -import libxml2 -import iecommon - -def getFesaName(node): - if(node.hasProp('fesaPropertyName')): - return node.prop('fesaPropertyName') - if(node.hasProp('fesaFieldName')): - return node.prop('fesaFieldName') - if(node.hasProp('name')): - return node.prop('name') - iecommon.logError('ERROR: Passed node has no name attribute', True, {'errorlog': True}) -- GitLab