XML-RPC Reference¶
These XML-RPC functions are called by the front method
call()
-
publiforge.views.xmlrpc.
agent_id
(request, context)[source]¶ Return the unique ID of an agent.
Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
.
Returns: (tuple)
(error, uid)
- request – (
-
publiforge.views.xmlrpc.
processor_list
(request, context)[source]¶ Return a list of available processors.
Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
.
Returns: (tuple)
(error, processor_list)
- request – (
-
publiforge.views.xmlrpc.
processor_xml
(request, context, processor_id)[source]¶ Return XML of processor
processor_id
.Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
. - processor_id – (string) Processor_id
Returns: (tuple)
(<error>, <processor_list>)
- request – (
-
publiforge.views.xmlrpc.
activity
(request, context)[source]¶ Return the agent activity i.e. the number of active builds.
Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
. - password – (string) Front password to use agent services.
Returns: (tuple)
(<error>, <activity>)
- request – (
-
publiforge.views.xmlrpc.
synchronizing
(request, context, build_id, lock=True)[source]¶ The data synchronization for the build
build_id
is running.Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
. - build_id – (string) Build ID.
- lock – (boolean, default=True)
If
True
try to add buildbuild_id
in the list of synchronizations.
Returns: (tuple)
(<error>, '')
- request – (
-
publiforge.views.xmlrpc.
start
(request, context, build_id, processing, pack, end_url)[source]¶ Start the build.
Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
. - build_id – (string) Build ID.
- processing – (dictionary) A processing dictionary.
- pack – (dictionary) A pack dictionary.
- end_url – (string) URL to call to complete the build.
Returns: (tuple)
(<error>, '')
Arguments of this RPC function are:
<front_id>, <password>, <user>, <build_id>, <processing>, <pack>, <end_url>
.- request – (
-
publiforge.views.xmlrpc.
progress
(request, context, build_id)[source]¶ Return the progress of a build.
Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
. - build_id – (string) Build ID.
Returns: (tuple)
(<error>, <result>)
- request – (
-
publiforge.views.xmlrpc.
stop
(request, context, build_id)[source]¶ Stop a build.
Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
. - build_id – (string) Build ID.
Returns: (tuple)
(<error>, <result>)
- request – (
-
publiforge.views.xmlrpc.
result
(request, context, build_id)[source]¶ Return the result of a build.
Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
. - build_id – (string) Build ID.
- request – (
-
publiforge.views.xmlrpc.
buildspace_cleanup
(request, context, root, filenames)[source]¶ Delete files in path
path
of buildspace directory which are not infiles
.Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
. - root – (string) Path to clean up.
- filenames – (list) Names of file to keep.
Returns: (tuple)
(<error>, '')
- request – (
-
publiforge.views.xmlrpc.
buildspace_send_signature
(request, context, filename)[source]¶ Return signature of a buildspace file.
Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
. - filename – (string) Filename that should send the signature.
Returns: (tuple)
(<error>, <signature>)
- request – (
-
publiforge.views.xmlrpc.
buildspace_receive_delta
(request, context, filename, delta)[source]¶ Receive a delta (rsync) for a file in buildspace directory.
Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
. - filename – (string) Filename that should send the signature.
- delta – (
xmlrpclib.Binary
instance) Patch to apply.
Returns: (tuple)
(<error>, '')
- request – (
-
publiforge.views.xmlrpc.
output_list
(request, context, build_id)[source]¶ List output files of a build.
Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
. - build_id – (string) Build ID.
Returns: (tuple)
(<error>, <file_list>)
- request – (
-
publiforge.views.xmlrpc.
output_send_delta
(request, context, build_id, filename, sig)[source]¶ Send a delta list of a file of the
Output
directory..Parameters: - request – (
pyramid.request.Request
instance) Current request. - context – (dictionary)
See
call()
. - build_id – (string) Build ID.
- filename – (string) Name of the file to transfer.
- sig – (
xmlrpclib.Binary
instance) File signature.
Returns: (tuple)
(<error>, <delta>)
- request – (