Changeset 1829
- Timestamp:
- 11/11/06 01:31:47
- Files:
-
- branches/feature-antoine-threading/plagger/assets/plugins/Publish-Planet/sixapart-std-threaded (added)
- branches/feature-antoine-threading/plagger/assets/plugins/Publish-Planet/sixapart-std-threaded/template (added)
- branches/feature-antoine-threading/plagger/assets/plugins/Publish-Planet/sixapart-std-threaded/template/index.tt (added)
- branches/feature-antoine-threading/plagger/examples/threaded-planet.yaml (added)
- branches/feature-antoine-threading/plagger/examples/threads.yaml (added)
- branches/feature-antoine-threading/plagger/lib/Plagger.pm (modified) (4 diffs)
- branches/feature-antoine-threading/plagger/lib/Plagger/Entry.pm (modified) (1 diff)
- branches/feature-antoine-threading/plagger/lib/Plagger/Feed.pm (modified) (1 diff)
- branches/feature-antoine-threading/plagger/lib/Plagger/Plugin/Aggregator/Simple.pm (modified) (1 diff)
- branches/feature-antoine-threading/plagger/lib/Plagger/Plugin/Namespace/Threads.pm (added)
- branches/feature-antoine-threading/plagger/lib/Plagger/Plugin/Publish/DebugThreads.pm (added)
- branches/feature-antoine-threading/plagger/lib/Plagger/Thing (added)
- branches/feature-antoine-threading/plagger/lib/Plagger/Thing.pm (modified) (1 diff)
- branches/feature-antoine-threading/plagger/lib/Plagger/Thing/Relationship.pm (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/feature-antoine-threading/plagger/lib/Plagger.pm
r1810 r1829 15 15 16 16 use base qw( Class::Accessor::Fast ); 17 __PACKAGE__->mk_accessors( qw(conf update subscription plugins_path cache) );17 __PACKAGE__->mk_accessors( qw(conf update subscription relationship plugins_path cache) ); 18 18 19 19 use Plagger::Cache; … … 26 26 use Plagger::Template; 27 27 use Plagger::Update; 28 use Plagger::Thing::Relationship; 28 29 use Plagger::UserAgent; # use to define $XML::Feed::RSS::PREFERRED_PARSER 29 30 … … 39 40 update => Plagger::Update->new, 40 41 subscription => Plagger::Subscription->new, 42 relationship => Plagger::Thing::Relationship->new, 41 43 plugins_path => {}, 42 44 plugins => [], … … 291 293 $self->run_hook('subscription.load'); 292 294 293 for my $feed ($self->subscription->feeds) { 295 # XXX use the arrayref instead of the array here to allow the addition of new feeds on the fly 296 # maybe something like an iterator can be better 297 for my $feed (@{$self->subscription->feeds}) { 294 298 if (my $sub = $feed->aggregator) { 295 299 $sub->($self, { feed => $feed }); branches/feature-antoine-threading/plagger/lib/Plagger/Entry.pm
r1741 r1829 64 64 } 65 65 66 sub key { $_[0]->id } 67 66 68 sub title_text { 67 69 my $self = shift; branches/feature-antoine-threading/plagger/lib/Plagger/Feed.pm
r1741 r1829 53 53 Plagger::Util::safe_id($self->id); 54 54 } 55 56 sub key { $_[0]->url } 55 57 56 58 sub title_text { branches/feature-antoine-threading/plagger/lib/Plagger/Plugin/Aggregator/Simple.pm
r1769 r1829 180 180 orig_feed => $remote, 181 181 }; 182 183 $feed->add_entry($entry); 184 # the hook is called after the add_entry to allow it to delete the entry. 182 185 $context->run_hook('aggregator.entry.fixup', $args); 183 184 $feed->add_entry($entry);185 186 } 186 187 branches/feature-antoine-threading/plagger/lib/Plagger/Thing.pm
r1741 r1829 65 65 } 66 66 67 sub get_relationship { 68 my ($self, $r_name) = @_; 69 Plagger->context->relationship->get($self, $r_name); 70 } 71 72 sub set_relationship { 73 my ($self, $r_name, $thing) = @_; 74 Plagger->context->relationship->set($self, $r_name, $thing); 75 } 76 67 77 1;
