Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
be625c9c
Commit
be625c9c
authored
2 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: add deprecation warning
parent
4d31157e
No related branches found
No related tags found
1 merge request
!91
Release 0.3
Pipeline
#30605
passed with warnings
2 years ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caoscrawler/crawl.py
+7
-0
7 additions, 0 deletions
src/caoscrawler/crawl.py
with
7 additions
and
0 deletions
src/caoscrawler/crawl.py
+
7
−
0
View file @
be625c9c
...
...
@@ -42,6 +42,7 @@ import argparse
from
argparse
import
RawTextHelpFormatter
import
caosdb
as
db
from
caosadvancedtools.crawler
import
Crawler
as
OldCrawler
import
warnings
from
caosdb.common.datatype
import
is_reference
from
.stores
import
GeneralStore
,
RecordStore
from
.identified_cache
import
IdentifiedCache
...
...
@@ -382,6 +383,12 @@ class Crawler(object):
# More converters from definition file:
if
"
Converters
"
in
definition
:
for
key
,
entry
in
definition
[
"
Converters
"
].
items
():
if
key
in
[
"
Dict
"
,
"
DictTextElement
"
,
"
DictIntegerElement
"
,
"
DictBooleanElement
"
,
"
DictDictElement
"
,
"
DictListElement
"
,
"
DictFloatElement
"
]:
warnings
.
warn
(
DeprecationWarning
(
f
"
{
key
}
is deprecated. Please use the new
"
"
variant; without
'
Dict
'
prefix or
"
"'
DictElement
'
in case of
'
Dict
'"
))
converter_registry
[
key
]
=
{
"
converter
"
:
entry
[
"
converter
"
],
"
package
"
:
entry
[
"
package
"
]
...
...
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