/optical-disc-archive-index

Python class for optical discs with __repr__ method updated based on comparison to default disc object. Data stored in a pickle file.

Primary LanguagePython

Optical Disc Archive Index

This is an optical disc class for entering optical disc information into a pickle file. Class defining, sample data creation, and file creation and reading all take place when disc_object.py is run. The __repr__ method is updated based on comparison to a default disc object.


Output:

Error in Lipslip's Lisp pseudo-corpse: copies must be a positive integer

All discs: default_disc name: default. disc_1 name: Lipslip's Lisp pseudo-corpse. disc_2 name: default.

default_disc repr: disc name: default, DISC NAME HAS NOT BEEN SET!, disc type: not set, copies: 1, location: unknown.

Changed fr. default: 0:

default_disc dict: {'burn_date': None, 'burn_verification': None, 'condition': None, 'creator': None, 'data_compression': None, 'dupe_status': None, 'encryption': None, 'disc_format': None, 'image_format': None, 'label': None, 'name': 'default', 'location': 'unknown', 'multi_volume_id': None, 'password': None, 'project': None, 'sub_type': '', 'supersession': None, 'tag': None, 'txt_index_loc': None, 'txt_index_name': None, 'disc_type': 'not set', 'write_status': None}

disc_1 repr: disc name: Lipslip's Lisp pseudo-corpse, disc type: not set, copies: ERR, location: unknown, disc format: video.

Changed fr. default: 3: dupe_status: backup, disc_format: video, name: Lipslip's Lisp pseudo-corpse

disc_1 dict: {'burn_date': None, 'burn_verification': None, 'condition': None, 'creator': None, 'data_compression': None, 'dupe_status': 'backup', 'encryption': None, 'disc_format': 'video', 'image_format': None, 'label': None, 'name': "Lipslip's Lisp pseudo-corpse", 'location': 'unknown', 'multi_volume_id': None, 'password': None, 'project': None, 'sub_type': '', 'supersession': None, 'tag': None, 'txt_index_loc': None, 'txt_index_name': None, 'disc_type': 'not set', 'write_status': None, '_Disc__copies': 'ERR'}

disc_2 repr: disc name: default, DISC NAME HAS NOT BEEN SET!, disc type: vcd-r, copies: 2, location: Hidden Valley Ranch.

Changed fr. default: 5: burn_date: Nov. 2011 - May 2012, dupe_status: original, location: Hidden Valley Ranch, sub_type: -r, disc_type: vcd

disc_2 dict: {'burn_date': 'Nov. 2011 - May 2012', 'burn_verification': None, 'condition': None, 'creator': None, 'data_compression': None, 'dupe_status': 'original', 'encryption': None, 'disc_format': None, 'image_format': None, 'label': None, 'name': 'default', 'location': 'Hidden Valley Ranch', 'multi_volume_id': None, 'password': None, 'project': None, 'sub_type': '-r', 'supersession': None, 'tag': None, 'txt_index_loc': None, 'txt_index_name': None, 'disc_type': 'vcd', 'write_status': None, '_Disc__copies': 2}

***DISC***

disc name: default, DISC NAME HAS NOT BEEN SET!, disc type: not set, copies: 1, location: unknown.

Changed fr. default: 0:

***DISC***

disc name: Lipslip's Lisp pseudo-corpse, disc type: not set, copies: ERR, location: unknown, disc format: video.

Changed fr. default: 3: dupe_status: backup, disc_format: video, name: Lipslip's Lisp pseudo-corpse

***DISC***

disc name: default, DISC NAME HAS NOT BEEN SET!, disc type: vcd-r, copies: 2, location: Hidden Valley Ranch.

Changed fr. default: 5: burn_date: Nov. 2011 - May 2012, dupe_status: original, location: Hidden Valley Ranch, sub_type: -r, disc_type: vcd