Skip to content
Snippets Groups Projects
Commit c81125d7 authored by Walter Lampl's avatar Walter Lampl
Browse files

TPyStore.py __cppname__ -> __cpp_name__

parent 26e6821c
No related branches found
No related tags found
No related merge requests found
......@@ -40,8 +40,8 @@ class TPyStore( ROOT.xAOD.TPyStore ):
def contains( self, key, type ):
# Determine the class name:
clname = type.__name__
if hasattr( type, "__cppname__" ):
clname = type.__cppname__
if hasattr( type, "___cpp_name__" ):
clname = type.___cpp_name__
pass
# Call the parent class's function:
return super( TPyStore, self ).contains( key, clname )
......@@ -63,8 +63,8 @@ class TPyStore( ROOT.xAOD.TPyStore ):
def isConst( self, key, type ):
# Determine the class name:
clname = type.__name__
if hasattr( type, "__cppname__" ):
clname = type.__cppname__
if hasattr( type, "___cpp_name__" ):
clname = type.___cpp_name__
pass
# Call the parent class's function:
return super( TPyStore, self ).isConst( key, clname )
......@@ -87,8 +87,8 @@ class TPyStore( ROOT.xAOD.TPyStore ):
def record( self, obj, key ):
# Determine the class name:
clname = obj.__class__.__name__
if hasattr( obj.__class__, "__cppname__" ):
clname = obj.__class__.__cppname__
if hasattr( obj.__class__, "___cpp_name__" ):
clname = obj.__class__.___cpp_name__
pass
# Call the parent class's function:
return super( TPyStore, self ).record( obj, key, clname )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment