Changeset 8f91e66


Ignore:
Timestamp:
Jun 24, 2008 4:57:53 PM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
3e293e4
Parents:
6ff0b91
Message:

serialize only option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_client.py

    r6ff0b91 r8f91e66  
    99from M2Crypto import SSL, X509
    1010import M2Crypto.httpslib
    11 
    12 from fedd_util import *
     11from ZSI import SoapWriter
     12
     13from fedd_util import fedid, fedd_ssl_context, pack_soap, pack_id
    1314
    1415from optparse import OptionParser, OptionValueError
     
    6566
    6667        self.set_defaults(url="https://localhost:23235", anonymous=False,
    67                 use_fedid=False, debug=0)
     68                serialize_only=False, use_fedid=False, debug=0)
    6869
    6970        self.add_option("-a","--anonymous", action="store_true",
     
    9192                type="string",
    9293                help="Use a project request with this project name")
     94        self.add_option("-s", "--serializeOnly", action="store_true",
     95                dest="serialize_only",
     96                help="Print the SOAP request that would be sent and exit")
    9397        self.add_option("-t", "--testbed", action="store", dest="testbed",
    9498                type="string",
     
    297301        pack_soap(req, "RequestAccessRequestBody", msg))
    298302
     303if opts.debug > 1:
     304    print msg
     305
     306if opts.serialize_only:
     307    sw = SoapWriter()
     308    sw.serialize(req)
     309    print str(sw)
     310    sys.exit(0)
    299311
    300312try:
Note: See TracChangeset for help on using the changeset viewer.