Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: devel

how to compactly call multiple elements in bric_soap

 

 

Bricolage devel RSS feed   Index | Next | Previous | View Threaded


dawn at dawnthots

Aug 16, 2011, 9:59 AM

Post #1 of 6 (1180 views)
Permalink
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


dawn at dawnthots

Aug 16, 2011, 10:15 AM

Post #2 of 6 (1128 views)
Permalink
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


ps at phillipadsmith

Aug 17, 2011, 11:25 AM

Post #3 of 6 (1127 views)
Permalink
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
>


david at kineticode

Aug 17, 2011, 11:46 AM

Post #4 of 6 (1127 views)
Permalink
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


dawn at dawnthots

Aug 18, 2011, 11:04 AM

Post #5 of 6 (1121 views)
Permalink
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
>


david at kineticode

Aug 18, 2011, 11:10 AM

Post #6 of 6 (1119 views)
Permalink
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

Bricolage devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.