#NEWLINE# def add_deploy_serializer( self , serializer ) : #NEWLINE# #INDENT# if getattr ( serializer , 'identity' , None ) : #NEWLINE# #INDENT# self . _deploy_serializers_map [ serializer . identity ] = serializer #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _deploy_serializers_map [ serializer . hook_type ] = self