[GME-commit] GMESRC/Tests/GPyUnit/Regr/Mga/utils Builder.py,1.1,1.2
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Thu Dec 1 20:54:47 CST 2005
- Previous message: [GME-commit]
GMESRC/Tests/GPyUnit/Regr/Mga tc8.py,NONE,1.1 tc4.py,1.1,1.2
tc6.py,1.1,1.2 tc7.py,1.1,1.2
- Next message: [GME-commit]
GMESRC/Java/native/JavaCompRunner RawComponent.cpp,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /project/gme-repository/GMESRC/Tests/GPyUnit/Regr/Mga/utils
In directory escher:/tmp/cvs-serv15908/utils
Modified Files:
Builder.py
Log Message:
Testcases, benefiting from the dispatch-enabled mga methods.
CVS User: Zoltan Molnar, ISIS (zolmol)
Index: Builder.py
===================================================================
RCS file: /project/gme-repository/GMESRC/Tests/GPyUnit/Regr/Mga/utils/Builder.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Builder.py 10 Jun 2005 21:25:47 -0000 1.1
--- Builder.py 1 Dec 2005 20:54:45 -0000 1.2
***************
*** 68,78 ****
--- 68,95 ----
return cont.CreateChildObject( role(p, cont, role_str))
+ def subtype(p, cont, base):
+ """ Creates a derived fco from base, in the same role as base in container model specified """
+ return cont.DeriveChildObject( base, base.MetaRole, False)
+
+ def instantiate(p, cont, type):
+ """ Instantiates an fco from type, in the same role as type in container model specified """
+ return cont.DeriveChildObject( type, type.MetaRole, True)
+
def newObjInFold(p, fold, kind_str):
""" Creates an object in a folder/rootfolder, based on kind_str"""
return fold.CreateRootObject( kind( p, kind_str))
+ def subtypeInFold(p, cont, base):
+ """ Creates a derived fco from base, in the folder specified """
+ return cont.DeriveRootObject( base, False)
+
+ def instantiateInFold(p, cont, type):
+ """ Instantiates an fco from type, in the folder specified """
+ return cont.DeriveRootObject( type, True)
+
def newFolder(p, parent, folder_kind_str):
""" Creates a folder_kind_str folder in parent"""
return parent.CreateFolder( folder( p, folder_kind_str))
+
def connect(p, cont, s, d, role_str):
- Previous message: [GME-commit]
GMESRC/Tests/GPyUnit/Regr/Mga tc8.py,NONE,1.1 tc4.py,1.1,1.2
tc6.py,1.1,1.2 tc7.py,1.1,1.2
- Next message: [GME-commit]
GMESRC/Java/native/JavaCompRunner RawComponent.cpp,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the GME-commit
mailing list