Skip to Content
Hands-On Software Engineering with Python
book

Hands-On Software Engineering with Python

by Nimesh Verma, Brian Allbee
October 2018
Beginner to intermediate
736 pages
17h 39m
English
Packt Publishing
Content preview from Hands-On Software Engineering with Python

Central Office – approving/listing a product

The relevant Story for Central Office staff being able to activate products, from the earlier collection of stories is:

  • As a Product Manager, I need to be able to activate Product objects so that I can manage Product availability

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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Software Architecture with Python

Software Architecture with Python

Anand Balachandran Pillai
Data Structures and Algorithms in Python

Data Structures and Algorithms in Python

Michael T. Goodrich, Roberto Tamassia, Michael H. Goldwasser

Publisher Resources

ISBN: 9781788622011Supplemental Content