I've stopped supporting Mephisto-Amazon. See thbar's adaptation of it to work ECS: http://github.com/thbar/mephisto_amazon/tree/master. From what I understand, the back-end uses a different integration lib. (for ECS, rather than ruby/amazon, which is no longer supported), but the front is the same.
January 3rd, 2007 at 09:11 AM when I try using the {% asin_search books 0553214322 %} {% endasin_search %} tag in my layout... I get this in my production.log: ArgumentError (wrong number of arguments (2 for 3)): /vendor/plugins/liquid/lib/liquid/block.rb:23:in `initialize' /vendor/plugins/liquid/lib/liquid/block.rb:23:in `new' . . . any idea why this might be? I pasted the entire log entry on pastie... http://pastie.caboo.se/30812 I'd love to use the plugin. Any help would be appreciated. Thanks.
January 3rd, 2007 at 07:03 PM Hey Nick, Sorry, the documentation was in error. asin_search only takes one parameter, the number and nothing else (as in the filter example). I'm changing it now. Cheers, Nick
January 5th, 2007 at 03:57 AM I just tried out your plugin. It crashes due to a permission error: Amazon::Search::Cache::PathError (cache path /tmp/amazon is not writable): /vendor/plugins/mephisto_amazon/lib/amazon/search/cache.rb:39:in `initialize' The reason is that it defaults to using the absolute path "/tmp/amazon" as cache dir. That's a very bad idea - especially on a shared host. I assume it crashed since another user was also using your plugin and therefore currently owned that directory. I tried going through your code to see if you set a cache dir somewhere. But I couldn't find it. Instead I have hacked the above file so it always writes to a tmp dir in my home folder. But the best would be if you changed it to a local path - the tmp dir in the Mephisto root seems an obvious choice.
January 5th, 2007 at 11:56 AM Hi Piers, Yeh, it should be configurable. I haven't encountered it yet because I have my own machine. I'll have a look at it when I get a moment.
January 6th, 2007 at 02:17 AM Sounds good. But my name is Per - not Piers... hehe. :)
January 6th, 2007 at 07:00 AM Per, sorry about that. What a bad misread!
January 7th, 2007 at 03:55 AM Is there an easy way to make it worth with UK ASINs? And produce links to the UK site? I had a quick look through the code, and noticed a bit that looked like locale detection, but I don't really understand Ruby very much... Also, although I'm in the UK, my server is in the US...if that's how the locale is determined, is there an easy way to over-ride it? While I'm at it, would it perhaps be an idea to add classnames to the generated HTML so that changes can be made without having to modify the plugin itself? I'm demanding, aren't I? Seriously though, I'm impressed with how easy it is to use, just a couple of little things that would make it absolutely awesome!
January 7th, 2007 at 12:32 PM Yes, the locale can be set, but I'll do this when I refactor Mephisto-Amazon to work with the new plugin feature in Mephisto - which lets you configure parameters within the plugin through the UI. Thanks for the positive feedback. Perhaps what you want done will be finished by the end of January? If it's bothering, send me an email and I'll show you the code which will let you set the locale.
January 7th, 2007 at 08:59 PM There's no particular hurry, I'm just playing around with the layout and things at the moment, trying to see what's possible. Noone's reading the things I write (aw!) yet, so where the links go isn't particularly important, and there were only 2 albums that had different ASINs in the US.
January 18th, 2008 at 10:59 PM Hi, I was trying to run this plugin against mephisto trunk and found a few problems, so I fixed them in my copy. If you're interested in a patch for it, send me an email... aubreyholland at gmail dot com.
February 17th, 2008 at 03:16 AM Hi folks, for those who may need it, I've released an adaptation of this plugin to use amazon-ecs (5.1) instead of ruby/amazon. The code is available here: http://code.google.com/p/logeek-labs/ cheers!