Commits

Anonymous committed cbff988

Apply __plugins in Help

  • Participants
  • Parent commits 7d5527e

Comments (0)

Files changed (1)

 def __buildPlugins():
 	"""
 	Build plugins used in unmarshal
+	Return the dict like:
+	Operation => { 'isByPassed'=>(...), 'isPivoted'=>(...), 
+		'isCollective'=>(...), 'isCollected'=>(...) }  
 	"""
 
 	"""
 		'CustomerLists': ((), (), (), ()),
 		'CustomerReviews': ((), (), (), ()),
 		'EditorialReview': ((), (), (), ()),
-		'Help': ((), (), (), ()),
+		'Help': ((), (), ('RequiredParameters', 'AvailableParameters',
+			'DefaultResponseGroups', 'AvailableResponseGroups'),
+			 ('Parameter', 'ResponseGroup')),
 		'Images': ((), (), (), ()),
 		'ItemAttributes': ((), (), (), ()),
 		'ItemIds': ((), (), (), ()),
 	return url + '&'.join(['%s=%s' % (k,urllib.quote(str(v))) for (k,v) in argv.items() if v]) 
 
 
-def buildPlugins(operation):
-	pass
-	
-
-
 def buildException(els):
 	"""Build the exception from the returned DOM node
 	Note: only the first exception is raised."""
 # Help
 def Help(HelpType, About, ResponseGroup=None, AWSAccessKeyId=None):
 	'''Help in AWS'''
-
-	argv = vars()
-	plugins = {
-		'isBypassed': ('Request',), 
-		'isPivoted': (), 
-		'isCollective': ('RequiredParameters', 
-			'AvailableParameters', 'DefaultResponseGroups',
-			'AvailableResponseGroups'),
-		'isCollected': ('Parameter', 'ResponseGroup') 
-	}
-	return rawObject(XMLHelp, argv, 'Information', plugins)
+	return rawObject(XMLHelp, vars(), 'Information', __plugins['Help'])
 
 
 def XMLHelp(HelpType, About, ResponseGroup=None, AWSAccessKeyId=None):