projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7d20c14
)
Save initial RS for render()
author
Mike Taylor
<mike@indexdata.com>
Wed, 9 May 2007 11:02:41 +0000
(11:02 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 9 May 2007 11:02:41 +0000
(11:02 +0000)
lib/ZOOM/IRSpy/Task/Retrieve.pm
patch
|
blob
|
history
diff --git
a/lib/ZOOM/IRSpy/Task/Retrieve.pm
b/lib/ZOOM/IRSpy/Task/Retrieve.pm
index
1022235
..
05e0e8f
100644
(file)
--- a/
lib/ZOOM/IRSpy/Task/Retrieve.pm
+++ b/
lib/ZOOM/IRSpy/Task/Retrieve.pm
@@
-1,4
+1,4
@@
-# $Id: Retrieve.pm,v 1.4 2007-03-07 18:00:15 mike Exp $
+# $Id: Retrieve.pm,v 1.5 2007-05-09 11:02:41 mike Exp $
package ZOOM::IRSpy::Task::Retrieve;
package ZOOM::IRSpy::Task::Retrieve;
@@
-31,6
+31,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->{rs} = $this->{options}->{preferredRecordSyntax};
+
return $this;
}
return $this;
}
@@
-55,7
+58,7
@@
sub run {
sub render {
my $this = shift();
sub render {
my $this = shift();
- my $syntax = $this->{options}->{preferredRecordSyntax};
+ my $syntax = $this->{rs};
$syntax = defined $syntax ? "'$syntax'" : "undef";
return ref($this) . "(" . $this->{index0} . ", $syntax)";
}
$syntax = defined $syntax ? "'$syntax'" : "undef";
return ref($this) . "(" . $this->{index0} . ", $syntax)";
}