0x1949 Team - FAZEMRX - MANAGER
Edit File: publish.cpython-310.pyc
o �b, � @ sd d Z ddlZddlmZ ddlmZmZmZ G dd� dej�Z G dd� dej �Zd d � Zdd� Z dS ) z] Persistently cached objects for PB. Maintainer: Glyph Lefkowitz Future Plans: None known. � N)�defer)�banana�flavors�jellyc @ s@ e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dS )�Publishablez6An object whose cached state persists across sessions.c C s | � � || _d S )N)� republish�publishedID)�selfr � r �8/usr/lib/python3/dist-packages/twisted/spread/publish.py�__init__ s zPublishable.__init__c C s t � � | _dS )z=Set the timestamp to current and (TODO) update all observers.N)�time� timestamp�r r r r r � zPublishable.republishc C s | � |�S )� (internal))�getStateToPublishFor�r �perspectiver r r �view_getStateToPublish s z"Publishable.view_getStateToPublishc C s | � � S )z:Implement me to special-case your state for a perspective.)�getStateToPublishr r r r r # s z Publishable.getStateToPublishForc C s t d| j ��)zBImplement me to return state to copy as part of the publish phase.z%s.getStateToPublishFor)�NotImplementedError� __class__r r r r r '