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
afe3069f
Commit
afe3069f
authored
Feb 14, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated from 2.3 branch
parent
c32bb816
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lib/python/App/Product.py
lib/python/App/Product.py
+6
-4
No files found.
lib/python/App/Product.py
View file @
afe3069f
...
...
@@ -183,7 +183,8 @@ class Product(Folder, PermissionManager):
'manage_subclassableClassNames'
]
manage_options
=
(
Folder
.
manage_options
+
(
Folder
.
manage_options
[
0
],)
+
tuple
(
Folder
.
manage_options
[
2
:])
+
(
{
'label'
:
'Distribution'
,
'action'
:
'manage_distributionView'
,
'help'
:(
'OFSP'
,
'Product_Distribution.stx'
)},
...
...
@@ -324,7 +325,7 @@ class Product(Folder, PermissionManager):
if
os
.
path
.
isfile
(
path
):
return
open
(
path
).
read
()
return
''
def
permissionMappingPossibleValues
(
self
):
return
self
.
possible_permissions
()
...
...
@@ -454,7 +455,8 @@ def initializeProduct(productp, name, home, app):
product
.
version
=
fver
product
.
home
=
home
if
disable_distribution
:
product
.
manage_options
=
Folder
.
manage_options
product
.
manage_options
=
(
Folder
.
manage_options
[
0
],)
+
\
tuple
(
Folder
.
manage_options
[
2
:])
product
.
_distribution
=
None
product
.
manage_distribution
=
None
product
.
thisIsAnInstalledProduct
=
1
...
...
@@ -474,7 +476,7 @@ def initializeProduct(productp, name, home, app):
{
'label'
:
'README'
,
'action'
:
'manage_readme'
},
)
break
if
(
os
.
environ
.
get
(
'ZEO_CLIENT'
)
and
not
os
.
environ
.
get
(
'FORCE_PRODUCT_LOAD'
)):
get_transaction
().
abort
()
...
...
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