|
@@ -1,6 +1,7 @@
|
1
|
1
|
#-*- coding: utf-8 -*-
|
2
|
2
|
|
3
|
3
|
import importlib
|
|
4
|
+import warnings
|
4
|
5
|
|
5
|
6
|
from lodel.plugin import Plugin
|
6
|
7
|
from lodel import logger
|
|
@@ -520,7 +521,7 @@ raised when trying to import Datasource"
|
520
|
521
|
|
521
|
522
|
## @brief Delete instances of LeObject
|
522
|
523
|
#@param uids a list: lists of (fieldname, fieldvalue), with fieldname in cls._uids
|
523
|
|
- #@returns the number of deleted items
|
|
524
|
+ #@returns the
|
524
|
525
|
@classmethod
|
525
|
526
|
def delete_bundle(cls, query_filters):
|
526
|
527
|
deleted = 0
|
|
@@ -533,7 +534,8 @@ raised when trying to import Datasource"
|
533
|
534
|
result = query.execute()
|
534
|
535
|
except Exception as err:
|
535
|
536
|
raise err
|
536
|
|
- deleted += result
|
|
537
|
+ if not result is None:
|
|
538
|
+ deleted += result
|
537
|
539
|
return deleted
|
538
|
540
|
|
539
|
541
|
|