#NEWLINE# def __init__( self , channel_type , instance_id = None , general = False , aliases = ( ) ) : #NEWLINE# #INDENT# if ( instance_id == 'next' ) : #NEWLINE# #INDENT# instance_id = db_counter ( 'channel' ) #NEWLINE# #UNINDENT# make_action ( self , ( ( instance_id , ) + aliases ) ) #NEWLINE# self . id = ( '{}_{}' . format ( channel_type , instance_id ) if instance_id else channel_type ) #NEWLINE# channel_service . register_channel ( self . id , general )