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
a7a1f804
Commit
a7a1f804
authored
Jun 07, 2002
by
Casey Duncan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code consistency cleanup
parent
537a21a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/python/Products/PageTemplates/ZopePageTemplate.py
lib/python/Products/PageTemplates/ZopePageTemplate.py
+2
-2
No files found.
lib/python/Products/PageTemplates/ZopePageTemplate.py
View file @
a7a1f804
...
...
@@ -15,7 +15,7 @@
Zope object encapsulating a Page Template.
"""
__version__
=
'$Revision: 1.4
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
1
$'
[
11
:
-
2
]
import
os
,
AccessControl
,
Acquisition
,
sys
from
types
import
StringType
...
...
@@ -149,7 +149,7 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable,
cols
=
max
(
cols
,
25
)
# Min width 25%
cols
=
max
(
cols
,
100
)
# Max width 100%
cols
=
"%d%%"
%
cols
# Add percent sign back on
elif
type
(
width
)
is
StringType
and
dtpref_cols
[
-
1
:]
==
"%"
:
elif
type
(
width
)
is
StringType
and
dtpref_cols
.
endswith
(
'%'
)
:
cols
=
int
(
dtpref_cols
[:
-
1
])
cols
=
max
(
cols
+
szchw
.
get
(
width
,
0
),
25
)
# Min width 25%
cols
=
min
(
cols
,
100
)
# Max width 100%
...
...
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