John,
1.) Thank you for the fix on the table names.
2.) The problem with the workitems view seems to be in paging
Consider
RuoteKit.engine.storage_participant.query({'limit'=>100,
'skip'=>0}) => []
does not return any workitems where:
while
RuoteKit.engine.storage_participant.query({})
returns the valid workitems
3.) on the connection string for sequal if you are using rails you can
do something like this:
db = HashWithIndifferentAccess.new
db.merge!(ActiveRecord::Base.configurations[Rails.env])
db.merge!(:user=>db[:user_name)
sequel_connection = Sequel.connect(db)
Which lets you your existing db configuration
Thanks
E.
Thanks
E
On Mar 3, 11:27 pm, John Mettraux <[email protected]> wrote:
> On Thu, Mar 03, 2011 at 05:55:20AM -0800, Eric wrote:
>
> > I installed ruote-kit + ruote-sequel and it appears to work as
> > advertised. -- very cool. I did notice that in the ruote-kit UI
> > workitems do not show up - the counts do appear to be correct in the
> > title, but no detail. Processes do show up fine. I have not looked at
> > the workitems view file. which is my next step.
>
> Hello Eric,
>
> no process errors ? No other symptoms ?
>
> > You might also note in the readme the connect string for mysql. It was
> > not immediately obvious by looking at the sequel gem. ( it looks like
> > the example for datamapper).
>
> > I used the following:
>
> > sequel = Sequel.connect(:adapter => 'mysql2', :user =>
> > 'root', :socket=> '/tmp/mysql.sock' , :database => 'foo_development')
> > RUOTE_STORAGE = Ruote::Sequel::Storage.new(sequel)
> > RuoteKit.engine = Ruote::Engine.new(Ruote::Worker.new(RUOTE_STORAGE) )
>
> OK, I completed the README :
>
> https://github.com/jmettraux/ruote-sequel/commit/8b5e0b10305f3bc92b75...
>
> > A feature request/suggestion, It would be nice if you could specify
> > the name of the documents table ( or if were a little more obscure )
> > so that it would not conflict with other tables in a given database. I
> > looked thru the ruote-sequal gem and did not see anything that would
> > let you change the name.
>
> Understood, I added a 'table_name' option :
>
> https://github.com/jmettraux/ruote-sequel/commit/e7d22dce9ed760db2ad1...
>
> Cheers,
>
> --
> John Mettraux -http://jmettraux.wordpress.com
--
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