From 0ae39469c6d355d07535877235684f011bd635a9 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Thu, 14 Jun 2007 16:19:31 +0000 Subject: [PATCH] modif mathieu courtois --- Aster/Cata/cataSTA7/cata.py | 16 ++-------------- Aster/Cata/cataSTA8/cata.py | 4 ++-- Aster/Cata/cataSTA9/cata.py | 4 ++-- Aster/Cata/cataSTA9/ops.py | 19 +++++++++++-------- Editeur/appli.py | 6 +++--- 5 files changed, 20 insertions(+), 29 deletions(-) diff --git a/Aster/Cata/cataSTA7/cata.py b/Aster/Cata/cataSTA7/cata.py index 58fd5be7..4c9d22db 100644 --- a/Aster/Cata/cataSTA7/cata.py +++ b/Aster/Cata/cataSTA7/cata.py @@ -34,31 +34,19 @@ except: pass # -__version__="$Name: BR_V1_12a1 $" -__Id__="$Id: cata.py,v 1.3.8.3 2007-06-04 17:03:51 cchris Exp $" +__version__="$Name: $" +__Id__="$Id: cata_aster_v6.py,v 1.12 2001/01/16 15:55:05 iliade Exp $" # JdC = JDC_CATA(code='ASTER', execmodul=None, regles = (AU_MOINS_UN('DEBUT','POURSUITE'), AU_MOINS_UN('FIN'), A_CLASSER(('DEBUT','POURSUITE'),'FIN'))) - # Type le plus general class entier (ASSD): def __init__(self,valeur=None,**args): ASSD.__init__(self,**args) self.valeur=valeur -# def __adapt__(self,validator): -# if validator.name == "list": -# #validateur liste,cardinalité -# return (self,) -# elif validator.name == "type": -# #validateur type -# return validator.adapt(self.valeur or 0) -# else: -# #validateur into et valid -# return self - # Type geometriques class no (GEOM):pass diff --git a/Aster/Cata/cataSTA8/cata.py b/Aster/Cata/cataSTA8/cata.py index 81faabe1..be6fb96e 100755 --- a/Aster/Cata/cataSTA8/cata.py +++ b/Aster/Cata/cataSTA8/cata.py @@ -33,8 +33,8 @@ try: except: pass -__version__="$Name: BR_V1_12a1 $" -__Id__="$Id: cata.py,v 1.3.8.4 2007-06-05 09:55:42 pnoyret Exp $" +__version__="$Name: $" +__Id__="$Id: cata_aster_v6.py,v 1.12 2001/01/16 15:55:05 iliade Exp $" EnumTypes = (ListType, TupleType) diff --git a/Aster/Cata/cataSTA9/cata.py b/Aster/Cata/cataSTA9/cata.py index 2efa8d8b..ec814200 100644 --- a/Aster/Cata/cataSTA9/cata.py +++ b/Aster/Cata/cataSTA9/cata.py @@ -18,8 +18,8 @@ # 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE. # ====================================================================== -__version__ = "$Name: $" -__Id__ = "$Id: cata_aster_v6.py,v 1.12 2001/01/16 15:55:05 iliade Exp $" +__version__ = "$Name: V1_12 $" +__Id__ = "$Id: cata.py,v 1.1.2.3 2007-06-11 14:20:59 pnoyret Exp $" import Accas from Accas import * diff --git a/Aster/Cata/cataSTA9/ops.py b/Aster/Cata/cataSTA9/ops.py index b947f0bb..16a3f8c6 100644 --- a/Aster/Cata/cataSTA9/ops.py +++ b/Aster/Cata/cataSTA9/ops.py @@ -28,18 +28,20 @@ import pickle import Accas from Accas import ASSD from Noyau.ascheckers import CheckLog -from Utilitai.as_timer import ASTER_TIMER -from Utilitai.Sensibilite import MEMORISATION_SENSIBILITE try: - from Utilitai.Utmess import UTMESS import aster + aster_exists = True # Si le module aster est présent, on le connecte # au JDC import Build.B_CODE Build.B_CODE.CODE.codex=aster + + from Utilitai.Utmess import UTMESS + from Utilitai.as_timer import ASTER_TIMER + from Macro.Sensibilite import MEMORISATION_SENSIBILITE except: - pass + aster_exists = False def commun_DEBUT_POURSUITE(jdc, PAR_LOT, IMPR_MACRO, CODE, DEBUG): @@ -54,10 +56,11 @@ def commun_DEBUT_POURSUITE(jdc, PAR_LOT, IMPR_MACRO, CODE, DEBUG): jdc.sd_checker = CheckLog() if CODE != None: jdc.fico = CODE['NOM'] - jdc.timer = ASTER_TIMER(format='aster') - # en POURSUITE, ne pas écraser la mémorisation existante. - if not hasattr(jdc, 'memo_sensi'): - jdc.memo_sensi = MEMORISATION_SENSIBILITE() + if aster_exists: + jdc.timer = ASTER_TIMER(format='aster') + # en POURSUITE, ne pas écraser la mémorisation existante. + if not hasattr(jdc, 'memo_sensi'): + jdc.memo_sensi = MEMORISATION_SENSIBILITE() def DEBUT(self,PAR_LOT,IMPR_MACRO,CODE,DEBUG,**args): diff --git a/Editeur/appli.py b/Editeur/appli.py index 30be3fae..ea1e555c 100644 --- a/Editeur/appli.py +++ b/Editeur/appli.py @@ -59,12 +59,12 @@ class APPLI: self.top=master self.top.protocol("WM_DELETE_WINDOW",self.exitEFICAS) fac= self.top.winfo_screenwidth()/1024. - minx=int(900*fac) - miny=int(500*fac) + minx=int(256*fac) + miny=int(128*fac) self.top.minsize(minx,miny) self.top.geometry('%dx%d' % (minx,miny)) #self.top.minsize(900,500) - #self.top.geometry("900x500") + self.top.geometry("900x500") self.top.title(VERSION + ' pour '+self.code) self.titre=VERSION + ' pour '+self.code self.top.withdraw() -- 2.39.2