Re: [Zope-dev] zope's ESMTP support
From: panjunyong [EMAIL PROTECTED] And now I am more interested in the 2nd product. What is the status? It was fine when I checked it in a month or two ago. compatible with zope 2.7? stable to use? (It doesn't work with my zope2.7 too :-( ) I haven't tried it with 2.7, but the change is so small and trivial it shouldn't be a problem. So what does Doesn't work mean? :-) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] TAL i18n breakage in 2.7
seb bacon wrote: On Thu, Feb 19, 2004 at 09:10:30AM -0500, Stephan Richter wrote: On Thursday 19 February 2004 08:08, seb bacon wrote: Zope 2.7 introduced a change in its translation interface. Previously a translation service could return None, but now returning None causes an assertion error. http://cvs.zope.org/Zope/lib/python/TAL/TALInterpreter.py.diff?r1=1.77r2=1.78 That is strange. The Zope 3 translation service can also still return None and we use the same TAL code. I cannot see which code change would not handle the None. The new implementation would appear to expect the service to return the default value passed in, instead of None. From the diff linked to above: r1.77 has: xlated_msgid = self.translate(msgid, i18ndict, obj) # If there is no translation available, use evaluated content. if xlated_msgid is None: # do some stuff r1.78 has: xlated_msgid = self.translate(msgid, default, i18ndict, obj) assert xlated_msgid is not None, self.position I always commented all asserts introduced in newer Zopes out. However I'm struggling with assertion TALInterpreter, line 490, in do_endI18nContext: def do_endI18nContext(self, notused=None): self.i18nContext = self.i18nContext.parent assert self.i18nContext is not None Meaning None was produced somewhere (maybe even Translation Service) and TALInterpreter does not expect this case to be. m. -- Myroslav Opyr zope.net.ua http://zope.net.ua/ ° Ukrainian Zope Hosting e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Zope 2.7 and objects turning into None
This is a guess, but perhaps the Catalog is masking some other low-level error and returning None instead? I'll see if that seems possible from the code. Some time ago, I found out that OFS.Traversable.Traversable.unrestrictedTraverse catched ConflictError and returned default if a default has been specified. I filed a bug report but I am not sure whether this was fixed (it is fixed in our Zope version, of course). It was fixed by Andreas at the end of last September. Florent -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:[EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Errors on Z2 HEAD
Howdi, I just prepared the post traversal checkin and was running the full load of Z2 unit tests (which are quiet slow in my oppinion right now. Took about 15 Min on Linux/P4 1.7GHz) and got a couple of errors that look like a problem with my build: == ERROR: testBigBoolean (testPythonScript.TestPythonScriptNoAq) -- Traceback (most recent call last): File /home/ctheune/Development/Zope/Zope.pt/lib/python/Products/PythonScripts/tests/testPythonScript.py, line 154, in testBigBoolean res = self._filePS('big_boolean')() File /home/ctheune/Development/Zope/Zope.pt/lib/python/Products/PythonScripts/tests/testPythonScript.py, line 60, in _filePS ps.write(readf(fname)) File testPythonScript.py, line 32, in readf IOError: [Errno 2] No such file or directory: '/home/ctheune/Development/Zope/Zope.pt/build-base/python-2.3/build-lib/Products/PythonScripts/tests/tscripts/big_boolean.ps' I created this sandbox by: cvs co ./configure make make instance Anything wrong with that? I'm way too lazy to keep a separated instance home for such sandbox work. Cheers, Christian -- Christian Theune, gocept gmbh co. kg http://www.gocept.com - [EMAIL PROTECTED] fon: 03496 3099112 fax: 03496 3099118 mobile: 0179 7808366 signature.asc Description: This is a digitally signed message part ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Errors on Z2 HEAD
Looks like the test runner is picking up tests in the build-base directory (which is generated as a result of make), which might also be why it's so slow, because it's likely running every test twice. How are you running the tests? FWIW, the automated test runners do the equivalent of: ./configure make inplace python test.py --all - C On Mon, 2004-02-23 at 17:24, Christian Theune wrote: Howdi, I just prepared the post traversal checkin and was running the full load of Z2 unit tests (which are quiet slow in my oppinion right now. Took about 15 Min on Linux/P4 1.7GHz) and got a couple of errors that look like a problem with my build: == ERROR: testBigBoolean (testPythonScript.TestPythonScriptNoAq) -- Traceback (most recent call last): File /home/ctheune/Development/Zope/Zope.pt/lib/python/Products/PythonScripts/tests/testPythonScript.py, line 154, in testBigBoolean res = self._filePS('big_boolean')() File /home/ctheune/Development/Zope/Zope.pt/lib/python/Products/PythonScripts/tests/testPythonScript.py, line 60, in _filePS ps.write(readf(fname)) File testPythonScript.py, line 32, in readf IOError: [Errno 2] No such file or directory: '/home/ctheune/Development/Zope/Zope.pt/build-base/python-2.3/build-lib/Products/PythonScripts/tests/tscripts/big_boolean.ps' I created this sandbox by: cvs co ./configure make make instance Anything wrong with that? I'm way too lazy to keep a separated instance home for such sandbox work. Cheers, Christian ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: time exUserFolder
I have cc'd the zope list in case others may find this answer helpful. Hi, i read your question (seems quite recent). I've had the same problem and traced the problem to some forgotten import time in pgPropSource.py in the exUserFolder folder. If you add: import time below f.i. import cPickle Thank you. This resolves the issue. Upon further investigation I have found that that a bug report has been filed at http://sourceforge.net/tracker/index.php?func=detailaid=798772group_id=36318atid=416446 and remove the pgPropSource.pyc file after you've safed the change, restart Zope and hopefully it works than. Be careful not to test first in some remote deep folder before using it somewhere where being locked out can cause harm :-) Hope this works. Greetings Felix -- Felix Slager Shape * vorm aan informatie Spoorstraat 31 7101GR Winterswijk The Netherlands t: +31 (0)543 530099 f: + 31 (0)543 531718 e: [EMAIL PROTECTED] w: www.take-shape.nl ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )