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
99d4f1e7
Commit
99d4f1e7
authored
Jan 10, 2000
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added online help for Factories and Permissions.
parent
f4d31dee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
lib/python/App/Factory.py
lib/python/App/Factory.py
+6
-4
lib/python/App/Permission.py
lib/python/App/Permission.py
+6
-4
lib/python/App/addFactory.dtml
lib/python/App/addFactory.dtml
+2
-0
lib/python/App/addPermission.dtml
lib/python/App/addPermission.dtml
+2
-0
No files found.
lib/python/App/Factory.py
View file @
99d4f1e7
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
##############################################################################
##############################################################################
__doc__
=
'''Factory objects
__doc__
=
'''Factory objects
$Id: Factory.py,v 1.1
4 1999/11/03 14:35:41 brian
Exp $'''
$Id: Factory.py,v 1.1
5 2000/01/10 20:21:11 amos
Exp $'''
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Acquisition
,
Globals
,
AccessControl
.
Role
import
OFS.SimpleItem
,
Acquisition
,
Globals
,
AccessControl
.
Role
import
Products
,
Product
import
Products
,
Product
...
@@ -108,8 +108,10 @@ class Factory(
...
@@ -108,8 +108,10 @@ class Factory(
)
)
manage_options
=
(
manage_options
=
(
{
'label'
:
'Edit'
,
'action'
:
'manage_main'
},
{
'label'
:
'Edit'
,
'action'
:
'manage_main'
,
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
'help'
:(
'OFSP'
,
'Zope-Factory_Edit.dtml'
)},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
,
'help'
:(
'OFSP'
,
'Zope-Factory_Define-Permissions.dtml'
)},
)
)
def
__init__
(
self
,
id
,
title
,
object_type
,
initial
,
permission
=
''
):
def
__init__
(
self
,
id
,
title
,
object_type
,
initial
,
permission
=
''
):
...
...
lib/python/App/Permission.py
View file @
99d4f1e7
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
##############################################################################
##############################################################################
__doc__
=
'''Zope registerable permissions
__doc__
=
'''Zope registerable permissions
$Id: Permission.py,v 1.
1 1999/07/21 13:15:24 jim
Exp $'''
$Id: Permission.py,v 1.
2 2000/01/10 20:21:11 amos
Exp $'''
__version__
=
'$Revision: 1.
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Acquisition
,
Globals
,
ExtensionClass
,
AccessControl
.
Role
import
OFS.SimpleItem
,
Acquisition
,
Globals
,
ExtensionClass
,
AccessControl
.
Role
...
@@ -98,8 +98,10 @@ class Permission(
...
@@ -98,8 +98,10 @@ class Permission(
icon
=
'p_/Permission_icon'
icon
=
'p_/Permission_icon'
manage_options
=
(
manage_options
=
(
{
'label'
:
'Edit'
,
'action'
:
'manage_main'
},
{
'label'
:
'Edit'
,
'action'
:
'manage_main'
,
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
'help'
:(
'OFSP'
,
'Zope-Permission_Edit.dtml'
)},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
,
'help'
:(
'OFSP'
,
'Zope-Permission_Define-Permissions.dtml'
)},
)
)
def
__init__
(
self
,
id
,
title
,
name
):
def
__init__
(
self
,
id
,
title
,
name
):
...
...
lib/python/App/addFactory.dtml
View file @
99d4f1e7
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
<h2>
Add an Object Factory
</h2>
<h2>
Add an Object Factory
</h2>
<dtml-var
"
HelpSys
.
HelpButton
('
Zope-Factory_Add
.
dtml
')"
>
<P>
A Factory allows you to place entries in the Zope Product add
<P>
A Factory allows you to place entries in the Zope Product add
list.
</P>
list.
</P>
...
...
lib/python/App/addPermission.dtml
View file @
99d4f1e7
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
<h2>
Define a permission
</h2>
<h2>
Define a permission
</h2>
<dtml-var
"
HelpSys
.
HelpButton
('
Zope-Permission_Add
.
dtml
')"
>
<form
action=
"manage_addPermission"
method=
"POST"
>
<form
action=
"manage_addPermission"
method=
"POST"
>
<table
cellspacing=
"2"
>
<table
cellspacing=
"2"
>
...
...
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