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

2004-05-17 Thread Erik A . Dahl
Things changed around a bit since I did this patch. I'm trying to get a new one working but am having some issues with the 2.7 trunk in svn. I think in general the startup sequence could use some clean up. I'm working on mapping how it all works maybe that would help make it less opaque.

[Zope-dev] Getting Zope 2.7 trunk working

2004-05-17 Thread Erik A . Dahl
I'm trying to do work off of the 2.7 trunk in svn. After doing: svn svn://svn.zope.org/repos/main/Zope/trunk zope ./configure make make instance when I run bin/zopectl debug I get the following, what am I doing wrong? No handlers could be found for logger Init Starting debugger (the name app is

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

2004-05-17 Thread Erik A . Dahl
Things changed around a bit since I did this patch. I'm trying to get a new one working but am having some issues with the 2.7 trunk in svn. I think in general the startup sequence could use some clean up. I'm working on mapping how it all works maybe that would help make it less opaque.

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

2004-05-17 Thread Erik A . Dahl
Ok, I think I have a fix for this but we have a little semantics issue. I thought that once the Zope config was set it could not be changed. In the new ZOPE_CONFIG patch the environ variable only gets used as a last resort in Zope.app() if no other configuration has been set. To do this I

Re: [Zope-dev] manage_permission from script

2004-04-08 Thread Erik A . Dahl
Thanks for the suggestion but no joy here. Here is the full trace... Python 2.3.3 (#1, Jan 27 2004, 09:17:28) [GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2 Type help, copyright, credits or license for more information. import Zope app = Zope.app() app.testfolder Folder instance at

[Zope-dev] manage_permission from script

2004-04-07 Thread Erik A . Dahl
I'm trying to use manage_permission from a script against the root application object. When I do I get the following error from ObjectManager. This definitely works from within zope since I'm able to edit permissions from the ZMI. I guess the app object returned from Zope.app() doesn't have

Re: [Zope-dev] Re: running test.py with instance_home products.

2004-03-02 Thread Erik A . Dahl
Or use this patch http://zope.org/Collectors/Zope/1233 that finds the config file via the environment variable ZOPE_CONFIG during a normal import Zope; app=Zope.app() dance. -EAD On Mar 2, 2004, at 10:52 AM, Tres Seaver wrote: Chris Withers wrote: Chris McDonough wrote: Has anyone found a

[Zope-dev] Understanding 2.7 Product import

2004-02-16 Thread Erik A . Dahl
Ok 2.7 has an instance/Products directory. What magic is letting them be imported? I'm running a bunch of data loader scripts that create persistent zope products. I have found that: import Globals sets things up so that my data loader scripts can import products properly (even though

Re: [Zope-dev] app = Zope.app() backwards incompatibility notice / discussion

2004-02-16 Thread Erik A . Dahl
Whatever happened to the ZOPE_CONFIG env idea? What I have found is that I started putting Zope.config(os.getenv(ZOPE_CONFIG)) in all my scripts. Why can't his happen within Zope.app()? Something like this. *** lib/python/Zope/__init__.py.orig 2003-12-21 19:24:25.0 -0500 ---

[Zope-dev] Options problems with 2.7 and Zope.configure(/instance/etc/zope.conf)

2004-02-14 Thread Erik A . Dahl
I'm moving a bunch of scripts that do the import Zope, app=Zope.app() dance to 2.7. I added the configure call and things were find until I ran a script that had positional arguments. This gave me a ERROR: positional arguments are not supported. This comes from zdoptions.py:226. Basically

Re: [Zope-dev] How to make Zope fail nicely under high load?

2004-02-12 Thread Erik A . Dahl
using the _v_ variables won't work for this since different threads won't agree on who was latest. Its definitely a bad idea to do queries for these three data points. What about putting them in the temp_folder then you can still use ZEO with a bunch of clients that will all share the same

[Zope-dev] Zope-2.6.3 issue with CMF-1.3.3 portal_types

2004-01-16 Thread Erik A . Dahl
I downloaded 2.6.3 to do some testing and found that with a totally generic CMF-1.3.3 there is an issue with opening properties of a portal type. Here is the stack trace: Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply

Re: [Zope-dev] app = Zope.app() backwards incompatibility notice / discussion

2003-12-22 Thread Erik A . Dahl
I do this dance a lot and this sounds fine to me. I tried using zopectl run with my scripts but you couldn't pass parameters to the script (which lowered the usefulness for me). -EAD On Dec 21, 2003, at 6:16 PM, Chris McDonough wrote: The extant import Zope; app = Zope.app() dance to get a

Re: [Zope-dev] Reminder: bug day tomorrow Oct 21

2003-10-20 Thread Erik A . Dahl
I'm getting close to needing to roll out an upgrade for a client site that will need to use python2.2 or . I have zope-2.6.2 working with python2.2.3 but when I try and use python2.3.2 things don't go so well. I'm wondering should I wait for 2.7 (and python2.3.2) or just go with what I have.

[Zope-dev] Zope 2.6.2, Zeo 2.0.1b1 and python 2.2.3

2003-09-22 Thread Erik A . Dahl
I'm trying to get this combo working (I know its not officially supported). It works fine except for when a second client updates zeo the changes aren't seen from the first client (until its restarted). I ran the zeo tests with 2.2.3 and they all pass. Zope 2.6.2 seems to work fine even

Re: [Zope-dev] Zope.app() dance with 2.7

2003-08-14 Thread Erik A . Dahl
Chris, I took the code from zopectl that is uses to do the debug thing and scripts now work. Here is the code... import os if (os.environ.has_key('ZOPEVERSION') and os.environ['ZOPEVERSION'] == '2.7'): from Zope.Startup.options import ZopeOptions from Zope.Startup import handlers

Re: [Zope-dev] __setattr__ and acquisition ( was RE: __getattr__and acquisition)

2002-06-05 Thread Erik A. Dahl
Yep. This is a problem for me I'm trying to find something through acquisition in my __setattr__. Self is totally unwrapped. Can anyone think of a creative solution? aq_acquire doesn't help because self is not a wrapped object. :( Can't pass in the object I want because the whole point

[Zope-dev] How to override __getattr__ and not break acquisition

2002-06-04 Thread Erik A. Dahl
Ok I need to override __getattr__ in one of my product classes. I'm sure this is killing acquisition but not sure about the persistence stuff (I think this is working). Is there a way to make this work? Here is what I'm doing: def __getattr__(self, name): if name == 'myattr':