ServiceObject.IsValid() method
Robert Olson
olson at mcs.anl.gov
Mon Feb 10 15:40:03 CST 2003
At 04:35 PM 2/8/2003 -0600, Ivan R. Judson wrote:
>Because validating a url connects to an object is a more direct solution
>than handling an error on an enter call (oh, you can't enter *that*, that's
>not a valid client proxy.
>
>Fwiw, if the get_proxy() isn't validating that the url points to a real
>object, there are some serious semantic ramifications -- that is you *never*
>know if the client proxy is actually valid -- which seems fundamentally
>wrong, doesn't it? If the url passed to Client().get_proxy() isn't valid
>shouldn't it at least throw an exception? Or return None?
>
>Look at bin\VenueClient.py -> GoToNewVenue(..args..), where this all started
>from.
What exactly do you mean by validating? Is it that a URL points to a
service of the "type" you are expecting?
we could define some validation of that sort, it requires agreeing on how
to describe type names, and that you will pay the round-trip price for the
validation.
--bob
More information about the ag-dev
mailing list