Fixed API doc that got broken by adding new commands for stratosphere ssp plugin

(cherry picked from commit 54f2234e21)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
This commit is contained in:
Alena Prokharchyk 2014-01-30 10:42:52 -08:00 committed by Animesh Chaturvedi
parent 55ec8f3a2d
commit a31eccc405
1 changed files with 9 additions and 8 deletions

View File

@ -6,9 +6,9 @@
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@ -126,7 +126,7 @@ known_categories = {
'Project': 'Project',
'Lun': 'Storage',
'Pool': 'Pool',
'VPC': 'VPC',
'VPC': 'VPC',
'PrivateGateway': 'VPC',
'Simulator': 'simulator',
'StaticRoute': 'VPC',
@ -159,7 +159,8 @@ known_categories = {
'UCS' : 'UCS',
'Ucs' : 'UCS',
'CacheStores' : 'Cache Stores',
'CacheStore' : 'Cache Store'
'CacheStore' : 'Cache Store',
'StratosphereSsp' : ' Stratosphere SSP'
}
@ -204,7 +205,7 @@ for f in sys.argv:
pass
except IndexError, e:
print fn
def xml_for(command):
name = command['name']
@ -219,7 +220,7 @@ def xml_for(command):
def write_xml(out, user):
with file(out, 'w') as f:
cat_strings = []
for category in categories.keys():
strings = []
for command in categories[category]:
@ -241,7 +242,7 @@ def write_xml(out, user):
<xsl:for-each select="commands/command">
%(all_strings)s
</xsl:for-each>
</ul>
</ul>
</div>
''' % locals()
@ -267,7 +268,7 @@ def java_for_user(user):
for command in categories[category]:
if command['user'] == user:
strings.append(java_for(command, user))
func = user_to_func[user]
func = user_to_func[user]
all_strings = ''.join(strings)
return '''
public void %(func)s() {