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
e5f18e26
Commit
e5f18e26
authored
Apr 09, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for selection and multiple-selection property types.
parent
756526d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
lib/python/OFS/properties.dtml
lib/python/OFS/properties.dtml
+23
-0
No files found.
lib/python/OFS/properties.dtml
View file @
e5f18e26
...
...
@@ -56,6 +56,27 @@ values and click "Save Changes".
<textarea
name=
"<!--#var id-->:lines"
rows=
"6"
cols=
"35"
>
<!--#in
"getProperty(id)"--><!--#var sequence-item-->
<!--#endin-->
</textarea>
<!--#elif "type=='selection'"-->
<!--#if "_.has_key(select_variable)"-->
<select
name=
"<!--#var id-->"
>
<!--#in "_[select_variable]"-->
<option
<!
--#if
"
_
['
sequence-item
'
]=
=getProperty(id)"--
>
SELECTED
<!--#/if-->
>
<!--#var sequence-item-->
</option>
<!--#/in-->
</select>
<!--#else-->
No value for
<!--#var select_variable-->
<!--#/if-->
<!--#elif "type=='multiple selection'"-->
<!--#if selectvariable-->
<select
name=
"<!--#var id-->:list"
multiple
size=
"<!--#var "
_
.
max
(
7
,
len
(
_
[
select_variable
]))"
--
>
">
<!--#in "_[select_variable]"-->
<option>
<!--#var sequence-item-->
</option>
<!--#/in-->
</select>
<!--#/if-->
<!--#else-->
<em>
Unknown property type
</em>
<!--#endif-->
...
...
@@ -115,6 +136,8 @@ button.
<option
SELECTED
>
string
</option>
<option>
text
</option>
<option>
tokens
</option>
<option>
selection
</option>
<option>
multiple selection
</option>
</select>
</td>
</tr>
...
...
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