logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

CVS: Products/CMFCore/interfaces - portal_actions.py:1.20: msg#00054

web.zope.cmf.cvs

Subject: CVS: Products/CMFCore/interfaces - portal_actions.py:1.20

Update of /cvs-repository/Products/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv24836/CMFCore/interfaces

Modified Files:
portal_actions.py
Log Message:
merged yuppie-new_actions-branch:
- added ActionCategory and Action interfaces
- added ActionCategory and Action classes
- modified ActionsTool to make use of these new classes
- removed deprecated 'name' and 'permissions' keys from ActionInfo
- allowed 'description' key in ActionInfo
- implemented IAction in the oldstyle ActionInformation class and used this
interface to simplify ActionInfo
- updated setup handlers, tests, default profile and skins
- fixed ActionInfo issue regarding permissions in oldstyle action dicts


=== Products/CMFCore/interfaces/portal_actions.py 1.19 => 1.20 ===
--- Products/CMFCore/interfaces/portal_actions.py:1.19 Tue Sep 14 15:02:21 2004
+++ Products/CMFCore/interfaces/portal_actions.py Tue Jan 25 14:49:41 2005
@@ -90,7 +90,7 @@
Raises an ValueError exception if the action is of the wrong format.

Permission -- Private
-
+
Returns -- The actions object reference.
"""

@@ -120,6 +120,40 @@
"""


+class ActionCategory(Interface):
+ """ Group of Action objects.
+ """
+
+ def listActions():
+ """ List the actions defined in this category and its subcategories.
+
+ Permission -- Python only
+
+ Returns -- Tuple of Action objects.
+ """
+
+
+class Action(Interface):
+ """ Reference to an action.
+ """
+
+ def getInfoData():
+ """ Get the data needed to create an ActionInfo.
+
+ Default keys are: 'id', 'category', 'title', 'description', 'url',
+ 'icon', 'available', 'permissions' and 'visible'.
+
+ Instead of computed values callable expression objects or methods are
+ returned. For performance reasons, these objects are called later and
+ only if the values are actually needed. The keys for all these lazy
+ values are registered in a separate list.
+
+ Permission -- Python only
+
+ Returns -- Lazy info mapping and list of lazy keys.
+ """
+
+
class ActionInfo(Interface):
""" A lazy dictionary for Action infos.

@@ -138,13 +172,7 @@

- available (boolean): the result of checking the condition

- - allowed (boolean): the result of checking permissions
-
- Deprecated keys:
-
- - name (string): use 'id' or 'title' instead
-
- - permissions (tuple): use 'allowed' instead; The user must have at
- least one of the listed permissions to access the action. If the list
- is empty, the user is allowed.
+ - allowed (boolean): the result of checking permissions;
+ The user must have at least one of the listed permissions to access
+ the action. If the list is empty, the user is allowed.
"""


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation