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
49d48213
Commit
49d48213
authored
Sep 26, 2000
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added docs for __replaceable__ property.
parent
6213cc7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
lib/python/Products/OFSP/help/ObjectManagerItem.py
lib/python/Products/OFSP/help/ObjectManagerItem.py
+21
-0
No files found.
lib/python/Products/OFSP/help/ObjectManagerItem.py
View file @
49d48213
...
...
@@ -114,6 +114,27 @@ class ObjectManagerItem:
'REQUEST' -- The current web request.
This object is acquired and should not be set.
'__replaceable__' -- Object ID policy flags
Objects placed in an ObjectManager can have a special property,
'__replaceable__'. This property controls the policy surrounding the
ID assigned to the object. Currently this property can only be
set in Python. There are two flags which can be OR'ed
together:
ObjectManager.REPLACEABLE -- Normally, ObjectManager does not
allow new objects to be created using an ID that is already in use
in the container. If the object has the property '__replaceable__ =
ObjectManager.REPLACEABLE', however, users are permitted to replace
the object with another object having the same ID.
ObjectManager.UNIQUE -- Sometimes you need to be able to set up
a "component" object that won't be overridden purposely nor
accidentally in subfolders. Setting '__replaceable__ =
ObjectManager.UNIQUE' will cause ObjectManager to disallow creation
of objects of the same ID in subfolders. This has the effect of
enforcing a unique object ID policy.
"""
def
title_or_id
(
self
):
...
...
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