Skip to content

Commit

Permalink
- See note on Collector #1074.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Mar 22, 2004
1 parent c7a0571 commit cdc8d01
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions PythonScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Python code.
"""

__version__='$Revision: 1.55 $'[11:-2]
__version__='$Revision: 1.56 $'[11:-2]

import sys, os, traceback, re, marshal, new
from Globals import DTMLFile, MessageDialog, package_home
Expand Down Expand Up @@ -117,7 +117,7 @@ def __init__(self, id):
security.declareProtected('View management screens',
'ZPythonScriptHTML_editForm', 'manage_main', 'read',
'ZScriptHTML_tryForm', 'PrincipiaSearchSource',
'document_src', 'params', 'body')
'document_src', 'params', 'body', 'get_filepath')

ZPythonScriptHTML_editForm = DTMLFile('www/pyScriptEdit', globals())
manage = manage_main = ZPythonScriptHTML_editForm
Expand Down Expand Up @@ -330,7 +330,6 @@ def manage_afterAdd(self, item, container):
if item is self:
self._filepath = self.get_filepath()

get_filepath=None # Public
def get_filepath(self):
return self.meta_type + ':' + '/'.join(self.getPhysicalPath())

Expand Down

0 comments on commit cdc8d01

Please sign in to comment.