Re: [Zope] Permission for archetype products

2008-07-27 Thread Andreas Jung



--On 28. Juli 2008 10:14:18 +0530 Kedar Dash <[EMAIL PROTECTED]> 
wrote:



Hi,

How to make a archetype products available for member so that it
available to member type user like plone native content type. By its
default behaviors it is only accessible to admin/ manager type of user.



Wrong list. Ask on the plone-users list:



-aj

pgpP1Xk0LI7OS.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Permission for archetype products

2008-07-27 Thread Kedar Dash

Hi,

How to make a archetype products available for member so that it 
available to member type user like plone native content type. By its 
default behaviors it is only accessible to admin/ manager type of user.


I am using zope 2.9.3 and plone 2.5.

regards,

Kedar
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Permission Denied...New Build

2006-11-29 Thread Jonathan


- Original Message - 
From: "Dieter Maurer" <[EMAIL PROTECTED]>

To: "Nancy Donnelly" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, November 29, 2006 4:57 PM
Subject: Re: [Zope] Permission Denied...New Build



Nancy Donnelly wrote at 2006-11-29 08:17 -0800:

...
 File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py", 
line 60, in __init__

   self._fp = open(path, 'w+')
IOError: [Errno 13] Permission denied: 
'/usr/local/zope/2012/var/Data.fs.lock'


Most Python/Zope error message are quite good.
So good, that it is worth to read them carefully ;-)

The error message above, for example, clearly tells you
that your operating system ("IOError") denied access ("Permission denied")
to the file "/usr/local/zope/2012/var/Data.fs.lock".


What do?


After careful reading of the error message, you use
means of your operating system to determine what
permissions are granted for "/usr/local/zope/2012/var/Data.fs.lock"
or (if that does not exist) for "/usr/local/zope/2012/var".

Dieter


I'm glad you caught that Dieter!  I read Nancy's post too quickly and 
responded by telling her to check Data.fs permissions (my bad).  Sorry about 
that Nancy!


Jonathan






___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Permission Denied...New Build

2006-11-29 Thread Dieter Maurer
Nancy Donnelly wrote at 2006-11-29 08:17 -0800:
> ...
>  File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py", line 
> 60, in __init__
>self._fp = open(path, 'w+')
>IOError: [Errno 13] Permission denied: '/usr/local/zope/2012/var/Data.fs.lock'

Most Python/Zope error message are quite good.
So good, that it is worth to read them carefully ;-)

The error message above, for example, clearly tells you
that your operating system ("IOError") denied access ("Permission denied")
to the file "/usr/local/zope/2012/var/Data.fs.lock".

>What do?

After careful reading of the error message, you use
means of your operating system to determine what
permissions are granted for "/usr/local/zope/2012/var/Data.fs.lock"
or (if that does not exist) for "/usr/local/zope/2012/var".



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Permission Denied...New Build

2006-11-29 Thread robert rottermann
this lock was maybe created by root.
(when zope started from /etc/init.d)

if so you have to delete it as root.

and of course your "efective user" defined (in 
/usr/local/zope/2012/etc/zope.conf)
must be set to somebody that has write permission in /usr/local/zope/2012/var

robert

Nancy Donnelly schrieb:
> 79797975
> Hi;
> After nuking my Zope instances by trying to copy my main HD over to my
> new one, I'm rebuilding with backups. But I'm having a problem. I built
> Z29 from source. I created an instance, specified the path, "nancy" as
> the user and a p/w. When I go to "runzope", as root or as nancy, I get
> this error:
> 
> [EMAIL PROTECTED]:local/zope/2012 (108) ./bin/runzope
> Traceback (most recent call last):
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line
> 56, in ?
> run()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line
> 21, in run
> starter.prepare()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py",
> line 98, in prepare
> self.startZope()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py",
> line 257, in startZope
> Zope2.startup()
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/__init__.py",
> line 47, in startup
> _startup()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/App/startup.py", line
> 60, in startup
> DB = dbtab.getDatabase('/', is_root=1)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py",
> line 280, in getDatabase
> db = factory.open(name, self.databases)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py",
> line 178, in open
> DB = self.createDB(database_name, databases)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py",
> line 175, in createDB
> return ZODBDatabase.open(self, databases)
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line
> 97, in open
> storage = section.storage.open()
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line
> 135, in open
> quota=self.config.quota)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/FileStorage/FileStorage.py",
> line 112, in __init__
> self._lock_file = LockFile(file_name + '.lock')
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py",
> line 60, in __init__
> self._fp = open(path, 'w+')
> IOError: [Errno 13] Permission denied:
> '/usr/local/zope/2012/var/Data.fs.lock'
> 
> What do?
> TIA,
> Nancy
> 
> 
> Cheap Talk? Check out
> 
> Yahoo! Messenger's low PC-to-Phone call rates.
> 
> 
> 
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )

begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Permission Denied...New Build

2006-11-29 Thread Nancy Donnelly
79797975Hi;
After nuking my Zope instances by trying to copy my main HD over to my new one, 
I'm rebuilding with backups. But I'm having a problem. I built Z29 from source. 
I created an instance, specified the path, "nancy" as the user and a p/w. When 
I go to "runzope", as root or as nancy, I get this error:

[EMAIL PROTECTED]:local/zope/2012 (108) ./bin/runzope
Traceback (most recent call last):
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line 
56, in ?
run()
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line 
21, in run
starter.prepare()
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py", 
line 98, in prepare
self.startZope()
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py", 
line 257, in startZope
Zope2.startup()
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/__init__.py", line 47, 
in startup
_startup()
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/App/startup.py", line 
60, in startup
DB = dbtab.getDatabase('/', is_root=1)
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py", 
line 280, in getDatabase
db = factory.open(name, self.databases)
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py", 
line 178, in open
DB = self.createDB(database_name, databases)
  File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py", 
line 175, in createDB
return ZODBDatabase.open(self, databases)
  File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line 97, in 
open
storage = section.storage.open()
  File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line 135, 
in open
quota=self.config.quota)
  File 
"/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/FileStorage/FileStorage.py", 
line 112, in __init__
self._lock_file = LockFile(file_name + '.lock')
  File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py", line 60, 
in __init__
self._fp = open(path, 'w+')
IOError: [Errno 13] Permission denied: '/usr/local/zope/2012/var/Data.fs.lock'

What do?
TIA,
Nancy




 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] "Permission denied" running Zope 2.8.5 configure

2006-03-30 Thread Glenn Gillis
Jens Vagelpohl wrote:
>>> When attempting to configure Zope 2.8.5, however, I receive the
>>> following error from configure:
>>>
>>> 
>>> [EMAIL PROTECTED]:www.climatelaw.org]$
>>> /usr/local/zope/software-home/zope/configure
>>> --prefix=/usr/local/zope/instance-home/www.climatelaw.org/
>>> --with-python=/usr/local/zope/software-home/python/
>>>
>>> Using Python interpreter at /usr/local/zope/software-home/python/
>>>
>>> Configuring Zope installation
>>>
>>> /usr/local/zope/software-home/zope/configure:
>>> /usr/local/zope/software-home/python/: permission denied
> 
> 
> What is that slash doing at the end of /usr/local/zope/software-home/
> python/? That directive is supposed to point to the Python binary,  not
> some folder.

Ah! The directive was pointing to the *directory* containing the Python
binary, not to Python itself. Adding "python" to the end fixed the
problem. Phew!

> jens

Thanks, Jens. Who knows when I would have noticed that out on my own.

Glenn

NB: I originally (unintentionally) replied directly to Jens. Resending
this to let the list know that his suggestion resolved the problem. G.


smime.p7s
Description: S/MIME Cryptographic Signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] "Permission denied" running Zope 2.8.5 configure

2006-03-27 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


When attempting to configure Zope 2.8.5, however, I receive the
following error from configure:


[EMAIL PROTECTED]:www.climatelaw.org]$
/usr/local/zope/software-home/zope/configure
--prefix=/usr/local/zope/instance-home/www.climatelaw.org/
--with-python=/usr/local/zope/software-home/python/

Using Python interpreter at /usr/local/zope/software-home/python/

Configuring Zope installation

/usr/local/zope/software-home/zope/configure:
/usr/local/zope/software-home/python/: permission denied


What is that slash doing at the end of /usr/local/zope/software-home/ 
python/? That directive is supposed to point to the Python binary,  
not some folder.


jens

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEKFTxRAx5nvEhZLIRAhKCAKC4NPpKrK9UJLKKpCWqPZXfvmexXACglP7d
IyboJ2Ez5CXU+zpFeFi8nuA=
=ixmT
-END PGP SIGNATURE-
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] "Permission denied" running Zope 2.8.5 configure

2006-03-27 Thread Glenn Gillis
Hello, list. I am attempting to install the following components under
FreeBSD 4.11:

- Python 2.3.5
- Zope 2.8.5
- Plone 2.1.2

under a directory structure like:

/usr/local/zope
  /software-home
/python
/zope
/plone
/...
  /instance-home
/www.climatelaw.org
/www.example.org
/...

Python 2.3.5 is installed in /usr/local/zope/software-home/python/ and
appears to be working correctly. This server is also already
successfully running Zope 2.6.1 under Python 2.1.

When attempting to configure Zope 2.8.5, however, I receive the
following error from configure:


[EMAIL PROTECTED]:www.climatelaw.org]$
/usr/local/zope/software-home/zope/configure
--prefix=/usr/local/zope/instance-home/www.climatelaw.org/
--with-python=/usr/local/zope/software-home/python/

Using Python interpreter at /usr/local/zope/software-home/python/

Configuring Zope installation

/usr/local/zope/software-home/zope/configure:
/usr/local/zope/software-home/python/: permission denied


I am installing as user "zope", which owns both the directory,
subdirectories and files within "/usr/local/zope":

  [EMAIL PROTECTED]:local]$ ls -ld zope
  drwxrwxr-x  5 zope  zope  512 Mar 23 12:22 zope

The python interpreter also is also owned by user "zope" and permissions
are set as "755":

  lrwxr-xr-x   1 zope  zope   12 Mar 14 13:02 python -> Python-2.3.5

I've searched the archives of this list and not found this particular
permission problem described. I am at a loss as to what exactly is
denying permission to what, much less how to correct the problem. I
would prefer not to have to configure and install Zope as root.

Any help very appreciated.

Glenn
E-LAW U.S. Information Technology Manager
Environmental Law Alliance Worldwide
http://www.elaw.org


smime.p7s
Description: S/MIME Cryptographic Signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Zope Permission object destroys Security tab

2001-01-31 Thread Itai Tavor

Hi,

I have a Zope product, with a lot of ZClasses in it. I defined a Zope 
Permission in this product with id='change_my_objects_permission' and 
name='Change My Objects'. I assigned this permission to several 
classes - not sure which ones.

When I click on Security in the top Zope folder I get this:

 Error Type: AttributeError
 Error Value: __getitem__

Traceback (innermost last):
   File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 222, in publish_module
   File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 187, in publish
   File /opt/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py, line 
221, in zpublisher_exception_hook
 (Object: ApplicationDefaultPermissions)
   File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 171, in publish
   File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py, 
line 160, in mapply
 (Object: manage_access)
   File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 112, in call_object
 (Object: manage_access)
   File /opt/Zope/lib/python/AccessControl/Role.py, line 262, in manage_access
 (Object: ApplicationDefaultPermissions)
   File 
/opt/Zope-2.3.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, 
line 324, in __call__
 (Object: _normal_manage_access)
   File 
/opt/Zope-2.3.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, 
line 353, in _bindAndExec
 (Object: _normal_manage_access)
   File /opt/Zope-2.3.0-linux2-x86/lib/python/App/special_dtml.py, 
line 236, in _exec
 (Object: _normal_manage_access)
   File 
/opt/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_With.py, 
line 146, in render
 (Object: _.namespace(valid_roles=valid_roles()))
   File /opt/Zope/lib/python/DocumentTemplate/DT_In.py, line 660, in renderwob
 (Object: permission_settings)
   File /opt/Zope/lib/python/AccessControl/Role.py, line 185, in 
permission_settings
 (Object: ApplicationDefaultPermissions)
   File /opt/Zope/lib/python/AccessControl/Role.py, line 180, in 
AttributeError: (see above)

I added this statement to permission_settings (line 176 of 
AccessControl/Role.py):

print('name=%s, value=%s, roles=%s' % (name, value, roles))

When it gets to my permission it outputs this:

name=Change My Objects, value=(), roles=

I deleted the problem permission and created a new one called Test. 
This time the Security page worked and I got:

name=Test, value=(), roles=['Manager']

If I recreate the problem permission, the problem returns.

The only difference is that 'Change My Objects' is used somewhere in 
a ZClass. But a) I can't find out where it's used other than by 
manually checking 20 ZClasses, and b) why would that be a problem 
anyway? And what's this Rewrapper thing? And why am I suddenly 
attracting all these annoying bugs?
--
Itai Tavor  -- "Je sautille, donc je suis."--
[EMAIL PROTECTED]--   - Kermit the Frog --
-- --
-- "Every day, once a day, give yourself a present"  - Dale Cooper --


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




Re: [Zope] Permission problems...

2000-11-20 Thread Curtis Maloney

On Tuesday 21 November 2000 10:06, Dieter Maurer wrote:
> Curtis Maloney writes:
>  > I really can't understand this...  I am logged in as my normal Manager
>  > role user, editing away on my site.  In the management section, no
>  > problems...  I can edit, add and delete to my hearts content.
>  >
>  > However, when I try the normal view, one a certain page I get permission
>  > problems... It won't let me log in with _any_ users, even tho my
>  > permissions seem set correctly.
>  >
>  > The object in question is, in fact, standard_html_header, of all things.
>  > With the way the objects are set up, it's only rendering the same
>  > objects as from the previous page, with a little extra processing due to
>  > submitted form values.
>
> This is definitely not enough information.
>

No, you're right.. it's not enough information 

> Either your permissions are strange (you ruled this out) or
> "standard_html_header" contains something strange that
> maybe triggers a Zope bug (2.1.6. contained such bug,
> when you e.g. used 'ZopeFind' or 'ZopeFindAndApply').
>

As it turns out, I found the problem to be something wholy unrelated to 
standard_html_header.   To be honest, I don't entirely understand the fault, 
but it's gone away now.

Sorry for not posting a retraction to this question.

> We may help you, if you post your "standard_html_header".
>

> Dieter

Curtis.

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




Re: [Zope] Permission problems...

2000-11-20 Thread Dieter Maurer

Curtis Maloney writes:
 > I really can't understand this...  I am logged in as my normal Manager role 
 > user, editing away on my site.  In the management section, no problems...  I 
 > can edit, add and delete to my hearts content.
 > 
 > However, when I try the normal view, one a certain page I get permission 
 > problems... It won't let me log in with _any_ users, even tho my permissions 
 > seem set correctly.
 > 
 > The object in question is, in fact, standard_html_header, of all things.
 > With the way the objects are set up, it's only rendering the same objects as 
 > from the previous page, with a little extra processing due to submitted form 
 > values.
This is definitely not enough information.

Either your permissions are strange (you ruled this out) or
"standard_html_header" contains something strange that
maybe triggers a Zope bug (2.1.6. contained such bug,
when you e.g. used 'ZopeFind' or 'ZopeFindAndApply').

We may help you, if you post your "standard_html_header".



Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
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] Permission problems...

2000-11-19 Thread Curtis Maloney


Green things,


I really can't understand this...  I am logged in as my normal Manager role 
user, editing away on my site.  In the management section, no problems...  I 
can edit, add and delete to my hearts content.

However, when I try the normal view, one a certain page I get permission 
problems... It won't let me log in with _any_ users, even tho my permissions 
seem set correctly.

The object in question is, in fact, standard_html_header, of all things.
With the way the objects are set up, it's only rendering the same objects as 
from the previous page, with a little extra processing due to submitted form 
values.


System:

Zope 2.1.6 installed from source.
Python 1.5.2
RedHat 6.1 (with many updates)

many thanks in advance,

Have a better one,
Curtis Maloney.

___
Zope maillist  -  [EMAIL PROTECTED]
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] Permission problem with my own zClass.

2000-09-14 Thread Max Møller Rasmussen

I have made a zClass called "newsProduct" that is articles with predefined
properties.

It works nicely when I am logged on as an Administrator. I can add articles.
No problem.

I also have a site with the following structure

root
news

I want some users to be able to add "news" articles in the "news" folder.
This I can do by making a user folder in the "news" folder and setting the
users as administrators, but I do NOT want them to be able to add anything
but articles. So that is a bad idea.

Thus I want to make a new role called "author" that can only add articles.
in the news-folder.

I have made a user in the "news" userfolder, and given this user the
"author" role. In the news folder I have also checked the box "add newss"
under "author" (a single article is also called "news" in the management
interface).

My test_author can logon nicely, seeing the "news" folder as the root. And
under the "To add an item select an item type" select box, 2 products turn
up "Z Gadfly Database Connection"(No idea why!) & "News". But when I select
"news" a login prompt pops up. I cannot login as test_author, so I cannot
create any news in the "news folder."

Does anybody has any ideas about what more I need to set in order to make
the "author" role able to create articles.

Kind Regars Max M, Denmark


This is the content of my newsProduct
Help (NewsProduct)  
newsClass  
newsClass_add (newsClass constructor)  
newsClass_addForm (newsClass constructor input form)  
newsClass_add_permission (newsClass constructor permission)  
newsClass_factory (newsClass factory)  

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

2000-08-09 Thread Tom Deprez

Hi,

I have this q'n already a long time in my head and I still don't know the
answer to it. It has to do with the security-view. I hope that someone can
shed a light on my brains.

Why is their an Acquire permission (referred to as acq_perm in following
text) checkbox column? 

In order to change a permission for a certain role, we have to check or
uncheck this permission at the roles permission checkbox. However, for this
to work we have to uncheck the acq_perm column (because if this one is
checked, the permission is taken from parent-folder-objects anyway, the
value of the role checkbox doesn't counts at that moment). As a drawback,
this means that all roles have to be checked/unchecked, because they don't
acquire the permission anymore from one of its parents-folder-objects.


Now, why couldn't this be implemented like the following? Isn't this easier
to grasp?

The Acq_perm column doesn't exists. Assume that acquisition of a permission
is always Active. The checkboxes of the role show their actual value
(according to the acquisition). Thus if permissionA is checked in the
parent-object, permissionA is also checked. If you want, for a certain role
that this permission is not given, you uncheck permissionA. The subobject
will show an unchecked permissionA box (because it acquires from its
parent). In order to give the subobject again the permission, we only have
to check permissionA.

A) In the first approach we've to uncheck the acq_perm checkbox and have to
set the checkbox of every role according to how we want the permission to
be handled by that role.

B) In the second approach we've to uncheck the permission checkbox of the
role(s). Other roles are not effected.

Am I missing something here? Is my explenation somewhere wrong? Why does
Zope uses the first approach? Which, sounds for me, a little bit more
complicated.

Thanks for any explanation!

Tom Deprez.

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




RE: [Zope] permission settings do not work like expected

2000-08-02 Thread Brian Lloyd

> I use zope 2.2.0 and I've got a problem with permission 
> settings. When I try
> to limit the permissions for user to add only on type of 
> objects to a folder
> then I get always two types back:
> - the one, which I like
> - and "Z Gadfly Database Connection"

I just fixed this today - it turned out that all older 
products that don't use the 'initialize' method in 
their __init__ (in other words, that use the old 
implicit way of initialization) weren't correctly 
screened in the add list. The fix will be in the 
next release.


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



___
Zope maillist  -  [EMAIL PROTECTED]
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] permission settings do not work like expected

2000-08-02 Thread cuiod-tec Jens Gelhaar

Hi,

I use zope 2.2.0 and I've got a problem with permission settings. When I try
to limit the permissions for user to add only on type of objects to a folder
then I get always two types back:
- the one, which I like
- and "Z Gadfly Database Connection"
I used a local rule and discarded all "Acquire permission settings". The
local rule has only one "ADD"-type, but like I said, I got gadfly to.

Any idea?

Jens


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