Merge "Skip description from service transformation"
This commit is contained in:
commit
c5725038d3
@ -48,6 +48,9 @@ class Controller(object):
|
|||||||
srv = {}
|
srv = {}
|
||||||
srv['id'] = package.id
|
srv['id'] = package.id
|
||||||
srv['name'] = package.name
|
srv['name'] = package.name
|
||||||
|
if len(package.description) > 256:
|
||||||
|
srv['description'] = u"{0} ...".format(package.description[:253])
|
||||||
|
else:
|
||||||
srv['description'] = package.description
|
srv['description'] = package.description
|
||||||
srv['bindable'] = True
|
srv['bindable'] = True
|
||||||
srv['tags'] = []
|
srv['tags'] = []
|
||||||
|
Loading…
Reference in New Issue
Block a user