Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Commit

Permalink
Revert zope2 changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Terleg�rd committed Mar 28, 2008
1 parent e53faf9 commit a629db0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/z3c/zrtresource/zrtresource.py
Expand Up @@ -18,19 +18,14 @@
__docformat__='restructuredtext'
from zope.app.component.hooks import getSite
from zope.app.publisher.fileresource import File
from zope.app.publisher.browser.fileresource import FileResource

from z3c.zrtresource import processor, replace

try:
from Products.Five.browser.resource import FileResource
except:
from zope.app.publisher.browser.fileresource import FileResource


class ZRTFileResource(FileResource):

def GET(self):
""" Process original file resource and return a modified one. """
data = super(ZRTFileResource, self).GET()
# Process the file
p = processor.ZRTProcessor(data, commands={'replace': replace.Replace})
Expand Down

0 comments on commit a629db0

Please sign in to comment.