From paul at luon.net Sun Sep 3 12:01:49 2006 From: paul at luon.net (Paul van Tilburg) Date: Sun, 3 Sep 2006 18:01:49 +0200 Subject: Patch problems Message-ID: <20060903160149.GB7376@power.luon.net> Hey all, 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 Output: --- % hobix patch journal apache2-all *** Applying patch #1 for /home/paul/.hobix/journal/htdocs/.htaccess (file-ensure). *** Applying patch #1 for /home/paul/.hobix/journal/lib/local.rb (file-create). *** Applying patch #1 for /home/paul/.hobix/journal/htdocs/js/prototype.js (file-create). *** Applying patch #1 for /home/paul/.hobix/journal/skel/sidebar.html.quick (file-create). *** Applying patch #1 for /home/paul/.hobix/journal/htdocs/control/.htaccess (file-ensure). *** Applying patch #1 for /home/paul/.hobix/journal/hobix.yaml (yaml-merge). *** Applying patch #2 for /home/paul/.hobix/journal/hobix.yaml (yaml-merge). *** Applying patch #1 for /home/paul/.hobix/journal/htdocs/control/hobix.cgi (file-create). /usr/local/lib/site_ruby/1.8/hobix/base.rb:420:in `[]': Symbol as array index (TypeError) from /usr/local/lib/site_ruby/1.8/hobix/base.rb:420:in `text_processor_fields' from /usr/local/lib/site_ruby/1.8/hobix/base.rb:419:in `text_processor_fields' from /usr/local/lib/site_ruby/1.8/hobix/base.rb:394:in `to_yaml' from /usr/lib/ruby/1.8/yaml/rubytypes.rb:18:in `to_yaml' from /usr/lib/ruby/1.8/yaml/rubytypes.rb:17:in `to_yaml' from /usr/lib/ruby/1.8/yaml/rubytypes.rb:16:in `to_yaml' from /usr/lib/ruby/1.8/yaml.rb:387:in `quick_emit' from /usr/lib/ruby/1.8/yaml/rubytypes.rb:15:in `to_yaml' from /usr/local/lib/site_ruby/1.8/hobix/util/patcher.rb:81:in `apply' from /usr/local/lib/site_ruby/1.8/hobix/util/patcher.rb:62:in `apply' from /usr/local/lib/site_ruby/1.8/hobix/commandline.rb:311:in `patch_action' from /usr/bin/hobix:79 --- Thanks in advance, 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/aa4273c1/attachment.bin From paul at luon.net Sun Sep 3 12:27:25 2006 From: paul at luon.net (Paul van Tilburg) Date: Sun, 3 Sep 2006 18:27:25 +0200 Subject: Patch problems In-Reply-To: <20060903160149.GB7376@power.luon.net> References: <20060903160149.GB7376@power.luon.net> Message-ID: <20060903162725.GC7376@power.luon.net> 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 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/0876c1eb/attachment.bin From paul at luon.net Sun Sep 3 14:13:05 2006 From: paul at luon.net (Paul van Tilburg) Date: Sun, 3 Sep 2006 20:13:05 +0200 Subject: Patch problems In-Reply-To: <20060903162725.GC7376@power.luon.net> References: <20060903160149.GB7376@power.luon.net> <20060903162725.GC7376@power.luon.net> Message-ID: <20060903181305.GD7376@power.luon.net> 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 From paul at luon.net Sun Sep 3 16:33:44 2006 From: paul at luon.net (Paul van Tilburg) Date: Sun, 3 Sep 2006 22:33:44 +0200 Subject: A fix and a problem Message-ID: <20060903203344.GE7376@power.luon.net> Hello all, I've been trying to upgrade my journal and incorporate the new features (tags, comments, publishing, etc.) but I keep running into small problems. 1) The tags plugin creates odd links and uses weblog.link which doesn't work well if you're staging the blog locally first. A small patch to resolve this: -------- --- lib/hobix/plugin/tags.rb (revision 135) +++ lib/hobix/plugin/tags.rb (working copy) @@ -38,7 +38,7 @@