Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
conveyor_2_2_0_with_rhacoの動作につ いて
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
her...@gmail.com  
View profile   Translate to Translated (View Original)
 More options Dec 14 2008, 6:18 am
From: her...@gmail.com
Date: Sun, 14 Dec 2008 03:18:38 -0800 (PST)
Local: Sun, Dec 14 2008 6:18 am
Subject: conveyor_2_2_0_with_rhacoの動作について
はじめまして。
conveyorを使ってみたくて、試行錯誤していますが、まだ期待通りに動かせていない状況です。
気づいた点について、ご報告させてください。当方の環境の問題もあるかもしれませんが。

動作環境は、WindowsXP(SP3)+Apache2.2.10+PHP5.2.8で、
conveyor_2_2_0_with_rhaco.zipからインストール。
ブラウザはFirefox 3.0.4。ローカルで動かしています。

1.setup.phpで、LOG_DISP_HTMLの値がブラウザに正しく表示されない

ブラウザでsetup.phpを開き「表示ログをHTMLとして表示する」をはい→いいえに変更・settingボタン押下で、
__settings__.phpでは「Rhaco::constant("LOG_DISP_HTML",false);」と変わりますが、ブラウザ
上では「はい」のまま。
なので、何もせずにまたsettingボタン押下で、trueになってしまうようです。

2.FilterStripRssAdでrssadが削除されない

例として、以下のテスト用ライン test.phpを作成。(YAML部分のみ抜粋)

<<< __YAML__
---
plugins:
  -
    module: FeedIn.FeedIn
    config:
      url: >
        http://rss.rssad.jp/rss/CG5kXk4HYq9M/rss_0002
  -
    module: FilterStripRssAd.FilterStripRssAd
  -
    module: HtmlOut.HtmlOut

__YAML__

ですが、アイテムごとのrssadが削除されませんでした。

私の方で試したところ、

・workers/FilterStripRssAd/rssad_jp.yamlで、正規表現がマッチしていない
  <img .*? src=\"http://rss\.rssad\.jp/rss/img/.*?\" border=\"0\" */>
  を、
  <img .*?src=\"http://rss\.rssad\.jp/rss/img/.*?\" border=\"0\" */>
  と、srcの前のスペースを一つ削除すればマッチするようになりました。マッチパターンはサイトによって違うかもしれませんが。

・workers/FilterStripRssAd.php で、置換が正しくされていない?
  43行目の
  preg_replace('@'.$expression[1].'@','',$item->$expression[0]);
  を試しに
  $item->$expression[0] = preg_replace('@'.$expression[1].'@','',$item-

>$expression[0]);

  に変えてみると置換がうまくいき、rssadが消えました。適当に変えたので、これでいいのかはわかりません。

3.workerでClass Vがインポートされていない?

例として、以下のようにテスト用のライン test.phpを作成。(YAML部分のみ抜粋)

<<< __YAML__
---
plugins:
  -
    module: FeedIn.FeedIn
    config:
      url: http://feeds.feedburner.jp/moongift
  -
    module: FilterTruePermalink.FilterTruePermalink
  -
    module: HtmlOut.HtmlOut

__YAML__

これでtest.phpを表示させると、エラー
Fatal error: Class 'V' not found in ~conveyor\library\workers
\FilterTruePermalink\FilterTruePermalink.php on line 65
が出ました。
同様にClass Vを使っているPlanetPublishHtmlをHtmlOutの代わりに入れて動かしても同様のエラーがでます。
abbr.Vがインポートされていないためのエラーでしょうか。

lang.Variableのエイリアスということなので、model/WorkerBase.phpの先頭に
Rhaco::import("abbr.V");
を追加すればFilterBase経由でインポートされるかとやってみたら、エラーは出なくなりました。
どこでClassVをインポートするのが適切なのかわかりませんので適当ですが。

ただ上記の例 *IGAZINEのフィードでは、FilterTruePermalinkが効かないのか、pheedo.jpのリンクはそのまま残って
しまいます。
workers/FilterTruePermalink/pheedo.yamlがうまく機能していないのか・・。

4.FilterEntryFullTextがあると、ラインに変更が保存されない。

ブラウザのライン作成画面で、ラインにFilterEntryFullTextを追加した場合、Generateしても、publish配下のファイル
に変更が反映されないようです。
(FilterEntryFullText追加以外の変更も含め、何も反映されない)

手動で、publish配下のファイルを、
plugins:
  -
    module: FeedIn.FeedIn
    config:
      url: http://feeds.feedburner.jp/moongift
  -
    module: FilterTruePermalink.FilterTruePermalink
  -
    module: FilterEntryFullText.FilterEntryFullText
    config:
      get_page: "1"
      store_html_on_failure: "1"
  -
    module: HtmlOut.HtmlOut

以上のようにファイルを直接更新すれば、ブラウザのライン作成画面からLoadすればFilterEntryFullTextが表示されますが、
この状態でもブラウザからGenerateしてもファイルに変更が反映されませんでした。

また、これは各自で直すべきものかもしれませんが、FilterEntryFullTextがなかなかうまくとれませんで。
とりあえずXmlpathとExtractDateが必要とFilterEntryFullText.phpにあったので、setup.phpの
installから、arboのモジュールをすべてinstall。
その後、workers/FilterEntryFullText/FilterEntryFullText.phpで、先頭にある
Rhaco::import("Xmlpath");
Rhaco::import("ExtractDate");

Rhaco::import("arbo.tag.Xmlpath");
Rhaco::import("arbo.lang.ExtractDate");
に変更。それで動かしてみましたが、
Fatal error: Call to undefined method SimpleTag::find() in ~library
\arbo\tag\Xmlpath.php on line 162
といったエラーが。FilterTruePermalinkでのfeedburnerのエントリーURL変換が失敗している?のが原因?

Class 'V'のインポートエラーとか見ていると、conveyor_2_2_0_with_rhaco.zip+arboだけではまだ足りないも
のがあるような気もしますが、Subversionで最新を一通り(rhacoは1.6.1)取得して試したときも同様で。
phpもろくに知らないままの試行錯誤なので、的外れな話でしたらすいません。


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
her...@gmail.com  
View profile   Translate to Translated (View Original)
 More options Dec 14 2008, 7:40 am
From: her...@gmail.com
Date: Sun, 14 Dec 2008 04:40:19 -0800 (PST)
Local: Sun, Dec 14 2008 7:40 am
Subject: Re: conveyor_2_2_0_with_rhacoの動作について

On 12月14日, 午後8:18, her...@gmail.com wrote:

> ただ上記の例 *IGAZINEのフィードでは、FilterTruePermalinkが効かないのか、pheedo.jpのリンクはそのまま残って
> しまいます。
> workers/FilterTruePermalink/pheedo.yamlがうまく機能していないのか・・。

すいません。G*GAZINEじゃなくてM*ONGIFTでした。あとからサンプルのフィード変えたのに文面変えてませんで。
初めはG*GAZINEのttp://www.pheedo.jp/f/gigazine_2 で、pheedo.yamlが効いていないのか・・と書
いていて、
あとからM*ONGIFTでfeedburner.yamlが効いていないのかな・・と変えるつもりで。例としてはどっちでもよいのですが。。失礼しま
した

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kazutaka tokushima  
View profile   Translate to Translated (View Original)
 More options Dec 15 2008, 2:06 am
From: kazutaka tokushima <rhaco1...@gmail.com>
Date: Sun, 14 Dec 2008 23:06:41 -0800 (PST)
Local: Mon, Dec 15 2008 2:06 am
Subject: Re: conveyor_2_2_0_with_rhacoの動作について
tokushimaです

1.setup.phpで、LOG_DISP_HTMLの値がブラウザに正しく表示されない
 => rhaco 1.6.1 trunkで修正しました

2.FilterStripRssAdでrssadが削除されない
 => 確かに削除されませんね。

   shigeponさん時間あるときに確認お願いします
 --------------------------------------------------------------
workers/FilterStripRssAd.php で、置換が正しくされていない?
  43行目の
  preg_replace('@'.$expression[1].'@','',$item->$expression[0]);
  を試しに
  $item->$expression[0] = preg_replace('@'.$expression[1].'@','',$item-

>$expression[0]);

 --------------------------------------------------------------

3.workerでClass Vがインポートされていない?
 => importされてませんね。 とりあえず気づいたところはimport入れておきました。

4.FilterEntryFullTextがあると、ラインに変更が保存されない。
 => これはrequireなものが読めなかった為かと思われます。
    Xmlpathで使用しているSimpleTag::findメソッドが1.6.1には存在しない為かと思いますのでXmlpathを
1.6.1ベースに修正する必要があります。
        [求]修正パッチ

On 12月14日, 午後9:40, her...@gmail.com wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
her...@gmail.com  
View profile   Translate to Translated (View Original)
 More options Dec 15 2008, 9:54 am
From: her...@gmail.com
Date: Mon, 15 Dec 2008 06:54:05 -0800 (PST)
Local: Mon, Dec 15 2008 9:54 am
Subject: Re: conveyor_2_2_0_with_rhacoの動作について
herzです

早速の対応ありがとうございました。
修正いただいた箇所については、動作確認できました。ありがとうございます。

rhaco2&conveyor3がまだ先という現状、rhaco1&conveyor2で、基本どころのworker含めて一通り動くようになる
と、
Plagger利用ユーザーなら「おっ!」と思い、移行を考える方も出てくるのでは・・と思います。

整備大変だと思いますが、ボチボチでまた進めていただけますとうれしいです。


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
T-Shigeta  
View profile   Translate to Translated (View Original)
 More options Dec 15 2008, 9:58 pm
From: T-Shigeta <sweet17...@yahoo.co.jp>
Date: Tue, 16 Dec 2008 11:58:48 +0900
Local: Mon, Dec 15 2008 9:58 pm
Subject: Re: [rhaco-ja:161] Re: conveyor_2_2_0_with_rhacoの動作について
shigeponです。

conveyorの詳細なフィードバックありがとうございます!

> 2.FilterStripRssAdでrssadが削除されない
>  => 確かに削除されませんね。

>    shigeponさん時間あるときに確認お願いします
>  --------------------------------------------------------------
> workers/FilterStripRssAd.php で、置換が正しくされていない?
>   43行目の
>   preg_replace('@'.$expression[1].'@','',$item->$expression[0]);
>   を試しに
>   $item->$expression[0] = preg_replace('@'.$expression[1].'@','',$item-
> >$expression[0]);
>  --------------------------------------------------------------

チェックありがとうございました。見事に抜けてました。かつ正規表現
がうまく働いてなかったので、修正しました。

> 3.workerでClass Vがインポートされていない?
>  => importされてませんね。 とりあえず気づいたところはimport入れておきました。

ありがとうございます。Giなんたらのサイトを見るとpheedoのrssが変
わってましたので、修正しました。Moなんたらのフィードはちゃんと変
換されたような気がします。

> 4.FilterEntryFullTextがあると、ラインに変更が保存されない。
>  => これはrequireなものが読めなかった為かと思われます。
>     Xmlpathで使用しているSimpleTag::findメソッドが1.6.1には存在しない為かと思いますのでXmlpathを
> 1.6.1ベースに修正する必要があります。
>    [求]修正パッチ

Xmlpathを修正しました。が、Xmlpath内に書いたテストに通ったことの
み確認しましたので、もしかすると・・・

FilterEntryFullTextはちゃんとしないといけないですね。ちょっとや
やこしいので、もうちょっと掛かります。

気になった所とかありましたら、どんどんご指摘下さい。
よろしくお願いします。

> On 12月14日, 午後9:40, her...@gmail.com wrote:
> > On 12月14日, 午後8:18, her...@gmail.com wrote:

> > > ただ上記の例 *IGAZINEのフィードでは、FilterTruePermalinkが効かないのか、pheedo.jpのリンクはそのまま残って
> > > しまいます。
> > > workers/FilterTruePermalink/pheedo.yamlがうまく機能していないのか・・。

> > すいません。G*GAZINEじゃなくてM*ONGIFTでした。あとからサンプルのフィード変えたのに文面変えてませんで。
> > 初めはG*GAZINEのttp://www.pheedo.jp/f/gigazine_2で、pheedo.yamlが効いていないのか・・と書
> > いていて、
> > あとからM*ONGIFTでfeedburner.yamlが効いていないのかな・・と変えるつもりで。例としてはどっちでもよいのですが。。失礼しま
> > した

--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
her...@gmail.com  
View profile   Translate to Translated (View Original)
 More options Dec 16 2008, 8:50 am
From: her...@gmail.com
Date: Tue, 16 Dec 2008 05:50:36 -0800 (PST)
Local: Tues, Dec 16 2008 8:50 am
Subject: Re: conveyor_2_2_0_with_rhacoの動作について
herzです。

FilterStripRssAd、TruePermalink関係の修正、ありがとうございました。

TruePermalink、Giなんたらの方は良い感じで変換してくれました。
Moなんたらの方は、~.jp/?p=xxxxと変換されているように・・見えて、どのエントリーからもページTOPにしか行かず・・。
どうも、guidタグに入っているものはフェイクのような?(^^;; 実際の各エントリーのURIとは異なるようです。

feedburnerを利用しているサイトのフィードは色々みたいで、エントリーへのURIがそのまま直リンクの所もあれば、そうでないところ、そして
guidタグもなかったりと、
様々・・みたいですので、本当にやろうと思ったら、リダイレクトを都度追うしか無いのかもしれませんね。。
feedburnerはあまり良くない例だったようで、失礼いたしました。


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google