class Session4(Session):
Known subclasses: session4.modified_quix_demo.altdemo.DemoSession
Constructor: Session4(id)
This adapts Quixote's own Session class to overwrite is_dirty() so that the session instance automatically detects changes to its values or additions or removals of members. Additional Instance attributes: _last_values : string the values of the session's attributes when it was last saved. is_dirty() uses this to compare with the current attributes (in memory) rendered as a string in order to automatically detect any added or changed attributes, including entries in things like lists and dictionaries (f'{vars(self)}' puts all the values into a string, which is handy to say the least). For fairly obvious reasons We remove _access_time and _last_values itself from the string to be stored.
| Method | __init__ |
Undocumented |
| Method | is |
Undocumented |
| Method | preserve |
Undocumented |
| Constant | MAX |
Undocumented |
| Instance Variable | _last |
Undocumented |