certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/scripts GenMsgBase.py


From: CERTI CVS commits
Subject: [certi-cvs] certi/scripts GenMsgBase.py
Date: Fri, 15 Jul 2011 12:30:03 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      11/07/15 12:30:02

Modified files:
        scripts        : GenMsgBase.py 

Log message:
        Tolerate "partial" factory specs

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/scripts/GenMsgBase.py?cvsroot=certi&r1=1.7&r2=1.8

Patches:
Index: GenMsgBase.py
===================================================================
RCS file: /sources/certi/certi/scripts/GenMsgBase.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- GenMsgBase.py       15 Jul 2011 12:22:01 -0000      1.7
+++ GenMsgBase.py       15 Jul 2011 12:30:01 -0000      1.8
@@ -19,7 +19,7 @@
 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 ## USA
 ##
-## $Id: GenMsgBase.py,v 1.7 2011/07/15 12:22:01 erk Exp $
+## $Id: GenMsgBase.py,v 1.8 2011/07/15 12:30:01 erk Exp $
 ## ----------------------------------------------------------------------------
 
 # We use logging for ... logging :-)
@@ -307,8 +307,10 @@
             self.writeComment(stream, self.AST.factory)
             stream.write('factory %s {\n' % self.AST.factory.name)
             self.indent()
+            if self.AST.factory.hasFactoryCreator():
             stream.write(self.getIndent() + 'factoryCreator %s %s(%s)\n'
                           % self.AST.factory.creator)
+            if self.AST.factory.hasFactoryReceiver():
             stream.write(self.getIndent()
                          + 'factoryReceiver %s %s(%s)\n'
                          % self.AST.factory.receiver)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]