|
|
|
@ -71,7 +71,6 @@ class ApiWsdl:
|
|
|
|
|
try:
|
|
|
|
|
page_count = int(dv.Get('cl_page_count'))
|
|
|
|
|
page_offset = int(dv.Get('cl_page_offset'))
|
|
|
|
|
self.startTask('Current offset = %d' %page_offset)
|
|
|
|
|
#self.printSUCCESS('Current offset = %d' %page_offset)
|
|
|
|
|
|
|
|
|
|
if not page_offset:
|
|
|
|
@ -83,6 +82,10 @@ class ApiWsdl:
|
|
|
|
|
list_req_id.sort()
|
|
|
|
|
max_id = list_req_id[len(list_req_id)-1]
|
|
|
|
|
|
|
|
|
|
if not len(list_req_id):
|
|
|
|
|
self.printSUCCESS('No requests')
|
|
|
|
|
return True
|
|
|
|
|
self.startTask('Current offset = %d' %page_offset)
|
|
|
|
|
if not page_count:
|
|
|
|
|
page_count = len(list_req_id)
|
|
|
|
|
|
|
|
|
@ -195,7 +198,8 @@ class ApiWsdl:
|
|
|
|
|
@rpc(Integer, RequestInfo, _returns = Array(ReturnedMessage))
|
|
|
|
|
@Dec.check_permissions(["request"])
|
|
|
|
|
@Dec.console('cl-show-request')
|
|
|
|
|
@Dec.gui(_('Api'),_('View Request'),'view-certificate-import')
|
|
|
|
|
@Dec.gui(_('Api'),_('View Request'),'view-certificate-import,'\
|
|
|
|
|
'application-certificate')
|
|
|
|
|
def show_request ( self, sid, info):
|
|
|
|
|
if not info:
|
|
|
|
|
mess = 'Field must be int!'
|
|
|
|
|