You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to update the canonical URL of objects using the @@canonical-url-updater view, I found that no object was updated:
2017-07-17T15:55:57 INFO sc.social.like 0 objects will be processed
This happens because the catalog query search expects objects providing the ISocialMedia interface defined on the behavior and no objects provides that yet.
We need to update the objects_provides index in a new upgrade step.
fromsc.social.like.behaviorsimportISocialMedia
...
classCanonicalURLUpdater(form.Form):
...
defupdate_canonical_url(self, data):
...
results=catalog(
object_provides=ISocialMedia.__identifier__,
created=dict(query=created_before, range='max'),
)
...
total=len(results)
logger.info(u'{0} objects will be processed'.format(total))
...
The text was updated successfully, but these errors were encountered:
When trying to update the canonical URL of objects using the
@@canonical-url-updater
view, I found that no object was updated:This happens because the catalog query search expects objects providing the
ISocialMedia
interface defined on the behavior and no objects provides that yet.We need to update the
objects_provides
index in a new upgrade step.The text was updated successfully, but these errors were encountered: