Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [maxq-dev] Intermediate formats

maxq
Discussion topic

Back to topic list

[maxq-dev] Intermediate formats

Author oliverbock
Full name Oliver Bock
Date 2004-06-23 15:20:40 PDT
Message I'd like to suggest that if maxq is to use an intermediate format then
that format should be a Jython/python data structure. My reasons are:

1. The data structure would be much more compact and hence readable by
the naked eye. e.g.
     (('GET', 'http://www.yahoo.com', 200),
      ('POST', 'http://www.yahoo.com/Login', 200, (('id',
'oliver'),('password​','bozo'))))

2. Writing Jython scripts to output from this format to any other
format (including XML and the existing Jython script format) would be
trivial. Of course we would include an XML output filter in any
distribution, probably making it an option in the Save dialog box.
Something like this:

     def outputXml(data):
         print "<maxq>"
         def outputRequest(method, url, response=200, params=()):
             print '<method url="%s" response="%d">' % (url, response)
             for name, value in params:
                 print '<param name="%s" value="%s"/>' % name, value
             print '</method>'
         for requestData in data:
             outputRequest(*requestData)
         print "</maxq>"

3. We would not need to include or require the installation of any XML
tools.

4. There are less technologies for users of maxq to master.

5. I think it is worth preserving the python heritage of maxq because
it makes the scripts very accessible to new users. (This is my
argument against the notion that maxq should be "language neutral". If
we include Jython then we may as well use it rather than adding XSLT,
etc.)


    Oliver
  
  


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe at maxq dot tigris dot org
For additional commands, e-mail: dev-help at maxq dot tigris dot org

« Previous message in topic | 1 of 16 | Next message in topic »

Messages

Show all messages in topic

[maxq-dev] Intermediate formats oliverbock Oliver Bock 2004-06-23 15:20:40 PDT
     Re: [maxq-dev] Intermediate formats Ryan Bloom <rbb at redhat dot com> Ryan Bloom <rbb at redhat dot com> 2004-06-24 06:57:48 PDT
         Re: [maxq-dev] Intermediate formats fcohen Frank Cohen 2004-06-24 08:41:02 PDT
             Re: [maxq-dev] Intermediate formats avery1701 Matt Avery 2004-06-24 09:10:37 PDT
                 Re: [maxq-dev] Intermediate formats fcohen Frank Cohen 2004-06-24 09:59:50 PDT
                     Re: [maxq-dev] Intermediate formats avery1701 Matt Avery 2004-06-24 12:23:05 PDT
                         Re: [maxq-dev] Intermediate formats fcohen Frank Cohen 2004-06-24 13:37:59 PDT
                             Re: [maxq-dev] Intermediate formats fcohen Frank Cohen 2004-06-24 14:21:38 PDT
                                 Re: [maxq-dev] Intermediate formats Ryan Bloom <rbb at redhat dot com> Ryan Bloom <rbb at redhat dot com> 2004-06-24 16:24:06 PDT
                             Re: [maxq-dev] Intermediate formats avery1701 Matt Avery 2004-06-25 05:50:12 PDT
                                 Re: [maxq-dev] Intermediate formats fcohen Frank Cohen 2004-06-25 07:36:56 PDT
                                     Re: [maxq-dev] Intermediate formats avery1701 Matt Avery 2004-06-25 08:08:46 PDT
                                         Re: [maxq-dev] Intermediate formats fcohen Frank Cohen 2004-06-25 09:53:48 PDT
         Re: [maxq-dev] Intermediate formats oliverbock Oliver Bock 2004-06-24 16:27:05 PDT
             Re: [maxq-dev] Intermediate formats Ryan Bloom <rbb at redhat dot com> Ryan Bloom <rbb at redhat dot com> 2004-06-24 16:37:22 PDT
                 Re: [maxq-dev] Intermediate formats oliverbock Oliver Bock 2004-06-24 16:56:31 PDT
Messages per page: