List Info

Thread: Re: Find Contributors




Re: Find Contributors
user name
2007-03-16 16:20:20
Hi Scott,

I am using some of your code here

http://marc.info/?l=bricolage-general&m=1
16669657808300&w=2

to get a list of all the contribs in my Bric, but I keep
getting the  
error "Can't call method "get_id" on an
undefined value at /usr/local/ 
bricolage/lib/Bric/Util/Grp/Parts/Member/Contrib.pm line
634, <GEN17>  
line 1399." Any thoughts? I am trying to get a list of
all the  
contribs in the system.

Template code:

my ($CO_CONTRIB_GRP) = Bric::Util::Grp->list({ name =>
'Authors', all  
=> 1 });
my contribs =
Bric::Util::Grp::Parts::Member::Contrib->list({ grp =>
 
$CO_CONTRIB_GRP });



Thanks,
Ashlee
RAND

--------------------

This email message is for the sole use of the intended
recipient(s) and
may contain privileged information. Any unauthorized review,
use,
disclosure or distribution is prohibited. If you are not the
intended
recipient, please contact the sender by reply email and
destroy all copies
of the original message.

Re: Find Contributors
user name
2007-03-17 16:35:37
On Fri, 16 Mar 2007, Ashlee Caul wrote:
> Hi Scott,
>
> I am using some of your code here
>
> http://marc.info/?l=bricolage-general&m=1
16669657808300&w=2
>
> to get a list of all the contribs in my Bric, but I
keep getting the error 
> "Can't call method "get_id" on an
undefined value at 
>
/usr/local/bricolage/lib/Bric/Util/Grp/Parts/Member/Contrib.
pm line 634, 
> <GEN17> line 1399." Any thoughts? I am
trying to get a list of all the 
> contribs in the system.
>
> Template code:
>
> my ($CO_CONTRIB_GRP) = Bric::Util::Grp->list({ name
=> 'Authors', all => 1 
> });
> my contribs =
Bric::Util::Grp::Parts::Member::Contrib->list({ grp =>

> $CO_CONTRIB_GRP });

I think it means your Grp->list didn't return anything.
($CO_CONTRIB_GRP is undef.)
Probably you think 'Authors' is a "group" such as
you find in
ADMIN -> SYSTEM -> Groups. Hohoho, silly you, it's in
Contributor Types. 
(I assume it's still called "Contributor Types"
after 1.8.)
No, I don't understand it, either.

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )