From b2c3998c1cfabe2f1d084bf5bf326166661b505c Mon Sep 17 00:00:00 2001 From: Jan-Wijbrand Kolman Date: Tue, 1 May 2012 10:15:51 +0000 Subject: [PATCH] update the API definition for grokcore.rest --- src/grokcore/rest/interfaces.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/grokcore/rest/interfaces.py b/src/grokcore/rest/interfaces.py index 8403377..35aa576 100644 --- a/src/grokcore/rest/interfaces.py +++ b/src/grokcore/rest/interfaces.py @@ -30,18 +30,22 @@ class IBaseClasses(grokcore.component.interfaces.IBaseClasses, REST = interface.Attribute("Base class for REST views.") -class IREST(grokcore.component.interfaces.IGrokcoreComponentAPI, +class IGrokcoreRestAPI(grokcore.component.interfaces.IGrokcoreComponentAPI, grokcore.security.interfaces.IGrokcoreSecurityAPI, grokcore.view.interfaces.IGrokcoreViewAPI, IBaseClasses): - context = interface.Attribute("Object that the REST handler presents.") - request = interface.Attribute("Request that REST handler was looked" - "up with.") + IRESTSkinType = interface.Attribute('The REST skin type') body = interface.Attribute( """The text of the request body.""") + context = interface.Attribute( + "Object that the REST handler presents.") + + request = interface.Attribute( + "Request that REST handler was looked up with.") + class IRESTLayer(IHTTPRequest): """REST-specific Request functionality.