X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=Noyau%2FN_PROC.py;h=949e2e2cbceecbc95a438923957d08cc868dca99;hb=9f4ff7ed9afd87c96e11d61e442e39e5511f60d1;hp=d4ad0b81bfb395cbb37bff9d0b8d1c7341d6df9e;hpb=796ae9061bdbb9bbaffe59639526dd550b2839fb;p=tools%2Feficas.git diff --git a/Noyau/N_PROC.py b/Noyau/N_PROC.py index d4ad0b81..949e2e2c 100644 --- a/Noyau/N_PROC.py +++ b/Noyau/N_PROC.py @@ -23,13 +23,12 @@ qui permet de spécifier les caractéristiques d'une procédure """ +from __future__ import absolute_import import types -import string import traceback -import N_ENTITE -import N_PROC_ETAPE -from strfunc import ufmt +from . import N_ENTITE +from . import N_PROC_ETAPE class PROC(N_ENTITE.ENTITE): @@ -81,7 +80,7 @@ class PROC(N_ENTITE.ENTITE): class_instance = N_PROC_ETAPE.PROC_ETAPE label = 'PROC' - def __init__(self, nom, op, reentrant='n', repetable='o', fr="",ang="", + def __init__(self, nom, op=None, reentrant='n', repetable='o', fr="",ang="", docu="", regles=(), op_init=None, niveau = None, UIinfo=None, **args): """ Méthode d'initialisation de l'objet PROC. Les arguments sont utilisés pour initialiser @@ -95,7 +94,7 @@ class PROC(N_ENTITE.ENTITE): #self.ang="" self.ang=ang self.docu = docu - if type(regles) == types.TupleType: + if type(regles) == tuple: self.regles = regles else: self.regles = (regles,)