<s> '''<STR_LIT>''' <EOL> from RESTfulResource import RESTfulResource <EOL> from PropertyOfInterest import PropertyOfInterest <EOL> from Description import Description <EOL> from Observers import Observers <EOL> class ObservableProperty ( RESTfulResource ) : <EOL> def __init__ ( self ) : <EOL> RESTfulResource . __init__ ( self ) <EOL> self . defaultClass = '<STR_LIT>' <EOL> def get ( self ) : <EOL> if '<STR_LIT>' in self . resources : <EOL> return self . resources [ '<STR_LIT>' ] . get ( ) <EOL> return None <EOL> def set ( self , newValue ) : <EOL> if '<STR_LIT>' in self . resources : <EOL> self . resources [ '<STR_LIT>' ] . set ( newValue ) <EOL> if '<STR_LIT>' in self . resources : <EOL> self . resources [ '<STR_LIT>' ] . onUpdate ( ) <EOL> def create ( self , resourceName , className = None ) : <EOL> if className == None : <EOL> if resourceName in self . wellKnownClasses : <EOL> className = resourceName <EOL> else : <EOL> className = self . defaultClass <EOL> self . resources . update ( { resourceName : globals ( ) [ className ] ( ) } ) <EOL> return self . resources [ resourceName ] </s>
