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
4c56b3a2
Commit
4c56b3a2
authored
Jan 13, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed __ac_types__
parent
11455635
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
42 deletions
+14
-42
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+5
-26
lib/python/OFS/Document.py
lib/python/OFS/Document.py
+1
-4
lib/python/OFS/Folder.py
lib/python/OFS/Folder.py
+2
-4
lib/python/OFS/Image.py
lib/python/OFS/Image.py
+1
-4
lib/python/Products/MailHost/MailHost.py
lib/python/Products/MailHost/MailHost.py
+5
-4
No files found.
lib/python/OFS/Application.py
View file @
4c56b3a2
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Application support
$Id: Application.py,v 1.3
7 1998/01/12 21:31:13 jim
Exp $'''
__version__
=
'$Revision: 1.3
7
$'
[
11
:
-
2
]
$Id: Application.py,v 1.3
8 1998/01/13 23:04:54 brian
Exp $'''
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
os
,
regex
,
sys
...
...
@@ -132,30 +132,6 @@ class Application(Folder.Folder):
return
DateTime
()
# def manage_addRole(self,REQUEST,role):
# """ """
# roles=list(self.__defined_roles__)
# if role not in roles:
# roles.append(role)
# roles.sort()
# self.__defined_roles__=tuple(roles)
# try: roles=self.__roles__
# except: roles=[]
# if roles is None: roles=[]
# roles.append(role)
# self.__roles__=roles
# return self.manage_rolesForm(self, REQUEST)
# def manage_deleteRole(self,REQUEST,role):
# """ """
# roles=list(self.__defined_roles__)
# if role in roles:
# del roles[roles.index(role)]
# self.__defined_roles__=tuple(roles)
# def validRoles(self):
# return self.__defined_roles__
...
...
@@ -283,6 +259,9 @@ class Misc_:
##############################################################################
#
# $Log: Application.py,v $
# Revision 1.38 1998/01/13 23:04:54 brian
# Removed __ac_types__
#
# Revision 1.37 1998/01/12 21:31:13 jim
# Made application default Manager, Anonymous
#
...
...
lib/python/OFS/Document.py
View file @
4c56b3a2
"""Document object"""
__version__
=
'$Revision: 1.4
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
1
$'
[
11
:
-
2
]
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
...
...
@@ -44,9 +44,6 @@ class Document(HTML, Explicit, RoleManager, Item_w__name__):
(
'Shared permission'
,
[
''
,]),
)
__ac_types__
=
((
'Full Access'
,
map
(
lambda
x
:
x
[
0
],
__ac_permissions__
)),
(
'View Access'
,
[
'View'
,]),
)
__call____roles__
=
'Manager'
,
'Shared'
def
__call__
(
self
,
client
=
None
,
REQUEST
=
{},
RESPONSE
=
None
,
**
kw
):
...
...
lib/python/OFS/Folder.py
View file @
4c56b3a2
"""Folder object
$Id: Folder.py,v 1.3
4 1998/01/12 21:31:58 jim
Exp $"""
$Id: Folder.py,v 1.3
5 1998/01/13 23:04:55 brian
Exp $"""
__version__
=
'$Revision: 1.3
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
5
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
...
...
@@ -108,8 +108,6 @@ class Folder(ObjectManager,RoleManager,DocumentHandler,
(
'Shared permission'
,
[
''
]),
)
__ac_types__
=
((
'Full Access'
,
map
(
lambda
x
:
x
[
0
],
__ac_permissions__
)),
)
def
tpValues
(
self
):
r
=
[]
...
...
lib/python/OFS/Image.py
View file @
4c56b3a2
"""Image object"""
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
4
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
,
MessageDialog
from
AccessControl.Role
import
RoleManager
...
...
@@ -40,9 +40,6 @@ class File(Persistent,Implicit,RoleManager,Item_w__name__):
(
'Shared permission'
,
[
''
,]),
)
__ac_types__
=
((
'Full Access'
,
map
(
lambda
x
:
x
[
0
],
__ac_permissions__
)),
(
'View Access'
,
[
'View'
,]),
)
def
__init__
(
self
,
id
,
title
,
file
,
content_type
=
''
):
try
:
headers
=
file
.
headers
...
...
lib/python/Products/MailHost/MailHost.py
View file @
4c56b3a2
...
...
@@ -9,8 +9,8 @@ import Globals
from
Scheduler.OneTimeEvent
import
OneTimeEvent
from
ImageFile
import
ImageFile
#$Id: MailHost.py,v 1.2
4 1998/01/05 19:34:12 jeffrey
Exp $
__version__
=
"$Revision: 1.2
4
$"
[
11
:
-
2
]
#$Id: MailHost.py,v 1.2
5 1998/01/13 23:06:10 brian
Exp $
__version__
=
"$Revision: 1.2
5
$"
[
11
:
-
2
]
smtpError
=
"SMTP Error"
MailHostError
=
"MailHost Error"
...
...
@@ -48,8 +48,6 @@ class MailBase(Acquisition.Implicit, OFS.SimpleItem.Item, RoleManager):
(
'Use mailhost services'
,[
''
]),
)
__ac_types__
=
((
'Full Access'
,
map
(
lambda
x
:
x
[
0
],
__ac_permissions__
)),
)
def
__init__
(
self
):
...
...
@@ -246,6 +244,9 @@ def decapitate(message, **kw):
####################################################################
#
#$Log: MailHost.py,v $
#Revision 1.25 1998/01/13 23:06:10 brian
#Removed __ac_types__
#
#Revision 1.24 1998/01/05 19:34:12 jeffrey
#split out the SendMail tag machinery into new module
#
...
...
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