Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
update the API definition for grokcore.rest
Browse files Browse the repository at this point in the history
  • Loading branch information
janwijbrand committed May 1, 2012
1 parent 26d1798 commit b2c3998
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/grokcore/rest/interfaces.py
Expand Up @@ -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.
Expand Down

0 comments on commit b2c3998

Please sign in to comment.