summaryrefslogtreecommitdiff
path: root/www/zope3/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2006-01-07 13:13:28 +0000
committerwiz <wiz@pkgsrc.org>2006-01-07 13:13:28 +0000
commit07da7f2177ca78fd375ff67948481ca171126992 (patch)
treea817f13adb2791cd7359e5becb1d144d02c854ad /www/zope3/patches
parent2c945bec78c145b3d7be889f5a5c2d2c4ca45054 (diff)
downloadpkgsrc-07da7f2177ca78fd375ff67948481ca171126992.tar.gz
Update to 3.2.0, from wip/zope3-unstable, provided by Yoshito Komatsu.
Closes PR 32465. Most Important Changes Since 3.1 * The ZServer has been replaced with the Twisted server. The Twisted server supports all that the ZServer supporting has well has HTTP over SSL natively and SFTP (disabled for now because of error handling problems). Also in the future it brings a better chance of other non-HTTP related protocols from being implemented for Zope3, like SMTP-in and IMAP. ZServer is still supported and will be used if you use the --zserver when you run mkzopeinstance. * Added a test browser. The test browser simulates a real Web browser as much as possible as a Python object. This allows us to write functional tests the same way the site would be experienced by the user. This greatly simplifies functional tests, makes documentation better and even helps analyzing usability. And of course, it can be used in functional doctests. * Changed the way returning large results is handled. The response.write method is no longer supported. Applications can now simply return files to the publisher. * Implemented the password managers proposal. Main idea beside the proposal is a standard way to implement password encoders/checkers, see zope.app.authentication.interfaces.IPasswordManager for details. + Added basic password managers: Plain Text, MD5, SHA1. + Support for password managers added for ZCML principals and principals saved in local PrincipalFolers. + Added bin/zpasswd command line script which helps to create ZCML principals. + Password managers support integrated into bin/mkzopeinstance. + New database generation created for convert local principals to new format. * Implemented the language namespace proposal. Now you can override the browser preferred language through the URL, like this: http://site.org/++lang++ru/path Note: If you want to use a custom IUserPreferredLanguages adapter and the ++lang++ feature together you should use zope.app.publisher.browser.CacheableBrowserLanguages adapter as a base class or at least as example. * Implemented a new object introspector. Instead of just providing information of the object's class, the new introspector focuses on providing information that is specific to the instance, such as directly provided interfaces and data, for example attribute values and annotation values. * Implemented the `devmode` switch for `zope.conf`. When turned on a ZCML feature called `devmode` is provided. Packages can then register functionality based on this feature. In Zope 3 itself, the devmode is used to only load the API doc is devmode; turning off the devmode thus closes a potential security hole and increases the start time by more than a second. * addMenuItem directive supports a `layer` attribute. * Added a re-implementation of i18n message IDs (now simply called ``Message``) that is immutable and thus can be treated like unicode strings with respect to security proxying. This implementation will replace the old one in upcoming versions. * Added "test" message catalog for testing i18n. If you specify ++lang++test in a URL, then all translated strings will be translated to [[domain][message_id], as in "[[zope][Preview]]". Text without the domain marker isn't translated. For a complete list of changes see the CHANGES.txt file.
Diffstat (limited to 'www/zope3/patches')
-rw-r--r--www/zope3/patches/patch-aa18
-rw-r--r--www/zope3/patches/patch-ab18
-rw-r--r--www/zope3/patches/patch-ac11
-rw-r--r--www/zope3/patches/patch-ad11
4 files changed, 27 insertions, 31 deletions
diff --git a/www/zope3/patches/patch-aa b/www/zope3/patches/patch-aa
index f757692e084..20d0fc3ac44 100644
--- a/www/zope3/patches/patch-aa
+++ b/www/zope3/patches/patch-aa
@@ -1,13 +1,12 @@
-$NetBSD: patch-aa,v 1.1.1.1 2005/10/24 02:25:29 minskim Exp $
+$NetBSD: patch-aa,v 1.2 2006/01/07 13:13:28 wiz Exp $
---- Dependencies/ZConfig-Zope-3.1.0/ZConfig/scripts/zconfig.orig 2005-10-03 03:48:10.000000000 +0900
-+++ Dependencies/ZConfig-Zope-3.1.0/ZConfig/scripts/zconfig
-@@ -41,2 +41,15 @@
-
+--- Dependencies/ZConfig-Zope-3.2.0/ZConfig/scripts/zconfig.orig 2006-01-06 05:04:42.000000000 +0900
++++ Dependencies/ZConfig-Zope-3.2.0/ZConfig/scripts/zconfig
+@@ -40,2 +40,13 @@
+ import sys
++import os
++
+if __name__ == "__main__":
-+ # Add the zope3 library directory to the module search path
-+ import os
-+ import sys
+ here = os.path.dirname(os.path.realpath(__file__))
+ swhome = os.path.dirname(here)
+ for parts in [("src",), ("lib", "python"), ("Lib", "site-packages")]:
@@ -16,5 +15,4 @@ $NetBSD: patch-aa,v 1.1.1.1 2005/10/24 02:25:29 minskim Exp $
+ d = os.path.join(swhome, *parts)
+ sys.path.insert(0, d)
+ break
-+
- import ZConfig
+
diff --git a/www/zope3/patches/patch-ab b/www/zope3/patches/patch-ab
index fb7507407e7..fa3f9b1b981 100644
--- a/www/zope3/patches/patch-ab
+++ b/www/zope3/patches/patch-ab
@@ -1,13 +1,14 @@
-$NetBSD: patch-ab,v 1.1.1.1 2005/10/24 02:25:29 minskim Exp $
+$NetBSD: patch-ab,v 1.2 2006/01/07 13:13:28 wiz Exp $
---- Dependencies/ZConfig-Zope-3.1.0/ZConfig/scripts/zconfig_schema2html.orig 2005-10-03 03:48:10.000000000 +0900
-+++ Dependencies/ZConfig-Zope-3.1.0/ZConfig/scripts/zconfig_schema2html
-@@ -17,2 +17,15 @@
+--- Dependencies/ZConfig-Zope-3.2.0/ZConfig/scripts/zconfig_schema2html.orig 2006-01-06 05:04:42.000000000 +0900
++++ Dependencies/ZConfig-Zope-3.2.0/ZConfig/scripts/zconfig_schema2html
+@@ -17,5 +17,18 @@
++import sys
++import os
++import cgi
++
+if __name__ == "__main__":
-+ # Add the zope3 library directory to the module search path
-+ import os
-+ import sys
+ here = os.path.dirname(os.path.realpath(__file__))
+ swhome = os.path.dirname(here)
+ for parts in [("src",), ("lib", "python"), ("Lib", "site-packages")]:
@@ -18,3 +19,6 @@ $NetBSD: patch-ab,v 1.1.1.1 2005/10/24 02:25:29 minskim Exp $
+ break
+
import ZConfig.loader
+ from ZConfig.info import *
+-import sys, cgi
+
diff --git a/www/zope3/patches/patch-ac b/www/zope3/patches/patch-ac
index 4abb4a2dd32..bb824b67bf5 100644
--- a/www/zope3/patches/patch-ac
+++ b/www/zope3/patches/patch-ac
@@ -1,12 +1,9 @@
-$NetBSD: patch-ac,v 1.1.1.1 2005/10/24 02:25:29 minskim Exp $
+$NetBSD: patch-ac,v 1.2 2006/01/07 13:13:28 wiz Exp $
---- Dependencies/zdaemon-Zope-3.1.0/zdaemon/zdctl.py.orig 2005-10-03 03:48:12.000000000 +0900
-+++ Dependencies/zdaemon-Zope-3.1.0/zdaemon/zdctl.py
-@@ -60,2 +60,13 @@
+--- Dependencies/zdaemon-Zope-3.2.0/zdaemon/zdctl.py.orig 2006-01-06 05:04:52.000000000 +0900
++++ Dependencies/zdaemon-Zope-3.2.0/zdaemon/zdctl.py
+@@ -60,2 +60,10 @@
sys.path.append(dirname(scriptdir))
-+ # Add the zope3 library directory to the module search path
-+ import os
-+ import sys
+ here = os.path.dirname(os.path.realpath(__file__))
+ swhome = os.path.dirname(here)
+ for parts in [("src",), ("lib", "python"), ("Lib", "site-packages")]:
diff --git a/www/zope3/patches/patch-ad b/www/zope3/patches/patch-ad
index b049012bd6c..35e4b06935e 100644
--- a/www/zope3/patches/patch-ad
+++ b/www/zope3/patches/patch-ad
@@ -1,12 +1,9 @@
-$NetBSD: patch-ad,v 1.1.1.1 2005/10/24 02:25:29 minskim Exp $
+$NetBSD: patch-ad,v 1.2 2006/01/07 13:13:28 wiz Exp $
---- Dependencies/zdaemon-Zope-3.1.0/zdaemon/zdrun.py.orig 2005-10-03 03:48:12.000000000 +0900
-+++ Dependencies/zdaemon-Zope-3.1.0/zdaemon/zdrun.py
-@@ -85,2 +85,13 @@
+--- Dependencies/zdaemon-Zope-3.2.0/zdaemon/zdrun.py.orig 2006-01-06 05:04:52.000000000 +0900
++++ Dependencies/zdaemon-Zope-3.2.0/zdaemon/zdrun.py
+@@ -85,2 +85,10 @@
sys.path.append(dirname(scriptdir))
-+ # Add the zope3 library directory to the module search path
-+ import os
-+ import sys
+ here = os.path.dirname(os.path.realpath(__file__))
+ swhome = os.path.dirname(here)
+ for parts in [("src",), ("lib", "python"), ("Lib", "site-packages")]: