-#-*- coding: ISO-8859-1 -*-
+# -*- coding: utf-8 -*-
# Copyright (C) 2007-2013 EDF R&D
#
# This library is free software; you can redistribute it and/or
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
import os,traceback,string
+import re
from Noyau.N_CR import CR
from Noyau.N_Exception import AsException
Génère l'objet rapport (classe CR)
"""
self.cr=CR()
- if not self.isvalid(): self.cr.warn(tr(u"Objet commande commentarisee invalide"))
+ if not self.isvalid(): self.cr.warn(tr("Objet commande commentarisé invalide"))
return self.cr
def copy(self):
"""
Retourne l'attribut fr de self.definition
"""
+ if self.jdc.code=='ASTER' : return self.definition.fr
try :
return getattr(self.definition,self.jdc.lang)
except:
try:
# on essaie de créer un objet JDC...
CONTEXT.unset_current_step()
+ if re.search('Fin Commentaire',self.valeur) :
+ self.valeur=self.valeur.replace('Fin Commentaire','')
J=self.jdc.__class__(procedure=self.valeur,
definition=self.jdc.definition,
cata=self.jdc.cata,
attend un objet GEOM, 0 sinon
"""
return self.object.wait_geom()
+
+ def wait_TXM(self):
+ return self.object.wait_TXM()
+
def wait_complex(self):
""" Méthode booléenne qui retourne 1 si l'objet pointé par self
self.node.fenetre=self
self.setupUi(self)
self.editor=editor
+ self.appliEficas=self.editor.appliEficas
+ self.repIcon=self.appliEficas.repIcon
self.setIconePoubelle()
self.remplitTexte()
if self.editor.code in ['MAP','CARMELCND'] : self.bCatalogue.close()
self.node.fenetre=self
self.setupUi(self)
self.editor=editor
+ self.appliEficas=self.editor.appliEficas
+ self.repIcon=self.appliEficas.repIcon
+
self.setIconePoubelle()
self.remplit()
if self.editor.code in ['MAP','CARMELCND'] : self.bCatalogue.close()
if not validite :
commentaire = "impossible d'evaluer : %s " %`valeurentree`
return valeur,validite,commentaire
+ if self.node.item.wait_TXM() and type(valeur) not in types.StringTypes : valeur=str(valeur)
testtype,commentaire = self.node.item.object.verif_type(valeur)
if not testtype :
def GetValeurTexte(self,valeur) :
valeurTexte=valeur
+ if valeur == None : return valeur
from decimal import Decimal
if isinstance(valeur,Decimal) :
- return valeur
- if valeur == None : return valeur
+ if self.node.wait_TXM() and not self.is_param(valeur) : return "'"+str(valeur)+"'"
+ else : return(valeur)
if "R" in self.node.item.object.definition.type:
clefobj=self.node.item.object.GetNomConcept()
if self.parent.appliEficas.dict_reels.has_key(clefobj):
<x>0</x>
<y>0</y>
<width>934</width>
- <height>253</height>
+ <height>265</height>
</rect>
</property>
<property name="sizePolicy">
<number>0</number>
</property>
<property name="bottomMargin">
- <number>2</number>
+ <number>7</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<x>0</x>
<y>0</y>
<width>300</width>
- <height>187</height>
+ <height>194</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
</item>
</layout>
</item>
+ <item>
+ <spacer name="horizontalSpacer_3">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>8</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="sizePolicy">
<rect>
<x>0</x>
<y>0</y>
- <width>266</width>
- <height>247</height>
+ <width>262</width>
+ <height>254</height>
</rect>
</property>
<property name="sizePolicy">
<rect>
<x>0</x>
<y>0</y>
- <width>261</width>
- <height>202</height>
+ <width>257</width>
+ <height>209</height>
</rect>
</property>
<property name="sizePolicy">
</item>
</layout>
<zorder>horizontalSpacer</zorder>
- <zorder>scrollArea</zorder>
<zorder>horizontalSpacer_2</zorder>
+ <zorder>horizontalSpacer_3</zorder>
+ <zorder>scrollArea</zorder>
</widget>
<customwidgets>
<customwidget>