Re: [Zope-dev] Images and Products

2001-03-27 Thread Andre Schubert

Hi,

i have found the error. I had somewhere definded '' in a Permission wich is
the same as index_html. And this permission was not set to Anonymous.

as

Dieter Maurer schrieb:

 Andre Schubert writes:
   I have a little Problem on using Images in my Product.
   If i'am logged in as Manager i can View the Image, but if logged in as
   Anonymous i can't view the Image.
   The View permission is assigned to Anonymous Role and the Image Foo is
   assing to the View Permission, but i can't view the Image as Anonymous.
  
   Source:
   __ac_permissions=(
   
   ('View', ('index_html','Foo'), ('Manager',)),
 As Chris already pointed out:

   ^
 does not work.

   Foo = ImageFile('icons/foo.gif',globals())
  
   Link:
   http://www.somewhere.de/myProduct/Foo
 Access permissions are controlled by the permission
 of "ImageFile.index_html" which requires view permission.

 I expect, you have somehow broken the acquisition chain.
 Does your product inherits "Acquisition.{Ex|Im}plicit"
 or at least "ExtensionClass.Base"?
 If not, Zope's permission machinery will not work.

 Dieter

 ___
 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] Images and Products

2001-03-26 Thread Andre Schubert

Hi all,

I have a little Problem on using Images in my Product.
If i'am logged in as Manager i can View the Image, but if logged in as
Anonymous i can't view the Image.
The View permission is assigned to Anonymous Role and the Image Foo is
assing to the View Permission, but i can't view the Image as Anonymous.

Source:
__ac_permissions=(
...
('View', ('index_html','Foo'), ('Manager',)),
...)

Foo = ImageFile('icons/foo.gif',globals())

Link:
http://www.somewhere.de/myProduct/Foo

Please Help, Thanks as


___
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] Images and Products

2001-03-26 Thread Chris Withers

Andre Schubert wrote:
 
 ('View', ('index_html','Foo'), ('Manager',)),

 ^^ What's that doing in there?

cheers,

Chris

___
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] Images and Products

2001-03-26 Thread Dieter Maurer

Andre Schubert writes:
  I have a little Problem on using Images in my Product.
  If i'am logged in as Manager i can View the Image, but if logged in as
  Anonymous i can't view the Image.
  The View permission is assigned to Anonymous Role and the Image Foo is
  assing to the View Permission, but i can't view the Image as Anonymous.
  
  Source:
  __ac_permissions=(
  
  ('View', ('index_html','Foo'), ('Manager',)),
As Chris already pointed out:

  ^
does not work.

  Foo = ImageFile('icons/foo.gif',globals())
  
  Link:
  http://www.somewhere.de/myProduct/Foo
Access permissions are controlled by the permission
of "ImageFile.index_html" which requires view permission.

I expect, you have somehow broken the acquisition chain.
Does your product inherits "Acquisition.{Ex|Im}plicit"
or at least "ExtensionClass.Base"?
If not, Zope's permission machinery will not work.


Dieter

___
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] Images and Products

2001-03-26 Thread Andre Schubert

Hi,

My Products Inherits Acquisition.Implicit. Anonymous Users have the View
Permission and it's aquired into my Product.
Is there a bugfix that i have forgot to fix ??

-as

Dieter Maurer schrieb:

 Andre Schubert writes:
   I have a little Problem on using Images in my Product.
   If i'am logged in as Manager i can View the Image, but if logged in as
   Anonymous i can't view the Image.
   The View permission is assigned to Anonymous Role and the Image Foo is
   assing to the View Permission, but i can't view the Image as Anonymous.
  
   Source:
   __ac_permissions=(
   
   ('View', ('index_html','Foo'), ('Manager',)),
 As Chris already pointed out:

   ^
 does not work.

   Foo = ImageFile('icons/foo.gif',globals())
  
   Link:
   http://www.somewhere.de/myProduct/Foo
 Access permissions are controlled by the permission
 of "ImageFile.index_html" which requires view permission.

 I expect, you have somehow broken the acquisition chain.
 Does your product inherits "Acquisition.{Ex|Im}plicit"
 or at least "ExtensionClass.Base"?
 If not, Zope's permission machinery will not work.

 Dieter


___
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 )