Updates:
        Summary: `Process` library cannot be used via remote interface
        Status: Accepted
        Labels: -Priority-Medium Priority-High Target-2.8.2

Comment #1 on issue 1490 by robotframew...@gmail.com: `Process` library cannot be used via remote interface
http://code.google.com/p/robotframework/issues/detail?id=1490

This is a bug in Process library, we simply didn't think about using it via the remote interface.

The problem is that the return value from `Run Process` and `Wait For Process` is an object with rc, stdout, and stderr as attributes (the latter two are also lazily evaluated) and XML-RPC protocol used by the remote interface does not support passing custom objects over the connection. Only certain base types such as strings, integers, lists, and mappings are allowed. The Python remote server, and I guess also other remote servers, simply return a string representation of custom objects.

Unfortunately fixing this isn't exactly easy. The current plan we have is the following:

1) Change the result object so that it behaves as a mapping to support passing it over the connection. It would be more convenient to inherit from collections.Mapping than dict, but unfortunately the remote server only supports the latter and the former is not available in Python/Jython 2.5. Changes to the remote server may be necessary.

An alternative solution is that we change the remote server so that it can coerce custom objects into XML-RPC compatible objects. Objects could, for example, have a special method that the server calls that ought to return a safe object.

2) For convenience, enhance the Remote library so that it turns all dicts it receives into custom "dot accessible dicts" that support accessing items using `obj.item` in addition to `obj['item']`.



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to