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
381e7681
Commit
381e7681
authored
Jan 11, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed things that use HTMLFile to DTMLFile.
parent
82b5d4a6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
24 deletions
+24
-24
lib/python/OFS/CopySupport.py
lib/python/OFS/CopySupport.py
+2
-2
lib/python/OFS/DTMLDocument.py
lib/python/OFS/DTMLDocument.py
+3
-3
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+6
-6
lib/python/OFS/FindSupport.py
lib/python/OFS/FindSupport.py
+6
-6
lib/python/OFS/Folder.py
lib/python/OFS/Folder.py
+4
-4
lib/python/OFS/History.py
lib/python/OFS/History.py
+3
-3
No files found.
lib/python/OFS/CopySupport.py
View file @
381e7681
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__doc__
=
"""Copy interface"""
__version__
=
'$Revision: 1.6
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.6
3
$'
[
11
:
-
2
]
import
sys
,
string
,
Globals
,
Moniker
,
tempfile
,
ExtensionClass
from
marshal
import
loads
,
dumps
...
...
@@ -272,7 +272,7 @@ class CopyContainer(ExtensionClass.Base):
return
''
manage_renameForm
=
Globals
.
H
TMLFile
(
'dtml/renameForm'
,
globals
())
manage_renameForm
=
Globals
.
D
TMLFile
(
'dtml/renameForm'
,
globals
())
def
manage_renameObjects
(
self
,
ids
,
new_ids
,
REQUEST
=
None
):
"""Rename several sub-objects"""
...
...
lib/python/OFS/DTMLDocument.py
View file @
381e7681
...
...
@@ -84,10 +84,10 @@
##############################################################################
"""DTML Document objects."""
__version__
=
'$Revision: 1.4
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
1
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
InstanceDict
,
TemplateDict
from
ZPublisher.Converters
import
type_converters
from
Globals
import
HTML
,
H
TMLFile
,
MessageDialog
from
Globals
import
HTML
,
D
TMLFile
,
MessageDialog
from
OFS.content_types
import
guess_content_type
from
DTMLMethod
import
DTMLMethod
,
decapitate
from
PropertyManager
import
PropertyManager
...
...
@@ -200,7 +200,7 @@ This is the <dtml-var id> Document.
</p>
<dtml-var standard_html_footer>"""
addForm
=
H
TMLFile
(
'dtml/documentAdd'
,
globals
())
addForm
=
D
TMLFile
(
'dtml/documentAdd'
,
globals
())
def
addDTMLDocument
(
self
,
id
,
title
=
''
,
file
=
''
,
REQUEST
=
None
,
submit
=
None
):
"""Add a DTML Document object with the contents of file. If
...
...
lib/python/OFS/DTMLMethod.py
View file @
381e7681
...
...
@@ -84,10 +84,10 @@
##############################################################################
"""DTML Method objects."""
__version__
=
'$Revision: 1.5
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
8
$'
[
11
:
-
2
]
import
History
from
Globals
import
HTML
,
H
TMLFile
,
MessageDialog
from
Globals
import
HTML
,
D
TMLFile
,
MessageDialog
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
,
lower
from
SimpleItem
import
Item_w__name__
,
pretty_tb
from
OFS.content_types
import
guess_content_type
...
...
@@ -229,7 +229,7 @@ class DTMLMethod(HTML, Acquisition.Implicit, RoleManager,
kw
[
key
]
=
val
self
.
ZCacheable_set
(
result
,
keywords
=
kw
)
ZCacheable_configHTML
=
H
TMLFile
(
'dtml/cacheNamespaceKeys'
,
globals
())
ZCacheable_configHTML
=
D
TMLFile
(
'dtml/cacheNamespaceKeys'
,
globals
())
def
getCacheNamespaceKeys
(
self
):
'''
...
...
@@ -260,13 +260,13 @@ class DTMLMethod(HTML, Acquisition.Implicit, RoleManager,
def
validate
(
self
,
inst
,
parent
,
name
,
value
,
md
):
return
getSecurityManager
().
validate
(
inst
,
parent
,
name
,
value
)
manage_editForm
=
H
TMLFile
(
'dtml/documentEdit'
,
globals
())
manage_editForm
=
D
TMLFile
(
'dtml/documentEdit'
,
globals
())
# deprecated!
manage_uploadForm
=
manage_editForm
manage
=
manage_main
=
manage_editDocument
=
manage_editForm
manage_proxyForm
=
H
TMLFile
(
'dtml/documentProxy'
,
globals
())
manage_proxyForm
=
D
TMLFile
(
'dtml/documentProxy'
,
globals
())
_size_changes
=
{
'Bigger'
:
(
5
,
5
),
...
...
@@ -425,7 +425,7 @@ in the <dtml-var title_and_id> Folder.
</p>
<dtml-var standard_html_footer>"""
addForm=
H
TMLFile('dtml/methodAdd', globals())
addForm=
D
TMLFile('dtml/methodAdd', globals())
def addDTMLMethod(self, id, title='', file='', REQUEST=None, submit=None):
"""Add a DTML Method object with the contents of file. If
...
...
lib/python/OFS/FindSupport.py
View file @
381e7681
...
...
@@ -83,13 +83,13 @@
#
##############################################################################
__doc__
=
"""Find support"""
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
time
,
Globals
,
ExtensionClass
from
DocumentTemplate.DT_Util
import
Eval
,
expr_globals
from
AccessControl.Permission
import
name_trans
from
Globals
import
H
TMLFile
from
Globals
import
D
TMLFile
from
DocumentTemplate.DT_Util
import
InstanceDict
,
TemplateDict
from
DateTime
import
DateTime
from
string
import
find
...
...
@@ -99,14 +99,14 @@ class FindSupport(ExtensionClass.Base):
"""Find support for Zope Folders"""
#findframe is deprecated
manage_findFrame
=
H
TMLFile
(
'dtml/findFrame'
,
globals
())
manage_findForm
=
H
TMLFile
(
'dtml/findForm'
,
globals
(),
manage_findFrame
=
D
TMLFile
(
'dtml/findFrame'
,
globals
())
manage_findForm
=
D
TMLFile
(
'dtml/findForm'
,
globals
(),
management_view
=
'Find'
)
manage_findAdv
=
H
TMLFile
(
'dtml/findAdv'
,
globals
(),
manage_findAdv
=
D
TMLFile
(
'dtml/findAdv'
,
globals
(),
management_view
=
'Find'
,
help_topic
=
'Find_Advanced.stx'
,
help_product
=
'OFSP'
)
manage_findResult
=
H
TMLFile
(
'dtml/findResult'
,
globals
(),
manage_findResult
=
D
TMLFile
(
'dtml/findResult'
,
globals
(),
management_view
=
'Find'
)
__ac_permissions__
=
(
...
...
lib/python/OFS/Folder.py
View file @
381e7681
...
...
@@ -87,18 +87,18 @@
Folders are the basic container objects and are analogous to directories.
$Id: Folder.py,v 1.9
2 2001/01/08 22:46:58 brian
Exp $"""
$Id: Folder.py,v 1.9
3 2001/01/11 21:11:04 chrism
Exp $"""
__version__
=
'$Revision: 1.9
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.9
3
$'
[
11
:
-
2
]
import
Globals
,
SimpleItem
,
ObjectManager
,
PropertyManager
import
AccessControl.Role
,
webdav
.
Collection
,
FindSupport
from
Globals
import
H
TMLFile
from
Globals
import
D
TMLFile
from
AccessControl
import
getSecurityManager
manage_addFolderForm
=
H
TMLFile
(
'dtml/folderAdd'
,
globals
())
manage_addFolderForm
=
D
TMLFile
(
'dtml/folderAdd'
,
globals
())
def
manage_addFolder
(
self
,
id
,
title
=
''
,
createPublic
=
0
,
...
...
lib/python/OFS/History.py
View file @
381e7681
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Object Histories"""
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
import
Globals
,
ndiff
,
ExtensionClass
from
DateTime
import
DateTime
...
...
@@ -170,7 +170,7 @@ class Historical(ExtensionClass.Base):
},
)
manage_change_history_page
=
Globals
.
H
TMLFile
(
manage_change_history_page
=
Globals
.
D
TMLFile
(
'dtml/history'
,
globals
(),
HistoryBatchSize
=
20
,
first_transaction
=
0
,
last_transaction
=
20
)
...
...
@@ -222,7 +222,7 @@ class Historical(ExtensionClass.Base):
def
manage_afterHistoryCopy
(
self
):
pass
# ? (Hook)
_manage_historyComparePage
=
Globals
.
H
TMLFile
(
_manage_historyComparePage
=
Globals
.
D
TMLFile
(
'dtml/historyCompare'
,
globals
(),
management_view
=
'History'
)
def
manage_historyCompare
(
self
,
rev1
,
rev2
,
REQUEST
,
historyComparisonResults
=
''
):
...
...
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