Add help entry to project_rename utility.

Also merge in latest master changes to devel branch.
This commit is contained in:
Griatch 2017-07-13 20:31:30 +02:00
commit 6d846c6c82
16 changed files with 492 additions and 124 deletions

View file

@ -220,7 +220,7 @@ class AttributeHandler(object):
def _fullcache(self):
"""Cache all attributes of this object"""
query = {"%s__id" % self._model: self._objid,
"attribute__db_model": self._model,
"attribute__db_model__iexact": self._model,
"attribute__db_attrtype": self._attrtype}
attrs = [
conn.attribute for conn in getattr(
@ -278,7 +278,7 @@ class AttributeHandler(object):
return [] # no such attribute: return an empty list
else:
query = {"%s__id" % self._model: self._objid,
"attribute__db_model": self._model,
"attribute__db_model__iexact": self._model,
"attribute__db_attrtype": self._attrtype,
"attribute__db_key__iexact": key.lower(),
"attribute__db_category__iexact": category.lower() if category else None}
@ -303,7 +303,7 @@ class AttributeHandler(object):
else:
# we have to query to make this category up-date in the cache
query = {"%s__id" % self._model: self._objid,
"attribute__db_model": self._model,
"attribute__db_model__iexact": self._model,
"attribute__db_attrtype": self._attrtype,
"attribute__db_category__iexact": category.lower() if category else None}
attrs = [conn.attribute for conn