[prev in list] [next in list] [prev in thread] [next in thread]
List: bricolage-devel
Subject: RE: Using soap to clone a story
From: Adam Wilson <adam () RFXTechnologies ! com>
Date: 2009-09-25 14:45:36
Message-ID: 55805BB5CC86264292D28015402033A3378D98B015 () morbo ! RFX-Tech ! com
[Download RAW message or body]
Greg was right about my immediate problem, and I ended up using Bret's idea because I had other things I needed to remedy as well.
Thank you both for your assistance.
-----Original Message-----
From: Bret Dawson [mailto:bret@pectopah.com]
Sent: Wednesday, September 16, 2009 9:19 PM
To: devel@lists.bricolage.cc
Subject: Re: Using soap to clone a story
The other approach is to export, then run a little script (for all the
category changes/publish date removals/etc) against the XML, and then
import using the tidied-up XML.
This involves a little more manual labour, but it's much easier to spot
the troubles where they pop up.
Cheers,
Bret
On Wed, 2009-09-16 at 17:26 -0700, Greg Heo wrote:
> Hi Adam,
>
> If the story list includes things that have already been published, you'll
> need a few more sed pipes to change publish_status to 0 and strip out
> publish date (I forget OTOH, maybe just publish_date or
> first_publish_date?)
>
> --Greg
>
> On Wed, 16 Sep 2009 19:08:35 -0400, Adam Wilson <adam@RFXTechnologies.com>
> wrote:
> > I am trying this soap command to clone a bunch of stories to a new
> > category, but it says there is a SQL error. Can anyone tell me what I am
> > doing wrong, or if there is a better way to do this?
> >
> > bricolage/bin/bric_soap story list_ids --search uri="/louisville/%" |
> > bricolage/bin/bric_soap story export - | sed -e
> > 's/\/louisville\//\/cincinnati\//' | bricolage/bin/bric_soap story
> create
>
>
--
Bret Dawson
Producer
Pectopah Productions Inc.
(416) 895-7635
bret@pectopah.com
www.pectopah.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic