Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Amer
erp5
Commits
984f4616
Commit
984f4616
authored
Jan 25, 2012
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make AttributeError of Portal Type class readable.
parent
d0977b8d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
product/ERP5Type/dynamic/lazy_class.py
product/ERP5Type/dynamic/lazy_class.py
+1
-1
No files found.
product/ERP5Type/dynamic/lazy_class.py
View file @
984f4616
...
@@ -231,7 +231,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
...
@@ -231,7 +231,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
cls
.
loadClass
()
cls
.
loadClass
()
return
getattr
(
cls
,
name
)
return
getattr
(
cls
,
name
)
raise
AttributeError
raise
AttributeError
(
"'%r' has no attribute '%s'"
%
(
cls
,
name
))
def
generatePortalTypeAccessors
(
cls
,
site
,
portal_type_category_list
):
def
generatePortalTypeAccessors
(
cls
,
site
,
portal_type_category_list
):
category_tool
=
getattr
(
site
,
'portal_categories'
,
None
)
category_tool
=
getattr
(
site
,
'portal_categories'
,
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