[Zope-dev] Documentation

2003-03-11 Thread Manoel Filho
Hi! My name is Manoel from Rio de Janeiro, Brazil. I'm very early in Zope. I was wanting make my jobs with a good presentation. So I downloaded "Zope Website Documentation Tool". I followed the instructions. Unpacked the file, copy it to the "import" folder, gonne to root folder in Zope an

[Zope-dev] Pydoc and Zope

2003-03-11 Thread Joachim Werner
Hi! I've used Pydoc with Dieter Maurer's patches to browse the Zope sourcecode before. These patches are quite old and probably incompatible with current Zope versions. Is there a HOWTO for using Pydoc with a current Zope? Are there any new adapted versions of Pydoc? Or is there any better way of

Re: [Zope-dev] Zope Template Newbie question

2003-03-11 Thread Adrian van den Dries
On March 11, David Cain wrote: > And it does pull the file in, but it quotes the entire HTML in that file > so that my browser doesn't interpret it: http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AdvZPT.stx > Normally, the tal:replace and tal:content statements "quote" HTML > tags an

[Zope-dev] Zope Template Newbie question

2003-03-11 Thread David Cain
I'm trying to pull in another file with the following markup: Level2banner content goes here And it does pull the file in, but it quotes the entire HTML in that file so that my browser doesn't interpret it:

Re: [Zope-dev] ZopeSecurityPolicy

2003-03-11 Thread Dieter Maurer
Christian Theune wrote at 2003-3-11 17:11 +0100: > The method "validate" is not very clear about when it will raise an > exception and when it will return a boolean. > > This results in code that expects it to return a boolean, and makes > conclusions about exceptions that are wrong by catchi

Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Chris McDonough
On Tue, 2003-03-11 at 17:11, Dieter Maurer wrote: > All this is achieved by incorporating the result of "hostname" > into the respective environment variables. > > I do not know how to do something like this in a configuration > file (unless it provides for some form of shell functionali

Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Dieter Maurer
Chris McDonough wrote at 2003-3-10 16:41 -0500: > ... > - Configuration is normally done by editing a config file instead of > passing command line options. The configuration file is handled by > the ZConfig package. > > - Environment variables are no longer used for configuration. I a

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Jamie Heilman
Chris McDonough wrote: > On Tue, 2003-03-11 at 17:48, Jamie Heilman wrote: > > How about, "a lot of code/documentation was removed, and a lot of new > > code/documentation was added." Don't get hung up on the exact > > numbers, my point was, a lot of work has gone into "simplifying" the > > config

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Chris McDonough
On Tue, 2003-03-11 at 17:48, Jamie Heilman wrote: > How about, "a lot of code/documentation was removed, and a lot of new > code/documentation was added." Don't get hung up on the exact > numbers, my point was, a lot of work has gone into "simplifying" the > configuration process, but that the big

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Jamie Heilman
Jeremy Hylton wrote: > I don't know what work means in this context, but think the ZConfig > project is thorough. In my checkout there are 180k of document, 180k of > unit tests, and 136k of code. A measure of work that suggests that > something with 0k of documentation and tests and 136k of code

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Paul Winkler
On Tue, Mar 11, 2003 at 04:25:09PM -0500, Guido van Rossum wrote: > > > Oops, I stand corrected. But Zope 2.7 does include ZEO! > > > > Very good! But in that case, shouldn't the new Zope 2.7 install and > > startup stuff support it? > > Well, in a typical installation, you won't be running ZE

Re: [Zope-dev] Re: [Zope] Re: Proposed installation changes forreview

2003-03-11 Thread Dan L. Pierson
--On Tuesday, March 11, 2003 04:05:32 PM -0600 Evan Simpson <[EMAIL PROTECTED]> wrote: I routinely run ZEO on all of my sites, on the same machine. I don't gain any "scalability" benefits this way, but it is fantastic for debugging and tweaking a live site. My creaky old zctl.py auto-starts ZEO

Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Guido van Rossum
> I thought you had to install ZEO on top/inside of an existing Zope > installation. Will this be different in Zope 2.7? Yes, ZEO will be an integral part of Zope then. --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Zope-Dev maillist

[Zope-dev] Re: [Zope] Re: Proposed installation changes for review

2003-03-11 Thread Guido van Rossum
> I routinely run ZEO on all of my sites, on the same machine. I don't > gain any "scalability" benefits this way, but it is fantastic for > debugging and tweaking a live site. > > My creaky old zctl.py auto-starts ZEO when necessary, using the same > configuration data as it uses for the asso

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Guido van Rossum
> > Chris, have you looked at ZEO/mkzeoinst.py? It uses a somewhat > > simpler approach than the new Zope setup, but it creates a zeoctl > > script and a zeo.conf configuration file. > Cool! I didn't know. > > Do you think we should tell people that if they want to run a ZEO server > to just ru

Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Dario Lopez-Kästen
- Original Message - From: "Guido van Rossum" <[EMAIL PROTECTED]> > > > Oops, I stand corrected. But Zope 2.7 does include ZEO! > > > > Very good! But in that case, shouldn't the new Zope 2.7 install and > > startup stuff support it? > > Well, in a typical installation, you won't be run

[Zope-dev] Re: [Zope] Re: Proposed installation changes for review

2003-03-11 Thread Evan Simpson
Guido van Rossum wrote: Well, in a typical installation, you won't be running ZEO on the same machine as Zope, right? ZEO has its own install and config stuff, which is very similar to that for Zope, but ZEO is not installed as part of the main Zope install. I routinely run ZEO on all of my sites,

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Chris McDonough
Cool! I didn't know. Do you think we should tell people that if they want to run a ZEO server to just run mkzeoinst from the software home resulting from Zope's "make install" and to edit zope.conf to use a ClientStorage? > Chris, have you looked at ZEO/mkzeoinst.py? It uses a somewhat > simple

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Guido van Rossum
> > Very good! But in that case, shouldn't the new Zope 2.7 install and > > startup stuff support it? > > It does. It's just that the default setup is still to use a non-ZEOd > FileStorage for your main database. But you can change options in the > config file to make it use a ZEO ClientStorag

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Chris McDonough
On Tue, 2003-03-11 at 16:12, Dan L. Pierson wrote: > Very good! But in that case, shouldn't the new Zope 2.7 install and > startup stuff support it? It does. It's just that the default setup is still to use a non-ZEOd FileStorage for your main database. But you can change options in the config

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Jamie Heilman
Steve Alexander wrote: > > But lo, still you won't be able to do something as > >mundane as limit the memory the FTP server is able to consume without > >affecting the HTTP server. > > You can do this with Zope. Just use ZEO and run one ZEO front-end for > HTTP and one for FTP. Sure, but then yo

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Guido van Rossum
> > Oops, I stand corrected. But Zope 2.7 does include ZEO! > > Very good! But in that case, shouldn't the new Zope 2.7 install and > startup stuff support it? Well, in a typical installation, you won't be running ZEO on the same machine as Zope, right? ZEO has its own install and config stuf

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Dan L. Pierson
--On Tuesday, March 11, 2003 03:43:33 PM -0500 Guido van Rossum <[EMAIL PROTECTED]> wrote: On Tue, 2003-03-11 at 15:22, Guido van Rossum wrote: > > That's why we're including the correct versions of ZODB and ZEO in > Zope itself. That's already the case in Zope 2.6. Zope 2.6 doesn't yet include

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Guido van Rossum
> On Tue, 2003-03-11 at 15:22, Guido van Rossum wrote: > > > > That's why we're including the correct versions of ZODB and ZEO in > > Zope itself. That's already the case in Zope 2.6. > > Zope 2.6 doesn't yet include ZEO, at least I don't think it does. ;-) Oops, I stand corrected. But Zope 2.

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Chris McDonough
On Tue, 2003-03-11 at 15:22, Guido van Rossum wrote: > > That's why we're including the correct versions of ZODB and ZEO in > Zope itself. That's already the case in Zope 2.6. Zope 2.6 doesn't yet include ZEO, at least I don't think it does. ;-) - C __

Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Guido van Rossum
> Zope doesn't (currently) include ZEO so to get an up to date ZEO we > now have to obtain the correct version of the stand-alone ZODB and > extract the contained ZEO. The version numbers of the ZEO and > stand-alone ZODB are unrelated so figuring out which ZODB we need to > get ZEO is a bit of a p

Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Dan L. Pierson
--On Tuesday, March 11, 2003 02:39:55 PM -0500 Guido van Rossum <[EMAIL PROTECTED]> wrote: Does this mean that Zope 2.7 will require ZODB 3.2 for ZEO users? Zope 2.7 will *come with* ZODB 3.2 (or later, depending on the timing of the Zope 2.7 release), so I suppose so. ... As an aside, am I the on

Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Guido van Rossum
> > ZEO client configuration is included in the new configuration schema. > > > > ZEO server configuration has its own schema and tools, also based on > > ZConfig and the new zdaemon; you can check these out in the ZODB 3.2 > > alpha release. > > Does this mean that Zope 2.7 will require ZODB 3.2

Re: [Zope-dev] PyOpenGL support?

2003-03-11 Thread J Cameron Cooper
I've spent the last couple of days going through the Zope docs, mail archives, and even googling, but I can't find a lot of information on using PyOpenGL with Zope. I've found a message from Anthony Pfrunder, dated July 1999: "Within the next few weeks I'll be releasing an extension patch to al

Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Dan L. Pierson
--On Tuesday, March 11, 2003 10:17:08 AM -0500 Guido van Rossum <[EMAIL PROTECTED]> wrote: ZEO client configuration is included in the new configuration schema. ZEO server configuration has its own schema and tools, also based on ZConfig and the new zdaemon; you can check these out in the ZODB 3.

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Jeremy Hylton
> I'm not dismissing it, and I think you need to go back and read what I > wrote again very very carefully without reading anything into it. I'm > not trying to imply that using environment variables to configure the > current codebase will reduce the code footprint. Even if it did, > because of

Re: [Zope-dev] LOTS of roles?

2003-03-11 Thread Florent Guillaume
In article <[EMAIL PROTECTED]> you write: > > Note that you'll also want to change validate() if you go that route. > > It has a short-circuited version of getRolesInContext in it. > > are you sure it's not BasicUser.allowed() that you mean? > there's a comment in there about checking roles manaul

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Paul Winkler
On Tue, Mar 11, 2003 at 10:01:53AM -0500, Dan L. Pierson wrote: > I don't see an equivalent to "./zctl.py debug" anywhere. This starts up an > interactive Python as > a ZEO client with ZServer and Zope imported and app = Zope.app(). I use it > constantly. Please? +1. I also use zctl.py debug

[Zope-dev] ZopeSecurityPolicy

2003-03-11 Thread Christian Theune
Hi, I had some conversation with Tres about the SecurityPolicy implementation. I would like to clean up following problem: The method "validate" is not very clear about when it will raise an exception and when it will return a boolean. This results in code that expects it to return a boolean, an

Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Guido van Rossum
> The things that seemed to be missing from your writeup were: > > Almost no mention of ZEO (only one mention of a "zeo client name" > parameter). How does ZEO fit into this? ZEO client configuration is included in the new configuration schema. ZEO server configuration has its own schema and to

Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Dan L. Pierson
We currently rely on two scripts for running our Zopes: 1. A modified version of zctl.py. I originally got it from a moribund wiki on the Zope site. The main changes we've made have been to better separate parameters for Zope clients from parameters for the ZEO server and to run an additional s

[Zope-dev] PyOpenGL support?

2003-03-11 Thread Edward Duffy
Hello all, I've spent the last couple of days going through the Zope docs, mail archives, and even googling, but I can't find a lot of information on using PyOpenGL with Zope. I've found a message from Anthony Pfrunder, dated July 1999: "Within the next few weeks I'll be releasing an extension

Re: [Zope-dev] Re: [Zope] Proposed installation changes for review

2003-03-11 Thread Chris McDonough
On Tue, 2003-03-11 at 00:24, Edward Muller wrote: > Once zope is installed in /opt/zope-2.7.0 can it be moved without > damaging the install say to > /home/virtual/some.host.name/opt/zope-2.7.0 ? Yes. Its location is only meaningful to the instance files that need to find it. > In our hosti

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Steve Alexander
> But lo, still you won't be able to do something as mundane as limit the memory the FTP server is able to consume without affecting the HTTP server. You can do this with Zope. Just use ZEO and run one ZEO front-end for HTTP and one for FTP. -- Steve Alexander

Re: [Zope] Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Guido van Rossum
> The point I'm trying to make is that Zope has learned nothing from the > UNIX philosophy. Yes, you can extend the config schema. You can grow > new, better config files, of extraordinary magnitude. The > all-powerful server will grow from being all-powerful to being > all-powerful + n. It wil

Re: [Zope-dev] Proposed installation changes for review

2003-03-11 Thread Guido van Rossum
> Adrian van den Dries writes: > > Debug mode needs to be broken out into directives for its real > > effects. I always want Zope to run as a daemon, but I also want > > automatic PT/DTML reloading, and immediate tracebacks. I think there > > should be a separate "no-detach" for those people

Re: [Zope-dev] product import question

2003-03-11 Thread Max M
Eric Roby wrote: I attempted to restrict the meta_types in the class that is represented by dbFolder to just prodA. In order to gain access to the prodA add form, I had to import the prodA module into the prodB module and make the assignment in the class that is represented by dbFolder. At this