Salome HOME
The variable OutGate was not created in LoopNodes in python generated scripts
authorrahuel <rahuel@opencascade.com>
Tue, 6 Sep 2005 08:29:19 +0000 (08:29 +0000)
committerrahuel <rahuel@opencascade.com>
Tue, 6 Sep 2005 08:29:19 +0000 (08:29 +0000)
src/GraphBase/DataFlowBase_ComputingNode.cxx

index 54139b0a1bbb54817363afca3386e8a41394eada..f5203ff30304ec4108b2b318d5520771b533bbf8 100644 (file)
@@ -1704,6 +1704,11 @@ bool GraphBase::ComputingNode::SavePY( ostream &f , const char * aGraphName ,
             f << "    " << "O" << Name() << anOutPort->PortName() << ".SetNumberOfValues( " << aNumberOfValues << " )"
               << endl ;
          }
+//JR 02.09.2005 : GetOutPort for Gates was missing
+          else if ( anOutPort->IsGate() ) {
+            f << "    " << "O" << Name() << anOutPort->PortName() << " = "
+              << Name() << ".GetOutPort( '" << anOutPort->PortName() << "' )" << endl ;
+          }
         }
         for ( i = 0 ; i < aCoupledNode->GetNodeInPortsSize() ; i++ ) {
           const GraphBase::InPort * anInPort = aCoupledNode->GetNodeInPort(i) ;