#NEWLINE# def _existing_hook_objs( self , hooks , token ) : #NEWLINE# #INDENT# '\n        Given a list of hook dicts passed from list_hooks, creates\n        the hook objects\n        ' #NEWLINE# all_hooks = [ ] #NEWLINE# for hook in hooks : #NEWLINE# #INDENT# new_hook = WebHook ( self , token , hook [ 'id' ] , hook [ 'description' ] , hook [ 'idModel' ] , hook [ 'callbackURL' ] , hook [ 'active' ] ) #NEWLINE# all_hooks . append ( new_hook ) #NEWLINE# #UNINDENT# return all_hooks