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
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)
# 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 *
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):
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):
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()