# -*- coding: utf-8 # Copyright (c) 2008, HTK from zope.interface import Interface from zope.publisher.interfaces.browser import IBrowserRequest class IMDBase(Interface): """ base metadataportal interface """ class iMDPortal(IMDBase): """ md portal """ class IMDLayer(IBrowserRequest): """ mdportal skin layer 1 """ class IMDResources(IBrowserRequest): """ mdporta resources layer """ class IMDSkin(IMDLayer, IMDResources): """ skin """ class IWaramu(IMDBase): """ persistent waramu interface """ class IUsers(IMDBase): """ container for user objects """ class IUser(IMDBase): """ user object """ class IContent(IMDBase): """ displays resources """ class IResource(IMDBase): """ resource object """ class IBrowser(IMDBase): """ content browser """ class ITranslator(Interface): """ translator interfaces """ def translate(self, id, lang=None): """ returns a translated value for id """ class IVocabulary(Interface): """ field vocabulary """ def treeLike(self): """ defines if a vocabulary is a tree-like vocabulary or not """ def getMain(self): """ returns vocabulary. [{'id': 'id', 't':'title'}, ...] """ def getVocabulary(self, typeID, fieldname): """ vocabulary for a field. [[id, title], ...] """ def restricts(self): """ fixes to vocabulary or not """