@ -536,8 +536,8 @@ def mk_registration_property( field, doc="" ):
""" Create a property for the given registration field. """
def get_field( self ):
if "comment" in self.registration:
return self.registration["comment"];
if field in self.registration:
return self.registration[field];
else:
return None;
@ -28,3 +28,9 @@ class ObjectInfo( object ):
def __unicode__( self ):
return unicode( self.__dict__ );
def __contains__( self, name ):
return name in self.__dict__;
def __getitem__( self, name ):
return self.__dict__[name];