Patch problems
Paul van Tilburg
paul at luon.net
Sun Sep 3 14:13:05 EDT 2006
Hello,
Heh, replying to myself again, but this time I solved it.
On Sun, Sep 03, 2006 at 06:27:25PM +0200, Paul van Tilburg wrote:
> On Sun, Sep 03, 2006 at 06:01:49PM +0200, Paul van Tilburg wrote:
> > I was trying out a current Subversion snapshot of Hobix, especially the
> > patch stuff, but I encountered a problem... hobix bailed out halfway the
> > patching. I haven't looked into this part of Hobix yet, maybe someone
> > here knows rightaway what the problem is?
> >
> > I ran: hobix patch journal apache2-all
>
> Hmm, same problems with hobix edit journal too... can't do much now really
It seems that the problem was located in linklist.rb... it seems to be a
bit behind on the current API. The _ operator of the BaseEntry class
wants a key and a hash of options as argument... it looks like this used to
be a list. The trivial patch:
---------
--- lib/hobix/linklist.rb (revision 135)
+++ lib/hobix/linklist.rb (working copy)
@@ -47,7 +47,7 @@
module Hobix
class LinkList < BaseEntry
- _ :links, [:req, :textarea]
+ _ :links, :req => true, :edit_as => :textarea, :text_processor => true
# Converts the link list into a RedCloth string for display
# in templates.
---------
I am not exactly sure about the values of :edit_as and :text_processor though?
Kind regards,
Paul
--
Student @ Eindhoven | email: paul at luon.net
University of Technology, The Netherlands | JID: paul at luon.net
>>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20060903/d5cefcdb/attachment.bin
More information about the Hobix-is-the-way
mailing list