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
6773f409
Commit
6773f409
authored
Apr 12, 2002
by
Casey Duncan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for Bug#96: Narrower/Wider buttons now work in CSS browsers. This is only
in affect for DTML thus far.
parent
e3627b79
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
doc/CHANGES.txt
doc/CHANGES.txt
+4
-0
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+3
-3
lib/python/OFS/dtml/documentEdit.dtml
lib/python/OFS/dtml/documentEdit.dtml
+6
-7
No files found.
doc/CHANGES.txt
View file @
6773f409
...
...
@@ -74,6 +74,10 @@ Zope Changes
- New implementation of ZODB object cache.
Bugs:
- Fixed bug #96: Narrower/Wider buttons now work on both CSS and non-CSS
compliant browsers. This allows better control for browsers that have a
hard time knowing what 100% means.
- Fix for Collector #319: filtered_manage_options didn't
correctly filter tabs based on permission.
...
...
lib/python/OFS/DTMLMethod.py
View file @
6773f409
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""DTML Method objects."""
__version__
=
'$Revision: 1.7
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.7
6
$'
[
11
:
-
2
]
import
History
from
Globals
import
HTML
,
DTMLFile
,
MessageDialog
...
...
@@ -222,7 +222,7 @@ class DTMLMethod(RestrictedDTML, HTML, Acquisition.Implicit, RoleManager,
dr
,
dc
=
self
.
_size_changes
[
SUBMIT
]
rows
=
max
(
1
,
int
(
dtpref_rows
)
+
dr
)
cols
=
max
(
40
,
int
(
dtpref_cols
)
+
dc
)
cols
=
max
(
35
,
int
(
dtpref_cols
)
+
dc
)
e
=
(
DateTime
(
'GMT'
)
+
365
).
rfc822
()
resp
=
REQUEST
[
'RESPONSE'
]
resp
.
setCookie
(
'dtpref_rows'
,
str
(
rows
),
path
=
'/'
,
expires
=
e
)
...
...
@@ -231,7 +231,7 @@ class DTMLMethod(RestrictedDTML, HTML, Acquisition.Implicit, RoleManager,
self
,
REQUEST
,
title
=
title
,
__str__
=
self
.
quotedHTML
(
data
),
dtpref_cols
=
cols
,
dtpref_rows
=
rows
)
def
manage_edit
(
self
,
data
,
title
,
SUBMIT
=
'Change'
,
dtpref_cols
=
'
5
0'
,
def
manage_edit
(
self
,
data
,
title
,
SUBMIT
=
'Change'
,
dtpref_cols
=
'
7
0'
,
dtpref_rows
=
'20'
,
REQUEST
=
None
):
"""
Replaces a Documents contents with Data, Title with Title.
...
...
lib/python/OFS/dtml/documentEdit.dtml
View file @
6773f409
...
...
@@ -25,13 +25,12 @@ the <em>browse</em> button to select a local file to upload.
<tr>
<td align="left" valign="top" colspan="2">
<div style="width: 100%;">
<textarea name="data:text" wrap="off" style="width: 100%;"<dtml-if
dtpref_cols> cols="<dtml-var dtpref_cols>"<dtml-else
> cols="50"</dtml-if><dtml-if dtpref_rows> rows="<dtml-var
dtpref_rows>"<dtml-else> rows="20"</dtml-if>><dtml-var
__str__></textarea>
</div>
<dtml-let cols="_.int(REQUEST.get('dtpref_cols',70))"
width="_.min(_.int(_.float(dtpref_cols)/70.0 * 100.0),100)">
<textarea name="data:text" wrap="off" style="width:&dtml-width;%"
cols="&dtml-cols;" rows="<dtml-var dtpref_rows missing="20">"
><dtml-var __str__></textarea>
</dtml-let>
</td>
</tr>
</dtml-with>
...
...
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