[Checkins] SVN: grokcore.rest/trunk/src/grokcore/rest/ pep8 pyflakes
Christian Klinger
cklinger at novareto.de
Mon Jan 3 06:55:30 EST 2011
Log message for revision 119293:
pep8 pyflakes
Changed:
U grokcore.rest/trunk/src/grokcore/rest/components.py
U grokcore.rest/trunk/src/grokcore/rest/directive.py
U grokcore.rest/trunk/src/grokcore/rest/interfaces.py
U grokcore.rest/trunk/src/grokcore/rest/meta.py
U grokcore.rest/trunk/src/grokcore/rest/publication.py
U grokcore.rest/trunk/src/grokcore/rest/testing.py
-=-
Modified: grokcore.rest/trunk/src/grokcore/rest/components.py
===================================================================
--- grokcore.rest/trunk/src/grokcore/rest/components.py 2011-01-03 11:41:51 UTC (rev 119292)
+++ grokcore.rest/trunk/src/grokcore/rest/components.py 2011-01-03 11:55:30 UTC (rev 119293)
@@ -23,7 +23,6 @@
from zope import interface
from grokcore.view import ViewSupport
from grokcore.rest.interfaces import IREST
-from zope.publisher.interfaces.http import IHTTPRequest
class REST(zope.location.Location, ViewSupport):
Modified: grokcore.rest/trunk/src/grokcore/rest/directive.py
===================================================================
--- grokcore.rest/trunk/src/grokcore/rest/directive.py 2011-01-03 11:41:51 UTC (rev 119292)
+++ grokcore.rest/trunk/src/grokcore/rest/directive.py 2011-01-03 11:55:30 UTC (rev 119293)
@@ -19,4 +19,3 @@
def factory(self, value=None):
return value
-
Modified: grokcore.rest/trunk/src/grokcore/rest/interfaces.py
===================================================================
--- grokcore.rest/trunk/src/grokcore/rest/interfaces.py 2011-01-03 11:41:51 UTC (rev 119292)
+++ grokcore.rest/trunk/src/grokcore/rest/interfaces.py 2011-01-03 11:55:30 UTC (rev 119293)
@@ -24,15 +24,12 @@
import grokcore.view.interfaces
-
class IBaseClasses(grokcore.component.interfaces.IBaseClasses,
grokcore.view.interfaces.IBaseClasses,
grokcore.security.interfaces.IBaseClasses):
REST = interface.Attribute("Base class for REST views.")
-
-
class IREST(grokcore.component.interfaces.IGrokcoreComponentAPI,
grokcore.security.interfaces.IGrokcoreSecurityAPI,
grokcore.view.interfaces.IGrokcoreViewAPI,
@@ -46,7 +43,6 @@
"""The text of the request body.""")
-
class IRESTLayer(IHTTPRequest):
"""REST-specific Request functionality.
Modified: grokcore.rest/trunk/src/grokcore/rest/meta.py
===================================================================
--- grokcore.rest/trunk/src/grokcore/rest/meta.py 2011-01-03 11:41:51 UTC (rev 119292)
+++ grokcore.rest/trunk/src/grokcore/rest/meta.py 2011-01-03 11:55:30 UTC (rev 119293)
@@ -21,25 +21,18 @@
of a Grok-based web application.
"""
+from martian.error import GrokError
from zope import interface, component
+from grokcore.view import make_checker
from zope.interface.interface import InterfaceClass
-from zope.publisher.interfaces.browser import IBrowserPublisher
-from zope.publisher.interfaces.http import IHTTPRequest
import martian
import grokcore.rest
import grokcore.component
import grokcore.view
import grokcore.security
-from martian.error import GrokError
-from grokcore.security.meta import PermissionGrokker
-from grokcore.view import make_checker
-
-
-
-
class RESTGrokker(martian.MethodGrokker):
"""Grokker for methods of a `grok.REST` subclass.
Modified: grokcore.rest/trunk/src/grokcore/rest/publication.py
===================================================================
--- grokcore.rest/trunk/src/grokcore/rest/publication.py 2011-01-03 11:41:51 UTC (rev 119292)
+++ grokcore.rest/trunk/src/grokcore/rest/publication.py 2011-01-03 11:55:30 UTC (rev 119293)
@@ -25,19 +25,15 @@
"""
from grokcore.rest.rest import GrokMethodNotAllowed
from grokcore.view.publication import ZopePublicationSansProxy
-from zope.security.proxy import removeSecurityProxy
-
from zope import component
from zope.security.checker import selectChecker
from zope.publisher.publish import mapply
from zope.publisher.interfaces.http import IHTTPException
-from zope.app.publication.browser import BrowserPublication
-
-from zope.app.publication.http import BaseHTTPPublication, HTTPPublication
+from zope.app.publication.http import HTTPPublication
from zope.app.publication.requestpublicationfactories import (
- BrowserFactory, HTTPFactory)
+ HTTPFactory)
class GrokHTTPPublication(ZopePublicationSansProxy, HTTPPublication):
Modified: grokcore.rest/trunk/src/grokcore/rest/testing.py
===================================================================
--- grokcore.rest/trunk/src/grokcore/rest/testing.py 2011-01-03 11:41:51 UTC (rev 119292)
+++ grokcore.rest/trunk/src/grokcore/rest/testing.py 2011-01-03 11:55:30 UTC (rev 119293)
@@ -13,11 +13,8 @@
##############################################################################
"""Grok test helpers
"""
-import sys
from zope.configuration.config import ConfigurationMachine
from grokcore.component import zcml
-# Provide this import here for BBB reasons:
-from grokcore.component.testing import grok_component
def grok(module_name):
More information about the checkins
mailing list