[svn-commits] mjordan: trunk r420289 - /trunk/build_tools/post_process_documentation.py

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Aug 6 22:04:52 CDT 2014


Author: mjordan
Date: Wed Aug  6 22:04:49 2014
New Revision: 420289

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=420289
Log:
build_tools: Skip managerEvent combining for AMI action responses

AMI action responses can (and will) reference AMI events that they return.
These event references and definitions should not be combined with AMI events
raised elsewhere in the code, as they are specifically tied to the AMI action
that raised them.

ASTERISK-24156 #close
Reported by: Rusty Newton

Modified:
    trunk/build_tools/post_process_documentation.py

Modified: trunk/build_tools/post_process_documentation.py
URL: http://svnview.digium.com/svn/asterisk/trunk/build_tools/post_process_documentation.py?view=diff&rev=420289&r1=420288&r2=420289
==============================================================================
--- trunk/build_tools/post_process_documentation.py (original)
+++ trunk/build_tools/post_process_documentation.py Wed Aug  6 22:04:49 2014
@@ -59,7 +59,10 @@
 def collapse_manager_events(rootNode, managerEvents):
     events = {}
     for managerEvent in managerEvents:
-        rootNode.removeChild(managerEvent)
+        if (managerEvent.parentNode.nodeName == 'list-elements'
+            or managerEvent.parentNode.nodeName == 'responses'):
+            continue
+        managerEvent.parentNode.removeChild(managerEvent)
         attr = managerEvent.getAttribute('name')
         if attr in events:
             # match, collapse the two managerEvents




More information about the svn-commits mailing list