[Python-checkins] CVS: python/dist/src/Tools/bgen/bgen bgenObjectDefinition.py,1.10,1.11
Jack Jansen
jackjansen@users.sourceforge.net
Thu, 28 Jun 2001 15:07:32 -0700
Update of /cvsroot/python/python/dist/src/Tools/bgen/bgen
In directory usw-pr-cvs1:/tmp/cvs-serv27230/Python/Tools/bgen/bgen
Modified Files:
bgenObjectDefinition.py
Log Message:
Make basechain a class variable in stead of initializing it in __init__. That way it's more easily overridden.
Index: bgenObjectDefinition.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/bgenObjectDefinition.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** bgenObjectDefinition.py 2001/05/19 13:59:18 1.10
--- bgenObjectDefinition.py 2001/06/28 22:07:30 1.11
***************
*** 4,7 ****
--- 4,8 ----
class ObjectDefinition(GeneratorGroup):
"Spit out code that together defines a new Python object type"
+ basechain = "NULL"
def __init__(self, name, prefix, itselftype):
***************
*** 22,26 ****
self.argref = "" # set to "*" if arg to <type>_New should be pointer
self.static = "static " # set to "" to make <type>_New and <type>_Convert public
- self.basechain = "NULL" # set to &<basetype>_chain to chain methods
def add(self, g, dupcheck=0):
--- 23,26 ----