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
629cbfee
Commit
629cbfee
authored
Jan 10, 2000
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added online help for DTML Documents and DTML Methods.
parent
07eb1db3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
13 deletions
+29
-13
lib/python/OFS/DTMLDocument.py
lib/python/OFS/DTMLDocument.py
+13
-7
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+12
-6
lib/python/OFS/documentAdd.dtml
lib/python/OFS/documentAdd.dtml
+2
-0
lib/python/OFS/methodAdd.dtml
lib/python/OFS/methodAdd.dtml
+2
-0
No files found.
lib/python/OFS/DTMLDocument.py
View file @
629cbfee
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""DTML Document objects."""
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
2
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
InstanceDict
,
TemplateDict
from
ZPublisher.Converters
import
type_converters
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
...
...
@@ -107,12 +107,18 @@ class DTMLDocument(PropertyManager, DTMLMethod):
meta_type
=
'DTML Document'
icon
=
'p_/dtmldoc'
manage_options
=
({
'label'
:
'Edit'
,
'action'
:
'manage_main'
},
{
'label'
:
'Upload'
,
'action'
:
'manage_uploadForm'
},
{
'label'
:
'Properties'
,
'action'
:
'manage_propertiesForm'
},
{
'label'
:
'View'
,
'action'
:
''
},
{
'label'
:
'Proxy'
,
'action'
:
'manage_proxyForm'
},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
manage_options
=
({
'label'
:
'Edit'
,
'action'
:
'manage_main'
,
'help'
:(
'OFSP'
,
'DTML-Document_Edit.dtml'
)},
{
'label'
:
'Upload'
,
'action'
:
'manage_uploadForm'
,
'help'
:(
'OFSP'
,
'DTML-Document_Upload.dtml'
)},
{
'label'
:
'Properties'
,
'action'
:
'manage_propertiesForm'
,
'help'
:(
'OFSP'
,
'DTML-Document_Properties.dtml'
)},
{
'label'
:
'View'
,
'action'
:
''
,
'help'
:(
'OFSP'
,
'DTML-Document_View.dtml'
)},
{
'label'
:
'Proxy'
,
'action'
:
'manage_proxyForm'
,
'help'
:(
'OFSP'
,
'DTML-Document_Proxy.dtml'
)},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
,
'help'
:(
'OFSP'
,
'DTML-Document_Security.dtml'
)},
)
__ac_permissions__
=
(
...
...
lib/python/OFS/DTMLMethod.py
View file @
629cbfee
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""DTML Method objects."""
__version__
=
'$Revision: 1.3
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
7
$'
[
11
:
-
2
]
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
,
lower
...
...
@@ -114,12 +114,18 @@ class DTMLMethod(cDocument, HTML, Acquisition.Implicit, RoleManager,
func_code
.
co_varnames
=
'self'
,
'REQUEST'
,
'RESPONSE'
func_code
.
co_argcount
=
3
manage_options
=
({
'label'
:
'Edit'
,
'action'
:
'manage_main'
},
{
'label'
:
'Upload'
,
'action'
:
'manage_uploadForm'
},
{
'label'
:
'View'
,
'action'
:
''
},
{
'label'
:
'Proxy'
,
'action'
:
'manage_proxyForm'
},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
manage_options
=
({
'label'
:
'Edit'
,
'action'
:
'manage_main'
,
'help'
:(
'OFSP'
,
'DTML-Method_Edit.dtml'
)},
{
'label'
:
'Upload'
,
'action'
:
'manage_uploadForm'
,
'help'
:(
'OFSP'
,
'DTML-Method_Upload.dtml'
)},
{
'label'
:
'View'
,
'action'
:
''
,
'help'
:(
'OFSP'
,
'DTML-Method_View.dtml'
)},
{
'label'
:
'Proxy'
,
'action'
:
'manage_proxyForm'
,
'help'
:(
'OFSP'
,
'DTML-Method_Proxy.dtml'
)},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
,
'help'
:(
'OFSP'
,
'DTML-Method_Security.dtml'
)},
)
__ac_permissions__
=
(
(
'View management screens'
,
(
'manage_editForm'
,
'manage'
,
'manage_main'
,
'manage_uploadForm'
,
...
...
lib/python/OFS/documentAdd.dtml
View file @
629cbfee
...
...
@@ -6,6 +6,8 @@
<BODY
BGCOLOR=
"#FFFFFF"
LINK=
"#000099"
VLINK=
"#555555"
>
<H2>
Add DTML Document
</H2>
<dtml-var
"
HelpSys
.
HelpButton
('
DTML-Document_Add
.
dtml
')"
>
<P>
A DTML Document is used to hold text content. It can contain
HTML, XML, plain text, structured-text, etcetera.
...
...
lib/python/OFS/methodAdd.dtml
View file @
629cbfee
...
...
@@ -6,6 +6,8 @@
<BODY
BGCOLOR=
"#FFFFFF"
LINK=
"#000099"
VLINK=
"#555555"
>
<H2>
Add DTML Method
</H2>
<dtml-var
"
HelpSys
.
HelpButton
('
DTML-Method_Add
.
dtml
')"
>
<P>
A DTML Method is used to hold scripting tags and text content.
It can contain HTML, XML, plain text, structured-text, etcetera.
...
...
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