catalog object owners?
Anybody know how to catalog the object "owner"? I can't seem to find a property to catalog the value of getUserName(). (of course I could always kludge it with a property in the constructor, but I would prefer use what is already there). ___________________________________________________________ Tim McLaughlin BCSwebservices.net Director, Technical Group 1950 Old Gallows Road tel: (703) 790.8081 x111 Suite 201 tim@bcswebservices.net Vienna, VA 22182 www .bcswebservices. net
getOwner should do it. This will return the actual owner object. It'd be preferable to catalog the tuple representing the owner path (this is returned by getOwner(1)), so you might want to create a method on the object that returns "getOwner(1)". ----- Original Message ----- From: "Tim McLaughlin" <tim@BCSWebservices.net> To: <zope-dev@zope.org> Sent: Monday, February 26, 2001 3:38 PM Subject: [Zope-dev] catalog object owners?
Anybody know how to catalog the object "owner"? I can't seem to find a property to catalog the value of getUserName(). (of course I could always kludge it with a property in the constructor, but I would prefer use what is already there).
___________________________________________________________ Tim McLaughlin BCSwebservices.net Director, Technical Group 1950 Old Gallows Road tel: (703) 790.8081 x111 Suite 201 tim@bcswebservices.net Vienna, VA 22182 www .bcswebservices. net
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Tim McLaughlin] | Anybody know how to catalog the object "owner"? I can't seem to find a | property to catalog the value of getUserName(). (of course I could always | kludge it with a property in the constructor, but I would prefer use what is | already there). I'll second that, the ability to catalog values returned by method calls would be sweet.. -Morten
[Chris McDonough] | > I'll second that, the ability to catalog values returned by method calls | > would be sweet.. | | Not sure what you mean, this works now. Aha? So if I specify a field index of, get_parent_node_id, which is a function call on all objects that are to be indexed, this would index the returned value? If so, how long has this been available? Cheers, Morten
Morten W. Petersen wrote:
Aha? So if I specify a field index of, get_parent_node_id, which is a function call on all objects that are to be indexed, this would index the returned value?
yes.
If so, how long has this been available?
Absolutely ages! At least since 2.2. I don't have any 2.1 installs around to check with. -- Steve Alexander Software Engineer Cat-Box limited
[Steve Alexander] | Absolutely ages! | At least since 2.2. I don't have any 2.1 installs around to check with. Whoa, now how cool is that. :-) Cheers, Morten
Aha? So if I specify a field index of, get_parent_node_id, which is a function call on all objects that are to be indexed, this would index the returned value?
If so, how long has this been available?
As long as the catalog has been around, AFAICT... This is one of its very most basic features.
Chris McDonough wrote:
Aha? So if I specify a field index of, get_parent_node_id, which is a function call on all objects that are to be indexed, this would index the returned value?
If so, how long has this been available?
As long as the catalog has been around, AFAICT...
This is one of its very most basic features.
And one of it's most endearing :-) Chris
participants (5)
-
Chris McDonough -
Chris Withers -
morten@esol.no -
Steve Alexander -
Tim McLaughlin