Allow stopping collecting in on_collect #140

Closed
opened 2017-11-03 12:13:56 +01:00 by nik · 3 comments
nik commented 2017-11-03 12:13:56 +01:00 (Migrated from edugit.org)

Add a boolean check after on_collect so if on_collect returns a boolean False, the item is not collected.

Add a boolean check after on_collect so if on_collect returns a boolean False, the item is not collected.
eike commented 2017-11-10 16:58:12 +01:00 (Migrated from edugit.org)

Added ~6 label

Added ~6 label
eike commented 2017-11-10 17:01:38 +01:00 (Migrated from edugit.org)

on_collect is a method specifically designed to run code when an Item is collected. To test whether the Item may be collected we already implemented a method may_collect, which returns True unless the method is rewritten for a class. When may_collect returns False, the collection will automatically be aborted.

on_collect is a method specifically designed to run code when an Item is collected. To test whether the Item may be collected we already implemented a method may_collect, which returns True unless the method is rewritten for a class. When may_collect returns False, the collection will automatically be aborted.
eike commented 2017-11-10 17:01:38 +01:00 (Migrated from edugit.org)

Status changed to closed

Status changed to closed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nik/veripeditus-server#140
No description provided.