milla.controllers

Stub controller classes

These classes can be used as base classes for controllers. While any callable can technically be a controller, using a class that inherits from one or more of these classes can make things significantly easier.

Created:Mar 27, 2011
Author:dustin
Updated:$Date$
Updater:$Author$
class milla.controllers.Controller[source]

The base controller class

This class simply provides empty __before__ and __after__ methods to facilitate cooperative multiple inheritance.

class milla.controllers.FaviconController(icon=None, content_type='image/x-icon')[source]

A controller for the “favicon”

This controller is specifically suited to serve a site “favicon” or bookmark icon. By default, it will serve the Milla icon, but you can pass an alternate filename to the constructor.

Parameters:
  • icon – Path to an icon to serve
  • content_type – Internet media type describing the type of image used as the favicon, defaults to ‘image/x-icon’ (Windows ICO format)

Project Versions

Previous topic

milla.app

Next topic

milla.util

This Page