X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=Noyau%2FN_PROC.py;h=949e2e2cbceecbc95a438923957d08cc868dca99;hb=9f4ff7ed9afd87c96e11d61e442e39e5511f60d1;hp=ab3f03782f0403f7174592decbce20f9f5965511;hpb=479b2809fce994d6fc2fa7046bac6405daa0d706;p=tools%2Feficas.git diff --git a/Noyau/N_PROC.py b/Noyau/N_PROC.py index ab3f0378..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 @@ -92,9 +91,10 @@ class PROC(N_ENTITE.ENTITE): self.reentrant = reentrant self.repetable = repetable self.fr = fr - self.ang="" + #self.ang="" + self.ang=ang self.docu = docu - if type(regles) == types.TupleType: + if type(regles) == tuple: self.regles = regles else: self.regles = (regles,)