[ZPatterns] Patch to make SkinScript methods work with Zope Find
Steve Alexander
[email protected]
Tue, 31 Jul 2001 13:51:11 +0100
This is a multi-part message in MIME format.
--------------020205000100010607020305
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
The attached patch to ZPatterns/SkinScript/Methods.py makes them work
with Zope's find tab.
--
Steve Alexander
Software Engineer
Cat-Box limited
--------------020205000100010607020305
Content-Type: text/plain;
name="diffs.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="diffs.txt"
*** ZPatterns/SkinScript/Methods.py.original
--- ZPatterns/SkinScript/Methods.py.new
***************
*** 119,124 ****
--- 119,127 ----
+ def PrincipiaSearchSource(self):
+ "Support for searching - the document's contents are searched."
+ return self.text
def PUT(self, REQUEST, RESPONSE):
***************
*** 142,148 ****
__ac_permissions__ = (
('Change proxy roles', ('manage_proxy')),
! ('View management screens', ('manage_uploadForm','manage_main')),
('Change SkinScript methods',('manage_upload','PUT','manage_edit')),
)
--- 145,151 ----
__ac_permissions__ = (
('Change proxy roles', ('manage_proxy')),
! ('View management screens', ('manage_uploadForm','manage_main', 'PrincipiaSearchSource')),
('Change SkinScript methods',('manage_upload','PUT','manage_edit')),
)
--------------020205000100010607020305--