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
c32389f0
Commit
c32389f0
authored
Jan 11, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed things which used HTMLFile to use DTMLFile.
parent
8c032b2c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
30 deletions
+30
-30
lib/python/App/ApplicationManager.py
lib/python/App/ApplicationManager.py
+9
-9
lib/python/App/CacheManager.py
lib/python/App/CacheManager.py
+4
-4
lib/python/App/Factory.py
lib/python/App/Factory.py
+3
-3
lib/python/App/Management.py
lib/python/App/Management.py
+10
-10
lib/python/App/Permission.py
lib/python/App/Permission.py
+4
-4
No files found.
lib/python/App/ApplicationManager.py
View file @
c32389f0
...
@@ -83,11 +83,11 @@
...
@@ -83,11 +83,11 @@
#
#
##############################################################################
##############################################################################
__doc__
=
"""System management components"""
__doc__
=
"""System management components"""
__version__
=
'$Revision: 1.6
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.6
4
$'
[
11
:
-
2
]
import
sys
,
os
,
time
,
string
,
Globals
,
Acquisition
,
os
,
Undo
import
sys
,
os
,
time
,
string
,
Globals
,
Acquisition
,
os
,
Undo
from
Globals
import
H
TMLFile
from
Globals
import
D
TMLFile
from
OFS.ObjectManager
import
ObjectManager
from
OFS.ObjectManager
import
ObjectManager
from
OFS.Folder
import
Folder
from
OFS.Folder
import
Folder
from
CacheManager
import
CacheManager
from
CacheManager
import
CacheManager
...
@@ -107,7 +107,7 @@ class Fake:
...
@@ -107,7 +107,7 @@ class Fake:
class
DatabaseManager
(
Fake
,
SimpleItem
.
Item
,
Acquisition
.
Implicit
):
class
DatabaseManager
(
Fake
,
SimpleItem
.
Item
,
Acquisition
.
Implicit
):
"""Database management"""
"""Database management"""
manage
=
manage_main
=
H
TMLFile
(
'dtml/dbMain'
,
globals
())
manage
=
manage_main
=
D
TMLFile
(
'dtml/dbMain'
,
globals
())
id
=
'DatabaseManagement'
id
=
'DatabaseManagement'
name
=
title
=
'Database Management'
name
=
title
=
'Database Management'
meta_type
=
'Database Management'
meta_type
=
'Database Management'
...
@@ -128,7 +128,7 @@ Globals.default__class_init__(DatabaseManager)
...
@@ -128,7 +128,7 @@ Globals.default__class_init__(DatabaseManager)
class
VersionManager
(
Fake
,
SimpleItem
.
Item
,
Acquisition
.
Implicit
):
class
VersionManager
(
Fake
,
SimpleItem
.
Item
,
Acquisition
.
Implicit
):
"""Version management"""
"""Version management"""
manage
=
manage_main
=
H
TMLFile
(
'dtml/versionManager'
,
globals
())
manage
=
manage_main
=
D
TMLFile
(
'dtml/versionManager'
,
globals
())
id
=
'Versions'
id
=
'Versions'
name
=
title
=
'Version Management'
name
=
title
=
'Version Management'
meta_type
=
'Version Management'
meta_type
=
'Version Management'
...
@@ -152,7 +152,7 @@ _v_rst=None
...
@@ -152,7 +152,7 @@ _v_rst=None
class
DebugManager
(
Fake
,
SimpleItem
.
Item
,
Acquisition
.
Implicit
):
class
DebugManager
(
Fake
,
SimpleItem
.
Item
,
Acquisition
.
Implicit
):
"""Debug and profiling information"""
"""Debug and profiling information"""
manage
=
manage_main
=
H
TMLFile
(
'dtml/debug'
,
globals
())
manage
=
manage_main
=
D
TMLFile
(
'dtml/debug'
,
globals
())
id
=
'DebugInfo'
id
=
'DebugInfo'
name
=
title
=
'Debug Information'
name
=
title
=
'Debug Information'
meta_type
=
name
meta_type
=
name
...
@@ -166,7 +166,7 @@ class DebugManager(Fake, SimpleItem.Item, Acquisition.Implicit):
...
@@ -166,7 +166,7 @@ class DebugManager(Fake, SimpleItem.Item, Acquisition.Implicit):
)
)
)
)
manage_debug
=
H
TMLFile
(
'dtml/debug'
,
globals
())
manage_debug
=
D
TMLFile
(
'dtml/debug'
,
globals
())
def
refcount
(
self
,
n
=
None
,
t
=
(
type
(
Fake
),
type
(
Acquisition
.
Implicit
))):
def
refcount
(
self
,
n
=
None
,
t
=
(
type
(
Fake
),
type
(
Acquisition
.
Implicit
))):
# return class reference info
# return class reference info
...
@@ -230,7 +230,7 @@ class DebugManager(Fake, SimpleItem.Item, Acquisition.Implicit):
...
@@ -230,7 +230,7 @@ class DebugManager(Fake, SimpleItem.Item, Acquisition.Implicit):
# Profiling support
# Profiling support
manage_profile
=
H
TMLFile
(
'dtml/profile'
,
globals
())
manage_profile
=
D
TMLFile
(
'dtml/profile'
,
globals
())
def
manage_profile_stats
(
self
,
sort
=
'time'
,
limit
=
200
):
def
manage_profile_stats
(
self
,
sort
=
'time'
,
limit
=
200
):
"""Return profile data if available"""
"""Return profile data if available"""
...
@@ -259,8 +259,8 @@ class ApplicationManager(Folder,CacheManager):
...
@@ -259,8 +259,8 @@ class ApplicationManager(Folder,CacheManager):
Versions
=
VersionManager
()
Versions
=
VersionManager
()
DebugInfo
=
DebugManager
()
DebugInfo
=
DebugManager
()
manage
=
manage_main
=
H
TMLFile
(
'dtml/cpContents'
,
globals
())
manage
=
manage_main
=
D
TMLFile
(
'dtml/cpContents'
,
globals
())
manage_undoForm
=
H
TMLFile
(
'dtml/undo'
,
globals
())
manage_undoForm
=
D
TMLFile
(
'dtml/undo'
,
globals
())
def
version_txt
(
self
):
def
version_txt
(
self
):
if
not
hasattr
(
self
,
'_v_version_txt'
):
if
not
hasattr
(
self
,
'_v_version_txt'
):
...
...
lib/python/App/CacheManager.py
View file @
c32389f0
...
@@ -85,8 +85,8 @@
...
@@ -85,8 +85,8 @@
__doc__
=
'''Cache management support
__doc__
=
'''Cache management support
$Id: CacheManager.py,v 1.
19 2001/01/08 22:46:56 brian
Exp $'''
$Id: CacheManager.py,v 1.
20 2001/01/11 22:07:02 chrism
Exp $'''
__version__
=
'$Revision: 1.
19
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
20
$'
[
11
:
-
2
]
import
Globals
,
time
,
sys
import
Globals
,
time
,
sys
...
@@ -98,8 +98,8 @@ class CacheManager:
...
@@ -98,8 +98,8 @@ class CacheManager:
_vcache_age
=
60
_vcache_age
=
60
_vcache_size
=
400
_vcache_size
=
400
manage_cacheParameters
=
Globals
.
H
TMLFile
(
'dtml/cacheParameters'
,
globals
())
manage_cacheParameters
=
Globals
.
D
TMLFile
(
'dtml/cacheParameters'
,
globals
())
manage_cacheGC
=
Globals
.
H
TMLFile
(
'dtml/cacheGC'
,
globals
())
manage_cacheGC
=
Globals
.
D
TMLFile
(
'dtml/cacheGC'
,
globals
())
def
cache_length
(
self
):
def
cache_length
(
self
):
try
:
db
=
self
.
_p_jar
.
db
()
try
:
db
=
self
.
_p_jar
.
db
()
...
...
lib/python/App/Factory.py
View file @
c32389f0
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
##############################################################################
##############################################################################
__doc__
=
'''Factory objects
__doc__
=
'''Factory objects
$Id: Factory.py,v 1.2
3 2001/01/08 22:46:56 brian
Exp $'''
$Id: Factory.py,v 1.2
4 2001/01/11 22:08:38 chrism
Exp $'''
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
4
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Acquisition
,
Globals
,
AccessControl
.
Role
import
OFS.SimpleItem
,
Acquisition
,
Globals
,
AccessControl
.
Role
import
Products
,
Product
import
Products
,
Product
...
@@ -171,7 +171,7 @@ class Factory(
...
@@ -171,7 +171,7 @@ class Factory(
product
.
aq_acquire
(
'_manage_remove_product_meta_type'
)(
product
.
aq_acquire
(
'_manage_remove_product_meta_type'
)(
product
,
self
.
id
,
self
.
object_type
)
product
,
self
.
id
,
self
.
object_type
)
manage_main
=
Globals
.
H
TMLFile
(
'dtml/editFactory'
,
globals
())
manage_main
=
Globals
.
D
TMLFile
(
'dtml/editFactory'
,
globals
())
def
index_html
(
self
,
REQUEST
):
def
index_html
(
self
,
REQUEST
):
" "
" "
...
...
lib/python/App/Management.py
View file @
c32389f0
...
@@ -85,13 +85,13 @@
...
@@ -85,13 +85,13 @@
"""Standard management interface support
"""Standard management interface support
$Id: Management.py,v 1.3
8 2001/01/09 23:42:07 evan
Exp $"""
$Id: Management.py,v 1.3
9 2001/01/11 22:13:14 chrism
Exp $"""
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
9
$'
[
11
:
-
2
]
import
sys
,
Globals
,
ExtensionClass
,
urllib
import
sys
,
Globals
,
ExtensionClass
,
urllib
from
Dialogs
import
MessageDialog
from
Dialogs
import
MessageDialog
from
Globals
import
HTMLFile
,
DTMLFile
from
Globals
import
DTMLFile
from
string
import
split
,
join
,
find
from
string
import
split
,
join
,
find
from
AccessControl
import
getSecurityManager
from
AccessControl
import
getSecurityManager
...
@@ -207,12 +207,12 @@ class Navigation(ExtensionClass.Base):
...
@@ -207,12 +207,12 @@ class Navigation(ExtensionClass.Base):
)),
)),
)
)
manage
=
H
TMLFile
(
'dtml/manage'
,
globals
())
manage
=
D
TMLFile
(
'dtml/manage'
,
globals
())
manage_menu
=
H
TMLFile
(
'dtml/menu'
,
globals
())
manage_menu
=
D
TMLFile
(
'dtml/menu'
,
globals
())
manage_top_frame
=
H
TMLFile
(
'dtml/manage_top_frame'
,
globals
())
manage_top_frame
=
D
TMLFile
(
'dtml/manage_top_frame'
,
globals
())
manage_page_header
=
H
TMLFile
(
'dtml/manage_page_header'
,
globals
())
manage_page_header
=
D
TMLFile
(
'dtml/manage_page_header'
,
globals
())
manage_page_footer
=
H
TMLFile
(
'dtml/manage_page_footer'
,
globals
())
manage_page_footer
=
D
TMLFile
(
'dtml/manage_page_footer'
,
globals
())
manage_form_title__roles__
=
None
manage_form_title__roles__
=
None
manage_form_title
=
DTMLFile
(
'dtml/manage_form_title'
,
globals
(),
manage_form_title
=
DTMLFile
(
'dtml/manage_form_title'
,
globals
(),
...
@@ -223,7 +223,7 @@ class Navigation(ExtensionClass.Base):
...
@@ -223,7 +223,7 @@ class Navigation(ExtensionClass.Base):
varnames
=
(
'form_title'
,
'help_product'
,
'help_topic'
)
)
varnames
=
(
'form_title'
,
'help_product'
,
'help_topic'
)
)
manage_copyright__roles__
=
None
manage_copyright__roles__
=
None
manage_copyright
=
H
TMLFile
(
'dtml/copyright'
,
globals
())
manage_copyright
=
D
TMLFile
(
'dtml/copyright'
,
globals
())
manage_logout__roles__
=
None
manage_logout__roles__
=
None
...
@@ -238,7 +238,7 @@ Sorry, this is not yet implemented.
...
@@ -238,7 +238,7 @@ Sorry, this is not yet implemented.
setattr
(
Navigation
,
'manage_page_style.css'
,
setattr
(
Navigation
,
'manage_page_style.css'
,
H
TMLFile
(
'dtml/manage_page_style.css'
,
globals
())
D
TMLFile
(
'dtml/manage_page_style.css'
,
globals
())
)
)
setattr
(
Navigation
,
'manage_page_style.css__roles__'
,
None
)
setattr
(
Navigation
,
'manage_page_style.css__roles__'
,
None
)
...
...
lib/python/App/Permission.py
View file @
c32389f0
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
##############################################################################
##############################################################################
__doc__
=
'''Zope registerable permissions
__doc__
=
'''Zope registerable permissions
$Id: Permission.py,v 1.
5 2001/01/08 22:46:56 brian
Exp $'''
$Id: Permission.py,v 1.
6 2001/01/11 22:17:15 chrism
Exp $'''
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Acquisition
,
Globals
,
ExtensionClass
,
AccessControl
.
Role
import
OFS.SimpleItem
,
Acquisition
,
Globals
,
ExtensionClass
,
AccessControl
.
Role
...
@@ -138,7 +138,7 @@ class Permission(
...
@@ -138,7 +138,7 @@ class Permission(
product
.
aq_acquire
(
'_manage_remove_product_permission'
)(
product
.
aq_acquire
(
'_manage_remove_product_permission'
)(
product
,
self
.
name
)
product
,
self
.
name
)
manage_main
=
Globals
.
H
TMLFile
(
'dtml/editPermission'
,
globals
())
manage_main
=
Globals
.
D
TMLFile
(
'dtml/editPermission'
,
globals
())
index_html
=
None
index_html
=
None
...
@@ -153,7 +153,7 @@ class PermissionManager(ExtensionClass.Base):
...
@@ -153,7 +153,7 @@ class PermissionManager(ExtensionClass.Base):
'name'
:
Permission
.
meta_type
,
'action'
:
'manage_addPermissionForm'
'name'
:
Permission
.
meta_type
,
'action'
:
'manage_addPermissionForm'
},
},
manage_addPermissionForm
=
Globals
.
H
TMLFile
(
'dtml/addPermission'
,
globals
())
manage_addPermissionForm
=
Globals
.
D
TMLFile
(
'dtml/addPermission'
,
globals
())
def
manage_addPermission
(
def
manage_addPermission
(
self
,
id
,
title
,
permission
,
REQUEST
=
None
):
self
,
id
,
title
,
permission
,
REQUEST
=
None
):
' '
' '
...
...
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