"""
Piston handlers for notable resources.
"""


from piston.handler import BaseHandler
from portal import models


class RepositoryHandler(BaseHandler):
    model = models.Repository


class CollectionHandler(BaseHandler):
    model = models.Collection


class PlaceHandler(BaseHandler):
    model = models.Place


class ContactHandler(BaseHandler):
    model = models.Contact


class AuthorityHandler(BaseHandler):
    model = models.Authority



"""
Piston handlers for notable resources.
"""


from piston.handler import BaseHandler
from portal import models

class ResourceHandler(BaseHandler):
    model = models.Resource

class RepositoryHandler(BaseHandler):
    model = models.Repository


class CollectionHandler(BaseHandler):
    model = models.Collection


class PlaceHandler(BaseHandler):
    model = models.Place


class ContactHandler(BaseHandler):
    model = models.Contact


class AuthorityHandler(BaseHandler):
    model = models.Authority



Add an (unexposed) ResourceHandler so inheriting objects serialise better