This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
themis.fields/themisfields/handlers.py

44 lines
1.0 KiB
Python

try:
from plone.supermodel.exportimport import BaseHandler, ChoiceHandler
from plone.supermodel.fields import ListHandler
HAVE_SUPERMODEL = True
except ImportError:
HAVE_SUPERMODEL = False
if HAVE_SUPERMODEL:
from zope.interface import implements
from zope.component import adapts
from plone.supermodel.interfaces import IToUnicode
from themisfields import Commission
from themisfields import Author
from themisfields import Authors
from themisfields import Date
from themisfields import Subjects
class CommissionHandler_(BaseHandler):
pass
CommissionHandler = CommissionHandler_(Commission)
class AuthorHandler_(BaseHandler):
pass
AuthorHandler = AuthorHandler_(Author)
class AuthorsHandler_(BaseHandler):
pass
AuthorsHandler = AuthorsHandler_(Authors)
class DateHandler_(BaseHandler):
pass
DateHandler = DateHandler_(Date)
class SubjectsHandler_(BaseHandler):
pass
SubjectsHandler = SubjectsHandler_(Subjects)