projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
X-any1017 Bath-profile search now correctly uses @attr 1=1017.
[irspy-moved-to-github.git]
/
lib
/
ZOOM
/
IRSpy
/
Task
/
Retrieve.pm
diff --git
a/lib/ZOOM/IRSpy/Task/Retrieve.pm
b/lib/ZOOM/IRSpy/Task/Retrieve.pm
index
0583386
..
15877bc
100644
(file)
--- a/
lib/ZOOM/IRSpy/Task/Retrieve.pm
+++ b/
lib/ZOOM/IRSpy/Task/Retrieve.pm
@@
-1,4
+1,3
@@
-# $Id: Retrieve.pm,v 1.1 2006-10-25 15:45:29 mike Exp $
package ZOOM::IRSpy::Task::Retrieve;
package ZOOM::IRSpy::Task::Retrieve;
@@
-31,6
+30,9
@@
sub new {
my $this = $class->SUPER::new(@_);
$this->{rs} = $rs;
$this->{index0} = $index0;
my $this = $class->SUPER::new(@_);
$this->{rs} = $rs;
$this->{index0} = $index0;
+ # Save initial record-syntax for render()'s benefit
+ $this->{syntax} = $this->{options}->{preferredRecordSyntax};
+
return $this;
}
return $this;
}
@@
-40,18
+42,25
@@
sub run {
$this->set_options();
my $conn = $this->conn();
$this->set_options();
my $conn = $this->conn();
+ $conn->connect($conn->option("host"));
+
my $rs = $this->{rs};
my $index0 = $this->{index0};
$this->irspy()->log("irspy_task", $conn->option("host"),
my $rs = $this->{rs};
my $index0 = $this->{index0};
$this->irspy()->log("irspy_task", $conn->option("host"),
- " retrieving record $index0 from $rs");
+ " retrieving record $index0 from $rs, rs='",
+ $rs->option("preferredRecordSyntax"), "'");
$rs->records($index0, 1, 0); # requests record
$rs->records($index0, 1, 0); # requests record
+ warn "no ZOOM-C level events queued by $this"
+ if $conn->is_idle();
$this->set_options();
}
sub render {
my $this = shift();
$this->set_options();
}
sub render {
my $this = shift();
- return ref($this) . "(" . $this->{rs}. ", " . $this->{index0} . ")";
+ my $syntax = $this->{syntax};
+ $syntax = defined $syntax ? "'$syntax'" : "undef";
+ return ref($this) . "(" . $this->{index0} . ", $syntax)";
}
use overload '""' => \&render;
}
use overload '""' => \&render;