Hi John,

The code example works pretty well but we are having some problems
with the @options stuff. We modified storage_participant's  initialize
method to this:

--8--
    def initialize (engine_or_options={}, options=nil)

      if engine_or_options.respond_to?(:context)
        @context = engine_or_options.context
      elsif engine_or_options.is_a?(Ruote::Context)
        @context = engine_or_options
      else
        @options = engine_or_options
      end

      @options ||= {}

      @store_name = @options['store_name']
      puts "options: #{@options}"
    end
--8--

It should print @options passed when registering, but prints nothing.
We register this way:

--8--
# participants registration list
#
RuoteKit.engine.participant_list = [
  [ 'form', 'XmppStorageParticipant', {}, { 'xmpp' => 'true' } ],
  [ '^.+$', 'Ruote::StorageParticipant', {} ]
]
--8--

As we have XmppStorageParticipant, the options will be used to pass
xmpp connection info such as :server, :port, :user, :password intead
of the flag xmpp => true

Thanks for your help.

Best regards,
Gonzalo.

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to