Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Pref Manager Error

#8

[Patch sent in from bill Marquette on the mailing list.]

Subject: [PATCH] fixes for pref_manager example

On Jan 19, 2008 11:05 PM, Bill Marquette wrote:

This patch allows the client to run.

--Bill

Index: example/pref_manager/client.rb
===================================================================
--- example/pref_manager/client.rb      (revision 35)
+++ example/pref_manager/client.rb      (working copy)
@@ -1,6 +1,6 @@
 #!/usr/bin/env ruby -wKU

-%w(halcyon/client).each{|dep|require dep}
+%w(rubygems halcyon/client).each{|dep|require dep}

 $port = 4447 if $0 == __FILE__

@@ -61,7 +61,7 @@
  delivery_types = [:digest,:full,:none]
  users.each do |user|
    pref = Pref.find(user,'email')
-    p.set delivery_types[rand(delivery_types.length)]
-    p.save
+    pref.set delivery_types[rand(delivery_types.length)]
+    pref.save
  end
 end

Reported by Matt Todd · January 19th, 2008 @ 11:23 PM

State: resolved
Milestone: Release 0.4.0
Assigned to: Matt Todd Matt Todd

Activity

  1. Matt Todd
    Matt Todd
    • State changed from new to resolved

    Patched in Revision 36.

    Thanks for the patch Bill.

    January 19th, 2008 @ 11:27 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.