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
76f3943b
Commit
76f3943b
authored
Nov 18, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in handling 'tokens' properties and got rid of regex
properties.
parent
369c3eef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+13
-7
No files found.
lib/python/OFS/ObjectManager.py
View file @
76f3943b
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.
19 1997/11/11 21:25:29 brian
Exp $"""
$Id: ObjectManager.py,v 1.
20 1997/11/18 14:10:50 jim
Exp $"""
__version__
=
'$Revision: 1.
19
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
20
$'
[
11
:
-
2
]
from
SingleThreadedTransaction
import
Persistent
...
...
@@ -387,6 +387,12 @@ class ObjectManager(Acquirer,Management,Persistent):
'<TEXTAREA NAME="%s:lines" ROWS="10" COLS="40">%s</TEXTAREA>'
%
(
n
,
v
))
def
_tokensInput
(
self
,
n
,
t
,
v
):
try
:
v
=
html_quote
(
join
(
v
,
' '
))
except
:
v
=
''
return
(
'<INPUT NAME="%s:%s" SIZE="40" VALUE="%s"></TD>'
%
(
n
,
t
,
html_quote
(
v
)))
def
_textInput
(
self
,
n
,
t
,
v
):
return
(
'<TEXTAREA NAME="%s" ROWS="10" COLS="40">%s</TEXTAREA>'
%
(
n
,
html_quote
(
v
)))
...
...
@@ -399,11 +405,7 @@ class ObjectManager(Acquirer,Management,Persistent):
'lines'
:
_linesInput
,
'text'
:
_textInput
,
'date'
:
_defaultInput
,
'regex'
:
_stringInput
,
'Regex'
:
_stringInput
,
'regexs'
:
_stringInput
,
'Regexs'
:
_stringInput
,
'tokens'
:
_stringInput
,
'tokens'
:
_tokensInput
,
# 'boolean': _booleanInput,
}
...
...
@@ -449,6 +451,10 @@ class ObjectManager(Acquirer,Management,Persistent):
##############################################################################
#
# $Log: ObjectManager.py,v $
# Revision 1.20 1997/11/18 14:10:50 jim
# Fixed a bug in handling 'tokens' properties and got rid of regex
# properties.
#
# Revision 1.19 1997/11/11 21:25:29 brian
# Added copy/paste support, restricted unpickling, fixed DraftFolder bug
#
...
...
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