<s> class OpenViews ( ) : <EOL> cache = [ ] <EOL> @ classmethod <EOL> def get ( cls , view ) : <EOL> for view_dict in cls . cache : <EOL> if view_dict [ '<STR_LIT:id>' ] == view . id ( ) : <EOL> return view_dict <EOL> @ classmethod <EOL> def set ( cls , view , extra = None ) : <EOL> cls . cache . append ( { '<STR_LIT:id>' : view . id ( ) , '<STR_LIT>' : extra } ) <EOL> @ classmethod <EOL> def remove ( cls , view_to_remove ) : <EOL> view_dict = cls . get ( view_to_remove ) <EOL> if view_dict : <EOL> cls . cache . remove ( view_dict ) </s>
