Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
force-bdss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adham Hashibon
force-bdss
Commits
34f0baba
Commit
34f0baba
authored
6 years ago
by
Stefano Borini
Browse files
Options
Downloads
Patches
Plain Diff
Removed the workaround as we are using a different strategy with the id
parent
8ad0a7de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!130
Safer plugin import - 2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
force_bdss/base_extension_plugin.py
+2
-7
2 additions, 7 deletions
force_bdss/base_extension_plugin.py
with
2 additions
and
7 deletions
force_bdss/base_extension_plugin.py
+
2
−
7
View file @
34f0baba
...
...
@@ -40,10 +40,10 @@ class BaseExtensionPlugin(Plugin):
#: Reports if the plugin loaded its factories successfully or not.
broken
=
Bool
(
False
)
#: The error
that have been
generated by the instantiations
.
#: The error
message
generated by the
factory
instantiations
error_msg
=
Unicode
()
#: The error t
hat have been
generated by the instantiations.
#: The error t
raceback
generated by the
factory
instantiations.
error_tb
=
Unicode
()
#: A list of all the factory classes to export.
...
...
@@ -122,10 +122,5 @@ class BaseExtensionPlugin(Plugin):
"""
Returns all the factories of the given type
"""
return
[
cls
for
cls
in
self
.
factory_classes
if
issubclass
(
cls
,
type_
)]
def
_id_default
(
self
):
"""
Override for base method that raises a warning we don
'
t want to
show
"""
return
'
%s.%s
'
%
(
type
(
self
).
__module__
,
type
(
self
).
__name__
)
def
__logger_default
(
self
):
return
logging
.
getLogger
(
self
.
__class__
.
__name__
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment