Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
Queue a notification to be delivered to a specific controller in the client. By default, the same notification
(i.e. same name, path and data) won't be queued twice in a row, but will if force is True.

src/h/e/helio-1.0.0b1/helio/viewstate/notification_tests.py   helio(Download)
        n = NotificationCentre(v)
 
        n.queue_client_notification('test_name', 'page.test_controller')
        n.queue_client_notification('test_name2', 'page.test_controller2', 'somedata')
 
        n = NotificationCentre(v)
 
        n.queue_client_notification('test_name', 'page.test_controller')
        n.queue_client_notification('test_name', 'page.test_controller')
        self.assertEqual(len([notification for notification in n]), 1)
 
        n.queue_client_notification('test_name', 'page.test_controller')