#NEWLINE# def __new__( cls , name , bases , attrs ) : #NEWLINE# #INDENT# super_new = super ( PageMetaClass , super_new ) . __new__ #NEWLINE# if ( 'objects' in attrs ) : #NEWLINE# #INDENT# if ( not isinstance ( attrs [ 'objects' ] , PublisherManager ) ) : #NEWLINE# #INDENT# raise ( ValueError ( "Model %s extends Publisher, so its 'objects' manager must be a subclass of publisher.PublisherManager" ) % ( name , ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# attrs [ 'objects' ] = PublisherManager ( ) #NEWLINE# #UNINDENT# return super_new ( cls , name , bases , attrs )