Mailing List Archive

how to compactly call multiple elements in bric_soap
Hi all

I have to call a long list of elements to publish in bric_soap and was hoping there was a compact way to call them all with something like:

--search element_type=ANY(home,cover,index)

Right now I think I just have to list each call to an element separately:

bric_soap story list_ids --search publish_status=1 --search unexpired=1 --search checked_out=0 --search element_type=home --search element_type=index --search element_type=cover


Is there a compact way ? Or only the long way?

thank you,
Dawn
Re: how to compactly call multiple elements in bric_soap [ In reply to ]
Correction

Again - I feel I've solved this problem before but can't find my old documentation nor docs for it on the site.

So I need to use element NOT element_type. However when I try to search for more than one element as below, bric_soap only returns the last element in the series:

bric_soap story list_ids --search publish_status=1 --search unexpired=1 --search checked_out=0 --search element=home --search element=profile_index

Surely there's a way to reference multiple elements in a bric_soap search

thanks
Dawn


On 2011-08-16, at 12:59 PM, Dawn Buie wrote:

> Hi all
>
> I have to call a long list of elements to publish in bric_soap and was hoping there was a compact way to call them all with something like:
>
> --search element_type=ANY(home,cover,index)
>
> Right now I think I just have to list each call to an element separately:
>
> bric_soap story list_ids --search publish_status=1 --search unexpired=1 --search checked_out=0 --search element_type=home --search element_type=index --search element_type=cover
>
>
> Is there a compact way ? Or only the long way?
>
> thank you,
> Dawn
Re: how to compactly call multiple elements in bric_soap [ In reply to ]
Maybe send this to the 'users' list? Off the top, I don't think it's possible (currently) to use ANY(). You could patch bric_soap to do so, no doubt.

On 2011-08-16, at 1:15 PM, Dawn Buie wrote:

> Correction
>
> Again - I feel I've solved this problem before but can't find my old documentation nor docs for it on the site.
>
> So I need to use element NOT element_type. However when I try to search for more than one element as below, bric_soap only returns the last element in the series:
>
> bric_soap story list_ids --search publish_status=1 --search unexpired=1 --search checked_out=0 --search element=home --search element=profile_index
>
> Surely there's a way to reference multiple elements in a bric_soap search
>
> thanks
> Dawn
>
>
> On 2011-08-16, at 12:59 PM, Dawn Buie wrote:
>
>> Hi all
>>
>> I have to call a long list of elements to publish in bric_soap and was hoping there was a compact way to call them all with something like:
>>
>> --search element_type=ANY(home,cover,index)
>>
>> Right now I think I just have to list each call to an element separately:
>>
>> bric_soap story list_ids --search publish_status=1 --search unexpired=1 --search checked_out=0 --search element_type=home --search element_type=index --search element_type=cover
>>
>>
>> Is there a compact way ? Or only the long way?
>>
>> thank you,
>> Dawn
>
Re: how to compactly call multiple elements in bric_soap [ In reply to ]
On Aug 17, 2011, at 11:25 AM, Phillip Smith wrote:

> Maybe send this to the 'users' list? Off the top, I don't think it's possible (currently) to use ANY(). You could patch bric_soap to do so, no doubt.
>
> On 2011-08-16, at 1:15 PM, Dawn Buie wrote:
>
>> Correction
>>
>> Again - I feel I've solved this problem before but can't find my old documentation nor docs for it on the site.
>>
>> So I need to use element NOT element_type. However when I try to search for more than one element as below, bric_soap only returns the last element in the series:

Yeah, you need to run bric_soap once for each one.

Best,

David
Re: how to compactly call multiple elements in bric_soap [ In reply to ]
oh ok. That seems pretty verbose.


On 2011-08-17, at 2:46 PM, David E. Wheeler wrote:

> On Aug 17, 2011, at 11:25 AM, Phillip Smith wrote:
>
>> Maybe send this to the 'users' list? Off the top, I don't think it's possible (currently) to use ANY(). You could patch bric_soap to do so, no doubt.
>>
>> On 2011-08-16, at 1:15 PM, Dawn Buie wrote:
>>
>>> Correction
>>>
>>> Again - I feel I've solved this problem before but can't find my old documentation nor docs for it on the site.
>>>
>>> So I need to use element NOT element_type. However when I try to search for more than one element as below, bric_soap only returns the last element in the series:
>
> Yeah, you need to run bric_soap once for each one.
>
> Best,
>
> David
>
Re: how to compactly call multiple elements in bric_soap [ In reply to ]
On Aug 18, 2011, at 11:04 AM, Dawn Buie wrote:

> oh ok. That seems pretty verbose.

/me shrugs. Script it. Or patch in support for ANY(). ;-P

David