Dummy

Introduction

The Dummy Extension provides several placeholder type handlers to either mock operations or provide local-only usage during development. A perfect example is the DummyMailHandler that can be use during development or staging to prevent real email messages from being sent externally.

API References:

Requirements

  • No external dependencies

Configuration

DummyMailHandler

This extension supports the following configuration settings under a [mail.dummy] configuration section:

Usage

from cement import App

class MyApp(App):
    class Meta:
        label = 'myapp'
        extensions = ['dummy']
        output_handler = 'dummy'
        template_handler = 'dummy'
        mail_handler = 'dummy'

with MyApp() as app:
    app.run()

Last updated