Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
95bf73db
Commit
95bf73db
authored
Jul 09, 2015
by
eric pellegrini
Browse files
Removed logger settings from preferences
parent
630714f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/Core/Preferences.py
View file @
95bf73db
...
@@ -35,7 +35,6 @@ import collections
...
@@ -35,7 +35,6 @@ import collections
import
ConfigParser
import
ConfigParser
import
os
import
os
from
MDANSE
import
LOGGER
from
MDANSE.Core.Platform
import
PLATFORM
,
PlatformError
from
MDANSE.Core.Platform
import
PLATFORM
,
PlatformError
from
MDANSE.Core.Error
import
Error
from
MDANSE.Core.Error
import
Error
from
MDANSE.Core.Singleton
import
Singleton
from
MDANSE.Core.Singleton
import
Singleton
...
@@ -205,25 +204,6 @@ class InputDirectory(PreferencesItem):
...
@@ -205,25 +204,6 @@ class InputDirectory(PreferencesItem):
raise
PreferencesError
(
'Error when setting input directory %r'
%
value
)
raise
PreferencesError
(
'Error when setting input directory %r'
%
value
)
self
.
_value
=
value
self
.
_value
=
value
class
LoggingLevel
(
PreferencesItem
):
type
=
"logging_level"
def
set_value
(
self
,
value
):
'''
Set the value of the logging level preferences item.
:param value: the logging level
:type value: str
'''
value
=
value
.
lower
()
if
not
value
in
LOGGER
.
levels
.
keys
():
raise
PreferencesError
(
"Invalid logging level"
)
self
.
_value
=
value
class
Preferences
(
object
):
class
Preferences
(
object
):
'''
'''
...
...
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