Ignore:
Timestamp:
21 Nov 2014, 08:07:15 (10 years ago)
Author:
Henrik Bettermann
Message:

Add more browser components for document editing. Editing is allowed only under certain conditions.

  • work in progress -
Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/documents
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/interfaces.py

    r12017 r12018  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 from zope.interface import Attribute
     18from zope.interface import Attribute, Interface
    1919from zope import schema
    2020from waeup.ikoba.interfaces import (
     
    5252        )
    5353
     54class IDocumentsUtils(Interface):
     55    """A collection of methods which are subject to customization.
    5456
     57    """
     58
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/utils.py

    r12005 r12018  
    1919"""
    2020import grok
     21from waeup.ikoba.documents.workflow import CREATED
     22from waeup.ikoba.documents.interfaces import IDocumentsUtils
    2123
    2224
     
    2426    new_id = grok.getSite().unique_document_id
    2527    return new_id
     28
     29
     30class DocumentssUtils(grok.GlobalUtility):
     31    """A collection of methods subject to customization.
     32    """
     33    grok.implements(IDocumentsUtils)
     34
     35    DOCMANAGE_STATES = (CREATED,)
Note: See TracChangeset for help on using the changeset viewer.