Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
05b71407
Commit
05b71407
authored
Mar 25, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trimmed permission settings since base-class settings are now inherited.
parent
3e055f71
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
29 deletions
+28
-29
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+11
-7
lib/python/Products/ExternalMethod/ExternalMethod.py
lib/python/Products/ExternalMethod/ExternalMethod.py
+5
-6
lib/python/Products/MailHost/MailHost.py
lib/python/Products/MailHost/MailHost.py
+6
-9
lib/python/Products/OFSP/Version.py
lib/python/Products/OFSP/Version.py
+6
-7
No files found.
lib/python/OFS/SimpleItem.py
View file @
05b71407
...
...
@@ -89,8 +89,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
item types.
$Id: SimpleItem.py,v 1.4
2 1999/03/24 17:59:34
jim Exp $'''
__version__
=
'$Revision: 1.4
2
$'
[
11
:
-
2
]
$Id: SimpleItem.py,v 1.4
3 1999/03/25 15:48:50
jim Exp $'''
__version__
=
'$Revision: 1.4
3
$'
[
11
:
-
2
]
import
regex
,
sys
,
Globals
,
App
.
Management
,
Acquisition
from
webdav.Resource
import
Resource
...
...
@@ -130,6 +130,12 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
# Default propertysheet info:
__propsets__
=
()
__ac_permissions__
=
(
(
'View management screens'
,
(
'manage_workspace'
,)),
)
manage_info
=
Globals
.
HTMLFile
(
'App/manage_info'
)
manage_options
=
()
...
...
@@ -316,6 +322,8 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
return
r
Globals
.
default__class_init__
(
Item
)
class
Item_w__name__
(
Item
):
"""Mixin class to support common name/id functions"""
...
...
@@ -381,8 +389,4 @@ class SimpleItem(Item, Globals.Persistent,
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
)
__ac_permissions__
=
(
(
'View management screens'
,
(
'manage_tabs'
,
'manage_workspace'
)),
(
'Change permissions'
,
(
'manage_access'
,)
),
(
'View'
,
()
),
)
__ac_permissions__
=
((
'View'
,
()),)
lib/python/Products/ExternalMethod/ExternalMethod.py
View file @
05b71407
...
...
@@ -88,7 +88,7 @@
This product provides support for external methods, which allow
domain-specific customization of web environments.
"""
__version__
=
'$Revision: 1.2
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
from
Acquisition
import
Explicit
from
Globals
import
Persistent
,
HTMLFile
,
MessageDialog
,
HTML
import
OFS.SimpleItem
...
...
@@ -156,11 +156,10 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, Explicit,
)
__ac_permissions__
=
(
(
'View management screens'
,
[
'manage_main'
,
'manage_tabs'
]),
(
'Change permissions'
,
[
'manage_access'
]),
(
'Change External Methods'
,
[
'manage_edit'
,]),
(
'View'
,
[
'__call__'
,
''
]),
)
(
'View management screens'
,
(
'manage_main'
,)),
(
'Change External Methods'
,
(
'manage_edit'
,)),
(
'View'
,
(
'__call__'
,
''
)),
)
def
__init__
(
self
,
id
,
title
,
module
,
function
):
self
.
id
=
id
...
...
lib/python/Products/MailHost/MailHost.py
View file @
05b71407
...
...
@@ -95,8 +95,8 @@ from Scheduler.OneTimeEvent import OneTimeEvent
from
ImageFile
import
ImageFile
from
cStringIO
import
StringIO
#$Id: MailHost.py,v 1.4
0 1999/03/22 20:39:53 brian
Exp $
__version__
=
"$Revision: 1.4
0
$"
[
11
:
-
2
]
#$Id: MailHost.py,v 1.4
1 1999/03/25 15:50:30 jim
Exp $
__version__
=
"$Revision: 1.4
1
$"
[
11
:
-
2
]
smtpError
=
"SMTP Error"
MailHostError
=
"MailHost Error"
...
...
@@ -129,14 +129,11 @@ class MailBase(Acquisition.Implicit, OFS.SimpleItem.Item, RoleManager):
)
__ac_permissions__
=
(
(
'View management screens'
,
[
'manage'
,
'manage_tabs'
]),
(
'Change permissions'
,
[
'manage_access'
]),
(
'Change configuration'
,
[
'manage_makeChanges'
]),
(
'Use mailhost services'
,[
''
]),
)
(
'View management screens'
,
(
'manage'
,)),
(
'Change configuration'
,
(
'manage_makeChanges'
,)),
(
'Use mailhost services'
,(
''
,)),
)
def
__init__
(
self
):
'nothing yet'
pass
...
...
lib/python/Products/OFSP/Version.py
View file @
05b71407
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Version object"""
__version__
=
'$Revision: 1.2
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
8
$'
[
11
:
-
2
]
import
Globals
,
time
from
AccessControl.Role
import
RoleManager
...
...
@@ -115,12 +115,11 @@ class Version(Persistent,Implicit,RoleManager,Item):
)
__ac_permissions__
=
(
(
'View management screens'
,
[
'manage'
,
'manage_tabs'
,
'manage_editForm'
,
''
]),
(
'Change permissions'
,
[
'manage_access'
]),
(
'Change Versions'
,
[
'manage_edit'
]),
(
'Join/leave Versions'
,
[
'enter'
,
'leave'
,
'leave_another'
]),
(
'Save/discard Version changes'
,
[
'save'
,
'discard'
]),
)
(
'View management screens'
,
(
'manage'
,
'manage_editForm'
,
''
)),
(
'Change Versions'
,
(
'manage_edit'
,)),
(
'Join/leave Versions'
,
(
'enter'
,
'leave'
,
'leave_another'
)),
(
'Save/discard Version changes'
,
(
'save'
,
'discard'
)),
)
def
__init__
(
self
,
id
,
title
,
REQUEST
):
self
.
id
=
id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment