Hi: I have a big problem. I have a folder named A. A contains a ZSQL Method. Inside A exists B, and inside B is C. C contains several products. One of this products inside C needs call method X in other product also inside C. Well, this X method needs reference to the ZSQL Method in A.
From url I call this X method and all works ok, but when I try to execute the other products method's that references X it says non exist ZSQL Method... then I supposse I have lost the acquisition wrapper...
How I can access the A ZSQL Method from X? Greetings -- Microsoft merges technologoies: Windows CE + Windows ME + Windows NT = Windows CEMENT ---- Antonio Beamud Montero Agora Systems S.A. http://www.agoratechnologies.com
Have you tried restrictedTraverse() ? At 04:57 PM 10/17/2002 +0200, you wrote:
Hi: I have a big problem. I have a folder named A. A contains a ZSQL Method. Inside A exists B, and inside B is C. C contains several products. One of this products inside C needs call method X in other product also inside C. Well, this X method needs reference to the ZSQL Method in A.
From url I call this X method and all works ok, but when I try to execute the other products method's that references X it says non exist ZSQL Method... then I supposse I have lost the acquisition wrapper...
How I can access the A ZSQL Method from X?
Greetings
-- Microsoft merges technologoies: Windows CE + Windows ME + Windows NT = Windows CEMENT
---- Antonio Beamud Montero Agora Systems S.A.
http://www.agoratechnologies.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
How I specify the path to restrictedTraverse...? The object I search is always two levels over it. El jue, 17-10-2002 a las 17:34, Dylan Reinhardt escribió:
Have you tried restrictedTraverse() ?
At 04:57 PM 10/17/2002 +0200, you wrote:
Hi: I have a big problem. I have a folder named A. A contains a ZSQL Method. Inside A exists B, and inside B is C. C contains several products. One of this products inside C needs call method X in other product also inside C. Well, this X method needs reference to the ZSQL Method in A.
From url I call this X method and all works ok, but when I try to execute the other products method's that references X it says non exist ZSQL Method... then I supposse I have lost the acquisition wrapper...
How I can access the A ZSQL Method from X?
Greetings
-- Microsoft merges technologoies: Windows CE + Windows ME + Windows NT = Windows CEMENT
---- Antonio Beamud Montero Agora Systems S.A.
http://www.agoratechnologies.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) -- Microsoft merges technologoies: Windows CE + Windows ME + Windows NT = Windows CEMENT
---- Antonio Beamud Montero Agora Systems S.A. http://www.agoratechnologies.com
So you have the following hierarchy: A/ ---- foo1 ---- B/ ---- ---- C/ ---- ---- ---- foo2 ---- ---- ---- foo3 Where foo2 has a method that needs to call foo1 on foo3. If so, foo2's method can resolve foo1 applied to foo3 by using: restrictedTraverse(URL1+'/foo3/foo1') or whatever URL you're using that correctly produces the results you're looking for. It shouldn't be much of a challenge for foo3 to acquire foo1. If what you're saying is that foo1 *always* needs to use foo3, regardless of how it's called, then you could use restrictedTraverse in foo1 thus: restrictedTraverse(URL1+'/B/C/foo3') Where URL1 is equal to the value of REQUEST.URL1. This is off the top of my head, but should get you close enough... :-) HTH, Dylan At 07:02 PM 10/17/2002 +0200, you wrote:
How I specify the path to restrictedTraverse...? The object I search is always two levels over it.
El jue, 17-10-2002 a las 17:34, Dylan Reinhardt escribió:
Have you tried restrictedTraverse() ?
At 04:57 PM 10/17/2002 +0200, you wrote:
Hi: I have a big problem. I have a folder named A. A contains a ZSQL Method. Inside A exists B, and inside B is C. C contains several products. One of this products inside C needs call method X in other product also inside C. Well, this X method needs reference to the ZSQL Method in A.
From url I call this X method and all works ok, but when I try to execute the other products method's that references X it says non exist ZSQL Method... then I supposse I have lost the acquisition wrapper...
How I can access the A ZSQL Method from X?
Greetings
-- Microsoft merges technologoies: Windows CE + Windows ME + Windows NT = Windows CEMENT
---- Antonio Beamud Montero Agora Systems S.A.
http://www.agoratechnologies.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) -- Microsoft merges technologoies: Windows CE + Windows ME + Windows NT = Windows CEMENT
---- Antonio Beamud Montero Agora Systems S.A.
http://www.agoratechnologies.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Antonio Beamud Montero -
Dylan Reinhardt -
Dylan Reinhardt