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
b740fcaa
Commit
b740fcaa
authored
May 03, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a method to get base class names. And prettified a name.
parent
cb8ffc59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
lib/python/ZClasses/ZClass.py
lib/python/ZClasses/ZClass.py
+11
-1
No files found.
lib/python/ZClasses/ZClass.py
View file @
b740fcaa
...
@@ -338,6 +338,14 @@ class ZClass(OFS.SimpleItem.SimpleItem):
...
@@ -338,6 +338,14 @@ class ZClass(OFS.SimpleItem.SimpleItem):
def
tpValues
(
self
):
def
tpValues
(
self
):
return
self
.
propertysheets
.
common
,
self
.
propertysheets
.
methods
return
self
.
propertysheets
.
common
,
self
.
propertysheets
.
methods
def
ZClassBaseClassNames
(
self
):
r
=
[]
for
c
in
self
.
_zbases
:
if
hasattr
(
c
,
'id'
):
r
.
append
(
c
.
id
)
elif
hasattr
(
c
,
'__name__'
):
r
.
append
(
c
.
__name__
)
return
r
class
ZClassSheets
(
OFS
.
PropertySheets
.
PropertySheets
):
class
ZClassSheets
(
OFS
.
PropertySheets
.
PropertySheets
):
"Manage a collection of property sheets that provide ZClass management"
"Manage a collection of property sheets that provide ZClass management"
...
@@ -358,7 +366,7 @@ class ZClassSheets(OFS.PropertySheets.PropertySheets):
...
@@ -358,7 +366,7 @@ class ZClassSheets(OFS.PropertySheets.PropertySheets):
self
.
common
=
Property
.
ZInstanceSheetsSheet
(
'common'
)
self
.
common
=
Property
.
ZInstanceSheetsSheet
(
'common'
)
class
Z
StandardSheets
:
class
Z
Object
:
manage_options
=
(
manage_options
=
(
{
'label'
:
'Basic'
,
'action'
:
'propertysheets/basic/manage'
},
{
'label'
:
'Basic'
,
'action'
:
'propertysheets/basic/manage'
},
...
@@ -369,6 +377,8 @@ class ZStandardSheets:
...
@@ -369,6 +377,8 @@ class ZStandardSheets:
'action'
:
'propertysheets/permissions/manage'
},
'action'
:
'propertysheets/permissions/manage'
},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
)
)
ZStandardSheets
=
ZObject
def
findActions
(
klass
,
found
):
def
findActions
(
klass
,
found
):
for
b
in
klass
.
__bases__
:
for
b
in
klass
.
__bases__
:
...
...
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