Login | Register
My pages Projects Community openCollabNet

Discussions > users > Capture return data

maxq
Discussion topic

Hide all messages in topic

All messages in topic

Re: [maxq-users] python.path

Author oliverbock
Full name Oliver Bock
Date 2007-05-22 13:43:23 PDT
Message You will need to get a CVS client (e.g. Tortoise CVS or the command-
line client). There are instructions on getting the repository under
"CVS" in the left-side navigation bar at maxq.tigris.org.


   Oliver

--
There are instructions on
On 22/05/2007, at 23:55, jh wrote:

> I have tortoiseSVN is it compatible with CVS? Not sure how to go
> about downloading and running the CVS version, do I download
> everything?
>
>
> ----- Original Message -----
> From: Oliver Bock
> To: users at maxq dot tigris dot org
> Sent: Friday, May 18, 2007 4:39 AM
> Subject: Re: [maxq-users] python.path
>
>> python.path was commented in in maxq\conf\maxq.properties.
>> The notes in the file say to separate multiple directories. I
>> assume that since directories can have a : in the name such as c:
>> \python22 the directories must be quoted. So I tried quoting them
>> and separating them with semicolons with and without qoutes.
>>
>> The paths I added were:
>>
>> .
>> c:\python22
>> c:\maxq
>>
>> After doing so I get the error message:
>> ImportError: no module named PyHttpTestCase
>>
>> So tried adding c:\maxq\jython to no avail.
>
> I think there's a bug in the handling of paths: a colon is
> hardcoded as the path separator instead of using a semicolon when
> running on Windows. I've committed a fix, but I cannot test it at
> the moment since I don't have Windows where I am. If you can use
> the CVS version, can you please tell me if it helps?
>
>
> Oliver
>
>
> P.S. You should be using semicolons to separate paths and not using
> quotes.
>
>
Attachments

Re: [maxq-users] python.path

Author hms_suprise
Full name john v hite
Date 2007-05-22 06:55:57 PDT
Message I have tortoiseSVN is it compatible with CVS? Not sure how to go about downloading and running the CVS version, do I download everything?


  ----- Original Message -----
  From: Oliver Bock
  To: users at maxq dot tigris dot org
  Sent: Friday, May 18, 2007 4:39 AM
  Subject: Re: [maxq-users] python.path


    python.path was commented in in maxq\conf\maxq.properties.
    The notes in the file say to separate multiple directories. I assume that since directories can have a : in the name such as c:\python22 the directories must be quoted. So I tried quoting them and separating them with semicolons with and without qoutes.

    The paths I added were:

    .
    c:\python22
    c:\maxq

    After doing so I get the error message:
    ImportError: no module named PyHttpTestCase

    So tried adding c:\maxq\jython to no avail.


  I think there's a bug in the handling of paths: a colon is hardcoded as the path separator instead of using a semicolon when running on Windows. I've committed a fix, but I cannot test it at the moment since I don't have Windows where I am. If you can use the CVS version, can you please tell me if it helps?




     Oliver




  P.S. You should be using semicolons to separate paths and not using quotes.
Attachments

Re: [maxq-users] python.path

Author oliverbock
Full name Oliver Bock
Date 2007-05-18 02:39:41 PDT
Message > python.path was commented in in maxq\conf\maxq.properties.
> The notes in the file say to separate multiple directories. I
> assume that since directories can have a : in the name such as c:
> \python22 the directories must be quoted. So I tried quoting them
> and separating them with semicolons with and without qoutes.
>
> The paths I added were:
>
> .
> c:\python22
> c:\maxq
>
> After doing so I get the error message:
> ImportError: no module named PyHttpTestCase
>
> So tried adding c:\maxq\jython to no avail.

I think there's a bug in the handling of paths: a colon is hardcoded
as the path separator instead of using a semicolon when running on
Windows. I've committed a fix, but I cannot test it at the moment
since I don't have Windows where I am. If you can use the CVS
version, can you please tell me if it helps?


    Oliver


P.S. You should be using semicolons to separate paths and not using
quotes.
Attachments

python.path

Author hms_suprise
Full name john v hite
Date 2007-05-16 06:33:29 PDT
Message python.path was commented in in maxq\conf\maxq.properties.
The notes in the file say to separate multiple directories. I assume that since directories can have a : in the name such as c:\python22 the directories must be quoted. So I tried quoting them and separating them with semicolons with and without qoutes.

The paths I added were:

.
c:\python22
c:\maxq

After doing so I get the error message:
ImportError: no module named PyHttpTestCase

So tried adding c:\maxq\jython to no avail.

Suggestions please.


Thanks,

john
Attachments

Re: [maxq-users] I/O

Author oliverbock
Full name Oliver Bock
Date 2007-05-15 15:24:35 PDT
Message No, this is a bug. It should detect when it's running in the MaxQ GUI
and show a text input in that case.

It works fine if you run your scripts via the command line.


  Oliver

--
jh wrote:
> Is there a way to allow user input when running maxq scripts?
>
> It seems my prompts show up in the maxq window but responses have to
> be in the 'cmd' window.
>
> Thanx,
>
> jh

I/O

Author hms_suprise
Full name john v hite
Date 2007-05-15 08:08:18 PDT
Message Is there a way to allow user input when running maxq scripts?

It seems my prompts show up in the maxq window but responses have to be in the 'cmd' window.

Thanx,

jh
Attachments

Re: [maxq-users] Capture return data

Author hms_suprise
Full name john v hite
Date 2007-05-15 07:04:48 PDT
Message Turns out all I needed to do was:
data = self.getResponse()
  ----- Original Message -----
  From: Oliver Bock
  To: users at maxq dot tigris dot org
  Sent: Friday, May 11, 2007 4:31 PM
  Subject: Re: [maxq-users] Capture return data


  You might be able to get by with Jython's string class and regular expressions, but they're not well suited to HTML. You could use one of the many HTML parsing libraries written in Java, and you could probably also use the XML/HTML parsing from the Python standard libraries if it's in pure Python (which it probably is).




    Oliver


  --

  On 08/05/2007, at 06:58, jh wrote:


    Is there a method with maxq by which I can parse the html that comes back other than just the return value?

    Thanks,

    jh
Attachments

Re: [maxq-users] Capture return data

Author oliverbock
Full name Oliver Bock
Date 2007-05-11 14:31:39 PDT
Message You might be able to get by with Jython's string class and regular
expressions, but they're not well suited to HTML. You could use one
of the many HTML parsing libraries written in Java, and you could
probably also use the XML/HTML parsing from the Python standard
libraries if it's in pure Python (which it probably is).


   Oliver

--
On 08/05/2007, at 06:58, jh wrote:

> Is there a method with maxq by which I can parse the html that
> comes back other than just the return value?
>
> Thanks,
>
> jh
>
Attachments

Re: [maxq-users] Adding python libs

Author oliverbock
Full name Oliver Bock
Date 2007-05-11 14:25:55 PDT
Message You need to use python.path in maxq.properties

On 08/05/2007, at 08:05, jh wrote:

> I wanted to add some python url routines so I added the statement.
> I edited environment varialbes and have added C:\Python25\Lib to
> PYTHONPATH but get the no module message when the statement
>
> import urllib
>
> is executed.
>
> Even tried copying the urllib file to my working directory, which
> is c:\maxq\bin\testScripts.
>
> Any ideas?
>
>
Attachments

Adding python libs

Author hms_suprise
Full name john v hite
Date 2007-05-07 15:05:39 PDT
Message I wanted to add some python url routines so I added the statement. I edited environment varialbes and have added C:\Python25\Lib to PYTHONPATH but get the no module message when the statement

import urllib

is executed.

Even tried copying the urllib file to my working directory, which is c:\maxq\bin\testScripts.

Any ideas?
Attachments

Capture return data

Author hms_suprise
Full name john v hite
Date 2007-05-07 13:58:18 PDT
Message Is there a method with maxq by which I can parse the html that comes back other than just the return value?

Thanks,

jh
Attachments
Messages per page: