Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
他の plugin の呼び出し
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
  2 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
 
wtnabe  
View profile   Translate to Translated (View Original)
 More options Oct 25 2008, 6:34 am
From: wtnabe <wtn...@gmail.com>
Date: Sat, 25 Oct 2008 03:34:40 -0700 (PDT)
Local: Sat, Oct 25 2008 6:34 am
Subject: 他の plugin の呼び出し
  wtnabeです。

  初歩的な質問ですいません。実行中の plugin の中で他の plugin を呼び出
すにはどうしたらよいのでしょうか?

  pragger では eval_pragger() 一発でしたが、Yapra では似たような書き方
をして他の plugin を呼び出している部分を見つけられませんでした。
pipeline の中に execute_plugin があるのは分かるんですが、pipeline て何?
という感じでして。

--
    wtnabe


 
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.
Yuanying  
View profile   Translate to Translated (View Original)
 More options Oct 26 2008, 10:30 pm
From: Yuanying <yuany...@fraction.jp>
Date: Mon, 27 Oct 2008 11:30:31 +0900
Local: Sun, Oct 26 2008 10:30 pm
Subject: Re: [yapra:7] 他の plugin の呼び出し
Yuanying です。おはようございます。

On 2008/10/25, at 19:34, wtnabe wrote:

>  wtnabeです。

>  初歩的な質問ですいません。実行中の plugin の中で他の  
> plugin を呼び出
> すにはどうしたらよいのでしょうか?

>  pragger では eval_pragger() 一発でしたが、Yapra  
> では似たような書き方
> をして他の plugin を呼び出している部分を見つけられま
> せんでした。
> pipeline の中に execute_plugin があるのは分かるんです
> が、pipeline て何?
> という感じでして。

Yapra::Pipeline というのは Python Habu ライクな設定ファ
イルをサポートするために追加したクラスで、
まあようするに一つの設定ファイルを実行する単位です。

上位に Yapra::Runtime とかいうクラスがあるのですが、
これは Pipeline を複数保持して、設定ファイルを複数管理
するクラスみたいな感じです。

ですので、プラグインを eval_pragger() みたいな感じで実
行するには、
Yapra::Pipeleine#execute_plugin を呼び出せばおkです。

Yapra::Pipeline のインスタンスは、
プラグインクラスに pipeline= というメソッドが定義されて
いれば取得できます。
(Yapra::Pipeline 123行目)

プラグインがYapra::Plugin::Base クラスを継承していれば、
プラグイン中で、 pipeline.execute_plugin() で呼び出せる
と思います。


 
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 »