<s> from biicode . common . model . cells import SimpleCell , VirtualCell <EOL> from biicode . common . exception import ConfigurationFileError <EOL> def compute_files ( hive_holder , output , settings ) : <EOL> """<STR_LIT>""" <EOL> new_files = { } <EOL> for block_cell_name , ( cell , content ) in hive_holder . resources . iteritems ( ) : <EOL> if isinstance ( cell , VirtualCell ) : <EOL> try : <EOL> target = cell . evaluate ( settings ) <EOL> except ConfigurationFileError as e : <EOL> output . error ( "<STR_LIT>" % ( block_cell_name , e . message ) ) <EOL> continue <EOL> content = hive_holder [ target . block_name ] [ target . cell_name ] . content <EOL> new_files [ block_cell_name ] = content . load . load <EOL> elif content . blob_updated : <EOL> new_files [ block_cell_name ] = content . load . load <EOL> return new_files <EOL> def compute_deps_files ( closure ) : <EOL> """<STR_LIT>""" <EOL> files = { } <EOL> for block_cell_name , ( resource , _ ) in closure . iteritems ( ) : <EOL> if isinstance ( resource . cell , SimpleCell ) : <EOL> if resource . cell . container is None : <EOL> files [ block_cell_name ] = resource . content . load . load <EOL> else : <EOL> files [ resource . cell . container ] = resource . content . load . load <EOL> return files </s>
