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
e82c919e
Commit
e82c919e
authored
Feb 26, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First whack at propertysheets.
parent
0c4d2676
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
528 additions
and
2 deletions
+528
-2
lib/python/OFS/PropertyManager.py
lib/python/OFS/PropertyManager.py
+6
-2
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+522
-0
No files found.
lib/python/OFS/PropertyManager.py
View file @
e82c919e
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Property management"""
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
from
ZPublisher.Converters
import
type_converters
...
...
@@ -95,7 +95,7 @@ from Acquisition import Implicit
from
Globals
import
Persistent
from
DateTime
import
DateTime
from
PropertySheets
import
vps
class
PropertyManager
:
"""
...
...
@@ -159,6 +159,9 @@ class PropertyManager:
_properties
=
({
'id'
:
'title'
,
'type'
:
'string'
,
'mode'
:
'w'
},)
_reserved_names
=
()
__propsets__
=
()
propertysheets
=
vps
()
def
valid_property_id
(
self
,
id
):
if
not
id
or
id
[:
1
]
==
'_'
or
(
' '
in
id
)
\
or
hasattr
(
self
.
aq_base
,
id
):
...
...
@@ -316,3 +319,4 @@ class PropertyManager:
if
REQUEST
is
not
None
:
return
self
.
manage_propertiesForm
(
self
,
REQUEST
)
lib/python/OFS/PropertySheets.py
0 → 100644
View file @
e82c919e
This diff is collapsed.
Click to expand it.
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