Changeset 29106
- Timestamp:
- 01/27/09 11:08:08 (4 years ago)
- Location:
- lang/perl/HappySync/trunk
- Files:
-
- 5 added
- 1 modified
- 1 moved
-
bin (added)
-
bin/happysync.pl (moved) (moved from lang/perl/HappySync/trunk/happysync.pl)
-
lib/HappySync/Entry.pm (modified) (5 diffs)
-
tools (added)
-
tools/getCollectionXML.pl (added)
-
tools/getIntrospectionXML.pl (added)
-
tools/getMemberXML.pl (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HappySync/trunk/lib/HappySync/Entry.pm
r29048 r29106 11 11 12 12 sub new($$$) { 13 my ($class, $client, $ syncpoint) = @_;13 my ($class, $client, $xmlSimpleInstance, $syncpoint) = @_; 14 14 bless { 15 15 'client' => $client, 16 'xs' => $xmlSimpleInstance, 16 17 'syncpoint' => $syncpoint, 17 18 }; … … 62 63 63 64 sub new($$$) { 64 my ($class, $client, $ syncpoint) = @_;65 my ($class, $client, $xmlSimpleInstance, $syncpoint) = @_; 65 66 bless { 66 67 'client' => $client, 68 'xs' => $xmlSimpleInstance, 67 69 'syncpoint' => $syncpoint, 68 70 }; … … 131 133 132 134 sub new($$$) { 133 my ($class, $client, $ syncpoint) = @_;135 my ($class, $client, $xmlSimpleInstance, $syncpoint) = @_; 134 136 bless { 135 137 'client' => $client, 138 'xs' => $xmlSimpleInstance, 136 139 'syncpoint' => $syncpoint, 137 140 }; … … 142 145 my $meta = shift; 143 146 144 $self->{uri} = $meta->{link}->{href}; 147 # print STDERR Dumper($meta->{link}); 148 $self->{uri} = $meta->{link}[0]->{href}; 149 # $self->{uri} = $meta->{link}->{href}; 145 150 } 146 151 … … 157 162 my $client = $self->{client}; 158 163 my $feed = $client->getFeed($self->{uri}); 159 my $body = XMLin($feed->as_xml); 164 if (! $feed) { 165 print STDERR "ERR URI:\t".$self->{uri}."\n"; 166 return; 167 } 168 my $body = $self->{xs}->XMLin($feed->as_xml); 160 169 161 170 my $source = $body->{content}->{content} || q{};
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)