#NEWLINE# @ classmethod #NEWLINE# def id_offset( cls ) : #NEWLINE# #INDENT# '\n        Compute an appropriate offset for future id values given the set\n        of ids currently defined across backends.\n        ' #NEWLINE# max_ids = [ ] #NEWLINE# for backend in Store . renderers . keys ( ) : #NEWLINE# #INDENT# store_ids = Store . custom_options ( backend = backend ) . keys ( ) #NEWLINE# max_id = ( ( max ( store_ids ) + 1 ) if ( len ( store_ids ) > 0 ) else 0 ) #NEWLINE# max_ids . append ( max_id ) #NEWLINE# #UNINDENT# return ( max ( max_ids ) if len ( max_ids ) else 0 )