Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r8142: TheSchwartz update: support of multiple ...

Committer: gariev
TheSchwartz update: support of multiple roles
U   trunk/bin/worker/atomstream-inject
U   trunk/bin/worker/commentatomstream-inject
U   trunk/bin/worker/latest-posts
U   trunk/bin/worker/phonepost-process
U   trunk/bin/worker/process-eventsfeed
U   trunk/bin/worker/qotd-wepc
U   trunk/cgi-bin/LJ/Event/SupOfficialPost.pm
Modified: trunk/bin/worker/atomstream-inject
===================================================================
--- trunk/bin/worker/atomstream-inject	2010-01-26 11:39:14 UTC (rev 8141)
+++ trunk/bin/worker/atomstream-inject	2010-01-27 08:07:19 UTC (rev 8142)
@@ -5,7 +5,7 @@
 
 package LJ::NewWorker::TheSchwartz::AtomStreamInject;
 use base 'LJ::NewWorker::TheSchwartz';
-sub capabilities { return [ 'LJ::Worker::AtomStreamInject' ] }
+sub capabilities { 'LJ::Worker::AtomStreamInject'; }
 __PACKAGE__->start();
 
 package LJ::Worker::AtomStreamInject;

Modified: trunk/bin/worker/commentatomstream-inject
===================================================================
--- trunk/bin/worker/commentatomstream-inject	2010-01-26 11:39:14 UTC (rev 8141)
+++ trunk/bin/worker/commentatomstream-inject	2010-01-27 08:07:19 UTC (rev 8142)
@@ -5,7 +5,7 @@
 
 package LJ::NewWorker::TheSchwartz::CommentAtomStreamInject;
 use base 'LJ::NewWorker::TheSchwartz';
-sub capabilities { return [ 'LJ::Worker::CommentAtomStreamInject' ] }
+sub capabilities { 'LJ::Worker::CommentAtomStreamInject' }
 __PACKAGE__->start();
 
 package LJ::Worker::CommentAtomStreamInject;

Modified: trunk/bin/worker/latest-posts
===================================================================
--- trunk/bin/worker/latest-posts	2010-01-26 11:39:14 UTC (rev 8141)
+++ trunk/bin/worker/latest-posts	2010-01-27 08:07:19 UTC (rev 8142)
@@ -5,7 +5,7 @@
 
 package LJ::NewWorker::TheSchwartz::LatestPosts;
 use base 'LJ::NewWorker::TheSchwartz';
-sub capabilities { [ 'LJ::Worker::LatestPosts' ] };
+sub capabilities { 'LJ::Worker::LatestPosts' };
 __PACKAGE__->start();
 
 package LJ::Worker::LatestPosts;

Modified: trunk/bin/worker/phonepost-process
===================================================================
--- trunk/bin/worker/phonepost-process	2010-01-26 11:39:14 UTC (rev 8141)
+++ trunk/bin/worker/phonepost-process	2010-01-27 08:07:19 UTC (rev 8142)
@@ -17,9 +17,11 @@
 
 package LJ::NewWorker::TheSchwartz::PhonePostProcess;
 use base 'LJ::NewWorker::TheSchwartz';
-sub capabilities {
-    [ 'LJ::Worker::PhonePostProcess'  => '' ],  # step 1, transcode from wav (from mogile) to gsm/mp3/ogg (to mogile)
-    [ 'LJ::Worker::PhonePostLJPost'   => '' ],  # step 2, post to LJ
+sub capabilities { 
+    return (
+        'LJ::Worker::PhonePostProcess', # step 1, transcode from wav (from mogile) to gsm/mp3/ogg (to mogile)
+        'LJ::Worker::PhonePostLJPost',  # step 2, post to LJ
+    );
 }
 __PACKAGE__->start();
 

Modified: trunk/bin/worker/process-eventsfeed
===================================================================
--- trunk/bin/worker/process-eventsfeed	2010-01-26 11:39:14 UTC (rev 8141)
+++ trunk/bin/worker/process-eventsfeed	2010-01-27 08:07:19 UTC (rev 8142)
@@ -10,7 +10,7 @@
 require 'ljprotocol.pl';
 use LJ::EventsFeed;
 
-sub capabilities { map { [ $_ => '' ] } LJ::EventsFeed->schwartz_capabilities() }
+sub capabilities { return LJ::EventsFeed->schwartz_capabilities }
 
 __PACKAGE__->start();
 1;

Modified: trunk/bin/worker/qotd-wepc
===================================================================
--- trunk/bin/worker/qotd-wepc	2010-01-26 11:39:14 UTC (rev 8141)
+++ trunk/bin/worker/qotd-wepc	2010-01-27 08:07:19 UTC (rev 8142)
@@ -9,7 +9,7 @@
 
 package LJ::NewWorker::TheSchwartz::QotDWePC;
 use base 'LJ::NewWorker::TheSchwartz';
-sub capabilities {['LJ::Worker::QotDWePC' => ''], ['LJ::Worker::QotDIntel' => '']};
+sub capabilities { return ('LJ::Worker::QotDWePC', 'LJ::Worker::QotDIntel'); };
 
 sub help {
     my $self = shift;

Modified: trunk/cgi-bin/LJ/Event/SupOfficialPost.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/SupOfficialPost.pm	2010-01-26 11:39:14 UTC (rev 8141)
+++ trunk/cgi-bin/LJ/Event/SupOfficialPost.pm	2010-01-27 08:07:19 UTC (rev 8142)
@@ -32,6 +32,4 @@
 
 sub is_tracking { 0 }
 
-sub schwartz_role { 'mass' }
-
 1;

Tags: gariev, ljcom, pm
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments