[Zope-dev] Transparent Folder bug?

2001-03-23 Thread Andy McKay

Am I imagining it or do I have a transparent folders bug? It would seem that
transparent folders adds an extra namespace to my objects and it searches
through sub folders eg:

Folder X:
Document Foo.

In the root with transparent folders i can happily call dtml-var Foo when
I should not have this in my namespace. Without transparent folders I get a
KeyError (which I should). With I get X/Foo rendered even though X is not
transparent.

My only caveat here is that every test with transparent folders is Zope 2.3,
where as without im using 2.1.6.

Cheers.

--
  Andy McKay.




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] Transparent Folder bug?

2001-03-23 Thread Andy McKay

Saying that I can now only reproduce this wierdness under certain
circumstances. Id ignore this until I can find a solid example... Sorry
--
  Andy McKay.


- Original Message -
From: "Andy McKay" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 23, 2001 4:27 PM
Subject: [Zope-dev] Transparent Folder bug?


 Am I imagining it or do I have a transparent folders bug? It would seem
that
 transparent folders adds an extra namespace to my objects and it searches
 through sub folders eg:

 Folder X:
 Document Foo.

 In the root with transparent folders i can happily call dtml-var Foo
when
 I should not have this in my namespace. Without transparent folders I get
a
 KeyError (which I should). With I get X/Foo rendered even though X is not
 transparent.

 My only caveat here is that every test with transparent folders is Zope
2.3,
 where as without im using 2.1.6.

 Cheers.

 --
   Andy McKay.




 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 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 )



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



RE: [Zope-dev] Transparent Folder bug?

2001-03-23 Thread Randall F. Kern

I had that problem a while back but forgot to report it to Mr.
Transparent Folders (sorry...)

Anyway, this patch to TransparentFoldersPatch.py should fix you right
up:

def _getattr(self, name):
# This is the new ObjectManager.__getattr__().  If an object by
the
# given ID is not found through the normal mechanisms, we
# fall through to here and try to find the object in a
# transparent folder.
tpids = self._transparent_object_ids
if tpids and not self._v_no_transparent and name[:3] != '_p_'
and name != '_is_transparent':
# The attribute may be accessible through
# transparent folders.
try:

The important bit is adding the term "and name != '_is_transparent': to
the if statement.

-Randy
  

 -Original Message-
 From: Andy McKay [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 23, 2001 4:46 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [Zope-dev] Transparent Folder bug?
 
 
 Saying that I can now only reproduce this wierdness under certain
 circumstances. Id ignore this until I can find a solid 
 example... Sorry
 --
   Andy McKay.
 
 
 - Original Message -
 From: "Andy McKay" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 23, 2001 4:27 PM
 Subject: [Zope-dev] Transparent Folder bug?
 
 
  Am I imagining it or do I have a transparent folders bug? 
 It would seem
 that
  transparent folders adds an extra namespace to my objects 
 and it searches
  through sub folders eg:
 
  Folder X:
  Document Foo.
 
  In the root with transparent folders i can happily call 
 dtml-var Foo
 when
  I should not have this in my namespace. Without transparent 
 folders I get
 a
  KeyError (which I should). With I get X/Foo rendered even 
 though X is not
  transparent.
 
  My only caveat here is that every test with transparent 
 folders is Zope
 2.3,
  where as without im using 2.1.6.
 
  Cheers.
 
  --
Andy McKay.
 
 
 
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  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 )
 
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 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 )
 

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] Transparent Folder bug?

2001-03-23 Thread Andy McKay

Thanks, I applied that patch and it didnt seem to help. Since this will
production shortly I removed all traces of transparent folder. I have huge
folders again, but thankfully Acquistion works properly.

Thanks for your help.
--
  Andy McKay.


- Original Message -
From: "Randall F. Kern" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, March 23, 2001 4:47 PM
Subject: RE: [Zope-dev] Transparent Folder bug?


 I had that problem a while back but forgot to report it to Mr.
 Transparent Folders (sorry...)

 Anyway, this patch to TransparentFoldersPatch.py should fix you right
 up:

 def _getattr(self, name):
 # This is the new ObjectManager.__getattr__().  If an object by
 the
 # given ID is not found through the normal mechanisms, we
 # fall through to here and try to find the object in a
 # transparent folder.
 tpids = self._transparent_object_ids
 if tpids and not self._v_no_transparent and name[:3] != '_p_'
 and name != '_is_transparent':
 # The attribute may be accessible through
 # transparent folders.
 try:

 The important bit is adding the term "and name != '_is_transparent': to
 the if statement.

 -Randy


  -Original Message-
  From: Andy McKay [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 23, 2001 4:46 PM
  To: [EMAIL PROTECTED]
  Subject: Re: [Zope-dev] Transparent Folder bug?
 
 
  Saying that I can now only reproduce this wierdness under certain
  circumstances. Id ignore this until I can find a solid
  example... Sorry
  --
Andy McKay.
 
 
  - Original Message -
  From: "Andy McKay" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, March 23, 2001 4:27 PM
  Subject: [Zope-dev] Transparent Folder bug?
 
 
   Am I imagining it or do I have a transparent folders bug?
  It would seem
  that
   transparent folders adds an extra namespace to my objects
  and it searches
   through sub folders eg:
  
   Folder X:
   Document Foo.
  
   In the root with transparent folders i can happily call
  dtml-var Foo
  when
   I should not have this in my namespace. Without transparent
  folders I get
  a
   KeyError (which I should). With I get X/Foo rendered even
  though X is not
   transparent.
  
   My only caveat here is that every test with transparent
  folders is Zope
  2.3,
   where as without im using 2.1.6.
  
   Cheers.
  
   --
 Andy McKay.
  
  
  
  
   ___
   Zope-Dev maillist  -  [EMAIL PROTECTED]
   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 )
  
 
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  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 )
 

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 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 )



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )