ticket_viewer/controllers/ticket.py
def _poll(self, dbname, channels, last, options):
        """Add the relevant channels to the BusController polling."""
        if options.get('demo.ticket'):
            channels = list(channels)
            ticket_channel = (
                request.db,
                'demo.ticket',
                options.get('demo.ticket')
            )
            channels.append(ticket_channel)
        return super(TicketController, self)._poll(dbname, channels, last, options)
Add the relevant channels to the BusController polling.
Add the relevant channels to the BusController polling.
Add the relevant channels to the BusController polling .
def _poll(self, dbname, channels, last, options):
        if options.get('demo.ticket'):
            channels = list(channels)
            ticket_channel = (
                request.db,
                'demo.ticket',
                options.get('demo.ticket')
            )
            channels.append(ticket_channel)
        return super(TicketController, self)._poll(dbname, channels, last, options)
def _poll ( self , dbname , channels , last , options ) : if options . get ( 'demo.ticket' ) : channels = list ( channels ) ticket_channel = ( request . db , 'demo.ticket' , options . get ( 'demo.ticket' ) ) channels . append ( ticket_channel ) return super ( TicketController , self ) . _poll ( dbname , channels , last , options )
Add the relevant channels to the BusController polling.
Add the relevant channels to the BusController polling .
"""Add the relevant channels to the BusController polling."""
self
dbname
channels
last
options