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

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 DTML

[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,

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/45049

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 Zope

[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 http://www.zope.org/Members/shh/Patches/exUserFolder-0.10.4.patch I believe that

[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 we

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 self.Destination()._setObject() so in essence

[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

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 dtml-set... as a

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

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 substitute

[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

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

[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

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

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
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: Same thing on Debian. 'Data.fs.in' is missing there as well. This is a problem for me as the ZopeTestCase

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
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 not work without it. See

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. plug This is in the collector as a feature+solution. http://collector.zope.org/Zope/489. /plug Cheers, Stefan --On Donnerstag,

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

2002-10-14 Thread Stefan H. Holek
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: SHH == Stefan H Holek [EMAIL PROTECTED] writes

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. http://www.zope.org/Members/shh/ZopeTestCase/ Also see the tests coming with the ReplaceSupport and DocFinderEverywhere products. In essence

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

[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: http://www.zope.org/Wikis/DevSite/Projects/WebServicesForZope/FrontPage 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

[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

[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] Can't return / publish object of a dictionary?

2003-01-16 Thread Stefan H. Holek
Lars, I believe that for security validation to work the object you return has to be acquisition wrapped. Try something like (untested): def _getOb(self, id): return self._secretList[id].__of__(self) HTH, Stefan --On Donnerstag, 16. Jänner 2003 16:51 +0100 Lars Heber [EMAIL PROTECTED]

Re: [Zope-dev] install complains about 'invalid' Python files

2003-03-13 Thread Stefan H. Holek
You cannot rely on the Zope install script to handle add-on products well, if at all. The same issue wrt .py extensions is present in the CMF skins. So I guess the answer is: Don't do it that way. They are called add-on products for a reason ;-) Stefan --On Donnerstag, 13. März 2003 14:00

Re: [Zope-dev] oh boy [id,getId() madness]

2003-06-11 Thread Stefan H. Holek
This is definitely possible. You probably have a faulty factory method. In Zope, construction is a two step process that looks something like def addSomething(self, id, title=''): ob = Something(id, title) self._setObject(id, ob) An ObjectManager must know the ids of its subobjects

Re: [Zope-dev] easy to fix bugs present in 2.7.0a1

2003-07-08 Thread Stefan H. Holek
On a related note let me say that absolute_url() is suffering from much the same problem. Calling absolute_url(1) will give surprising results in the presence of _vh_xyz! I have already tried to make some noise about that but failed to sufficiently make my point.

Re: [Zope-dev] Access Rule

2003-07-17 Thread Stefan H. Holek
You should be able to put export SUPPRESS_ACCESSRULE=1 into your start script, to disable existing access rules. Stefan --On Donnerstag, 17. Juli 2003 12:46 +0200 Hubert Muller [EMAIL PROTECTED] wrote: Anybody knows how to restore acces to folder with bad written site access rule ?

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 versions

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

Re: [Zope-dev] dir()

2003-11-05 Thread Stefan H. Holek
DocFinderEverywhere may be useful to you. http://www.zope.org/Members/shh/DocFinderEverywhere 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

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 quote by=Evan Simpson 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

[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

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 http://zope.org/Members/shh/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

[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

[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: http://zope.org/Collectors/Zope/1279 An already patched version of test.py is available from here: http://zope.org/Members/shh/TestRunner/test.py 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

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

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

[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

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

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

[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

[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

[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 either

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

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: +1 here too

[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

[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

[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

[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

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

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 wink. The consequences: Zope sites experiencing seemingly random

[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 -

[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

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

[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
/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 excellent fix, thanks! Stefan On 14. Feb 2005, at 20:24, Jim Fulton wrote: Tres Seaver wrote: Jim and I

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

[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

[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

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

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

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

[Zope-dev] Re: Python warnings behavior and stacklevel=2

2006-02-16 Thread Stefan H. Holek
This turned out to be a bug in FSPythonScripts (no __file__ in script globals). Fixed on all branches of CMF = 1.5. Cheers, Stefan On 13. Feb 2006, at 16:48, Julien Anguenot wrote: Florent Guillaume wrote: Julien Anguenot wrote: Tim Peters wrote: [Julien Anguenot] I'm having some

Re: [Zope-dev] IMO ZClasses should stay

2006-03-25 Thread Stefan H. Holek
+1 I have handed systems with a thin ZClass layer on top to semi- developers and they were *easily* able to take it from there. These are people who would never have grokked (and bothered with) disk- based Python development and all the mumbo-jumbo it entails. No other system has anything

Re: [Zope-dev] [Zope2.8.7] with Five 1.0 or Five 1.2

2006-03-27 Thread Stefan H. Holek
+1 On 27. Mär 2006, at 07:35, Andreas Jung wrote: Zope 2.8 ships/shipped with Five 1.0 which is very old and no longer actively maintained. Most ppl doing currently development with Zope 2.8 are using Five 1.2. Should we upgrade the Five version in Zope 2.8 to Five 1.2 to make their lives

Re: [Zope-dev] makerequest issues

2006-04-01 Thread Stefan H. Holek
I don't think makerequest is intended for wrapping anything but the root application object. Putting the RequestContainer on arbitrary objects doesn't feel right and certainly isn't how Zope does it, i.e. you get a test fixture that doesn't reflect reality. NotABug/WontFix ;-) Stefan On

Re: [Zope-dev] Bug in Zope 2.9?

2006-04-03 Thread Stefan H. Holek
This is an old ZODB, right? ZGlobals is used by ZClasses. There used to be a time when ZGlobals was still a BTree when it should have been a BTrees.BTree. Then some migration code was added. I suppose the error comes from the fact that BTree.so is now finally no longer part of Zope and

Re: [Zope-dev] makerequest issues

2006-04-04 Thread Stefan H. Holek
On 4. Apr 2006, at 16:53, Paul Winkler wrote: Hmmm, but unit tests very often don't reflect reality - deliberately! Because reality is Too Much Stuff. True enough. Any other opinions on this? Do we really need to require an App at the root any time we want to acquire REQUEST? That seems

Re: [Zope-dev] makerequest issues

2006-04-04 Thread Stefan H. Holek
The one in ZopeTestCase.utils is also meant to play with startZServer (same module). I agree that the one in Testing.makerequest could probably gain ACTUAL_URL, and maybe even the request._steps hack to make URL1 and friends available... However, I have not seen these URL vars used

Re: [Zope-dev] makerequest issues

2006-04-05 Thread Stefan H. Holek
On 4. Apr 2006, at 22:08, Paul Winkler wrote: On Tue, Apr 04, 2006 at 08:09:05PM +0200, Stefan H. Holek wrote: This looks fine to me because the world ends at parent. Your earlier example wrapped an object that was in the middle of an acquisition chain (IIRC), no, I think you invented

Re: [Zope-dev] makerequest issues

2006-04-05 Thread Stefan H. Holek
Out of curiosity, you know that SimpleItem does not have a constructor? You just inherit the one from ExtensionClass.Base, which accepts everything and subsequently ignores it. So your item will have an empty id. This *may* be what you want so your physical path starts with '' instead of

[Zope-dev] Zope Test Summaries 2006-04-05

2006-04-06 Thread Stefan H. Holek
[We seem to have lost Steve Alexander's test summarizer. I will contact him in a separate mail.] The switch to Python 2.3.4 caused tests for Zope 2.7 and 2.8 to experience a funny problem with the logging module. Anybody want to take a guess what's up here? I know these are not a truly

[Zope-dev] Re: [Checkins] SVN: Zope/trunk/ Fixed collector 2057: Testing.makequest broke getPhysicalPath()

2006-04-06 Thread Stefan H. Holek
For the record: I am still opposed to this change. It basically endows the request (as in self.REQUEST) with a getPhysicalPath method, and I have no idea what kind of side-effects this may have. AFAICS your test suite is the only suite around that wants to request- wrap non-root objects.

Re: [Zope-dev] Debugging spinning Zope?

2006-04-18 Thread Stefan H. Holek
http://www.zope.org/Members/4am/debugspinningzope On 18. Apr 2006, at 16:45, Morten W. Petersen wrote: Hi, I have a problem with a Zope that hangs eating up 99.9% of the CPU. I've tried to debug the problem by using DeadlockDebugger but that doesn't even return when accessing it. I guess the

[Zope-dev] Re: [Checkins] SVN: Zope/trunk/lib/python/App/FactoryDispatcher.py External methods can now live outside of Products based python packages.

2006-05-04 Thread Stefan H. Holek
Note that Zope2.app() opens a new ZODB connection which you need to close at some point. I suggest something along the lines of: app = Zope2.app() try: products = app.Control_Panel.Products ... finally: app._p_jar.close()

  1   2   >