October 2018
Beginner to intermediate
736 pages
17h 39m
English
The relevant Story for Central Office staff being able to activate products, from the earlier collection of stories is:
The Central Office owns the store_available flag of products, so their version of to_message_dict, living in hms_code.co_objects.Product, is, at least initially, much simpler:
def to_message_data(self) -> (dict,): """ Creates and returns a dictionary representation of the instance that is safe to be passed to a DaemonMessage instance during or after creation as the data of that message. """ return { 'oid':str(self.oid), # - Properties from BaseProduct: 'store_available':self.store_available, ...