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
1
Merge Requests
1
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
Vincent Bechu
erp5
Commits
3858dcdc
Commit
3858dcdc
authored
Jan 26, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZSQLBrain: Assorted style improvements.
parent
0c921888
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
product/ZSQLCatalog/Extensions/zsqlbrain.py
product/ZSQLCatalog/Extensions/zsqlbrain.py
+2
-7
No files found.
product/ZSQLCatalog/Extensions/zsqlbrain.py
View file @
3858dcdc
...
...
@@ -16,17 +16,13 @@ import Acquisition
import
sys
import
traceback
from
ZODB.POSException
import
ConflictError
from
AccessControl
import
ClassSecurityInfo
from
AccessControl.SecurityInfo
import
allow_class
from
zLOG
import
LOG
,
WARNING
try
:
from
Products.CMFActivity.ActiveObject
import
DEFAULT_ACTIVITY
except
ImportError
:
DEFAULT_ACTIVITY
=
None
_MARKER
=
[]
class
ZSQLBrain
(
Acquisition
.
Implicit
):
...
...
@@ -38,8 +34,7 @@ class ZSQLBrain(Acquisition.Implicit):
"""
if
name
.
startswith
(
'__'
)
:
return
None
o
=
self
.
getObject
()
return
getattr
(
o
,
name
,
None
)
return
getattr
(
self
.
getObject
(),
name
,
None
)
def
getURL
(
self
):
return
self
.
path
...
...
@@ -114,7 +109,7 @@ class ZSQLBrain(Acquisition.Implicit):
style url. If no object is found, None is returned.
No exceptions are raised.
"""
script
=
REQUEST
.
script
script
=
REQUEST
.
script
if
not
path
.
startswith
(
script
):
path
=
'%s/%s'
%
(
script
,
path
)
try
:
...
...
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