vendor/Five/1.2b-r20590

view bbb/App_interfaces.py @ 0:3673ed425f80

Vendor import of Five 1.2b+ (r20590)
author fguillaume
date Fri, 02 Dec 2005 20:25:42 +0000
parents
children
line source
1 ##############################################################################
2 #
3 # Copyright (c) 2004, 2005 Zope Corporation and Contributors.
4 # All Rights Reserved.
5 #
6 # This software is subject to the provisions of the Zope Public License,
7 # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
8 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
9 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11 # FOR A PARTICULAR PURPOSE.
12 #
13 ##############################################################################
14 """App z3 interfaces.
16 $Id: App_interfaces.py 12884 2005-05-30 13:10:41Z philikon $
17 """
18 from zope.interface import Attribute
19 from zope.interface import Interface
22 # XXX: might contain non-API methods and outdated comments;
23 # not synced with ZopeBook API Reference;
24 # based on App.Management.Navigation
25 class INavigation(Interface):
27 """Basic navigation UI support"""
29 manage = Attribute(""" """)
30 manage_menu = Attribute(""" """)
31 manage_top_frame = Attribute(""" """)
32 manage_page_header = Attribute(""" """)
33 manage_page_footer = Attribute(""" """)
34 manage_form_title = Attribute("""Add Form""")
35 zope_quick_start = Attribute(""" """)
36 manage_copyright = Attribute(""" """)
37 manage_zmi_prefs = Attribute(""" """)
39 def manage_zmi_logout(REQUEST, RESPONSE):
40 """Logout current user"""
42 INavigation.setTaggedValue('manage_page_style.css', Attribute(""" """))
45 # XXX: might contain non-API methods and outdated comments;
46 # not synced with ZopeBook API Reference;
47 # based on App.PersistentExtra.PersistentUtil
48 class IPersistentExtra(Interface):
50 def bobobase_modification_time():
51 """ """
53 def locked_in_version():
54 """Was the object modified in any version?
55 """
57 def modified_in_version():
58 """Was the object modified in this version?
59 """
62 # XXX: might contain non-API methods and outdated comments;
63 # not synced with ZopeBook API Reference;
64 # based on App.Undo.UndoSupport
65 class IUndoSupport(Interface):
67 manage_UndoForm = Attribute("""Manage Undo form""")
69 def get_request_var_or_attr(name, default):
70 """ """
72 def undoable_transactions(first_transaction=None,
73 last_transaction=None,
74 PrincipiaUndoBatchSize=None):
75 """ """
77 def manage_undo_transactions(transaction_info=(), REQUEST=None):
78 """ """