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
197cce8d
Commit
197cce8d
authored
Sep 25, 1997
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed property typing error
parent
e9e1c06c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+11
-5
No files found.
lib/python/OFS/ObjectManager.py
View file @
197cce8d
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.1
0 1997/09/18 22:48:45
brian Exp $"""
$Id: ObjectManager.py,v 1.1
1 1997/09/25 14:30:39
brian Exp $"""
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
from
SingleThreadedTransaction
import
Persistent
...
...
@@ -14,6 +14,7 @@ from Acquisition import Acquirer
from
string
import
find
,
join
,
lower
from
urllib
import
quote
from
DocumentTemplate
import
html_quote
from
cgi_module_publisher
import
type_converters
class
ObjectManager
(
Acquirer
,
Management
,
Persistent
):
"""Generic object manager
...
...
@@ -295,6 +296,8 @@ class ObjectManager(Acquirer,Management,Persistent):
def
manage_addProperty
(
self
,
id
,
value
,
type
,
REQUEST
):
"""Add a new property (www)"""
try
:
value
=
type_converters
[
type
](
value
)
except
:
pass
self
.
_setProperty
(
id
,
value
,
type
)
return
self
.
manage_propertiesForm
(
self
,
REQUEST
)
...
...
@@ -332,9 +335,9 @@ class ObjectManager(Acquirer,Management,Persistent):
%
(
n
,
t
,
html_quote
(
v
)))
def
_booleanInput
(
self
,
n
,
t
,
v
):
if
v
:
v
=
"CHECKE
T
"
if
v
:
v
=
"CHECKE
D
"
else
:
v
=
''
return
(
'<INPUT TYPE=
"CHECKBOX" NAME="%s:%s" SIZE="50" %s></TD>'
return
(
'<INPUT TYPE="CHECKBOX" NAME="%s:%s" SIZE="50" %s></TD>'
%
(
n
,
t
,
v
))
def
_selectInput
(
self
,
n
,
t
,
v
):
...
...
@@ -367,7 +370,7 @@ class ObjectManager(Acquirer,Management,Persistent):
'regexs'
:
_stringInput
,
'Regexs'
:
_stringInput
,
'tokens'
:
_stringInput
,
'boolean'
:
_booleanInput
,
#
'boolean': _booleanInput,
}
propertyTypes
=
map
(
lambda
key
:
(
lower
(
key
),
key
),
_inputMap
.
keys
())
...
...
@@ -391,6 +394,9 @@ class ObjectManager(Acquirer,Management,Persistent):
##############################################################################
#
# $Log: ObjectManager.py,v $
# Revision 1.11 1997/09/25 14:30:39 brian
# Fixed property typing error
#
# Revision 1.10 1997/09/18 22:48:45 brian
# Deletable object filters added
#
...
...
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