-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust the default script to make it work for python3.
- Loading branch information
1 parent
c42c8d3
commit 1c17496
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Example code: | ||
|
||
# Import a standard function, and get the HTML request and response objects. | ||
from Products.PythonScripts.standard import html_quote | ||
request = container.REQUEST | ||
response = request.response | ||
|
||
# Return a string identifying this script. | ||
print ("This is the", script.meta_type, '"%s"' % script.getId(), end=' ') | ||
if script.title: | ||
print ("(%s)" % html_quote(script.title), end=' ') | ||
print ("in", container.absolute_url()) | ||
return printed |