[Zope-dev] Callable baseclass for ZClasses

2000-11-21 Thread Stefan H. Holek
Taking ideas from the Renderable product, the ZCallable baseclass (PTK) and the __call__ thread on this very list, I created a Callable baseclass intended as a mixin for ZClasses. class Callable: def render( self, client=None, REQUEST={}, RESPONSE=None, **kw ): '''Calls index_html, if it e

Re: [Zope-dev] Callable baseclass for ZClasses

2000-11-21 Thread Stefan H. Holek
Sorry, a DTML Method throws 'KeyError' not 'Unauthorized' But I have already seen posts on why *that* is the case (Hotfix IIRC) Stefan ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HT

Re: [Zope-dev] Callable baseclass for ZClasses

2000-11-22 Thread Stefan H. Holek
On Wed, 22 Nov 2000, Chris Withers wrote: [ snipped cosmetic modifications ;) ] > > until I had to put some security on my CallableFolders. Removing 'View' > > for Anonymous keeps me from accessing a CallableFolder directly but it can > > still be used as a subtemplate (dtml-var x) from another

[Zope-dev] CustomizerFolder and the order of things in general

2000-12-01 Thread Stefan H. Holek
I am in the process of developing a product that patches the Folder class at runtime - the Hotfix way. I append an additional tab to the Folder class' manage_opions from the __init__.py of my product. While this works fine for standard Folders and the Folder derived products I've tested, ZPattern'

Re: [Zope-dev] Hmmmm.... what do *you* do when Zope is 'stuck'.

2000-12-03 Thread Stefan H. Holek
On Sat, 2 Dec 2000, Steve Spicklemire wrote: > OK.. more details... this is definitely a PoPy issue... > > I reinstalled ZPoPyDA, ran Zope in single threaded mode > ( ./start -t 1 ) and then deleted my ZPoPyDA database adaptor. > Then I created a new one, connected to postgres, and tested it.

Re: [Zope-dev] Turning acquisition off

2000-12-06 Thread Stefan H. Holek
On Wed, 6 Dec 2000 [EMAIL PROTECTED] wrote: > Does anyone know how to disable acqusition ? > > That is, with a simple method, and not disabling the Acqusition class, > something like self.aq_disabled('attribute') . Might this be what you are looking for? http://www.egroups.com/message/zope/450

Re: [Zope-dev] svn.zope.org up again?

2008-11-11 Thread Stefan H. Holek
Up it may be, working it is not. E.g.: Fetching external item into 'python24-zope210/lib/python/zope/testing' svn: Reference to non-existent node 'd2u.9gw.r70272/0' in filesystem '/svn/repos/main/db' Fetching external item into 'python24-zope211/lib/python/zope/decorator' Apython24-zope21

Re: [Zope-dev] [Zope-tests] FAILED (failures=2) : Zope-trunk Python-2.4.5 : Linux

2008-11-12 Thread Stefan H. Holek
This looks very much like zope.testbrowser 3.5.1 not passing its own tests. Sidnei, are you listening? Stefan On 12. Nov 2008, at 02:34, Zope Tests wrote: > Zope Tests : FAILED (failures=2) > Zope-trunk Python-2.4.5 : Linux > > Running /usr/local/python2.4/bin/python test.py -q --all > Runnin

Re: [Zope-dev] Zope Tests: 7 OK, 1 Unknown

2009-01-17 Thread Stefan H . Holek
> > That test seems to be timing out both yesterday and today trying to > download docutils: do you think having the buildout use a > download_cache would help? > > > Tres. It certainly would. I am however reluctant to enable the download cache because it may mask incomplete buildout configurat

Re: [Zope-dev] [Zope-tests] UNKNOWN : Zope[2.buildout]-trunk Python-2.5.2 : Linux

2009-01-19 Thread Stefan H. Holek
Enough! I have put a copy of docutils-0.4.tar.gz on the test server and point buildout at it via ~/.buildout/default.cfg. Stefan On 19.01.2009, at 02:55, Zope Tests wrote: > Zope Tests : UNKNOWN > Zope[2.buildout]-trunk Python-2.5.2 : Linux > > Running /usr/local/python2.5/bin/python ./bin/t

Re: [Zope-dev] Plans for Zope 2.12

2009-01-22 Thread Stefan H. Holek
While we are at it... The biggest offender is the zodbcode package, which does not appear to pass its tests at all under Python 2.6. Not having investigated this further I can imagine three courses of action: 1) Fix zodbcode (me shrugs) 2) Exclude zodbcode tests from the test suite

Re: [Zope-dev] Retiring the Zope SVN trunk? was: Re: Zope Tests: 6 OK, 2 Failed

2009-02-03 Thread Stefan H. Holek
I don't think you faired that badly. ;-) One obvious problem is the removal of the 'defaultSkin' directive, which is still in use by CMFDefault. The rest looks harmless. I am not opposed to ditching the trunk, but I don't think keeping it in sync (if only for a transition period) is impossibl

Re: [Zope-dev] Zope 2 from buildout?

2009-02-13 Thread Stefan H. Holek
For the time being Zope2 must be used as a develop egg. Like e.g. so: http://svn.zope.org/CMF.buildout/trunk/ Stefan On 13.02.2009, at 13:49, Chris Withers wrote: > I guess this equates to "what does a Zope 2 instance look like now > that > we're buildout-based?"

[Zope-dev] Python 2.4 + Zope 2.12 [Was: Zope Tests: 7 OK, 1 Failed]

2009-04-20 Thread Stefan H. Holek
Do we still care about Python 2.4 + Zope 2.12? Do we go Python 2.6 only? Thanks, Stefan On 20.04.2009, at 14:00, Zope Tests Summarizer wrote: > Summary of messages to the zope-tests list. > Period Sun Apr 19 12:00:00 2009 UTC to Mon Apr 20 12:00:00 2009 UTC. > There were 8 messages: 8 from Zope

Re: [Zope-dev] [cmf-tests] UNKNOWN : CMF-trunk Zope-trunk Python-2.6.1 : Linux

2009-04-27 Thread Stefan H. Holek
What's the reason zope.component.interfaces has no BBB for this import? The Zope Toolkit is full of 'deprecated()', so why not in this case? Stefan On 27.04.2009, at 03:28, CMF Tests wrote: > CMF Tests : UNKNOWN > CMF-trunk Zope-trunk Python-2.6.1 : Linux > > Running /usr/local/python2.6/bi

[Zope-dev] Linux x86_64 [Was: Zope Tests: 3 OK, 5 Failed]

2009-07-18 Thread Stefan H. Holek
Jul 17 20:56:01 EDT 2009 > URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012085.html > > Subject: FAILED (failures=7) : Zope-trunk-alltests Python-2.6.2 : > Linux > From: Zope Tests > Date: Fri Jul 17 20:58:01 EDT 2009 > URL: ht

Re: [Zope-dev] Zope Tests: 6 OK, 2 Failed

2009-11-03 Thread Stefan H. Holek
pen-ended slicing ops in Python C extensions are borken in python > 2.4, because it doesn't have Py_ssize_t. -- Stefan H. Holek ste...@epy.co.at ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev **

[Zope-dev] Automated Acceptance Test

2009-11-11 Thread Stefan H. Holek
at use Zope 3 technology. > > > > Best regards > > Carlos Solis > -- Stefan H. Holek ste...@epy.co.at ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML enc

Re: [Zope-dev] Zope Tests: No messages

2010-03-28 Thread Stefan H. Holek
10 UTC to Sun Mar 28 11:00:00 2010 UTC. >> There were no messages. > > Eeek. Something broken? -- Stefan H. Holek ste...@epy.co.at ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev **

Re: [Zope-dev] Very severe memory leak

2003-08-26 Thread Stefan H. Holek
I have got about 7 DateTime refs on that one CMF site at the moment and can arbitrarily increase this number by serving out pages ;-). They don't "stick" though, but go back to a stable 4. No cause for alarm here. Did you rebuild the catalog (-indexes) after the upgrade? New Zope version

Re: [Zope-dev] Very severe memory leak

2003-08-27 Thread Stefan H. Holek
--On Dienstag, 26. August 2003 20:02 -0300 Leonardo Rochael Almeida <[EMAIL PROTECTED]> wrote: On Tue, 2003-08-26 at 12:05, Stefan H. Holek wrote: [...] Did you rebuild the catalog (-indexes) after the upgrade? New Zope versions usually come with important BTree fixes ;-). If by rebuildi

Re: [Zope-dev] New-style ExtensionClasses (Zope 2.8) -- MRO issue

2003-11-01 Thread Stefan H. Holek
I am also very, very worried about breaking b/w compatibility in Zope 2. I am responsible for about 15 sites, with say 10 distinct products each. Are you saying I have to evaluate/upgrade 150 products because I want to go to Zope 2.8(9)? No customer is going to pay for that effort (and I will l

Re: [Zope-dev] dir()

2003-11-05 Thread Stefan H. Holek
DocFinderEverywhere may be useful to you. Stefan --On Mittwoch, 05. November 2003 12:57 +0100 Dmitrij Repp <[EMAIL PROTECTED]> wrote: I started to program for Zope and have found out, that some commands in Python have been excluded. I miss

Re: [Zope-dev] add User

2003-11-05 Thread Stefan H. Holek
Make this: userFolderAddUser('test', 'testpassword', ['Manager'], []) Stefan --On Mittwoch, 05. November 2003 17:46 +0100 Dmitrij Repp <[EMAIL PROTECTED]> wrote: Hi, I try to add user with Python. I do container.acl_users.userFolderAddUser('test', 'testpassword', 'Manager',1). The new user is

Re: [Zope-dev] how can I set the time stamp of an object

2003-12-02 Thread Stefan H. Holek
Hi Robert! You can/should not muck with bobobase_modification_time. CMF 1.4 however has this in DublinCore: setModificationDate(self, modification_date=None) Stefan --On Dienstag, 02. Dezember 2003 15:58 +0100 robert <[EMAIL PROTECTED]> wrote: Hi there, I would like to set the last modified

Re: [Zope-dev] Zope 2.7.0 b3 regressions

2003-12-03 Thread Stefan H. Holek
Yuppie! No, no and 3 times no! The fix was done by Evan and is CORRECT. absolute_url () does not (and should not!) know anything about CMF or portals or whatever else! It MUST however return correct results in all possible VH situations and this is what the fix addresses. Please forget about

Re: [Zope-dev] Re: Zope 2.7.0 b3 regressions

2003-12-08 Thread Stefan H. Holek
Evan, absolute_url(1) was broken (by my definition of broken) basically since the introduction of VHM, which means the better part of 2 years. Naturally, there is code now that relies on this (broken) behavior. This does however not mean it should not be fixed! The ugly part is that the beh

Re: [Zope-dev] Zope 2.7.0 b3 regressions

2003-12-08 Thread Stefan H. Holek
After reading this paragraph for the third time I realized you have a very good point here. But "Relative" in this context refers to the concept of a "relative path" as used in rfc1808, not to a relationship with a Zope object. It is meant for use in situations such as redirection to a secur

[Zope-dev] Post-mortem [Was: Zope 2.7.0 b3 regressions]

2003-12-09 Thread Stefan H. Holek
After causing all this noise, let me summarize what I now understand is the intended behavior of Zope's URL methods. Given an object is accessed by /VirtualHostBase/http/example.com:80/VirtualHostRoot/_vh_foo/folder/doc 1) doc.absolute_url() Returns the full URL of doc including protocol and ho

Re: [Zope-dev] Serving big files thru zope?

2004-03-01 Thread Stefan H. Holek
Dario, The best solution for me always has been to serve such files statically from Apache, bypassing ZServer altogether. In fact I have added support for static URLs to my version of ExtFile . ZEO clusters will need a comon disk share (SAMBA, NFS) for this

[Zope-dev] Re: Roles of Add Folders

2004-03-15 Thread Stefan H. Holek
[redirecting this to zope-dev] Hi Sidnei, On Freitag, Mär 12, 2004, at 19:39 Europe/Vienna, Sidnei da Silva wrote: I just stumbled on a fancy one. MKCOL is protected by the 'Add Folders' permission, which seems to be given only to Manager. This completely prevents a member from creating a folder

[Zope-dev] Stop Testing from changing INSTANCE_HOME (proposed solution)

2004-03-17 Thread Stefan H. Holek
I believe I have found an elegant way to stop 'import Testing' from changing the INSTANCE_HOME. Please see: http://zope.org/Collectors/Zope/1260 Stefan -- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBree

[Zope-dev] test.py + INSTANCE_HOME (proposed solution)

2004-03-29 Thread Stefan H. Holek
I have made some small modifications to test.py to allow testing in INSTANCE_HOMEs. Please see: An already patched version of test.py is available from here: Stefan -- The time has come to start talking about

Re: [Zope-dev] Zope and zope

2004-04-15 Thread Stefan H. Holek
+0, not a problem. -1 for renaming 'Zope'. I endorse the 'src/zope' idea. Stefan On Mittwoch, Apr 14, 2004, at 15:00 Europe/Vienna, Jim Fulton wrote: Perhaps we can get more input on whether there's a problem. A response with a positive sign (e.g. +1, +0, +2, ...) indicates agreement that this

Re: [Zope-dev] Re: Demonstration subversion repository created

2004-04-28 Thread Stefan H. Holek
Me too! :( Strangely, it worked fine earlier today... Stefan On Mittwoch, Apr 28, 2004, at 21:01 Europe/Vienna, Jim Fulton wrote: Hm, I can get to it from a machine outside of ZC or Zope.org. Is anyone else haveing troubles getting to it? Jim -- The time has come to start talking about wh

Re: [Zope-dev] When is the configuration read in Zope 2.7?

2004-05-14 Thread Stefan H. Holek
I am under the impression that the ZOPE_CONFIG patch broke 2.7 branch. Please see http://zope.org/Collectors/Zope/1233 Configuration is used very early, that's why I suggested to put the logic into getConfiguration. Zope tests fail for me, unfortunately Andreas cannot reproduce this. Stefan On Sa

[Zope-dev] Remove BDBStorage from 2.7 branch as well?

2004-06-04 Thread Stefan H. Holek
As BDBStorage has been removed from HEAD quite some time ago, I was wondering whether it would be possible/advisable to remove it from 2.7 branch as well. Would it? Stefan -- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is.

Re: [Zope-dev] Arbitrary Arguments?

2004-06-06 Thread Stefan H. Holek
ZPublisher can only fill in arguments it knows about, i.e. that are mentioned in the script's signature. Stefan On Sonntag, Jun 6, 2004, at 01:16 Europe/Vienna, Marshall Powers wrote: So what is the deal? -- The time has come to start talking about whether the emperor is as well dressed as we are

Re: [Zope-dev] Weird AssertionError on History Compare in Zope 2.7.1 PythonScript

2004-06-30 Thread Stefan H. Holek
Did you try to recompile the PythonScripts? Stefan On Mittwoch, Jun 30, 2004, at 18:52 Europe/Vienna, Chris Withers wrote: I upgraded a Zope 2.6.2 site to 2.7.1. Since then, the history tab of all my old Script(Python)'s is broken. -- The time has come to start talking about whether the emperor is

Re: [Zope-dev] Re: Bad interaction between Zope 2.7.3 and CMF 1.4

2004-10-13 Thread Stefan H. Holek
Note that I found it to be relevant which object I want to acquire (don't ask me why, though). E.g. going back to my CMFDefault examples, I *can* acquire portal_workflow and portal_url, but I can *not* acquire portal_membership and acl_users from a denied context. Go figure. If I change the te

Re: [Zope-dev] Product doesn't work in zope 2.7 that was working in 2.6

2004-10-14 Thread Stefan H. Holek
Note that 2.6.4 contains massive changes to the security implementation. I'd imagine the product you use has not been updated accordingly. Stefan On 13.10.2004, at 17:24, Nagarjuna G. wrote: This product works perfectly till 2.6.3, starting from 2.6.4 and upwards this problem appears. Looking a

[Zope-dev] Conditional imports in ZTUtils/__init__.py

2004-10-05 Thread Stefan H. Holek
ZTUtils/__init__.py contains code like this: if sys.modules.has_key('Zope'): # import things This is causing me repeated headaches when writing tests, because it assumes/dictates a certain module import order. Can this go away, please? I mean we know we are running Zope, don't we? If the

[Zope-dev] Bad interaction between Zope 2.7.3 and CMF 1.4

2004-10-09 Thread Stefan H. Holek
While testing a large-ish customer project under Zope 2.7.3 we found that when an object with setDefaultAccess('deny') is used as the context for a PythonScript, the script can no longer aquire tools from the portal root. Because a test says more than a thousand words, I added one to CMFDefault.

[Zope-dev] Re: Bad interaction between Zope 2.7.3 and CMF 1.4

2004-10-09 Thread Stefan H. Holek
On 09.10.2004, at 18:04, Tres Seaver wrote: *By definition*, anybody who has declared 'setDefaultAccess('deny') *wants* the behavior you describe: that declaration says, "unless I give you explicit permission for using a name, refuse." If Plone has classes which make such assertions, then eithe

Re: [Zope-dev] Re: Was: Re: 2.7.3 beta attribute permission problems

2004-10-23 Thread Stefan H. Holek
Hi Tres! On 22.10.2004, at 14:38, Tres Seaver wrote: Given that the change was required to implement a security fix, and without a reproducible test case for the reported breakage, I don't think we can credit the rumors. We *definitely* don't want to defer the security fix. I still don't know w

Re: [Zope-dev] tests with CMF 1.4 and Zope 2.7.3

2004-11-18 Thread Stefan H. Holek
There is no "bug", IMO. In CVS/SVN test.py lives in the root of Zope. It just stays there when you make inplace or make instance (or make anything for that matter). Removing it would break the checkout. Stefan On 18. Nov 2004, at 12:57, Lennart Regebro wrote: Stefan H. Holek wrote: +

[Zope-dev] Re: [Zope-Checkins] CVS: Zope - test.py:1.2.2.16

2004-11-22 Thread Stefan H. Holek
Sorry Florent, I missed your warning mail. I have two issues with the patch: a) Trailing slash no longer works (--libdir Products/) b) Some combinations of --libdir and --dir and symlinks no longer work on Mac OS X (HFS) Unfortunately os.getcwd() returns different paths in the presence of symlin

[Zope-dev] Re: [Zope-Checkins] CVS: Zope - test.py:1.2.2.16

2004-11-22 Thread Stefan H. Holek
This one does not even need symlinks (note that I run the tests from Products): localhost:/Users/zope/plone27/Products$ \ > /Zope/bin/test.py -v -C ../etc/zope.conf --libdir . --dir CMFPlone Running unit tests at level 1 Running unit tests from /Users/zope/plone27/Products/CMFPlone Parsing /Users

[Zope-dev] Why third_party/docutils?

2004-11-29 Thread Stefan H. Holek
[docutils was moved from lib/python/docutils to lib/python/third_party/docutils/docutils and an ugly sys.path hack employed] Why oh why do we always have to make it harder to start up Zope (instead of making it simpler, for once)? Extending the path in lib/python/sitecustomize only works if li

[Zope-dev] getUserById

2004-12-12 Thread Stefan H. Holek
In User.py the method is defined as def getUserById(self, id, default=_marker): try: return self.getUser(id) except: if default is _marker: raise return default I am wondering whether anybody actually depends on the fact that getUser is supposed to raise an exceptio

Re: [Zope-dev] getUserById

2004-12-13 Thread Stefan H. Holek
Hm, I'd rather not raise exceptions. getUserById was introduced in Zope 2.2 and since then has never raised anything. From what I can see it is used as a kind of alias for getUser, expected to return None if the user does not exist. So, my intention is to make 'default' work, not to make it rais

Re: [Zope-dev] Why third_party/docutils?

2004-12-16 Thread Stefan H. Holek
*sound of me protesting noisily* Let me remind you of the Pope's decree: http://mail.zope.org/pipermail/zope-dev/2004-November/024073.html Stefan On 16. Dez 2004, at 20:14, Andreas Jung wrote: --On Donnerstag, 16. Dezember 2004 19:28 Uhr +0100 Christian Theune <[EMAIL PROTECTED]> wrote: Just for

[Zope-dev] FYI: test.py changes rolled back

2005-01-13 Thread Stefan H. Holek
I have restored test.py to the version shipping with Zope 2.7.3. The changes made to accommodate Florent's use-case (adjacent symlinks) broke some of mine. In particular, without calling realpath (or abspath) on libdir, trailing slashes caused no tests to be found, as did some combinations of '

[Zope-dev] roman.py missing on 2.7 branch?

2005-01-13 Thread Stefan H. Holek
Seems docutils is not there just yet. I have added a test to reStructuredText that tries to import the rst parser and it - gasp - fails. Stefan -- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBreen/ _

[Zope-dev] Removal of aq_acquire from guarded_getattr

2005-01-21 Thread Stefan H. Holek
The bug: http://zope.org/Collectors/CMF/259 The fix: http://mail.zope.org/pipermail/zope-checkins/2004-August/028152.html This effectively changes how acquisition works in restricted Python. I understand this may well be the point . The consequences: Zope sites experiencing seemingly random Unaut

[Zope-dev] More on [Removal of aq_acquire from guarded_getattr]

2005-01-24 Thread Stefan H. Holek
The failing AccessControl tests can now be found on shh-aqtests-branch in zope.org CVS. Observations: a) guarded_getattr checks object security of the acquiree if the container denies access (at least that's my assessment). b) The tests pass when either - running Zope < 2.7.3, or - declarin

[Zope-dev] guarded_getattr

2005-02-11 Thread Stefan H. Holek
Tres, I'd very much appreciate your opinion on http://mail.zope.org/pipermail/zope-dev/2005-January/024237.html http://mail.zope.org/pipermail/zope-dev/2005-January/024242.html Plone is breaking left and right and I gotta do something about it... Thanks, Stefan -- The time has come to start talking

Re: [Zope-dev] Re: guarded_getattr

2005-02-13 Thread Stefan H. Holek
Hi Tres, Yes, this makes the checked in tests pass. This just means I did not check in enough tests yet though ;-) I have added tests to 'shh-aqtests-branch' that demonstrate Richard Jones' use case of acquiring a simple type (string). These tests still fail. I have also added tests to CMFDefa

[Zope-dev] Re: guarded_getattr

2005-02-15 Thread Stefan H. Holek
Most excellent fix, thanks! Stefan On 14. Feb 2005, at 20:24, Jim Fulton wrote: Tres Seaver wrote: Jim and I worked on an alternative fix today -- he will be checking it in to your branch shortly, including modifying cAccessControl. Done. Jim -- Software Engineering is Programming when you can't.

Re: [Zope-dev] Re: guarded_getattr

2005-02-17 Thread Stefan H. Holek
rse(path, default, restricted=1) File "/Users/stefan/autotest/temp/python23-zope27/lib/python/OFS/ Traversable.py", line 180, in unrestrictedTraverse o = guarded_getattr(object, name, M) AttributeError: manage_addFile On 15. Feb 2005, at 21:29, Stefan H. Holek wrote: Most excell

Re: [Zope-dev] RAMcache and container vs. context

2005-04-21 Thread Stefan H. Holek
This is due to how Python Scripts compute their cache keys. The relevant snippet from PythonScript._exec() is: asgns = self.getBindingAssignments() name_context = asgns.getAssignedName('name_context', None) if name_context: keyset[name_context]

Re: [Zope-dev] RAMcache and container vs. context

2005-05-27 Thread Stefan H. Holek
A TALES expression may be prohibitively expensive in any case, no matter how simple it is kept. Please make sure to do some comparative profiling. Cache keys are recomputed on every call of the script, AFAICS. The thought of doing this in restricted Python makes my skin crawl. Stefan On

[Zope-dev] OSX: zopectl test results in "Interrupted system call"

2005-08-20 Thread Stefan H. Holek
Since r37701 "zopectl test" forks off a child process [1]. On OSX I now reliably get a traceback tacked onto the end of every test report: Traceback (most recent call last): File "/Zope8/lib/python/Zope2/Startup/zopectl.py", line 312, in ? main() File "/Zope8/lib/python/Zope2/Startup/zo

[Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/ Collector #556: sqlvar now returns 'null' rather than 'None'.

2005-10-08 Thread Stefan H. Holek
This change breaks Gadfly which doesn't seem to like 'null' at all. I poked around in ZGadflyDA/gadfly a bit, but it's not obvious to me how to fix the parser (*.mar files anyone?). Stefan [snip] File "/usr/local/Zope-2_8-branch/lib/python/Products/ZGadflyDA/ gadfly/kjParser.py", line 82

Re: [Zope-dev] ZSQL method and LIMIT clause

2005-11-02 Thread Stefan H. Holek
*Everything* you can do in the ZMI can be done from code. The ZMI is not a magic entity, it uses the same APIs as everybody else. With FSZSQLMethods you can stick max_rows: 0 into the lead-in comment, BTW. Stefan On 3. Nov 2005, at 03:37, Thanh Hải, Hà wrote: My problem is I don't know to

Re: [Zope-dev] New ways of getting transactions?

2005-12-11 Thread Stefan H. Holek
import transaction transaction.get() transaction.commit() transaction.abort() transaction.savepoint() This works since 2.8, but not in 2.7. Nearly every project has come up with its own backward compatibility module though. See for example CMFCore.utils.transaction or CMFPlone.transaction.

Re: [Zope-dev] Zope tests: 5 OK, 3 Failed

2005-12-15 Thread Stefan H. Holek
Yup, that box is slowly dying on me. I will take down the nightlies until I find a new machine to run them on. Stefan On 14. Dez 2005, at 15:35, Chris McDonough wrote: FYI: These tests appear to be failing due to a race in the tests they're exercising that could be exposed if the machine

Re: [Zope-dev] zope-2.9 r40780 make install doesn't finish, files missing from bin

2005-12-18 Thread Stefan H. Holek
"make install" does currently not work on 2.9 branch and trunk. I am told that this is because "zpkg cannot do it". I am also told that the tarball would support make install, just not the checkout. I never use tarballs, so I don't know for sure. I'd very much like to see the canonical "./c

Re: [Zope-dev] zope-2.9 r40780 make install doesn't finish, files missing from bin

2005-12-20 Thread Stefan H. Holek
On 18. Dez 2005, at 17:58, Tim Peters wrote: Nobody should be installing from a checkout to begin with, right? Ok, so that's probably where we disagree then ;-) I almost exclusively work with checkouts, and I would think many developers (as opposed to "users") do. Is there really no way to

Re: [Zope-dev] Re: Zope tests: 6 OK, 2 Failed

2006-01-15 Thread Stefan H. Holek
AFAIK the default configuration used by tests does not have a dbtab. See lib/python/App/config.py. Stefan On Jan 14, 2006, at 16:45, Florent Guillaume wrote: I'll look at it. Florent Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This failure is tie up with Florent's re

Re: [Zope-dev] zLog and stderr

2001-09-26 Thread Stefan H. Holek
On Wed, 26 Sep 2001, Toby Dickenson wrote: > I have some old python modules which are generating messages from the > new python 2.1 warning framework. I can easily fix these modules, > however it has exposed a problem in Zope.. > > The warning framework tries to write to sys.stderr, and my Z

[Zope-dev] self = self.this() in Factory Methods [Was: Dynpersist.so andmakefile.pre.in]

2002-02-01 Thread Stefan H. Holek
At 01.02.2002 10:44 -0500, R. David Murray wrote: >You might also want to check out > > http://www.zope.org/Members/TheJester/exUserFolder > >--RDM All, Please have a look at my patch for XUF at I believe that manage_addex

[Zope-dev] Please comment [Re: self = self.this() in Factory Methods]

2002-02-04 Thread Stefan H. Holek
At 02.02.2002 08:08 +1000, Andrew Kenneth Milton wrote: >Since it seems this is going to occur repeatedly, having spent 10 seconds >looking at it, it seems that the 'correct' way is to call > >self.Destination()._setObject() > >so in essence self.Destination().__allow_groups__ will also get what

Re: [Zope-dev] aq_parent not available in __setattr__

2002-02-06 Thread Stefan H. Holek
At 06.02.2002 11:19 +1000, Brian Oliver wrote: >How does one receive a callback/create a hook that is called when an >attribute is changed, especially changed via the default property editor >for Zope objects (such that aquisition still works)? I hope I did not misunderstand your problem but I

Re: [Zope-dev] Please comment [Re: self = self.this() in Factory Methods]

2002-02-07 Thread Stefan H. Holek
At 04.02.2002 21:10 +0100, Stefan H. Holek wrote: >At 02.02.2002 08:08 +1000, Andrew Kenneth Milton wrote: > >>Since it seems this is going to occur repeatedly, having spent 10 seconds >>looking at it, it seems that the 'correct' way is to call >> >>se

[Zope-dev] ZClasses useful! [Was: ZMI / JavaScript brainstorm]

2002-04-09 Thread Stefan H. Holek
At 09.04.2002 10:46 +0100, Chris Withers wrote: >ZClasses are a waste of time, even more so than DTML. Chris, please stop that dissing of ZClasses. They are *very* useful indeed! No, not so much for the seasoned Python/Zope coder, but for the content manager (remember, Zope is a CMS after all!

RE: [Zope-dev] Speaking of 2.6...

2002-04-17 Thread Stefan H. Holek
At 17.04.2002 10:57 -0400, Brian Lloyd wrote: > >From the Zen of Python: "Explicit is better than implicit". > >We've been trying hard to adopt this bit of Zen. If you write >REQUEST.set, you can look at it and easily see what is happening. >Same with SESSION.set. > >If you're looking at as a ne

Re: [Zope-dev] LDAPUserFolder

2002-05-03 Thread Stefan H. Holek
On Wed, 1 May 2002, Dirk Datzert wrote: > We decide to install only one LDAPUserFolder in the Root-Folder and > configure him to do the authentications against LDAP. > > In the subfolders we want to install 'LDAPUserFolders' which should not > be configured again, but use the top-level LDAPUserFo

Re: [Zope-dev] Can I get rid of standard_template.pt?

2002-05-11 Thread Stefan H. Holek
--On Freitag, 10. Mai 2002 08:27 -0700 Andy McKay <[EMAIL PROTECTED]> wrote: > But... when you restart Zope it recreates them all again for you :) > However you can delete the "Examples" and not have them come back ;) I think it was Matt who pointed out to me that I could create harmless substit

[Zope-dev] Testing package & framework.py

2002-05-21 Thread Stefan H. Holek
I am in the process of modifying framework.py to support INSTANCE_HOME installations of Zope. This involves a) Honouring SOFTWARE_HOME when locating the Testing package b) Adding the instance's Products and lib/python dirs to Products.__path__ and sys.path respectively You can look at a prel

Re: [Zope-dev] ACTION: 2.6 project status updates...

2002-06-07 Thread Stefan H. Holek
I am quite positive that when you put __refresh_module__ = 0 into your module it will not be refreshed. Stefan --On Freitag, 07. Juni 2002 21:37 +1000 Anthony Baxter <[EMAIL PROTECTED]> wrote: > > I haven't yet finished of the CallProfiler bits, but it's a long weekend > here, and I plan to

Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1

2002-06-18 Thread Stefan H. Holek
I have failed as well to upgrade a Zope 2.5.1/ZEO 1.0 installation to 2.6.0a1. I tried to start *the very same instance* that runs successfully under 2.5.1 with 2.6.0a1. This is what I found out: * The Catalog problem you see comes from Products.PluginIndexes.TextIndex.Splitter.ZopeSplitter no

Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1

2002-06-18 Thread Stefan H. Holek
--On Dienstag, 18. Juni 2002 11:28 -0400 Jeremy Hylton <[EMAIL PROTECTED]> wrote: > I am able to run ZEO 1.0 on Zope 2.6. Does the ZEO test suite pass > for you? That's spelled: Yes, the tests pass with the two exceptions you mentioned. > If you check the ZEO 1.0 tarball, you'll find a trigg

[Zope-dev] Leak in 2.5.1 cAccessControl.c !?

2002-07-18 Thread Stefan H. Holek
Hi All! I believe I have found a leak in cAccessControl.c of Zope 2.5.1. See the patch below. It was difficult to spot because in the respective section of cAccessControl.c the 'owner' variable is reused several times. Note that 'ASSIGN' decrefs 'owner' before actually assigning, whereas the o

Re: [Zope-dev] Leak in 2.5.1 cAccessControl.c !?

2002-07-19 Thread Stefan H. Holek
Could be. ;-) Does your problem go away when you put export ZOPE_SECURITY_POLICY=PYTHON in your start script? Mine did. I would otherwise not have suspected cAccessControl. Stefan --On Donnerstag, 18. Juli 2002 13:28 -0700 Charlie Reiman <[EMAIL PROTECTED]> wrote: > Could this be related to

Re: [Zope-dev] Memory Leaks

2002-07-23 Thread Stefan H. Holek
I do also see the ZPT expression stuff leaking. In my case in this order: Products.PageTemplates.Expressions.SubPathExpr Products.PageTemplates.Expressions.PathExpr Products.PageTemplates.ZRPythonExpr.PythonExpr This one does *not* go away when setting ZOPE_SECURITY_POLICY=PYTHON. I am also lea

Re: [Zope-dev] Some Zope distributions are missing Data.fs.in

2002-09-11 Thread Stefan H. Holek
Same thing on Debian. 'Data.fs.in' is missing there as well. This is a problem for me as the ZopeTestCase relies on a working Testing package and error reports start to trickle in... AFAIK, 'Data.fs.in' already contains things like the root Application object and the Control_Panel. If no base

Re: [Zope-dev] Some Zope distributions are missing Data.fs.in

2002-09-11 Thread Stefan H. Holek
s 2.5.1 and I'm using python 2.1.3. I installed zope using the > debian "apt-get" command... ---8<--- Stefan --On Mittwoch, 11. September 2002 10:49 -0400 Jim Penny <[EMAIL PROTECTED]> wrote: > On Wed, Sep 11, 2002 at 03:49:25PM +0200, Stefan H. Holek wrote: &g

Re: [Zope-dev] Some Zope distributions are missing Data.fs.in

2002-09-11 Thread Stefan H. Holek
Matt, You need Data.fs.in to run unit tests. The Testing package does not work without it. See lib/python/Testing/custom_zodb.py. Stefan --On Mittwoch, 11. September 2002 16:25 -0400 "Matthew T. Kromer" <[EMAIL PROTECTED]> wrote: > James Johnson wrote: > >> Hi all, >>I'm using win2k and

Re: [Zope-dev] Some Zope distributions are missing Data.fs.in

2002-09-12 Thread Stefan H. Holek
g why such a change would be necessary at all. If it is just "for the heck of it" I politely ask to reconsider that decision. ;-) TIA, Stefan On Wed, 11 Sep 2002, Shane Hathaway wrote: > Stefan H. Holek wrote: > > You need Data.fs.in to run unit tests. The Testing package does

Re: [Zope-dev] Testing changes break tests when Products are inINSTANCE_HOME

2002-09-19 Thread Stefan H. Holek
I have modified testrunner to support INSTANCE_HOME installations: http://www.zope.org/Members/shh/TestRunner To test an INSTANCE_HOME product specify the -i flag. This is in the collector as a "feature+solution". http://collector.zope.org/Zope/489. Cheers, Stefan --On Donnerstag, 19. Septe

Re: [Zope-dev] Debugging conflict errors? Hints please!

2002-10-14 Thread Stefan H. Holek
out where the ConflictErrors are raised. I have added log messages to every single occurrence of "raise ConflictError" in lib/python/ZODB/* but I never see any of them... Stefan --On Freitag, 11. Oktober 2002 11:15 -0400 Jeremy Hylton <[EMAIL PROTECTED]> wrote: >>>

Re: [Zope-dev] Security Testing

2002-10-14 Thread Stefan H. Holek
Chris! You might want to take a look at my ZopeTestCase package. It supports Zope security testing with users, roles, permissions and all. Also see the tests coming with the ReplaceSupport and DocFinderEverywhere products. In essence restrictedTr

[Zope-dev] Debugging conflict errors? Hints please!

2002-10-11 Thread Stefan H. Holek
Hi All! I am experiencing a lot of 'ZODB conflict error at ...' that I can reliably reproduce by hitting my browser's Refresh button at a high rate. The bad news is that the conflicts happen on pages that are not supposed to change anything in the ZODB but only display results of some SQL queri

Re: [Zope-dev] Debugging conflict errors? Hints please!

2002-10-11 Thread Stefan H. Holek
Yes, but AFAIK read conflicts mean that something has changed during a read. I do not expect this to happen either... Stefan --On Freitag, 11. Oktober 2002 07:54 -0400 Jens Vagelpohl <[EMAIL PROTECTED]> wrote: conflict errors do not imply conflicting writes by definition. there is a thing cal

[Zope-dev] Web Services for Zope; what happened?

2002-10-30 Thread Stefan H. Holek
I'd like to know what happened to this proposal: Is the WebServices package (CVS) working? Any technical reason why it was discontinued? Thanks, Stefan -- Those who write software only for pay should go hurt some other fi

[Zope-dev] What do I get from 'cvs co Zope'?

2002-12-02 Thread Stefan H. Holek
It appears that when I currently do 'cvs co Zope' I get a version that already requires Python 2.2.2. GvR's zdctl.py stuff uses lambdas in a way that Python 2.1 does not grok. How can I get at a Python 2.1.3 post 2.6.0 checkout? Thanks, Stefan -- Those who write software only for pay should go

[Zope-dev] Attempt to store an object from a foreign database connection?

2002-12-09 Thread Stefan H. Holek
Hi All! My situation is this: When creating CPS sites I sometimes see one of the tracebacks appended below. In its factory method (manage_addCPSSite) CPS creates two External Methods (cpsinstall & cpsupdate) inside a fresh CMF portal, and then executes these. During execution cpsupdate imports

Re: [Zope-dev] Attempt to store an object from a foreign databaseconnection?

2002-12-10 Thread Stefan H. Holek
Chris! I am not using any mounted database. The factory method does not use sessions either. I am still suspecting that doing imports from a factory method sometimes gives me a strange _p_jar or something along that lines... Still at loss where this "foreign" connection could come from. Thanks

Re: [Zope-dev] Python method wrapping around DTML method

2003-01-03 Thread Stefan H. Holek
In most instances the REQUEST should be all you ever need. You can safely pass a REQUEST as second parameter to a DTML Method (most of the time). If you *really* want to be called with a namespace the preferred way is to derive your class from Shared.DC.Scripts.Bindings. Also see

  1   2   >