# -*- coding: utf-8 # Copyright (c) 2008, iCamp Consortium # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. from zope.interface import Interface from zope.schema import TextLine, Text, Bytes class IFolio(Interface): """IFolio""" title = TextLine( title = u"Title", description=u"Title of the iFolio", required=True, ) class IAffordance(Interface): """ Affordance interface """ title = TextLine( title = u"Title", description=u"Title of the affordance", required=True, ) descr = Text( title = u"Description", description= u"Description of the affordance", required=False, ) class ITool(Interface): """ Tool interface """ title = TextLine( title = u"Title", description=u"Title of the tool", required=True, ) url = TextLine( title = u"URL", description = u"Tool's user where one can be seen or downloaded", required = True, ) img = Bytes( title = u"Image", description= u"Upload a small thumbnail of an image", required = False, ) descr = Text( title = u"Description", description= u"Description of the tool", required=False, ) opsys = Text( title=u"Operating system platform", description=u"", required=False, ) platform = Text( title=u"Development platform (programming language)", description=u"", required=False, ) license = Text( title=u"License", description=u"", required=False, ) database = Text( title=u"Data management system (database)", description=u"", required=False, ) server = Text( title=u"Application server", description=u"", required=False, ) servtech = Text( title=u"Server-side web technologies", description=u"", required=False, ) webtech = Text( title=u"Client-side web technologies (browser)", description=u"", required=False, ) portal = Text( title=u"Portal platform", description=u"", required=False, ) dataexchange = Text( title=u"Data exchange / syndication standards", description=u"", required=False, ) metadata = Text( title=u"Metadata standards", description=u"", required=False, ) security = Text( title=u"Security model", description=u"", required=False, ) extendability = Text( title=u"Extendability / modularity", description=u"", required=False, ) localisation = Text( title=u"Localisation", description=u"", required=False, ) extaccess = Text( title=u"External access to functionality", description=u"", required=False, ) userbase = Text( title=u"User base (who is using)", description=u"", required=False, ) class IAffordanceManager(Interface): """ IAffordanceManager """ class IToolsManager(Interface): """ IToolsManager """ class IUsersManager(Interface): """ IUsersManager """ class IUser(Interface): """ IUser """ title = TextLine( title = u"Title", description=u"Title of the user", required=True, ) firstname = TextLine( title = u"Firstname", description= u"Firstname of the user", required=True, ) lastname = TextLine( title= u"Lastname", description = u"Lastname of the user", required=True, ) email = TextLine( title = u"E-mail", description = u"E-mail address of the user", required=True, ) from zope.publisher.interfaces.browser import IBrowserSkinType class IIFolioSkin(IBrowserSkinType): """ iFolio skin """