<s> """<STR_LIT>""" <EOL> import puremvc . interfaces <EOL> import puremvc . patterns . observer <EOL> class MacroCommand ( puremvc . patterns . observer . Notifier , puremvc . interfaces . ICommand , puremvc . interfaces . INotifier ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> """<STR_LIT>""" <EOL> self . subCommands = [ ] <EOL> self . initializeMacroCommand ( ) <EOL> def initializeMacroCommand ( self ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def addSubCommand ( self , commandClassRef ) : <EOL> """<STR_LIT>""" <EOL> self . subCommands . append ( commandClassRef ) <EOL> def execute ( self , notification ) : <EOL> """<STR_LIT>""" <EOL> for commandClassRef in self . subCommands [ : ] : <EOL> commandClassRef ( ) . execute ( notification ) <EOL> class SimpleCommand ( puremvc . patterns . observer . Notifier , puremvc . interfaces . ICommand , puremvc . interfaces . INotifier ) : <EOL> """<STR_LIT>""" <EOL> def execute ( self , notification ) : <EOL> """<STR_LIT>""" <EOL> pass </s>
