From jeff at bottlerocket.net Tue Feb 3 12:04:36 2004
From: jeff at bottlerocket.net (Jeffrey P Shell)
Date: Tue Feb 3 12:23:41 2004
Subject: [Zope3-dev] products.securitypolicy and ZCML 'grant'/'role'
Message-ID: <0BD186D5-566B-11D8-A7B8-003065415378@bottlerocket.net>
Shouldn't the line importing the security policy come first?
It took me a while to figure out why some products in my file were
dying when the 'zcml' tried to use the ZCML zope:role directive.
Since securitypolicy is now a product (and I missed why this occurred,
but it explains why I was having startup problems earlier on an old
sandbox that I thought had just gotten woefully out of date), should it
still be putting ZCML directives into the most common namespace?
--
Jeffrey P Shell
jeff@bottlerocket.net
From jeff at bottlerocket.net Tue Feb 3 16:46:13 2004
From: jeff at bottlerocket.net (Jeffrey P Shell)
Date: Tue Feb 3 16:46:26 2004
Subject: [Zope3-dev] Calling persistent function
In-Reply-To: <40128191.9020103@z3u.com>
References: <20040122211459.68769.qmail@web20726.mail.yahoo.com>
<40128191.9020103@z3u.com>
Message-ID: <6350F472-5692-11D8-A7B8-003065415378@bottlerocket.net>
On Jan 24, 2004, at 7:30 AM, Steve Alexander wrote:
>
>> One problem I have with that is that
>> modules['time'].asctime() is forbidden in zpt. How do
>> I put the time and date in a zpt template?
>
> Make it not forbidden in zpt?
>
> I'd also like to see a
Again - if this is the norm, then we are regressing. JSP and ASP have
moved beyond this style, and by the time Zope 3 actually does something
useful, even PHP will have finally separated itself from between its
core programming language features and use as a templating system.
I know, I know, I know, we've been through this fight before and I'm
not going to fight it again. My fears over Zope 3 at the moment are
sadly greater than my intrigue, because I feel either insanely neutered
('content-space', where I haven't gotten anything besides a folder to
do its job), or insanely overwhelmed. It's taken me until yesterday to
finally figure out the service registration/activation thing.
:\
From philipp at weitershausen.de Wed Feb 4 12:12:06 2004
From: philipp at weitershausen.de (Philipp von Weitershausen)
Date: Wed Feb 4 12:05:30 2004
Subject: [Zope3-dev] Moving more stuff to zope.products
Message-ID:
Hi there,
in the currently ongoing process of reorganizing Zope3's package
structure and gutting out zope.app, I think the main packages that have
yet to be moved are:
- zope.app.workflow
- zope.app.content
- browser skins
While the first is probably easy to agree on, I realize that the latter
could be a point of discussion.
Anthony Baxter argued that just moving zope.app.content to
zope.products.content will not flatten the product hierarchy at all.
That is certainly true since the depth of the package remains the same,
however the package hierarchy will be straightened out a lot. Remember
how all interfaces are in zope.app.interfaces.content, all browsers
views are in zope.app.browser.content...? (see discussion several months
ago...)
From a philosophical point of view, content objects are custom to any
application. I have application where I never need Folder, File or weird
(forbidden?) stuff like Templated Page. Thus, one could argue that all
optional stuff belongs in zope.products, not in the core.
The same essential argument applies to the browser skins. Here, it makes
even more sense, because a browser skin is usually the first thing a
developer will customize in his/her own application anyway. By marking
them as optional by moving them zope.products, we encourage people to
actually do so. Otherwise we'll end up with the Plone dilemma, in which
every Plone site looks like plone.org, at least very similar.
There's another practical point for the skins. zope.products packages
are required to have a specified maintainer. IMO, the skins, especially
ZopeTop, have been not been taken care of enough recently. I think we
all agree that the UI needs more attention, something that a dedicated
maintainer of the skins package could be responsible of.
Looking-for-comments-ly,
Philipp
From gintas at pov.lt Wed Feb 4 12:05:53 2004
From: gintas at pov.lt (Gintautas Miliauskas)
Date: Wed Feb 4 12:15:03 2004
Subject: [Zope3-dev] zsync
Message-ID: <20040204170553.GA4405@gintm>
Hello,
While trying to put Zope3 into practical use, I have come across an
issue: zsync only handles typical page templates and folders, and b0rks
on other, specialized objects. Everything is fine until there is need to
modify the object in ZODB (e.g. after manually editing the dumped XML or
deleting the ZODB object), then the actual object in ZODB is replaced
with the source of dumped XML rather than a true object.
At first I thought that this is simply something that hasn't been
implemented, but Steve said it should work with anything, so I thought
I'd bring it to your attention.
P.S. I tested with the ZODB3 branch too, results are the same.
--
Gintautas
From jeff at bottlerocket.net Wed Feb 4 13:31:20 2004
From: jeff at bottlerocket.net (Jeffrey P Shell)
Date: Wed Feb 4 13:31:32 2004
Subject: [Zope3-dev] Moving more stuff to zope.products
In-Reply-To:
References:
Message-ID: <5426ABC8-5740-11D8-A7B8-003065415378@bottlerocket.net>
On Feb 4, 2004, at 10:12 AM, Philipp von Weitershausen wrote:
> Hi there,
>
> in the currently ongoing process of reorganizing Zope3's package
> structure and gutting out zope.app, I think the main packages that
> have yet to be moved are:
>
> - zope.app.workflow
> - zope.app.content
> - browser skins
>
> While the first is probably easy to agree on, I realize that the
> latter could be a point of discussion.
>
> Anthony Baxter argued that just moving zope.app.content to
> zope.products.content will not flatten the product hierarchy at all.
> That is certainly true since the depth of the package remains the
> same, however the package hierarchy will be straightened out a lot.
> Remember how all interfaces are in zope.app.interfaces.content, all
> browsers views are in zope.app.browser.content...? (see discussion
> several months ago...)
> From a philosophical point of view, content objects are custom to any
> application. I have application where I never need Folder, File or
> weird (forbidden?) stuff like Templated Page. Thus, one could argue
> that all optional stuff belongs in zope.products, not in the core.
Zope 2 separated out core OFS items (analogous to zope.app.content, I
assume) from 'Products.OFSP' (OFS Product). OFSP seems to be a bit of
a graveyard, consisting of 'Version' and 'Draft' objects (the latter
never being officially completed and exposed to the outside world). It
would probably be wise to avoid a situation like that.
I need to find out more about the dependencies on usage of
zope.products. I'm a bit stymied at the zope.products.securitypolicy
implementation as it stands now, because it seems like it's something a
lot of other elements (at least, products) could depend on (using the
ZCML 'role' and 'grant' tags, which are added to the main 'zope:' tag
namespace). If there are very very very common products that are
likely to be used by everybody (at least, everybody starting out),
'products.zcml.in' needs to stay up to date with a good basic setup and
comments, such as 'lots of products may depend on these, so they should
be loaded first' and then the 'here's some optional products'. When I
was playing with Zope 3 a couple of days ago (for the first time in
quite a while), my instincts on where to place product loads didn't
quite work out.
Is there any document about how zope.products is meant to be used? The
Wiki didn't yield anything helpful - is it all in the archives of the
zope3-dev list?
--
Jeffrey P Shell
jeff@bottlerocket.net
From casey at zope.com Wed Feb 4 13:43:18 2004
From: casey at zope.com (Casey Duncan)
Date: Wed Feb 4 13:46:04 2004
Subject: [Zope3-dev] Moving more stuff to zope.products
In-Reply-To:
References:
Message-ID: <20040204134318.65ee7044.casey@zope.com>
On Wed, 04 Feb 2004 18:12:06 +0100
Philipp von Weitershausen wrote:
> Hi there,
>
> in the currently ongoing process of reorganizing Zope3's package
> structure and gutting out zope.app, I think the main packages that
> have yet to be moved are:
>
> - zope.app.workflow
> - zope.app.content
> - browser skins
>
> While the first is probably easy to agree on, I realize that the
> latter could be a point of discussion.
>
> Anthony Baxter argued that just moving zope.app.content to
> zope.products.content will not flatten the product hierarchy at all.
> That is certainly true since the depth of the package remains the
> same, however the package hierarchy will be straightened out a lot.
> Remember how all interfaces are in zope.app.interfaces.content, all
> browsers views are in zope.app.browser.content...? (see discussion
> several months ago...)
> From a philosophical point of view, content objects are custom to any
>
> application. I have application where I never need Folder, File or
> weird (forbidden?) stuff like Templated Page. Thus, one could argue
> that all optional stuff belongs in zope.products, not in the core.
+++1
> The same essential argument applies to the browser skins. Here, it
> makes even more sense, because a browser skin is usually the first
> thing a developer will customize in his/her own application anyway. By
> marking them as optional by moving them zope.products, we encourage
> people to actually do so. Otherwise we'll end up with the Plone
> dilemma, in which every Plone site looks like plone.org, at least very
> similar.
ditto.
In general I think anything that describes policy that will be
overridden with any frequency (like 1 or more times ;^) should not be in
the core. Some others I think we might consider moving:
onlinehelp
rdb
schemagen (is this even still used?)
security? (not sure but it seems policyish)
services (not the whole thing, but this seems like a big grab-bag)
Another partially related thought:
Why don't the __init__.py files have a (terse) docstring that explains
the purpose of the package? Some of their names are so general, that
their purpose is not readily apparent. Even something like """The splat
package facilitates the canonical splat protocol from rfc1234""" would
be very helpful.
-Casey
From anthony at interlink.com.au Wed Feb 4 20:49:00 2004
From: anthony at interlink.com.au (Anthony Baxter)
Date: Wed Feb 4 20:49:53 2004
Subject: [Zope3-dev] Moving more stuff to zope.products
In-Reply-To:
Message-ID: <20040205014900.D4FA425B4BA@bonanza.off.ekorp.com>
My theory on this was that anything that's needed for Z3 to actually
boot up shouldn't be in zope.products. I'd like to see that anything
in zope.products _could_ be dropped without ill-effect. Philipp
pointed out that under this scheme, zope.products.securitypolicy
should be in zope.app.
Anthony
--
Anthony Baxter
It's never too late to have a happy childhood.
From jim at zope.com Wed Feb 4 21:28:23 2004
From: jim at zope.com (Jim Fulton)
Date: Wed Feb 4 21:30:22 2004
Subject: [Zope3-dev] Moving more stuff to zope.products
In-Reply-To:
References:
Message-ID: <4021AA47.1000804@zope.com>
Philipp von Weitershausen wrote:
> Hi there,
>
> in the currently ongoing process of reorganizing Zope3's package
> structure and gutting out zope.app, I think the main packages that have
> yet to be moved are:
>
> - zope.app.workflow
> - zope.app.content
> - browser skins
>
> While the first is probably easy to agree on, I realize that the latter
> could be a point of discussion.
>
> Anthony Baxter argued that just moving zope.app.content to
> zope.products.content will not flatten the product hierarchy at all.
> That is certainly true since the depth of the package remains the same,
> however the package hierarchy will be straightened out a lot. Remember
> how all interfaces are in zope.app.interfaces.content, all browsers
> views are in zope.app.browser.content...? (see discussion several months
> ago...)
Yup
> From a philosophical point of view, content objects are custom to any
> application. I have application where I never need Folder, File or weird
> (forbidden?) stuff like Templated Page. Thus, one could argue that all
> optional stuff belongs in zope.products, not in the core.
It's a bit hard to imagine a Zope without folder.
> The same essential argument applies to the browser skins.
yes
> Here, it makes
> even more sense, because a browser skin is usually the first thing a
> developer will customize in his/her own application anyway. By marking
> them as optional by moving them zope.products, we encourage people to
> actually do so. Otherwise we'll end up with the Plone dilemma, in which
> every Plone site looks like plone.org, at least very similar.
>
> There's another practical point for the skins. zope.products packages
> are required to have a specified maintainer. IMO, the skins, especially
> ZopeTop, have been not been taken care of enough recently. I think we
> all agree that the UI needs more attention, something that a dedicated
> maintainer of the skins package could be responsible of.
Agreed.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From jim at zope.com Wed Feb 4 21:35:23 2004
From: jim at zope.com (Jim Fulton)
Date: Wed Feb 4 21:37:26 2004
Subject: [Zope3-dev] Moving more stuff to zope.products
In-Reply-To: <5426ABC8-5740-11D8-A7B8-003065415378@bottlerocket.net>
References:
<5426ABC8-5740-11D8-A7B8-003065415378@bottlerocket.net>
Message-ID: <4021ABEB.9040202@zope.com>
Jeffrey P Shell wrote:
> On Feb 4, 2004, at 10:12 AM, Philipp von Weitershausen wrote:
>
>> Hi there,
>>
>> in the currently ongoing process of reorganizing Zope3's package
>> structure and gutting out zope.app, I think the main packages that
>> have yet to be moved are:
>>
>> - zope.app.workflow
>> - zope.app.content
>> - browser skins
>>
>> While the first is probably easy to agree on, I realize that the
>> latter could be a point of discussion.
>>
>> Anthony Baxter argued that just moving zope.app.content to
>> zope.products.content will not flatten the product hierarchy at all.
>> That is certainly true since the depth of the package remains the
>> same, however the package hierarchy will be straightened out a lot.
>> Remember how all interfaces are in zope.app.interfaces.content, all
>> browsers views are in zope.app.browser.content...? (see discussion
>> several months ago...)
>> From a philosophical point of view, content objects are custom to any
>> application. I have application where I never need Folder, File or
>> weird (forbidden?) stuff like Templated Page. Thus, one could argue
>> that all optional stuff belongs in zope.products, not in the core.
>
>
> Zope 2 separated out core OFS items (analogous to zope.app.content, I
> assume) from 'Products.OFSP' (OFS Product). OFSP seems to be a bit of a
> graveyard, consisting of 'Version' and 'Draft' objects (the latter never
> being officially completed and exposed to the outside world). It would
> probably be wise to avoid a situation like that.
Yup. As mentioned in a previous thread on this topic, there will be
a process for retiring subpackages of products. If products don't
retain a maintainer, the will eventually go away. It's likely that there
will be some pruning prior to the first beta.
> I need to find out more about the dependencies on usage of
> zope.products. I'm a bit stymied at the zope.products.securitypolicy
> implementation as it stands now, because it seems like it's something a
> lot of other elements (at least, products) could depend on
I don't think so.
> (using the
> ZCML 'role' and 'grant' tags, which are added to the main 'zope:' tag
> namespace).
Products should never use these. Only the site file should use these.
You are correct that these shouldn't be in the zope namespace.
> If there are very very very common products that are likely
> to be used by everybody (at least, everybody starting out),
> 'products.zcml.in' needs to stay up to date with a good basic setup and
> comments, such as 'lots of products may depend on these, so they should
> be loaded first' and then the 'here's some optional products'. When I
> was playing with Zope 3 a couple of days ago (for the first time in
> quite a while), my instincts on where to place product loads didn't
> quite work out.
In general, products should not depend on other products.
If there's a product that many other products depend on, then
it should probably be in the core. The security policy is *not*
such a product.
> Is there any document about how zope.products is meant to be used? The
> Wiki didn't yield anything helpful - is it all in the archives of the
> zope3-dev list?
Well, there's src/zope/products/README.txt. :)
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From jim at zope.com Wed Feb 4 21:38:27 2004
From: jim at zope.com (Jim Fulton)
Date: Wed Feb 4 21:40:31 2004
Subject: [Zope3-dev] Moving more stuff to zope.products
In-Reply-To: <20040204134318.65ee7044.casey@zope.com>
References:
<20040204134318.65ee7044.casey@zope.com>
Message-ID: <4021ACA3.7090308@zope.com>
Casey Duncan wrote:
...
> In general I think anything that describes policy that will be
> overridden with any frequency (like 1 or more times ;^) should not be in
> the core.
Well said.
> Some others I think we might consider moving:
>
> onlinehelp
> rdb
> schemagen (is this even still used?)
Yup
> security? (not sure but it seems policyish)
I don't think so. Parts of it maybe.
> services (not the whole thing, but this seems like a big grab-bag)
Yes, for some of them.
> Another partially related thought:
>
> Why don't the __init__.py files have a (terse) docstring that explains
> the purpose of the package? Some of their names are so general, that
> their purpose is not readily apparent. Even something like """The splat
> package facilitates the canonical splat protocol from rfc1234""" would
> be very helpful.
Agreed, except that I prefer to use README.txt files. They are easier
to see and easier to edit and aren't mixed up with code.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From jim at zope.com Wed Feb 4 21:40:50 2004
From: jim at zope.com (Jim Fulton)
Date: Wed Feb 4 21:42:56 2004
Subject: [Zope3-dev] Moving more stuff to zope.products
In-Reply-To: <20040205014900.D4FA425B4BA@bonanza.off.ekorp.com>
References: <20040205014900.D4FA425B4BA@bonanza.off.ekorp.com>
Message-ID: <4021AD32.3080505@zope.com>
Anthony Baxter wrote:
> My theory on this was that anything that's needed for Z3 to actually
> boot up shouldn't be in zope.products. I'd like to see that anything
> in zope.products _could_ be dropped without ill-effect. Philipp
> pointed out that under this scheme, zope.products.securitypolicy
> should be in zope.app.
Just because something is in zope.products doesn't mean it's
not going to be in distributions and available for booting.
We need *some* security policy to boot up, but not necessarily
the current one.
Zope will need certain facilities, but these will often be pluggable.
I think that Casey put this very well in his note.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From philipp at weitershausen.de Thu Feb 5 05:43:27 2004
From: philipp at weitershausen.de (Philipp von Weitershausen)
Date: Thu Feb 5 06:01:34 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <4021AA47.1000804@zope.com>
References: <4021AA47.1000804@zope.com>
Message-ID: <40221E4F.4060906@weitershausen.de>
>> From a philosophical point of view, content objects are custom to any
>> application. I have application where I never need Folder, File or
>> weird (forbidden?) stuff like Templated Page. Thus, one could argue
>> that all optional stuff belongs in zope.products, not in the core.
>
> It's a bit hard to imagine a Zope without folder.
It's hard to imagine Zope without a *container*... :) But ok, I can see
why folders should maybe remaing a part of zope.app. The other stuff
should move to zope.products, though.
Btw, I also feel kind of strongly about making Templated Page and Python
Page (and possibly Catalog!) separate from the other 'sane' content
objects, such as File, Image, etc. *and* disable them by default. If
people do not want to disable them by default, it should at least be a
matter of one line in products.zcml to disable them.
We could make two packages in zope.products:
- zope.products.basiccontent or defaultcontent
- zope.products.codecontent
or
- zope.products.content
- zope.products.content.code
I prefer the first one, mainly because of the hierarchy depth and the
hierarchy straight-forwardness (interfaces, browser, etc.)
Philipp
From casey at zope.com Thu Feb 5 09:45:45 2004
From: casey at zope.com (Casey Duncan)
Date: Thu Feb 5 09:48:28 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <40221E4F.4060906@weitershausen.de>
References: <4021AA47.1000804@zope.com>
<40221E4F.4060906@weitershausen.de>
Message-ID: <20040205094545.34bd742b.casey@zope.com>
On Thu, 05 Feb 2004 11:43:27 +0100
Philipp von Weitershausen wrote:
> >> From a philosophical point of view, content objects are custom to
> >any > application. I have application where I never need Folder, File
> >or > weird (forbidden?) stuff like Templated Page. Thus, one could
> >argue > that all optional stuff belongs in zope.products, not in the
> >core.
> >
> > It's a bit hard to imagine a Zope without folder.
>
> It's hard to imagine Zope without a *container*... :) But ok, I can
> see why folders should maybe remaing a part of zope.app. The other
> stuff should move to zope.products, though.
I disagree. My notion of a folder may not be yours. zope.app should IMO
define a base container (probably not even suitable for use by itself).
A default folder for content space derived from it can be defined in a
product that is enabled by default.
I'm not just speaking hypothetically here. The fact the OFS.Folder is
part of the Zope2 core bothers the heck out of me. Granted the contract
of ObjectManager does too. Anyhow, I feel relatively assured we won't
wind up with that sort of thing in Zope3 since they are a direct result
of the mixin class model and lack in separation of concerns that pervade
Zope2.
> Btw, I also feel kind of strongly about making Templated Page and
> Python Page (and possibly Catalog!) separate from the other 'sane'
> content objects, such as File, Image, etc. *and* disable them by
> default. If people do not want to disable them by default, it should
> at least be a matter of one line in products.zcml to disable them.
I don't really see why any specific content objects need to come with
the core.
It seems a bit silly to ship products with Zope3 that are disabled by
default. Things that are disabled probably should be separate from the
main distro.
> We could make two packages in zope.products:
>
> - zope.products.basiccontent or defaultcontent
> - zope.products.codecontent
Maybe, but I don't feel too strongly about it. I guess it will make the
products.zcml easier to manage since you can just nuke one line to
disable codecontent for example.
> or
>
> - zope.products.content
> - zope.products.content.code
>
> I prefer the first one, mainly because of the hierarchy depth and the
> hierarchy straight-forwardness (interfaces, browser, etc.)
The nesting seems unecessary since they would be in different modules
anyway (I hope ;^). Making them different top level products seems
reasonable (and more discoverable too).
-Casey
P.S. I'm really pleased this effort is happening. This is the kind of
vigilance that is necessary to keep the codebase clean and concerns
separated. It will only be possible to keep it that way if it starts out
that way.
From jim at zope.com Thu Feb 5 13:52:07 2004
From: jim at zope.com (Jim Fulton)
Date: Thu Feb 5 18:52:56 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <40221E4F.4060906@weitershausen.de>
References: <4021AA47.1000804@zope.com>
<40221E4F.4060906@weitershausen.de>
Message-ID: <402290D7.4030800@zope.com>
Philipp von Weitershausen wrote:
...
>> It's a bit hard to imagine a Zope without folder.
>
>
> It's hard to imagine Zope without a *container*... :) But ok, I can see
> why folders should maybe remaing a part of zope.app. The other stuff
> should move to zope.products, though.
>
> Btw, I also feel kind of strongly about making Templated Page and Python
> Page (and possibly Catalog!) separate from the other 'sane' content
> objects, such as File, Image, etc. *and* disable them by default. If
> people do not want to disable them by default, it should at least be a
> matter of one line in products.zcml to disable them.
You are taking the position of the developer. An important customer of Zope
if the "scripter". I want to pay *more* attention to them in the default
configuration, not less.
While there might be fewer content types enabled by default than there
are now, I would absolutely include templated page.
> We could make two packages in zope.products:
>
> - zope.products.basiccontent or defaultcontent
> - zope.products.codecontent
>
> or
>
> - zope.products.content
> - zope.products.content.code
No, that's too complicated. It makes the hierartchy even deeper.
I'm happy that we've separated demos. We don't need more organization.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From jim at zope.com Thu Feb 5 14:00:14 2004
From: jim at zope.com (Jim Fulton)
Date: Thu Feb 5 19:00:41 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <20040205094545.34bd742b.casey@zope.com>
References:
<4021AA47.1000804@zope.com> <40221E4F.4060906@weitershausen.de>
<20040205094545.34bd742b.casey@zope.com>
Message-ID: <402292BE.8060801@zope.com>
Casey Duncan wrote:
> On Thu, 05 Feb 2004 11:43:27 +0100
> Philipp von Weitershausen wrote:
>
>
>>>>From a philosophical point of view, content objects are custom to
>>>
>>>any > application. I have application where I never need Folder, File
>>>or > weird (forbidden?) stuff like Templated Page. Thus, one could
>>>argue > that all optional stuff belongs in zope.products, not in the
>>>core.
>>>
>>>It's a bit hard to imagine a Zope without folder.
>>
>>It's hard to imagine Zope without a *container*... :) But ok, I can
>>see why folders should maybe remaing a part of zope.app. The other
>>stuff should move to zope.products, though.
>
>
> I disagree. My notion of a folder may not be yours. zope.app should IMO
> define a base container (probably not even suitable for use by itself).
> A default folder for content space derived from it can be defined in a
> product that is enabled by default.
Right, the default will be Folder. You will be able to override this
with something else. 90% of Zope users will not care to do so, however,
and certainly won't want to have to.
> I'm not just speaking hypothetically here. The fact the OFS.Folder is
> part of the Zope2 core bothers the heck out of me.
Sorry to hear that. :)
> Granted the contract
> of ObjectManager does too. Anyhow, I feel relatively assured we won't
> wind up with that sort of thing in Zope3 since they are a direct result
> of the mixin class model and lack in separation of concerns that pervade
> Zope2.
I don't understand what that has to do with it. Most people aren't
going to totally refedine Zope at every level. They will want some standard
batteries to be included.
>
>>Btw, I also feel kind of strongly about making Templated Page and
>>Python Page (and possibly Catalog!) separate from the other 'sane'
>>content objects, such as File, Image, etc. *and* disable them by
>>default. If people do not want to disable them by default, it should
>>at least be a matter of one line in products.zcml to disable them.
>
>
> I don't really see why any specific content objects need to come with
> the core.
To make it usable.
> It seems a bit silly to ship products with Zope3 that are disabled by
> default. Things that are disabled probably should be separate from the
> main distro.
What ships with Zope 3 is an open issue that we aren't really thinking
about yet. Some of the things in zope.products will be shipped in
common distributions, and some won't be.
>
>>We could make two packages in zope.products:
>>
>>- zope.products.basiccontent or defaultcontent
>>- zope.products.codecontent
>
>
> Maybe, but I don't feel too strongly about it. I guess it will make the
> products.zcml easier to manage since you can just nuke one line to
> disable codecontent for example.
yagni :)
>
>>or
>>
>>- zope.products.content
>>- zope.products.content.code
>>
>>I prefer the first one, mainly because of the hierarchy depth and the
>>hierarchy straight-forwardness (interfaces, browser, etc.)
>
>
> The nesting seems unecessary since they would be in different modules
> anyway (I hope ;^). Making them different top level products seems
> reasonable (and more discoverable too).
Yup
> -Casey
>
> P.S. I'm really pleased this effort is happening. This is the kind of
> vigilance that is necessary to keep the codebase clean and concerns
> separated. It will only be possible to keep it that way if it starts out
> that way.
Yes
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From jim at zope.com Thu Feb 5 22:12:06 2004
From: jim at zope.com (Jim Fulton)
Date: Thu Feb 5 22:12:52 2004
Subject: [Zope3-dev] Need help planning Zope X3 1.0
Message-ID: <40230606.4090805@zope.com>
I just updated:
doc/ROADMAP.txt
http://cvs.zope.org/Zope3/doc/ROADMAP.txt?rev=HEAD&content-type=text/vnd.viewcvs-markup
If I've forgotten anything, please let me know, or update the file.
If I should exclude something, please let me know, but please don't remove
it from the file. Instead, add it to one of the "later" sections.
These notes are pretty rough. Let me know if you want clarification
on something. Asking for clarification suggest that you might be willing
to work on something.
My goals in this plan are:
- Provide a solid foundation for moving forward.
Most of the tasks are foundational tasks. This is to
reflect architectural changes we want to make beased on
experience build Zope 3 applications, including Zope 3
itself.
- Get to Zope X3 1.0 as soon as possible. I expect that there
will be additional Zope X3 releases before Zope 3.0.
One area that I'd especially like to get input on is
support for scriptors. http://dev.zope.org/Zope3/SiteScripter.
Do we need to do more for scripters in release 1.0? If so,
is anyone willing to provide some leadership?
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From dpharris76 at msn.com Fri Feb 6 00:36:32 2004
From: dpharris76 at msn.com (David Harris)
Date: Fri Feb 6 00:49:50 2004
Subject: [Zope3-dev] WindowsXP Test Results - Zope 3/Python2.3.3
Message-ID:
I checked out the latest Zope3 source at 21:30 CST and ran the unit tests. I'm tracking down the failures, but here are the results if anyone is interested:
======================================================================
FAIL: test_commandline_overrides (zodb.zeo.tests.test_options.TestZEOOptions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\sf\Zope3\src\zodb\zeo\tests\test_options.py", line 90, in test_commandline_overrides
self.assertEqual(options.address, ("", 6666))
File "C:\PYTHON23\Lib\unittest.py", line 302, in failUnlessEqual
raise self.failureException, \
AssertionError: ('localhost', 6666) != ('', 6666)
======================================================================
FAIL: test_defaults_with_schema (zodb.zeo.tests.test_options.TestZEOOptions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\sf\Zope3\src\zodb\zeo\tests\test_options.py", line 64, in test_defaults_with_schema
self.assertEqual(options.address, ("", 5555))
File "C:\PYTHON23\Lib\unittest.py", line 302, in failUnlessEqual
raise self.failureException, \
AssertionError: ('localhost', 5555) != ('', 5555)
======================================================================
FAIL: test_defaults_without_schema (zodb.zeo.tests.test_options.TestZEOOptions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\sf\Zope3\src\zodb\zeo\tests\test_options.py", line 76, in test_defaults_without_schema
self.assertEqual(options.address, ("", 5555))
File "C:\PYTHON23\Lib\unittest.py", line 302, in failUnlessEqual
raise self.failureException, \
AssertionError: ('localhost', 5555) != ('', 5555)
======================================================================
FAIL: Doctest: zope.products.pythonpage.PythonPage
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\sf\Zope3\src\zope\testing\doctestunit.py", line 67, in runTest
raise self.failureException(
AssertionError: Failed doctest test for zope.products.pythonpage.PythonPage
File "D:\sf\Zope3\src\zope\products\pythonpage\__init__.py", line 107 (or above), in PythonPage
*****************************************************************
Failure in example:
try:
pp.setSource(u"prin 'hello'")
except SyntaxError, err:
print err
from line #38 of zope.products.pythonpage.PythonPage
Expected: invalid syntax (pp, line 1)
Got: invalid syntax (/pp, line 1)
----------------------------------------------------------------------
Ran 5211 tests in 3799.353s
FAILED (failures=4)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-dev/attachments/20040205/a4806f3d/attachment.html
From philipp at weitershausen.de Fri Feb 6 03:10:09 2004
From: philipp at weitershausen.de (Philipp von Weitershausen)
Date: Fri Feb 6 03:03:25 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <402290D7.4030800@zope.com>
References: <4021AA47.1000804@zope.com>
<40221E4F.4060906@weitershausen.de> <402290D7.4030800@zope.com>
Message-ID: <40234BE1.4040000@weitershausen.de>
Jim Fulton wrote:
>> It's hard to imagine Zope without a *container*... :) But ok, I can
>> see why folders should maybe remaing a part of zope.app. The other
>> stuff should move to zope.products, though.
>>
>> Btw, I also feel kind of strongly about making Templated Page and
>> Python Page (and possibly Catalog!) separate from the other 'sane'
>> content objects, such as File, Image, etc. *and* disable them by
>> default. If people do not want to disable them by default, it should
>> at least be a matter of one line in products.zcml to disable them.
>
> You are taking the position of the developer. An important customer
> of Zope if the "scripter". I want to pay *more* attention to them in
> the default configuration, not less.
Does the scripter care *where* the content type 'Folder' is defined? I'm
not talking about shipping a crippled Zope3 that a scripter won't be
able to work with. But I do share Casey's doubts about OFS.Folder's
central role in Zope2 and his wish not to fall back to this behaviour again.
> While there might be fewer content types enabled by default than there
> are now, I would absolutely include templated page.
We agree to disagree then ;).
Philipp
From philipp at weitershausen.de Fri Feb 6 03:20:32 2004
From: philipp at weitershausen.de (Philipp von Weitershausen)
Date: Fri Feb 6 03:14:03 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <402292BE.8060801@zope.com>
References:
<4021AA47.1000804@zope.com> <40221E4F.4060906@weitershausen.de>
<20040205094545.34bd742b.casey@zope.com>
<402292BE.8060801@zope.com>
Message-ID: <40234E50.7000901@weitershausen.de>
Jim Fulton wrote:
>> Granted the contract
>> of ObjectManager does too. Anyhow, I feel relatively assured we won't
>> wind up with that sort of thing in Zope3 since they are a direct result
>> of the mixin class model and lack in separation of concerns that pervade
>> Zope2.
>
>
> I don't understand what that has to do with it. Most people aren't
> going to totally refedine Zope at every level. They will want some standard
> batteries to be included.
I don't think we're talking about redefining Zope at every level.
Content objects are just the most common 'redefinition', meaning
customization that people will make. Therefore I think it is justified
to ban example implementation out of the core. IIRC, the CMF has CMFCore
and CMFDefault, too ;).
I think Casey was referring to SimpleItem, ObjectManager,
PropertyManager and all those other mixins.
>>> Btw, I also feel kind of strongly about making Templated Page and
>>> Python Page (and possibly Catalog!) separate from the other 'sane'
>>> content objects, such as File, Image, etc. *and* disable them by
>>> default. If people do not want to disable them by default, it should
>>> at least be a matter of one line in products.zcml to disable them.
>>
>>
>> I don't really see why any specific content objects need to come with
>> the core.
>
> To make it usable.
I respectfully disagree. Stuff needn't be in the core to make Zope3
usable. It just needs to be in products.zcml.in.
Philipp
From faassen at infrae.com Fri Feb 6 05:25:09 2004
From: faassen at infrae.com (Martijn Faassen)
Date: Fri Feb 6 05:26:41 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <20040205094545.34bd742b.casey@zope.com>
References: <4021AA47.1000804@zope.com>
<40221E4F.4060906@weitershausen.de>
<20040205094545.34bd742b.casey@zope.com>
Message-ID: <20040206102509.GA8234@vet.uu.nl>
Casey Duncan wrote:
> It seems a bit silly to ship products with Zope3 that are disabled by
> default. Things that are disabled probably should be separate from the
> main distro.
Agreed! This sounds like a good guideline for zope.products.
This reminds me we should make at least some progress towards a repository
for all those components that shouldn't be part of the core.
Regards,
Martijn
From faassen at infrae.com Fri Feb 6 05:36:38 2004
From: faassen at infrae.com (Martijn Faassen)
Date: Fri Feb 6 05:38:10 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <402292BE.8060801@zope.com>
References: <4021AA47.1000804@zope.com>
<40221E4F.4060906@weitershausen.de>
<20040205094545.34bd742b.casey@zope.com>
<402292BE.8060801@zope.com>
Message-ID: <20040206103638.GB8234@vet.uu.nl>
Jim Fulton wrote:
> >It seems a bit silly to ship products with Zope3 that are disabled by
> >default. Things that are disabled probably should be separate from the
> >main distro.
>
> What ships with Zope 3 is an open issue that we aren't really thinking
> about yet. Some of the things in zope.products will be shipped in
> common distributions, and some won't be.
Um, in practice you realize that 'common distributions' *will* be shipping
zope.products, *unless we do something about it*, right? It's not like I or
anyone else is going to sit there, take Zope.org's distribution of Zope 3
and redistribute it without some products to the rest of the world. This is
because zope.org's distribution will be the most common distribution by
far.
Even when I distribute to my own clients I'd prefer to point them to the
standard zope.org distribution.
I'd rather have zope.products contain stuff that's enabled by default, except
when the following occurs:
There are two or more different packages that fulfill the same task, and
they're both useful and maintained. I could imagine two security policies,
for instance.
zope.examples can contain code that isn't enabled by default as it's obviously
example code.
Anything else doesn't belong in the zope core distribution at all and should go
live in some extension.
It should of course be possible to disable products and either replace them
with something that fullfills the same task or just leave them out altogether.
Though I wouldn't be surprised to see a lot of Zope 3 extension code that
depends on things in zope.products. This is not a bad thing; it shows that
the zope.products code is actually useful.
In my mind, "zope.products", part of the Zope 3 CVS repository, which you'll
get when you do a checkout, certainly affects the most common distribution of
Zope 3 that we'll see, i.e. zope.org's one. In fact this is now the *only*
distribution of Zope 3 in existence.. :)
Regards,
Martijn
From faassen at infrae.com Fri Feb 6 05:40:12 2004
From: faassen at infrae.com (Martijn Faassen)
Date: Fri Feb 6 05:41:43 2004
Subject: [Zope3-dev] Need help planning Zope X3 1.0
In-Reply-To: <40230606.4090805@zope.com>
References: <40230606.4090805@zope.com>
Message-ID: <20040206104012.GC8234@vet.uu.nl>
Jim Fulton wrote:
> One area that I'd especially like to get input on is
> support for scriptors. http://dev.zope.org/Zope3/SiteScripter.
>
> Do we need to do more for scripters in release 1.0? If so,
> is anyone willing to provide some leadership?
To support scripters better a lot more thinking would need to happen,
and a lot more design. A leader will have to step up in order for this
to happen.
Even if a leader stood up yesterday though it's not realistic for the
consequences of all this design and implementation work to be part of
Zope X3, without delaying the release of Zope X3. I would therefore suggest
we don't worry about scripters too much in release 1.0, and simply put up
a a notice that Zope X3 is oriented towards Python developers and that
a later release will add more functionality for scripters.
Regards,
Martijn
From casey at zope.com Fri Feb 6 09:33:09 2004
From: casey at zope.com (Casey Duncan)
Date: Fri Feb 6 09:35:53 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <402292BE.8060801@zope.com>
References: <4021AA47.1000804@zope.com>
<40221E4F.4060906@weitershausen.de>
<20040205094545.34bd742b.casey@zope.com>
<402292BE.8060801@zope.com>
Message-ID: <20040206093309.63b2227e.casey@zope.com>
On Thu, 05 Feb 2004 14:00:14 -0500
Jim Fulton wrote:
> Casey Duncan wrote:
> > On Thu, 05 Feb 2004 11:43:27 +0100
> > Philipp von Weitershausen wrote:
[..]
>
> Right, the default will be Folder. You will be able to override this
> with something else. 90% of Zope users will not care to do so,
> however, and certainly won't want to have to.
Yes, count me into the 10% ;^)
> > I'm not just speaking hypothetically here. The fact the OFS.Folder
> > is part of the Zope2 core bothers the heck out of me.
>
> Sorry to hear that. :)
>
> > Granted the contract
> > of ObjectManager does too. Anyhow, I feel relatively assured we
> > won't wind up with that sort of thing in Zope3 since they are a
> > direct result of the mixin class model and lack in separation of
> > concerns that pervade Zope2.
>
> I don't understand what that has to do with it. Most people aren't
> going to totally refedine Zope at every level. They will want some
> standard batteries to be included.
Absolutely, I'm not arguing whether it should include a folder,
template, document, etc. It absolutely should. I just think these
"content type" definitions should be in a product rather than in the
core.
In my mind content types, no matter how generic, inevitably define
policy. Their presence or absence alone is policy. Of course a default
policy is crucial to the system taking hold especially with "scripters",
I'd just like to see it close to the surface so that I can skim it off
if I want ;^)
> >>Btw, I also feel kind of strongly about making Templated Page and
> >>Python Page (and possibly Catalog!) separate from the other 'sane'
> >>content objects, such as File, Image, etc. *and* disable them by
> >>default. If people do not want to disable them by default, it should
> >>at least be a matter of one line in products.zcml to disable them.
> >
> >
> > I don't really see why any specific content objects need to come
> > with the core.
>
> To make it usable.
I should have been more clear. They can come with the distro (as
products), just not in the core IMO.
> > It seems a bit silly to ship products with Zope3 that are disabled
> > by default. Things that are disabled probably should be separate
> > from the main distro.
>
> What ships with Zope 3 is an open issue that we aren't really thinking
> about yet. Some of the things in zope.products will be shipped in
> common distributions, and some won't be.
Yup. I think of the Zope3 core like a Linux kernel. Every Linux distro
has a shell, fs, utilites, etc., but they aren't part of the kernel.
Every Zope3 distro will have some views and content types and utilities,
but they aren't necessarily part of the core.
If this turns out to be the case, it will be interesting to see how many
distros of Zope3 take form.
-Casey
From fred at zope.com Fri Feb 6 09:40:41 2004
From: fred at zope.com (Fred Drake)
Date: Fri Feb 6 09:41:05 2004
Subject: [Zope3-dev] WindowsXP Test Results - Zope 3/Python2.3.3
In-Reply-To:
References:
Message-ID: <200402060940.41224.fred@zope.com>
On Friday 06 February 2004 12:36 am, David Harris wrote:
> ======================================================================
> FAIL: test_commandline_overrides
(zodb.zeo.tests.test_options.TestZEOOptions)
...
> FAIL: test_defaults_with_schema
(zodb.zeo.tests.test_options.TestZEOOptions)
...
> FAIL: test_defaults_without_schema
(zodb.zeo.tests.test_options.TestZEOOptions)
These three will fail on all Windows flavors; I'll fix the tests in a few
minutes. The problem here is that until yesterday, ZConfig reported a poor
default hostname on Windows when an address was specified with only a port
number; these tests need to consult ZConfig for the "default" host reported
when the host isn't specified.
Thanks for running the tests on XP!
-Fred
--
Fred L. Drake, Jr.
PythonLabs at Zope Corporation
From tseaver at zope.com Fri Feb 6 10:00:53 2004
From: tseaver at zope.com (Tres Seaver)
Date: Fri Feb 6 10:01:00 2004
Subject: [Zope3-dev] Re: Need help planning Zope X3 1.0
In-Reply-To: <20040206104012.GC8234@vet.uu.nl>
References: <40230606.4090805@zope.com> <20040206104012.GC8234@vet.uu.nl>
Message-ID:
Martijn Faassen wrote:
> Jim Fulton wrote:
>
>>One area that I'd especially like to get input on is
>>support for scriptors. http://dev.zope.org/Zope3/SiteScripter.
>>
>>Do we need to do more for scripters in release 1.0? If so,
>>is anyone willing to provide some leadership?
>
>
> To support scripters better a lot more thinking would need to happen,
> and a lot more design. A leader will have to step up in order for this
> to happen.
>
> Even if a leader stood up yesterday though it's not realistic for the
> consequences of all this design and implementation work to be part of
> Zope X3, without delaying the release of Zope X3. I would therefore suggest
> we don't worry about scripters too much in release 1.0, and simply put up
> a a notice that Zope X3 is oriented towards Python developers and that
> a later release will add more functionality for scripters.
+1. I don't think users who don't need not-yet-ready-for-prime-time
features (e.g., TTW scripting) should necessarily pay the costs
(complexity, delayed releases) associated with them.
Actually, I would prefer to offer a "stripped-down" version of X3, which
contained the minimum set of products required to bootstrap a site at
all, and then focus on easing the construction of configurations which
include one or more optional products.
For instance, suppose that we offered a web-form with a list of the
available "zope.products" offerings, and then synthesized a package
(perhaps a Windows installer, or a tarball). We could make several
"presets" available. For instance:
- "Barebones"
- "CMF 2.0" would have versions of the "stock" CMFDefault content
types, perhaps with some tools to ease migration of Plone / CMF
sites.
- "Wiki site"
- "TTW Development"
I have spent a *lot* of time recently on packaging Zope2-based systems;
making 3X's product set more modular would go a *long* way toward
easing the same task for Zope3.
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
From jim at zope.com Fri Feb 6 15:19:54 2004
From: jim at zope.com (Jim Fulton)
Date: Fri Feb 6 15:20:42 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <20040206093309.63b2227e.casey@zope.com>
References: <4021AA47.1000804@zope.com> <40221E4F.4060906@weitershausen.de> <20040205094545.34bd742b.casey@zope.com> <402292BE.8060801@zope.com>
<20040206093309.63b2227e.casey@zope.com>
Message-ID: <4023F6EA.3080605@zope.com>
Casey Duncan wrote:
> On Thu, 05 Feb 2004 14:00:14 -0500
> Jim Fulton wrote:
>
>
>>Casey Duncan wrote:
>>
>>>On Thu, 05 Feb 2004 11:43:27 +0100
>>>Philipp von Weitershausen wrote:
>
> [..]
>
>>Right, the default will be Folder. You will be able to override this
>>with something else. 90% of Zope users will not care to do so,
>>however, and certainly won't want to have to.
>
>
> Yes, count me into the 10% ;^)
Of course. :)
>
>>>I'm not just speaking hypothetically here. The fact the OFS.Folder
>>>is part of the Zope2 core bothers the heck out of me.
>>
>>Sorry to hear that. :)
>>
>> > Granted the contract
>>
>>>of ObjectManager does too. Anyhow, I feel relatively assured we
>>>won't wind up with that sort of thing in Zope3 since they are a
>>>direct result of the mixin class model and lack in separation of
>>>concerns that pervade Zope2.
>>
>>I don't understand what that has to do with it. Most people aren't
>>going to totally refedine Zope at every level. They will want some
>>standard batteries to be included.
>
>
> Absolutely, I'm not arguing whether it should include a folder,
> template, document, etc. It absolutely should. I just think these
> "content type" definitions should be in a product rather than in the
> core.
OK.
...
> I should have been more clear. They can come with the distro (as
> products), just not in the core IMO.
Cool
>>What ships with Zope 3 is an open issue that we aren't really thinking
>>about yet. Some of the things in zope.products will be shipped in
>>common distributions, and some won't be.
>
>
> Yup. I think of the Zope3 core like a Linux kernel. Every Linux distro
> has a shell, fs, utilites, etc., but they aren't part of the kernel.
> Every Zope3 distro will have some views and content types and utilities,
> but they aren't necessarily part of the core.
We agree.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From dev at projekt01.ch Fri Feb 6 17:06:55 2004
From: dev at projekt01.ch (Roger ineichen)
Date: Fri Feb 6 17:08:05 2004
Subject: AW: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <20040206093309.63b2227e.casey@zope.com>
Message-ID: <001c01c3ecfd$896c6810$1e63a8c0@projekt01.local>
We deveolpe a framework based on zope3
> > Right, the default will be Folder. You will be able to
> override this
> > with something else. 90% of Zope users will not care to do so,
> > however, and certainly won't want to have to.
>
> Yes, count me into the 10% ;^)
Count us also to the 10%
We are happy if there is a way to override all the basic content
configuration and load a own configuration with own types.
I think it whould be nice to exclude a single line in a
configure.zcml to disable a base distribution.
Regards
Roger Ineichen
From gary at modernsongs.com Fri Feb 6 22:21:00 2004
From: gary at modernsongs.com (Gary Poster)
Date: Fri Feb 6 22:21:35 2004
Subject: [Zope3-dev] little-picture thoughts on roadmap
Message-ID: <4024599C.3060100@modernsongs.com>
In terms of the big picture, the roadmap looks like the right direction
to me. I have a few small thoughts to add that sort of roam across the map.
- scripter support:
* I think most of the absolutely necessary items are there. Maybe
just a "Zope X3 scripting for the Zope 2 user" tutorial, like what
Philipp did for Jim's CA tutorial, describing a few typical skinning
tasks in the CMF and how you would accomplish them in Zope 3. The best
CMF example I can think of would be to create a catalog search and
result page from scratch: this should involve adding some images for the
search results, adding some CSS, writing a couple of page templates,
hopefully writing some helper Python somewhere, and hooking it all up.
The "hooking it all up" part is where I'd fall over, working TTW, I
think. :-) I'm sure the information is available in Stephan's text, but
it didn't jump out at me.
* As an aside, it seems to me that blocking off the CA model from the
site scripter role (as described in
http://dev.zope.org/Zope3/SiteScripter) is a bit extreme, and that basic
adapters (for instance) are not too hard of a concept for scripters and
would be a reasonable tool to put in their hands.
- Re local utilities and adapters, persistent modules, and file-system
synchronization: in our work, we are going to come up sometime soonish
against a desire to have zcml-like configuration for individual, local
sites within a single Zope 3 instance. That is, it's going to be
important to be able to manage registrations for local adapters and
skins and utilities via a cvs-friendly, human-readable
mechanism--something that can configure a Zope 3 ZODB from scratch,
something that TTW changes can modify again on the file-system, and
something that can sanely slurp file-system changes back into the ZODB.
Sounds like file-system synchronization, but I don't think that it's
been conceived of for registration as yet...am I wrong?
- http://dev.zope.org/Zope3/LocationRelatedEvents is hard. I agree that
this should be a requirement for X3 1.0, but it is the only thing that
looked noticably uncooked in the roadmap, so it made me a bit
worried...both for the feature and for the X3 release. It seems
essential to invite people to write new catalog, index, and relationship
components, though...
- You said you needed to warn me about vocab changes--I assume that this
is just converting the service to a utility, which probably won't
affect us too much. So, cool. Let us know when. ;-)
Gary
From anthony at interlink.com.au Sat Feb 7 04:48:05 2004
From: anthony at interlink.com.au (Anthony Baxter)
Date: Sat Feb 7 04:48:21 2004
Subject: [Zope3-dev] little-picture thoughts on roadmap
In-Reply-To: <4024599C.3060100@modernsongs.com>
Message-ID: <20040207094805.1611F25ADA0@bonanza.off.ekorp.com>
>>> Gary Poster wrote
> - Re local utilities and adapters, persistent modules, and file-system
> synchronization: in our work, we are going to come up sometime soonish
> against a desire to have zcml-like configuration for individual, local
> sites within a single Zope 3 instance. That is, it's going to be
> important to be able to manage registrations for local adapters and
> skins and utilities via a cvs-friendly, human-readable
> mechanism--something that can configure a Zope 3 ZODB from scratch,
> something that TTW changes can modify again on the file-system, and
> something that can sanely slurp file-system changes back into the ZODB.
> Sounds like file-system synchronization, but I don't think that it's
> been conceived of for registration as yet...am I wrong?
Hm. Interesting. A few of us are working in this area at this sprint,
trying to make the site mgmt UI a little easier and more obvious to
use. We might see what could be done in this area. I agree that it's
a useful thing to have - when someone wants to bundle up a product,
if they have to sit down and laboriously hand-craft python to do
all the necessary magic, it's going to cause them pain...
--
Anthony Baxter
It's never too late to have a happy childhood.
From srichter at cosmos.phy.tufts.edu Sat Feb 7 08:11:35 2004
From: srichter at cosmos.phy.tufts.edu (Stephan Richter)
Date: Sat Feb 7 08:11:55 2004
Subject: [Zope3-dev] Need help planning Zope X3 1.0
In-Reply-To: <40230606.4090805@zope.com>
References: <40230606.4090805@zope.com>
Message-ID: <200402070811.35507.srichter@cosmos.phy.tufts.edu>
On Thursday 05 February 2004 22:12, Jim Fulton wrote:
> Do we need to do more for scripters in release 1.0? If so,
> is anyone willing to provide some leadership?
I think we are in pretty good shape concerning scripter support. We have
pretty much all the technologies we need in place; they just need some
polishing and fill-in.
But the point is that we do not want just plain scripter support and that's
it. We need a migration path for them and I believe I worked on this as well.
Thanks to Alan and other people, I think I have a good idea of what is
required for the scripter. Here are the levels as I see them and what we need
to provide:
Level 1: The Scripter
---------------------
Here everything is quick and dirty. Usually people at this level use RDBs to
store data and will not have the patience to learn the ZODB (or any OODB) way
of doing things. Therefore it is important to provide them with tools to
manipulate RDBs (by giving simple access to SQL statements) and to display
the data nicely. I believe we have most of the required tools in place.
- The SQLExpr product provides the ease required for the scripter to deal with
SQL, since it allows to embed it directly into templates. There is no need to
educate the scripter about the software space and how to create connections.
All that is required is the installation of a database adapter. Here is some
example code:
In this case we only have to tell the scripter about the various DA names and
the meaning of DSNs, which is simple in my opinion.
- Inline Python support. As you probably know, we are already able to execute
Python code from page templates, if a flag is activated. Then the following
code is possible:
Of course, for this example the following should also work (and it does; I
just tried):
Additionally to all this, I think Casey's sarcasm brought us another good tool
for the scripter, namely the Python Page. Python Pages are almost like Python
scripts, except that they do not take arguments or return something definite.
They can only output text by printing it. However, you are not required to
use print statements on triple quotes, so that the following is possible:
"""
"""
import time
"""%s""" %time.asctime()
"""
"""
This is pretty much everything the scripter needs. One other content type that
would be nice is a "XML Content" object that is accessible via DOM. A lot of
scripters are familiar with DOM from their browser experiences (i.e.
JavaScript), so that it would be natural for them. Also, it would be really
easy to use with TALES and Python code.
Level 2: The TTW Developer
--------------------------
This is the group that will be least addressed in the 1.0 release; however, we
have some powerful tools pretty much ready to use for them. The most
important one, in my opinion, is the ability to create TTW schemas and create
a content type definition that can be used in content space. On top of this
you can create views and, once the local adapter service lands, adapters.
This in combination with the scripters tools and the other software space
functionality provides a nice base for the TTW developer and offers a great
migration path for the scripter.
The scripter can start out learning only a few concepts at a time, like
schemas, and be able to create custom content components. Later he can dive
deeper into it and discover the concept of views, which are pretty much just
Page Templates for content components. However, he can also discover views
first, in the form of views on existing content components. The power of
adapters s/he will probably discover last, since it depends on an
understanding of views.
Level 3: Python Developer
-------------------------
We all know what's in the bag for this group. Most of our current
documentation is aimed at them.
BTW, most of the above is documented in detail in my recipe on the Zope 3 GUI:
http://dev.zope.org/Zope3/DevelCookbook/Zope3GUI
Left To-Dos for 1.0:
--------------------
- TALES Namespaces: While TALES NS are done, there are almost no namespaces
created. In fact, I think the only one available is the "zope" namespace, and
even it is not complete. There should be additional namespaces:
+ locale: Here we should allow fast and simple formatting of dates/times and
numbers.
+ dc: Here all dublin core meta data should be made available.
+ adapt: I described how "adapt" should work in the referenced recipe.
+ string: This NS should provide simple string manipulation
As people start putting on the scripter hat for testing, I am sure we will
come up with a whole lot more ideas. This is a part that needs serious work!
- datetime: Currently it is not possible to create new datetime object TTW,
since we have no way to create security declarations on the method of a class
(in contrast to instances). Jim knows about the issue and I hope it will be
fixed in time.
- XML Content: I do not know how far Martijn is here, but it would surely be
an item nice to have. Not a requirement though.
- Local Adapter Service: It is already part of the To-Do list.
- Schema-based Content Type: This used to work very well and reliably until
the changes in the CA arrived. Jim, you punted on TTW content types, in your
outline, but *please* let's not punt on the schema-based version. It is a
very important part! Once you get the persistence issue fixed with TTW
Schemas, I will make sure this works for the release.
Issues punted on for 1.0:
-------------------------
- Internationalization for TTW development in general is not an issue we have
addressed yet at all. Besides that DTML needs a tag for internationalization,
we also have to develop extraction tools for the local translation service.
This task should not be too hard, but will require some time.
Okay, that's enough for now.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
From jim at zope.com Sat Feb 7 18:23:04 2004
From: jim at zope.com (Jim Fulton)
Date: Sat Feb 7 18:23:59 2004
Subject: [Zope3-dev] Need help planning Zope X3 1.0
In-Reply-To: <200402070811.35507.srichter@cosmos.phy.tufts.edu>
References: <40230606.4090805@zope.com>
<200402070811.35507.srichter@cosmos.phy.tufts.edu>
Message-ID: <40257358.5040607@zope.com>
Stephan Richter wrote:
> On Thursday 05 February 2004 22:12, Jim Fulton wrote:
>
>>Do we need to do more for scripters in release 1.0? If so,
>>is anyone willing to provide some leadership?
>
>
> I think we are in pretty good shape concerning scripter support. We have
> pretty much all the technologies we need in place; they just need some
> polishing and fill-in.
I don't agree. I don't think this has been well thought out
and what has been done is controversial.
> But the point is that we do not want just plain scripter support and that's
> it. We need a migration path for them and I believe I worked on this as well.
A migration path? What sort of migration path? From Z2->Z3? From scripter to
developer? From other systems to this one?
> Thanks to Alan and other people, I think I have a good idea of what is
> required for the scripter. Here are the levels as I see them and what we need
> to provide:
>
> Level 1: The Scripter
> ---------------------
>
> Here everything is quick and dirty. Usually people at this level use RDBs to
> store data and will not have the patience to learn the ZODB (or any OODB) way
> of doing things.
I don't agree with this assessment, but that doesn't matter. I certainly agree
that what you want is worthwhile.
> Therefore it is important to provide them with tools to
> manipulate RDBs (by giving simple access to SQL statements) and to display
> the data nicely. I believe we have most of the required tools in place.
>
> - The SQLExpr product provides the ease required for the scripter to deal with
> SQL, since it allows to embed it directly into templates. There is no need to
> educate the scripter about the software space and how to create connections.
> All that is required is the installation of a database adapter. Here is some
> example code:
>
>
>
>
>
>
>
> In this case we only have to tell the scripter about the various DA names and
> the meaning of DSNs, which is simple in my opinion.
This looks interesting. I don't understand how the adapter is connected to the sql.
You define an rdb variable, but don't use it. Is the rdb variable magically used
by the expr?
I'd rather focus on making it easier to define database adapters, including
a default one.
In any case, while this proposal is interesting, I think it needs more thought.
I also think that the separation of sal and template code has been very successful,
perhaps even for the scripter. We certainly still have sql scripts and I assume
that they work.
> - Inline Python support. As you probably know, we are already able to execute
> Python code from page templates, if a flag is activated. Then the following
> code is possible:
>
>
>
>
>
>
>
While I know this is controversial, I do still think that this is
worthwhile.
> Of course, for this example the following should also work (and it does; I
> just tried):
>
>
>
>
>
>
Of course, this is better for this example.
I also think we *need* PythonLibraries.
> Additionally to all this, I think Casey's sarcasm brought us another good tool
> for the scripter, namely the Python Page. Python Pages are almost like Python
> scripts, except that they do not take arguments or return something definite.
> They can only output text by printing it. However, you are not required to
> use print statements on triple quotes, so that the following is possible:
>
> """
>
>
> """
> import time
> """%s""" %time.asctime()
> """
>
>
> """
No. Forget it. This will never be part of the core. :)
If we were going to do something like this, I'd much rather
pick something from another successful Python project. Perhaps
PTL.
> This is pretty much everything the scripter needs.
I don't agree. But I also don't know.
> One other content type that
> would be nice is a "XML Content" object that is accessible via DOM. A lot of
> scripters are familiar with DOM from their browser experiences (i.e.
> JavaScript), so that it would be natural for them. Also, it would be really
> easy to use with TALES and Python code.
Another good idea.
I'd like to put more thought into scripter support. More thought
than we might want to take time for before 1.0.
> Level 2: The TTW Developer
> --------------------------
>
> This is the group that will be least addressed in the 1.0 release; however, we
> have some powerful tools pretty much ready to use for them. The most
> important one, in my opinion, is the ability to create TTW schemas and create
> a content type definition that can be used in content space.
Yeah, but I'm not sure that what we have now is solid enough yet.
I think it is at an experimental state.
> On top of this
> you can create views and, once the local adapter service lands, adapters.
Yes, and persistent modules, which we should be able to make accessable
in content space.
> This in combination with the scripters tools and the other software space
> functionality provides a nice base for the TTW developer and offers a great
> migration path for the scripter.
>
> The scripter can start out learning only a few concepts at a time, like
> schemas, and be able to create custom content components. Later he can dive
> deeper into it and discover the concept of views, which are pretty much just
> Page Templates for content components. However, he can also discover views
> first, in the form of views on existing content components. The power of
> adapters s/he will probably discover last, since it depends on an
> understanding of views.
Yes. We'll want to flesh this out a bit.
I think we should scale back out expectations in this area. Perhaps, for
1.0 we should label oll of the TTW development bits as experimental.
When we get closer to the release, we'll need to figure out what's in,
what's out, what's configured and what's not. It would be helpful to
be able to label features as experimental somehow.
>
> Level 3: Python Developer
> -------------------------
>
> We all know what's in the bag for this group. Most of our current
> documentation is aimed at them.
>
>
> BTW, most of the above is documented in detail in my recipe on the Zope 3 GUI:
> http://dev.zope.org/Zope3/DevelCookbook/Zope3GUI
I'll look at that.
>
>
> Left To-Dos for 1.0:
> --------------------
>
> - TALES Namespaces: While TALES NS are done, there are almost no namespaces
> created. In fact, I think the only one available is the "zope" namespace, and
> even it is not complete. There should be additional namespaces:
>
> + locale: Here we should allow fast and simple formatting of dates/times and
> numbers.
>
> + dc: Here all dublin core meta data should be made available.
>
> + adapt: I described how "adapt" should work in the referenced recipe.
>
> + string: This NS should provide simple string manipulation
>
> As people start putting on the scripter hat for testing, I am sure we will
> come up with a whole lot more ideas. This is a part that needs serious work!
What we *really* need is to get Evan Simpson's ZPT adapter work into
Z3 ZPT.
> - datetime: Currently it is not possible to create new datetime object TTW,
> since we have no way to create security declarations on the method of a class
> (in contrast to instances). Jim knows about the issue and I hope it will be
> fixed in time.
Probably not, but the workaround is trivial.
> - XML Content: I do not know how far Martijn is here, but it would surely be
> an item nice to have. Not a requirement though.
Not for 1.0.
> - Local Adapter Service: It is already part of the To-Do list.
Yeah, but maybe it shouldn't be.
> - Schema-based Content Type: This used to work very well and reliably until
> the changes in the CA arrived. Jim, you punted on TTW content types, in your
> outline, but *please* let's not punt on the schema-based version. It is a
> very important part! Once you get the persistence issue fixed with TTW
> Schemas, I will make sure this works for the release.
I will fix what broke it, but I'm still not comfortable with including it in
Z3. Your idea of working well and mine are different. I found it rather
rough.
>
> Issues punted on for 1.0:
> -------------------------
>
> - Internationalization for TTW development in general is not an issue we have
> addressed yet at all. Besides that DTML needs a tag for internationalization,
> we also have to develop extraction tools for the local translation service.
> This task should not be too hard, but will require some time.
- Testing for TTW
But there's much more we'll punt on.
I suspect we should largely punt on TTW development.
But, I'd love to get lots of input on this.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From jim at zope.com Sat Feb 7 18:24:58 2004
From: jim at zope.com (Jim Fulton)
Date: Sat Feb 7 18:25:51 2004
Subject: [Zope3-dev] One possibility for 1.0
Message-ID: <402573CA.9030409@zope.com>
One possibility is to say that 1.0 (perhaps a different designation
would be better) is really for those people who are already delivering
Zope 3 apps. It emphasizes the things that work pretty well now,
meaning core services and file-system-based development.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From srichter at cosmos.phy.tufts.edu Sat Feb 7 18:37:43 2004
From: srichter at cosmos.phy.tufts.edu (Stephan Richter)
Date: Sat Feb 7 18:38:01 2004
Subject: [Zope3-dev] One possibility for 1.0
In-Reply-To: <402573CA.9030409@zope.com>
References: <402573CA.9030409@zope.com>
Message-ID: <200402071837.44347.srichter@cosmos.phy.tufts.edu>
On Saturday 07 February 2004 18:24, Jim Fulton wrote:
> One possibility is to say that 1.0 (perhaps a different designation
> would be better) is really for those people who are already delivering
> Zope 3 apps. ?It emphasizes the things that work pretty well now,
> meaning core services and file-system-based developmen
Yes, I agree with that based on your previous message. I can always make a
experimental TTW-enabled release, like "1.0+TTW" for people who want to try
it and give feedback. Zope 3 1.0 will get a lot of attention, and I would
love to use some of this momentum to get TTW development feedback. On the
other hand I do not want to make the main release messy, late and unstable,
so that people will look at it and say: What the hell is this?
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
From pw_lists at slinkp.com Sat Feb 7 18:48:24 2004
From: pw_lists at slinkp.com (Paul Winkler)
Date: Sat Feb 7 18:48:28 2004
Subject: [Zope3-dev] Need help planning Zope X3 1.0
In-Reply-To: <40257358.5040607@zope.com>
References: <40230606.4090805@zope.com>
<200402070811.35507.srichter@cosmos.phy.tufts.edu>
<40257358.5040607@zope.com>
Message-ID: <20040207234824.GA1987@slinkp.com>
On Sat, Feb 07, 2004 at 06:23:04PM -0500, Jim Fulton wrote:
> I also think we *need* PythonLibraries.
+1.
> >Additionally to all this, I think Casey's sarcasm brought us another good
> >tool for the scripter, namely the Python Page. Python Pages are almost
> >like Python scripts, except that they do not take arguments or return
> >something definite. They can only output text by printing it. However, you
> >are not required to use print statements on triple quotes, so that the
> >following is possible:
> >
> >"""
> >
> >
> >"""
> >import time
> >"""%s""" %time.asctime()
> >"""
> >
> >
> >"""
>
> No. Forget it. This will never be part of the core. :)
Whew. :-)
Sorry Stefan, it smelled bad to me too.
--
Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's DOOPER COG ROBBER!
(random hero from isometric.spaceninja.com)
From srichter at cosmos.phy.tufts.edu Sat Feb 7 19:04:39 2004
From: srichter at cosmos.phy.tufts.edu (Stephan Richter)
Date: Sat Feb 7 19:04:57 2004
Subject: [Zope3-dev] Need help planning Zope X3 1.0
In-Reply-To: <20040207234824.GA1987@slinkp.com>
References: <40230606.4090805@zope.com> <40257358.5040607@zope.com>
<20040207234824.GA1987@slinkp.com>
Message-ID: <200402071904.39578.srichter@cosmos.phy.tufts.edu>
On Saturday 07 February 2004 18:48, Paul Winkler wrote:
> Whew. ?:-)
> Sorry Stefan, it smelled bad to me too.
Traitor!
Just kidding... ;-)
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
From garrett at mojave-corp.com Sat Feb 7 19:23:08 2004
From: garrett at mojave-corp.com (Garrett Smith)
Date: Sat Feb 7 19:19:23 2004
Subject: [Zope3-dev] widget question: propertyNames/getValue
Message-ID:
I'm trying to make sense of propertyNames in the widget facility. From
what I can see, propertyNames and getValue can be removed from IWidget
(plus appropriate refactoring of existing code) without loosing
functionality.
1 - Nothing in the core uses propertyNames outside the implementation of
getValue.
2 - getattr can be called on a widget directly if you need to get an
attribute by name.
3 - If propertyNames is used for documenting/listing fields supported by
a widget, there are better ways to do this.
-- Garrett
From srichter at cosmos.phy.tufts.edu Sat Feb 7 19:29:25 2004
From: srichter at cosmos.phy.tufts.edu (Stephan Richter)
Date: Sat Feb 7 19:29:41 2004
Subject: [Zope3-dev] Need help planning Zope X3 1.0
In-Reply-To: <40257358.5040607@zope.com>
References: <40230606.4090805@zope.com>
<200402070811.35507.srichter@cosmos.phy.tufts.edu>
<40257358.5040607@zope.com>
Message-ID: <200402071929.25507.srichter@cosmos.phy.tufts.edu>
On Saturday 07 February 2004 18:23, Jim Fulton wrote:
> Stephan Richter wrote:
> I don't agree. I don't think this has been well thought out
> and what has been done is controversial.
I think it has been controversial because everyone on the mailing list is not
in the audience. Both, the SQLExpr and inline Python support came from
feedback from people that deal with scripters all the time. For the purists
any scripting support will look like a hack.
> > But the point is that we do not want just plain scripter support and
> > that's it. We need a migration path for them and I believe I worked on
> > this as well.
>
> A migration path? What sort of migration path? From Z2->Z3? From scripter
> to developer? From other systems to this one?
Oh, I talk about the migration from the Scripter --> TTW developer --> Python
product developer. I realize that not all people will make the second
transition, which is fine. But I think that everyone should make the first
transition at some point.
> > Here everything is quick and dirty. Usually people at this level use RDBs
> > to store data and will not have the patience to learn the ZODB (or any
> > OODB) way of doing things.
> I don't agree with this assessment, but that doesn't matter. I certainly
> agree that what you want is worthwhile.
I remember the difficulties I initially had with understanding OO programming
and the jump from SQL to ZODB was also not that easy. It took me a couple of
years to completely understand the latter one (otherwise I would have never
developed SQLObjects).
> > In this case we only have to tell the scripter about the various DA names
> > and the meaning of DSNs, which is simple in my opinion.
>
> This looks interesting. I don't understand how the adapter is connected to
> the sql. You define an rdb variable, but don't use it. Is the rdb variable
> magically used by the expr?
Yes, it is magically used; something that really bugs me about this product.
But I could just not think of something better. BTW, optionally you can also
just specify a DA name, but the example was meant to work without any
additional setup.
> I'd rather focus on making it easier to define database adapters, including
> a default one.
As Alan had put it: This is the second step. The scripter wants the fastest
success possible.
> I also think that the separation of sal and template code has been very
> successful, perhaps even for the scripter. We certainly still have sql
> scripts and I assume that they work.
I totally agree, but it already requires the scripter to be accustomed with
some of the framework.
> If we were going to do something like this, I'd much rather
> pick something from another successful Python project. Perhaps
> PTL.
Yes, I think that would be better. I do not know PTL, but I know something
like Python Page is needed! I just looked quickly at PTL and it looks pretty
interesting. In fact, it has the same ideas I had with Python Page but is
much more developed.
> > This is pretty much everything the scripter needs.
>
> I don't agree. But I also don't know.
What else do you think is needed?
> > - Local Adapter Service: It is already part of the To-Do list.
>
> Yeah, but maybe it shouldn't be.
Based on your other comments, it should not.
> > - Schema-based Content Type: This used to work very well and reliably
> > until the changes in the CA arrived. Jim, you punted on TTW content
> > types, in your outline, but *please* let's not punt on the schema-based
> > version. It is a very important part! Once you get the persistence issue
> > fixed with TTW Schemas, I will make sure this works for the release.
>
> I will fix what broke it, but I'm still not comfortable with including it
> in Z3. Your idea of working well and mine are different. I found it
> rather rough.
The base code was actually not that rought at all. What was a bit rough was
the integration into menus. I had not worked on this, since you said you
would redo the local menu service. We have similar code that is used
successfully in the workflow package as well.
> > Issues punted on for 1.0:
> > -------------------------
> - Testing for TTW
Good point.
> But there's much more we'll punt on.
We should maybe start listing it at this point.
> I suspect we should largely punt on TTW development.
Yep, I get this feeling.
> But, I'd love to get lots of input on this.
Me too.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
From jim at zope.com Sat Feb 7 19:38:36 2004
From: jim at zope.com (Jim Fulton)
Date: Sat Feb 7 19:40:40 2004
Subject: [Zope3-dev] widget question: propertyNames/getValue
In-Reply-To:
References:
Message-ID: <4025850C.5030901@zope.com>
Garrett Smith wrote:
> I'm trying to make sense of propertyNames in the widget facility. From
> what I can see, propertyNames and getValue can be removed from IWidget
> (plus appropriate refactoring of existing code) without loosing
> functionality.
>
> 1 - Nothing in the core uses propertyNames outside the implementation of
> getValue.
>
> 2 - getattr can be called on a widget directly if you need to get an
> attribute by name.
>
> 3 - If propertyNames is used for documenting/listing fields supported by
> a widget, there are better ways to do this.
My opinion is that widgets should implement schemas that describe their
configuration data, which are exposed via attributes.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From jim at zope.com Sat Feb 7 19:46:04 2004
From: jim at zope.com (Jim Fulton)
Date: Sat Feb 7 19:48:11 2004
Subject: [Zope3-dev] Need help planning Zope X3 1.0
In-Reply-To: <200402071929.25507.srichter@cosmos.phy.tufts.edu>
References: <40230606.4090805@zope.com> <200402070811.35507.srichter@cosmos.phy.tufts.edu> <40257358.5040607@zope.com>
<200402071929.25507.srichter@cosmos.phy.tufts.edu>
Message-ID: <402586CC.8040503@zope.com>
Stephan Richter wrote:
> On Saturday 07 February 2004 18:23, Jim Fulton wrote:
>
>>Stephan Richter wrote:
>
>
>>I don't agree. I don't think this has been well thought out
>>and what has been done is controversial.
>
>
> I think it has been controversial because everyone on the mailing list is not
> in the audience. Both, the SQLExpr and inline Python support came from
> feedback from people that deal with scripters all the time. For the purists
> any scripting support will look like a hack.
Granted, but even so, I think that this is a big important thing that
I want to give more focus before we commit to how it's gonna be.
I think it's too important to rush at before the first release.
>
>>>But the point is that we do not want just plain scripter support and
>>>that's it. We need a migration path for them and I believe I worked on
>>>this as well.
>>
>>A migration path? What sort of migration path? From Z2->Z3? From scripter
>>to developer? From other systems to this one?
>
>
> Oh, I talk about the migration from the Scripter --> TTW developer --> Python
> product developer. I realize that not all people will make the second
> transition, which is fine. But I think that everyone should make the first
> transition at some point.
ok
...
>>This looks interesting. I don't understand how the adapter is connected to
>>the sql. You define an rdb variable, but don't use it. Is the rdb variable
>>magically used by the expr?
>
>
> Yes, it is magically used; something that really bugs me about this product.
> But I could just not think of something better. BTW, optionally you can also
> just specify a DA name, but the example was meant to work without any
> additional setup.
I'm sure we can figure this out, but we may not have bandwidth for it right now.
>>If we were going to do something like this, I'd much rather
>>pick something from another successful Python project. Perhaps
>>PTL.
>
>
> Yes, I think that would be better. I do not know PTL, but I know something
> like Python Page is needed! I just looked quickly at PTL and it looks pretty
> interesting. In fact, it has the same ideas I had with Python Page but is
> much more developed.
>
>
>>>This is pretty much everything the scripter needs.
>>
>>I don't agree. But I also don't know.
>
>
> What else do you think is needed?
I dunno and I don't want to figure out right now. :)
OK, I can't resist.
I think that an important step would be to work out a training
course and use it to work out what makes sense to people. That is,
work out some ideas and try them on people.
>
>>>- Local Adapter Service: It is already part of the To-Do list.
>>
>>Yeah, but maybe it shouldn't be.
>
>
> Based on your other comments, it should not.
>
>
>>>- Schema-based Content Type: This used to work very well and reliably
>>>until the changes in the CA arrived. Jim, you punted on TTW content
>>>types, in your outline, but *please* let's not punt on the schema-based
>>>version. It is a very important part! Once you get the persistence issue
>>>fixed with TTW Schemas, I will make sure this works for the release.
>>
>>I will fix what broke it, but I'm still not comfortable with including it
>>in Z3. Your idea of working well and mine are different. I found it
>>rather rough.
>
>
> The base code was actually not that rought at all. What was a bit rough was
> the integration into menus. I had not worked on this, since you said you
> would redo the local menu service. We have similar code that is used
> successfully in the workflow package as well.
When I say "rough" I was refering toi the few times I tried to use them,
not to the implementation, :)
>
>>>Issues punted on for 1.0:
>>>-------------------------
>>
>> - Testing for TTW
>
>
> Good point.
>
>
>>But there's much more we'll punt on.
>
>
> We should maybe start listing it at this point.
eh
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From gary at modernsongs.com Sat Feb 7 20:17:07 2004
From: gary at modernsongs.com (Gary Poster)
Date: Sat Feb 7 20:17:47 2004
Subject: [Zope3-dev] widget question: propertyNames/getValue
In-Reply-To: <4025850C.5030901@zope.com>
References:
<4025850C.5030901@zope.com>
Message-ID: <40258E13.6070108@modernsongs.com>
Jim Fulton wrote:
> Garrett Smith wrote:
>
>> I'm trying to make sense of propertyNames in the widget facility. From
>> what I can see, propertyNames and getValue can be removed from IWidget
>> (plus appropriate refactoring of existing code) without loosing
>> functionality.
...
> My opinion is that widgets should implement schemas that describe their
> configuration data, which are exposed via attributes.
+1. I was thinking of this too: this would also allow zcml
customization of widgets (because then we would have the type casting
for free) without having to do it with a mixin view class. That was a
goal of mine.
Gary
From michael at d2m.at Sun Feb 8 04:28:30 2004
From: michael at d2m.at (Michael Haubenwallner)
Date: Sun Feb 8 04:40:33 2004
Subject: [Zope3-dev] Re: One possibility for 1.0
In-Reply-To: <200402071837.44347.srichter@cosmos.phy.tufts.edu>
References: <402573CA.9030409@zope.com>
<200402071837.44347.srichter@cosmos.phy.tufts.edu>
Message-ID:
Stephan Richter wrote:
> On Saturday 07 February 2004 18:24, Jim Fulton wrote:
>
>>One possibility is to say that 1.0 (perhaps a different designation
>>would be better) is really for those people who are already delivering
>>Zope 3 apps. It emphasizes the things that work pretty well now,
>>meaning core services and file-system-based developmen
>
>
> Yes, I agree with that based on your previous message. I can always make a
> experimental TTW-enabled release, like "1.0+TTW" for people who want to try
> it and give feedback. Zope 3 1.0 will get a lot of attention, and I would
> love to use some of this momentum to get TTW development feedback. On the
> other hand I do not want to make the main release messy, late and unstable,
> so that people will look at it and say: What the hell is this?
>
Would it make sense to remove the TTW-management-interface from the
'core' and into a product ? Could this product be used as an example of
how to write management products for zope3 ?
--
michael
From faassen at infrae.com Sun Feb 8 08:13:09 2004
From: faassen at infrae.com (Martijn Faassen)
Date: Sun Feb 8 08:14:46 2004
Subject: [Zope3-dev] Re: One possibility for 1.0
In-Reply-To:
References: <402573CA.9030409@zope.com>
<200402071837.44347.srichter@cosmos.phy.tufts.edu>
Message-ID: <20040208131309.GA15752@vet.uu.nl>
Michael Haubenwallner wrote:
> Would it make sense to remove the TTW-management-interface from the
> 'core' and into a product ? Could this product be used as an example of
> how to write management products for zope3 ?
I think it makes sense to move it out of the core myself, at least initially
during development. It may need some hooks in the core, of course..
Regards,
Martijn
From philipp at weitershausen.de Sun Feb 8 10:16:17 2004
From: philipp at weitershausen.de (Philipp von Weitershausen)
Date: Sun Feb 8 10:09:34 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To:
References:
Message-ID: <402652C1.9070200@weitershausen.de>
Philipp von Weitershausen wrote:
> Hi there,
>
> in the currently ongoing process of reorganizing Zope3's package
> structure and gutting out zope.app, I think the main packages that have
> yet to be moved are:
>
> - zope.app.workflow
> - zope.app.content
I have started moving zope.app.content to zope.products.content and
zope.products.codecontent, respectively in a branch,
'philikon-movecontent-branch'. Here's a small status report:
- zope.app.content is a simple module now containg the ContentType
machinery
- Folder could not be moved out of zope.app, mainly because it is
needed widely by the Zope core for its root folder functionality,
e.g. in the bootstrap process. It it is now in zope.app.folder,
since zope.app.content is a simple module now.
- You currently have to toss your Data.fs, which is bad. I tried
setting up a modulealias at least for folders (in
zope.products.content/configure.zcml), but it doesn't seem to work.
- Packages in zope.products have been fixed up. All unit tests pass.
- 6 functional/integration tests still fail, mainly because they
depended on either the File or the Templated Page content types.
While the first is easy to fix, the latter is a bit more
complicated.
Comments are appreciated, as well as help chasing down the last test
failures and fixing the modulealias.
Philipp
From dpharris76 at msn.com Sun Feb 8 14:57:15 2004
From: dpharris76 at msn.com (Dave Harris)
Date: Sun Feb 8 14:57:22 2004
Subject: [Zope3-dev] Q on conf error reporting
Message-ID:
I added an server entry to zope.conf using a silly type:
type LEMMING
address 8083
and received (deservedly) a program failure marking my misdeed:
Traceback (most recent call last):
File "z3.py", line 65, in ?
run()
File "z3.py", line 61, in run
main(argv[1:])
File "C:\rascal\dev\Z3SB\src\zope\app\process\main.py", line 56, in main
setup(args)
File "C:\rascal\dev\Z3SB\src\zope\app\process\main.py", line 99, in setup
server.create(task_dispatcher, db)
File "C:\rascal\dev\Z3SB\src\zope\app\process\server.py", line 42, in
create
servertype.create(task_dispatcher, database,
AttributeError: 'NoneType' object has no attribute 'create'
This leads to a couple (or four) questions:
1) When getServerType() returns None, should create() still proceed with the
servertype.create() call?
2) When a bad but well-formed configuration entry is processed, should Zope
3 report the specifics (e.g. the config file line and the reason for
failure)?
3) In general, should Zope 3 disguise the fact that Python is the
implementation language - that is, not generate tracebacks?
4) Would a test for this situation be a unit test of
zope.app.process.setup()? Or would it be considered a functional test?
Thanks,
Dave Harris
From jim at zope.com Sun Feb 8 15:29:30 2004
From: jim at zope.com (Jim Fulton)
Date: Sun Feb 8 15:30:16 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <402652C1.9070200@weitershausen.de>
References: <402652C1.9070200@weitershausen.de>
Message-ID: <40269C2A.9090306@zope.com>
Philipp von Weitershausen wrote:
> Philipp von Weitershausen wrote:
>
>> Hi there,
>>
>> in the currently ongoing process of reorganizing Zope3's package
>> structure and gutting out zope.app, I think the main packages that
>> have yet to be moved are:
>>
>> - zope.app.workflow
>> - zope.app.content
>
>
> I have started moving zope.app.content to zope.products.content and
> zope.products.codecontent, respectively in a branch,
> 'philikon-movecontent-branch'. Here's a small status report:
>
> - zope.app.content is a simple module now containg the ContentType
> machinery
>
> - Folder could not be moved out of zope.app, mainly because it is
> needed widely by the Zope core for its root folder functionality,
> e.g. in the bootstrap process. It it is now in zope.app.folder,
> since zope.app.content is a simple module now.
>
> - You currently have to toss your Data.fs, which is bad. I tried
> setting up a modulealias at least for folders (in
> zope.products.content/configure.zcml), but it doesn't seem to work.
Yes, this is bad. We really should write a conversion script.
This might be very hard.
Perhaps we should combine this with the ZODB4->ZODB3 conversion script.
> - Packages in zope.products have been fixed up. All unit tests pass.
>
> - 6 functional/integration tests still fail, mainly because they
> depended on either the File or the Templated Page content types.
> While the first is easy to fix, the latter is a bit more
> complicated.
>
> Comments are appreciated, as well as help chasing down the last test
> failures and fixing the modulealias.
At a high level, this sounds good. I'll try to find some time to
look at the branch.
In any case, we should not plan to merge this until I get back
to the States.
Thanks for the great work!
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From pw_lists at slinkp.com Sun Feb 8 15:36:43 2004
From: pw_lists at slinkp.com (Paul Winkler)
Date: Sun Feb 8 15:36:46 2004
Subject: [Zope3-dev] Need help planning Zope X3 1.0
In-Reply-To: <402586CC.8040503@zope.com>
References: <40230606.4090805@zope.com>
<200402070811.35507.srichter@cosmos.phy.tufts.edu>
<40257358.5040607@zope.com>
<200402071929.25507.srichter@cosmos.phy.tufts.edu>
<402586CC.8040503@zope.com>
Message-ID: <20040208203643.GD1723@slinkp.com>
On Sat, Feb 07, 2004 at 07:46:04PM -0500, Jim Fulton wrote:
> Stephan Richter wrote:
> >>I don't agree. I don't think this has been well thought out
> >>and what has been done is controversial.
> >
> >
> >I think it has been controversial because everyone on the mailing list is
> >not in the audience. Both, the SQLExpr and inline Python support came from
> >feedback from people that deal with scripters all the time. For the
> >purists any scripting support will look like a hack.
>
> Granted, but even so, I think that this is a big important thing that
> I want to give more focus before we commit to how it's gonna be.
>
> I think it's too important to rush at before the first release.
I agree.
FWIW, I like the idea of SQL expressions very much, though I haven't
thought much about the details.
I think the controversy over embedding python in ZPT and
embedding HTML in python should not be taken lightly, and
if we are not ready to focus on it, we should stop arguing about
it for now. I have plenty to say on the subject but I think
this is not the time.
> I think that an important step would be to work out a training
> course and use it to work out what makes sense to people. That is,
> work out some ideas and try them on people.
yes!
But, I think I see an emerging consensus that we are not
ready to fully tackle the scripting support and that it might
be OK to defer this until after Zope X3 1.0 or whatever the
heck it's called.
As someone who cares about scripter support - both because
I've done a fair bit of it in zope 2, and because I often
wear the "SiteDeveloper" hat and have to maintain and/or
rewrite other peoples' scripting efforts -
I am perfectly happy with the prospect of having
zope X3 really solid for filesystem developers first,
then TTW development second, then TTW scripters last of all.
Even if it means scripter support is not solid until 2005 or so.
--
Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's SUPER MAFIOSO 8!
(random hero from isometric.spaceninja.com)
From jim at zope.com Sun Feb 8 15:45:02 2004
From: jim at zope.com (Jim Fulton)
Date: Sun Feb 8 15:45:45 2004
Subject: [Zope3-dev] Re: One possibility for 1.0
In-Reply-To:
References: <402573CA.9030409@zope.com> <200402071837.44347.srichter@cosmos.phy.tufts.edu>
Message-ID: <40269FCE.70203@zope.com>
Michael Haubenwallner wrote:
> Stephan Richter wrote:
>
>> On Saturday 07 February 2004 18:24, Jim Fulton wrote:
>>
>>> One possibility is to say that 1.0 (perhaps a different designation
>>> would be better) is really for those people who are already delivering
>>> Zope 3 apps. It emphasizes the things that work pretty well now,
>>> meaning core services and file-system-based developmen
>>
>>
>>
>> Yes, I agree with that based on your previous message. I can always
>> make a experimental TTW-enabled release, like "1.0+TTW" for people who
>> want to try it and give feedback. Zope 3 1.0 will get a lot of
>> attention, and I would love to use some of this momentum to get TTW
>> development feedback. On the other hand I do not want to make the main
>> release messy, late and unstable, so that people will look at it and
>> say: What the hell is this?
>>
>
> Would it make sense to remove the TTW-management-interface from the
> 'core' and into a product ? Could this product be used as an example of
> how to write management products for zope3 ?
This thread was originally about the TTW development facilities, not
TTW management. We will certainly include the TTW management facilities
in the first release.
At this point, I'm mainly concerned about which features should be
priorities for finishing for the first release. I also want to
set expectations for the first release, in terms if who it's for and how
we expect people to use it.
A different question is how this is all going to be packaged.
I'm still thinking about that.
It will be possible to replace pretty much anything. It will certainly
be possible to replace the management UI. While I agree with the
benefit of organizing things to make this more obvious, I don't
think I particularly want to take the time to do this now.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From jim at zope.com Sun Feb 8 17:39:29 2004
From: jim at zope.com (Jim Fulton)
Date: Sun Feb 8 17:39:50 2004
Subject: [Zope3-dev] Is anyone using persistent modules at the moment?
Message-ID: <4026BAA1.8080408@zope.com>
I'm thinking of breaking them for a while and not taking the time to fix them,
assuming that no one is actually using them.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From jim at zope.com Sun Feb 8 17:41:00 2004
From: jim at zope.com (Jim Fulton)
Date: Sun Feb 8 17:41:19 2004
Subject: [Zope3-dev] Re: One possibility for 1.0
In-Reply-To: <40269FCE.70203@zope.com>
References: <402573CA.9030409@zope.com> <200402071837.44347.srichter@cosmos.phy.tufts.edu>
<40269FCE.70203@zope.com>
Message-ID: <4026BAFC.4090301@zope.com>
So, I'm guessing that no one is using through-the-web adapters or views.
Is that right?
Jim
Jim Fulton wrote:
> Michael Haubenwallner wrote:
>
>> Stephan Richter wrote:
>>
>>> On Saturday 07 February 2004 18:24, Jim Fulton wrote:
>>>
>>>> One possibility is to say that 1.0 (perhaps a different designation
>>>> would be better) is really for those people who are already delivering
>>>> Zope 3 apps. It emphasizes the things that work pretty well now,
>>>> meaning core services and file-system-based developmen
>>>
>>>
>>>
>>>
>>> Yes, I agree with that based on your previous message. I can always
>>> make a experimental TTW-enabled release, like "1.0+TTW" for people
>>> who want to try it and give feedback. Zope 3 1.0 will get a lot of
>>> attention, and I would love to use some of this momentum to get TTW
>>> development feedback. On the other hand I do not want to make the
>>> main release messy, late and unstable, so that people will look at it
>>> and say: What the hell is this?
>>>
>>
>> Would it make sense to remove the TTW-management-interface from the
>> 'core' and into a product ? Could this product be used as an example
>> of how to write management products for zope3 ?
>
>
> This thread was originally about the TTW development facilities, not
> TTW management. We will certainly include the TTW management facilities
> in the first release.
>
> At this point, I'm mainly concerned about which features should be
> priorities for finishing for the first release. I also want to
> set expectations for the first release, in terms if who it's for and how
> we expect people to use it.
>
> A different question is how this is all going to be packaged.
> I'm still thinking about that.
>
> It will be possible to replace pretty much anything. It will certainly
> be possible to replace the management UI. While I agree with the
> benefit of organizing things to make this more obvious, I don't
> think I particularly want to take the time to do this now.
>
> Jim
>
>
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From jim at zope.com Sun Feb 8 17:51:09 2004
From: jim at zope.com (Jim Fulton)
Date: Sun Feb 8 17:51:35 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <402652C1.9070200@weitershausen.de>
References: <402652C1.9070200@weitershausen.de>
Message-ID: <4026BD5D.9050205@zope.com>
Philipp von Weitershausen wrote:
> Philipp von Weitershausen wrote:
>
>> Hi there,
>>
>> in the currently ongoing process of reorganizing Zope3's package
>> structure and gutting out zope.app, I think the main packages that
>> have yet to be moved are:
>>
>> - zope.app.workflow
>> - zope.app.content
>
>
> I have started moving zope.app.content to zope.products.content and
> zope.products.codecontent, respectively in a branch,
> 'philikon-movecontent-branch'. Here's a small status report:
>
> - zope.app.content is a simple module now containg the ContentType
> machinery
cool
> - Folder could not be moved out of zope.app, mainly because it is
> needed widely by the Zope core for its root folder functionality,
> e.g. in the bootstrap process. It it is now in zope.app.folder,
> since zope.app.content is a simple module now.
I like the fact that this is now zope.app.folder.
Hm.
(I'm sorry it couldn't be moved out. This could be fixed, but I think
that this isn't important enough now.)
...
> Comments are appreciated, as well as help chasing down the last test
> failures and fixing the modulealias.
As I mentioend earlier, I don't want zope.products.content and
zope.products.codecontent. Please split these into top-level packages
in zope.products:
zope.products.zptpage,
zope.products.dtmlpage,
zope.products,sqlscript,
zope.products,file,
zope.products.i18nfile
zope.products,image,
zope.products.i18nimage
but ,,,,
Before we have you do much more work, I think it would be
a good idea to step back and work out the new treee as we did for
namegeddon.
I suggest doing this on a wiki page.
I suggest we coordinate this with the switch to ZODB 3 so that we can
have a conversion script that adjusts class references in pickles.
Finally, I'd like to consider a simplification of the source layout as follows.
I'd like us to reorganize whatever is left in app so that app is much flatter.
Further, the division of application, view, and interface code should happen
within the subfolders of app, rather than in app. So, for example, we'd get rid of
app.interfaces and app.browser. The folder package, zope.app.folder would
have interfaces.py, and browser.py.
The problem with this is that it largely undoes the separation of presentation
code we created in namegeddon. I have to admit, though, that this separation
wasn't very popular, except, possibly with the people it was done for. :)
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From jim at zope.com Sun Feb 8 18:00:11 2004
From: jim at zope.com (Jim Fulton)
Date: Sun Feb 8 18:00:41 2004
Subject: [Zope3-dev] Last chance to mess with the source layout of Zope 3
Message-ID: <4026BF7B.3050407@zope.com>
In preparation for the first release, we are embarking on a
cleanup of the source layout. (See the threads on boving things
out of zope.app.) It is clear that this is going to be a large effort.
It will probably be impractical to do this again after the first
production release.
Given that, I'd like to put the layout strategy on the table.
The last time we did a major reorganization, we separated the presentation
and interface code from the application code. This was it make it
easier for user-interface developers to contribute. I know of one person
whih actually liked the separation of presentation and interfaces from
application code. AFAICT, it's been wildly unpopular for everyone else.
I'm not sure that the people it was done for have even been all that involved.
A few people have been working on UI, but I don't think they consider themselves
UI folk and I bet they don't like the separation.
In a separate note, I suggested a much flatter layout. I suggested
getting rid of zope.app.browser (and the like) and zope.app.interafces.
I suggested that zope.app have top-level packages in it that are pretty
self-contained with their own interfaces.py and browser.py (and etc.).
A variation on this would be to provide separate UI packages
(e.g, zope.app.folder and zope.app.folderweb).
Thoughts?
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From philipp at weitershausen.de Sun Feb 8 18:26:47 2004
From: philipp at weitershausen.de (Philipp von Weitershausen)
Date: Sun Feb 8 18:20:05 2004
Subject: [Zope3-dev] Re: Moving more stuff to zope.products
In-Reply-To: <4026BD5D.9050205@zope.com>
References: <402652C1.9070200@weitershausen.de>
<4026BD5D.9050205@zope.com>
Message-ID: <4026C5B7.5040500@weitershausen.de>
Hi Jim,
>> - Folder could not be moved out of zope.app, mainly because it is
>> needed widely by the Zope core for its root folder functionality,
>> e.g. in the bootstrap process. It it is now in zope.app.folder,
>> since zope.app.content is a simple module now.
>
>
> I like the fact that this is now zope.app.folder.
Mee too. Btw, all the browser and configuration stuff for it is in
zope.products.content. It's really only the class and the interface that
had to stay in there for the imports...
> (I'm sorry it couldn't be moved out. This could be fixed, but I think
> that this isn't important enough now.)
Agreed. Seeking the places up gave me a good understanding of how this
dependency is wired up. It's mostly on the 'rootFolder()' function, not
on the Folder class itself.
>> Comments are appreciated, as well as help chasing down the last test
>> failures and fixing the modulealias.
>
> As I mentioend earlier, I don't want zope.products.content and
> zope.products.codecontent.
Oh, I totally misunderstood you then! I thought that was the one you
were agreeing with me on... Never mind then.
> Please split these into top-level packages
> in zope.products:
>
> zope.products.zptpage,
> zope.products.dtmlpage,
> zope.products,sqlscript,
> zope.products,file,
> zope.products.i18nfile
> zope.products,image,
> zope.products.i18nimage
Ahh. Sounds good to me too.
> Before we have you do much more work, I think it would be
> a good idea to step back and work out the new treee as we did for
> namegeddon.
Good idea.
> I suggest doing this on a wiki page.
Will do that.
> I suggest we coordinate this with the switch to ZODB 3 so that we can
> have a conversion script that adjusts class references in pickles.
Ok. Once we have it figured out on the wiki page, I can adjust the
branch slowly but surely, so it'll be ready when the ZODB3 merge is to
be done. I guess you'll do the final merging then. When do you expect
that to happen, so I know the timeframe?
> Finally, I'd like to consider a simplification of the source layout
> as follows. I'd like us to reorganize whatever is left in app so that
> app is much flatter. Further, the division of application, view, and
> interface code should happen within the subfolders of app, rather
> than in app. So, for example, we'd get rid of app.interfaces and
> app.browser. The folder package, zope.app.folder would have
> interfaces.py, and browser.py.
One part of me wants to yell "Yay", the other has doubts. We have and
will be taking out of zope.app many things, so it'll be smaller anyway.
Maybe we'll be able to look at it just like another 'zope.' package...
> The problem with this is that it largely undoes the separation of
> presentation code we created in namegeddon. I have to admit, though,
> that this separation wasn't very popular, except, possibly with the
> people it was done for. :)
I feel inbetween the people it was done for and the ones it is unpopular
with. At first, I found the package hierarchy quite confusing. I
understood its theory and why it was that way, but it felt unnatural.
This is probably most people's reaction to it. Lately, I have been
hearing a lot that Zope3 is too much based on theory and not
straight-forward enough. Maybe we should pay attention to our very own
natural feelings in this case and go against the theory...
Well, I'm not helping, am I... :)
Philipp
From tseaver at zope.com Sun Feb 8 18:56:55 2004
From: tseaver at zope.com (Tres Seaver)
Date: Sun Feb 8 18:57:02 2004
Subject: [Zope3-dev] Re: CVS: Zope3/src/zope/app/browser/skins/rotterdam -
editingwidgets.py:1.4.24.2
In-Reply-To: <200402080457.i184vsct002180@cvs.zope.org>
References: <200402080457.i184vsct002180@cvs.zope.org>
Message-ID: <4026CCC7.5000909@zope.com>
Garrett Smith wrote:
> Update of /cvs-repository/Zope3/src/zope/app/browser/skins/rotterdam
> In directory cvs.zope.org:/tmp/cvs-serv2048/src/zope/app/browser/skins/rotterdam
>
> Modified Files:
> Tag: ozzope-widgets-branch
> editingwidgets.py
> Log Message:
>
> Trivial whitespace fix.
>
>
> === Zope3/src/zope/app/browser/skins/rotterdam/editingwidgets.py 1.4.24.1 => 1.4.24.2 ===
> --- Zope3/src/zope/app/browser/skins/rotterdam/editingwidgets.py:1.4.24.1 Sat Feb 7 23:36:11 2004
> +++ Zope3/src/zope/app/browser/skins/rotterdam/editingwidgets.py Sat Feb 7 23:57:53 2004
> @@ -27,7 +27,7 @@
> width = 60
> height = 15
> extra=""
> - style="width: 98%; font-family: monospace;"
> + style="width: 98%; font-family: monospace;".
> rowTemplate = ViewPageTemplateFile("simpleeditingrow.pt")
> rowFragment = ViewPageTemplateFile("simpleeditingrowfragment.pt")
Two things jump out at me:
- That line isn't valid Python; ergo, we must not have any unit
tests for this module.
- What in the name of separation-of-concerns are we doing adding
inline styles, and in Python code?
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
From jim at zope.com Sun Feb 8 19:05:47 2004
From: jim at zope.com (Jim Fulton)
Date: Sun Feb 8 19:06:57 2004
Subject: [Zope3-dev] Namegeddon2
In-Reply-To: <4026C5B7.5040500@weitershausen.de>
References: <402652C1.9070200@weitershausen.de>
<4026BD5D.9050205@zope.com> <4026C5B7.5040500@weitershausen.de>
Message-ID: <4026CEDB.9090501@zope.com>
Philipp von Weitershausen wrote:
> Hi Jim,
>
...
>> I suggest we coordinate this with the switch to ZODB 3 so that we can
>> have a conversion script that adjusts class references in pickles.
>
>
> Ok. Once we have it figured out on the wiki page, I can adjust the
> branch slowly but surely, so it'll be ready when the ZODB3 merge is to
> be done.
Kapil wrote a script for the first namegeddon that automated most of the
moving. It left enough undone, however, that it might be worth trying to
improve it. We tried to do the first namegeddon too quickly and
ended up doing more work that we should have. We should do a few dry runs
and try to improve the script.
> I guess you'll do the final merging then. When do you expect
> that to happen, so I know the timeframe?
Well, all the Zope 3 tests pass with ZODB 3.3. Steve is testing
the conversion script. I think that that branch will be ready to
merge next week.
This is going to be a little delicate. :)
I'm not sure what the best way to handle this is.
Some issues:
- The ZODB conversion will require running a database conversion
script.
- namegeddon2 will require running a database conversion script.
We may want to combine the two, unless we don't. ;)
Perhaps it's better to keep them separate.
- Anybody with pending work, including work in branches is
going to be hurt.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From jim at zope.com Sun Feb 8 19:17:31 2004
From: jim at zope.com (Jim Fulton)
Date: Sun Feb 8 19:18:48 2004
Subject: [Zope3-dev] Heads Up! Namegeddon 2
Message-ID: <4026D19B.5060905@zope.com>
I think we are going to decide to have a second and final
namegeddon before the first release. My guess is that this
should happen the week of February 23-27. We will probably
ask that people not check things in during that week.
Also, if there is pending work at the end of that week,
merging it will probably be rather difficult.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
From philipp at weitershausen.de Sun Feb 8 20:02:28 2004
From: philipp at weitershausen.de (Philipp von Weitershausen)
Date: Sun Feb 8 19:55:45 2004
Subject: [Zope3-dev] Re: Namegeddon2
In-Reply-To: <4026CEDB.9090501@zope.com>
References: <402652C1.9070200@weitershausen.de>
<4026BD5D.9050205@zope.com> <4026C5B7.5040500@weitershausen.de>
<4026CEDB.9090501@zope.com>
Message-ID: <4026DC24.4060309@weitershausen.de>
Jim Fulton wrote:
>> Ok. Once we have it figured out on the wiki page, I can adjust the
>> branch slowly but surely, so it'll be ready when the ZODB3 merge is to
>> be done.
>
> Kapil wrote a script for the first namegeddon that automated most of the
> moving. It left enough undone, however, that it might be worth trying to
> improve it. We tried to do the first namegeddon too quickly and
> ended up doing more work that we should have. We should do a few dry runs
> and try to improve the script.
It'd be great to end up with a somewhat generic script we can use
whenever we "break" things like this... I could imagine that, maybe on a
smaller scale, that we will still want to do that once Zope3 is out.
It'll be good to know that we have a good conversion script.
>> I guess you'll do the final merging then. When do you expect
>> that to happen, so I know the timeframe?
>
> Well, all the Zope 3 tests pass with ZODB 3.3. Steve is testing
> the conversion script. I think that that branch will be ready to
> merge next week.
Great to hear that.
> I'm not sure what the best way to handle this is.
>
> Some issues:
>
> - The ZODB conversion will require running a database conversion
> script.
>
> - namegeddon2 will require running a database conversion script.
>
> We may want to combine the two, unless we don't. ;)
> Perhaps it's better to keep them separate.
I think it is. Let's take one step at a time. Also, namegeddon2 (btw, I
think it's not a *name*geddon, rather a packagegeddon) should probably
be broken up into steps. Moving out the content is the first one. Others
could follow.
Philipp
From philipp at weitershausen.de Sun Feb 8 20:05:20 2004
From: philipp at weitershausen.de (Philipp von Weitershausen)
Date: Sun Feb 8 19:58:34 2004
Subject: [Zope3-dev] Re: Last chance to mess with the source layout of Zope 3
In-Reply-To: <4026BF7B.3050407@zope.com>
References: <4026BF7B.3050407@zope.com>
Message-ID: <4026DCD0.7050509@weitershausen.de>
> In a separate note, I suggested a much flatter layout. I suggested
> getting rid of zope.app.browser (and the like) and zope.app.interafces.
> I suggested that zope.app have top-level packages in it that are pretty
> self-contained with their own interfaces.py and browser.py (and etc.).
> A variation on this would be to provide separate UI packages
> (e.g, zope.app.folder and zope.app.folderweb).
+1 for self-contained packages inside zope.app.
-1 to zope.app.folderweb or similar
From stephan.richter at tufts.edu Sun Feb 8 20:39:28 2004
From: stephan.richter at tufts.edu (Stephan Richter)
Date: Sun Feb 8 20:39:57 2004
Subject: [Zope3-dev] Re: [Zope3-checkins] CVS:
Zope3/src/zope/app/interfaces/browser - widget.py:1.1.2.4
In-Reply-To: <200402082247.i18Mldk9011431@cvs.zope.org>
References: <200402082247.i18Mldk9011431@cvs.zope.org>
Message-ID: <200402082039.28209.stephan.richter@tufts.edu>
On Sunday 08 February 2004 17:47, Dave Fregon wrote:
> +class ISimpleEditingWidget(IBrowserWidget, IEditWidget):
> + ? ?
> + ? ?width = Attribute("XXX - needs documentation")
> + ? ?height = Attribute("XXX - needs documentation")
> + ? ?extra = Attribute("XXX - needs documentation")
> +
Please do not do this!!! Take the 5 minutes and add a meaningful doc string.
The API doc tool is useless with doc strings like this.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
From garrett at mojave-corp.com Sun Feb 8 21:03:40 2004
From: garrett at mojave-corp.com (Garrett Smith)
Date: Sun Feb 8 20:59:53 2004
Subject: [Zope3-dev] ozzope-widgets-branch
Message-ID:
Readers of the CVS commit list for Zope 3 can save themselves some
stress and worry by disregarding commits to the 'ozzope-widgets-branch'
for the next day. I'm working with Dave Fregon here in Melbourne and
we're using the branch for parallel development.
I'm not adhering to checkin standards for this phase, which is why we're
working on a branch.
I think the community will find the resulting code well documented,
tested, and clear once it's merged into the head.
-- Garrett
From stephan.richter at tufts.edu Sun Feb 8 22:19:30 2004
From: stephan.richter at tufts.edu (Stephan Richter)
Date: Sun Feb 8 22:19:55 2004
Subject: [Zope3-dev] Re: [Zope3-checkins] CVS:
Zope3/src/zope/app/browser/services - error.zcml:1.1
configure.zcml:1.81 error.py:1.8
In-Reply-To: <200402090209.i192932R016693@cvs.zope.org>
References: <200402090209.i192932R016693@cvs.zope.org>
Message-ID: <200402082219.30717.stephan.richter@tufts.edu>
On Sunday 08 February 2004 21:09, Anthony Baxter wrote:
> zmi_actions menu now has an 'Errors' entry in all places that takes you
> to the error log. Woo hoo!
I consider this not to be a good thing. One of the annoying things about the
Zope 2 tabs was that there were usually more general tabs that applied to all
objects than specific ones. Please let's not repeat this for Zope 3.
BTW, the same is true for the caching tab. Not every object needs caching for
itself.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
From philipp at weitershausen.de Mon Feb 9 04:09:24 2004
From: philipp at weitershausen.de (Philipp von Weitershausen)
Date: Mon Feb 9 04:02:54 2004
Subject: [Zope3-dev] Re: CVS: Zope3/src/zope/app/browser/skins/rotterdam -
zope3.css:1.28
In-Reply-To: <200402090107.i1917e8f004800@cvs.zope.org>
References: <200402090107.i1917e8f004800@cvs.zope.org>
Message-ID: <40274E44.4050504@weitershausen.de>
Anthony Baxter wrote:
> - scrollbar-3dlight-color: #336699;
> - scrollbar-shadow-color: #336699;
> + scrollbar-3dlight-color: #369;
> + scrollbar-shadow-color: #369;
Maybe I'm not too familiar with the CSS spec, but is this a unique
description of an RGB colour? Even if it is, I personally would prefer
the full RRGGBB colour for easier human interpretation...
From richard at commonground.com.au Mon Feb 9 04:31:01 2004
From: richard at commonground.com.au (Richard Jones)
Date: Mon Feb 9 04:31:04 2004
Subject: [Zope3-dev] Re: CVS: Zope3/src/zope/app/browser/skins/rotterdam -
zope3.css:1.28
In-Reply-To: <40274E44.4050504@weitershausen.de>
References: <200402090107.i1917e8f004800@cvs.zope.org>
<40274E44.4050504@weitershausen.de>
Message-ID:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 09/02/2004, at 8:09 PM, Philipp von Weitershausen wrote:
> Anthony Baxter wrote:
>> - scrollbar-3dlight-color: #336699;
>> - scrollbar-shadow-color: #336699;
>> + scrollbar-3dlight-color: #369;
>> + scrollbar-shadow-color: #369;
>
> Maybe I'm not too familiar with the CSS spec, but is this a unique
> description of an RGB colour? Even if it is, I personally would prefer
> the full RRGGBB colour for easier human interpretation...
This is a valid shorter version of the RGB colour. It's not exactly the
same, but it's close enough - unless exact colour matching is desired
(which I doubt) then it'll do.
Richard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFAJ1NdrGisBEHG6TARAr3HAKCBH3pNR07xcXR84HYkhTIS5A53ZgCcDS3j
MOWOdPZHzzGe62n8Ollnw3w=
=05SV
-----END PGP SIGNATURE-----
From anthony at interlink.com.au Mon Feb 9 05:51:41 2004
From: anthony at interlink.com.au (Anthony Baxter)
Date: Mon Feb 9 05:52:06 2004
Subject: [Zope3-dev] Re: [Zope3-checkins] CVS:
Zope3/src/zope/app/browser/services - error.zcml:1.1
configure.zcml:1.81 error.py:1.8
Message-ID: <20040209105141.E05BD25ADA2@bonanza.off.ekorp.com>
>>> Stephan Richter wrote
> I consider this not to be a good thing. One of the annoying things
> about the Zope 2 tabs was that there were usually more general tabs
> that applied to all objects than specific ones. Please let's not
> repeat this for Zope 3.
Spot polling of everyone here (including Jim) was that this was a good
thing, not a bad thing. The Errors tab is almost always useful.
The Caching tab has been fixed.
Anthony
From srichter at cosmos.phy.tufts.edu Sun Feb 8 22:26:42 2004
From: srichter at cosmos.phy.tufts.edu (Stephan Richter)
Date: Mon Feb 9 06:10:36 2004
Subject: [Zope3-dev] ozzope-widgets-branch
In-Reply-To:
References:
Message-ID: <200402082226.42318.srichter@cosmos.phy.tufts.edu>
On Sunday 08 February 2004 21:03, Garrett Smith wrote:
> I'm not adhering to checkin standards for this phase, which is why we're
> working on a branch.
>
> I think the community will find the resulting code well documented,
> tested, and clear once it's merged into the head.
Sorry, I do not want to come across rude or picky.
I just want to make sure it is not missed when it enters the HEAD.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
From nicoe at altern.org Mon Feb 9 06:35:19 2004
From: nicoe at altern.org (Nicolas =?iso-8859-15?Q?=C9vrard?=)
Date: Mon Feb 9 06:35:26 2004
Subject: [Zope3-dev] Issue 124 in the collector.
Message-ID: <20040209113519.GA28560@smarties.nutellux.ath.cx>
Skipped content of type multipart/mixed-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20040209/005edce4/attachment.bin
From tseaver at zope.com Mon Feb 9 07:22:58 2004
From: tseaver at zope.com (Tres Seaver)
Date: Mon Feb 9 07:23:05 2004
Subject: [Zope3-dev] Re: Issue 124 in the collector.
In-Reply-To: <20040209113519.GA28560@smarties.nutellux.ath.cx>
References: <20040209113519.GA28560@smarties.nutellux.ath.cx>
Message-ID: <40277BA2.4070003@zope.com>
Nicolas ?vrard wrote:
> I've met the issue 124 from the collector again but I found a way around
> this issue.
>
> The Python you're using when running zope3 should have
> sys.defaultencoding set to 'utf' and not 'ascii'.
>
> On my debian system, it's impossible to use sys.setdefaultencoding() so
> I could not try the patch but it should work.
Can you edit /path/to/python2.3/site-packges/sitecustomize.py? That
file is the only possible place to change the encoding, I think.
$ more /opt/zc/lib/python2.3/site-packages/sitecustomize.py
import sys
sys.setdefaultencoding('latin-1')
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
From dorneles at x3ng.com.br Mon Feb 9 07:33:59 2004
From: dorneles at x3ng.com.br (=?ISO-8859-1?Q?Dorneles_Trem=E9a?=)
Date: Mon Feb 9 07:40:26 2004
Subject: [Zope3-dev] Re: CVS: Zope3/src/zope/app/browser/skins/rotterdam -
zope3.css:1.28
In-Reply-To:
References: <200402090107.i1917e8f004800@cvs.zope.org> <40274E44.4050504@weitershausen.de>
Message-ID:
Hi,
> > Maybe I'm not too familiar with the CSS spec, but is this a unique
> > description of an RGB colour? Even if it is, I personally would prefer
> > the full RRGGBB colour for easier human interpretation...
>
> This is a valid shorter version of the RGB colour. It's not exactly the
> same, but it's close enough - unless exact colour matching is desired
> (which I doubt) then it'll do.
hum... I'm sure it's EXACTLY the same[1], but I always preffered
#RRGGBB... :-)
[1] http://www.w3.org/TR/CSS21/syndata.html#color-units
Regards,
--
Dorneles Trem?a
Caxias do Sul - RS - Brasil
+55 54 9114 9312 - UIN: 2413568
X3ng Web Technology
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/IT d- s:->: a24 C+++ UBL++++$ P--- L++ E-- W+++
N++ o? K? w+ O M+ V-- PS+ PE- Y-- PGP++ t+ 5 X++ R+
tv+ b(++) DI+ D++ G+>+++ e++>++++ h---- r+++ y+++**
------END GEEK CODE BLOCK------
From jeremy at zope.com Mon Feb 9 10:00:14 2004
From: jeremy at zope.com (Jeremy Hylton)
Date: Mon Feb 9 10:00:51 2004
Subject: [Zope3-dev] Re: [ZODB-Dev] Is anyone using persistent modules at
the moment?
In-Reply-To: <4026BAA1.8080408@zope.com>
References: <4026BAA1.8080408@zope.com>
Message-ID: <1076338814.21762.22.camel@localhost.localdomain>
On Sun, 2004-02-08 at 17:39, Jim Fulton wrote:
> I'm thinking of breaking them for a while and not taking the time to fix them,
> assuming that no one is actually using them.
I'm not using them. Are you planning to break them in Zope or ZODB?
Jeremy
From tseaver at zope.com Mon Feb 9 10:19:13 2004
From: tseaver at zope.com (Tres Seaver)
Date: Mon Feb 9 10:19:17 2004
Subject: [Zope3-dev] Re: Issue 124 in the collector.
In-Reply-To: <20040209150522.GC28560@smarties.nutellux.ath.cx>
References: <20040209113519.GA28560@smarties.nutellux.ath.cx>
<40277BA2.4070003@zope.com>
<20040209134355.GB28560@smarties.nutellux.ath.cx>
<40279FD1.5030609@zope.com>
<20040209150522.GC28560@smarties.nutellux.ath.cx>
Message-ID: <4027A4F1.3070100@zope.com>
Nicolas ?vrard wrote:
> * Tres Seaver [15:57 09/02/04 CET]:
>
>>>
>>> Indeed, that's what I've done on my system. But I think this issue
>>> should be adressed in the zope3 starting script.
>>
>>
>> It can't be -- the Python interpreter *won't allow* that value to be
>> set except in sitecustomize.py. See this bit (from Lib/site.py in
>> your Python distribution):
(oops, I forgot to CC the list last time).
> Ok. I though this was a debian specificity.
> Does this mean that zope3 on a default python install will always have
> this issue ? Or will there be some magic involved I cannot see yet ?
Perhaps we should be lobbying to have Python add a command-line
parameter for specifying the default encoding? /me checks:
$ /opt/zc/bin/python -h
...
-S : don't imply 'import site' on initialization
So, one could run python with -S, and then invoke
'sys.setdefaultencoding("latin-1")' later during Zope startup.
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
From casey at zope.com Mon Feb 9 11:18:21 2004
From: casey at zope.com (Casey Duncan)
Date: Mon Feb 9 11:21:04 2004
Subject: [Zope3-dev] Need help planning Zope X3 1.0
In-Reply-To: <20040208203643.GD1723@slinkp.com>
References: <40230606.4090805@zope.com>
<200402070811.35507.srichter@cosmos.phy.tufts.edu>
<40257358.5040607@zope.com>
<200402071929.25507.srichter@cosmos.phy.tufts.edu>
<402586CC.8040503@zope.com> <20040208203643.GD1723@slinkp.com>
Message-ID: <20040209111821.3f2c3f7e.casey@zope.com>
On Sun, 8 Feb 2004 15:36:43 -0500
Paul Winkler wrote:
> On Sat, Feb 07, 2004 at 07:46:04PM -0500, Jim Fulton wrote:
> > Stephan Richter wrote:
[..]
> I think the controversy over embedding python in ZPT and
> embedding HTML in python should not be taken lightly, and
> if we are not ready to focus on it, we should stop arguing about
> it for now. I have plenty to say on the subject but I think
> this is not the time.
Suppose you see the following email on zope@zope.org after Zope 3 goes
mainstream:
Subject: Need Help
Hi All,
We've got a large Zope (3) site that we've had in production for a few
months
now. Our main developer just moved to Timbuktu however and took all of
our
Zope zen with him. I've tried to figure out how this stuff works, but
I'm not
really a programmer and all this ZPT stuff is too confusing for me. I
sort of
understand HTML and Javascript but our site has hundreds of these tags
I
don't fully understand:
I can't find any curly braces in the code, so it's gibberish to me. I
guess
we really need to hire an expert to sort this thing out. Any
recommendations?
-Hapless
To me this reads like current messages on zope@zope.org that contain the
terms "ZClass" and "DTML". To me this screams "Run Away!"
Now at least the situation is ignorable. But imagine another senario
where you inherit a site built all using TTW scripting with no
separation of presentation, content and business logic. It's your job to
make it a success. Yikes!
To me this sort of thing is like inline styles in HTML. Do I ever use
inline styles? Yes I do, but very rarely and (hopefully) only when there
is no other effective way to do what I want with the stylesheet (perhaps
too dynamic), or I just plain can't change the stylesheet (or the
document ). Do I feel a little dirty when I decide to use
them? Yes. Sometimes I use them temporarily just to sketch something,
knowing that I will create a stylesheet and do it the "right way" later.
I think that the inline scripting is aimed at the same problem space.
The quick and dirty thing that you know isn't the "right" way
recommended by 4 out of 5 Zope developers. The thing you don't use to
solve meaningful problems long-term.
Since it looks like it is inevitable that Zope will have this, I ask for
the following:
- The limitations, and intended usage of these scripting features be
made abundantly
clear in the docs and that the alternatives be referenced
conspicuously explaining
their benefits. The lack of this sort of thing currently for Zope 2
sends many down
dark dead-end alleys IMO.
- That these inline scripting features are not part of, nor are they
used by the Zope
core. That they be in a product or otherwise separated in such a way
that I can
turn them off or distribute Zope without them if I choose,
Also, remember the wisdom of "One way to do it". This is something that
Zope IMO has never really followed in the past, which I attribute to the
immaturity of the problem space. If we sponsor many ways to do a single
thing to Zope, this contributes to rather than reduces the complexity
and learning curve overall. This, of course needs to be balanced against
the broad appeal and acceptance that we desire for Zope to have.
If inline scripting helps more people adopt Zope that may be good,
unless they learn to hate it because no one told them that doing things
this way is very difficult to scale and maintain. Lets not make Zope so
much like other solutions as to also inherit their shortcomings as a
result.
-Casey
From pw_lists at slinkp.com Mon Feb 9 11:50:25 2004
From: pw_lists at slinkp.com (Paul Winkler)
Date: Mon Feb 9 11:50:30 2004
Subject: [Zope3-dev] Need help planning Zope X3 1.0
In-Reply-To: <20040209111821.3f2c3f7e.casey@zope.com>
References: <40230606.4090805@zope.com>
<200402070811.35507.srichter@cosmos.phy.tufts.edu>
<40257358.5040607@zope.com>
<200402071929.25507.srichter@cosmos.phy.tufts.edu>
<402586CC.8040503@zope.com> <20040208203643.GD1723@slinkp.com>
<20040209111821.3f2c3f7e.casey@zope.com>
Message-ID: <20040209165025.GF1716@slinkp.com>
On Mon, Feb 09, 2004 at 11:18:21AM -0500, Casey Duncan wrote:
> On Sun, 8 Feb 2004 15:36:43 -0500
> Paul Winkler wrote:
>
> > On Sat, Feb 07, 2004 at 07:46:04PM -0500, Jim Fulton wrote:
> > > Stephan Richter wrote:
> [..]
> > I think the controversy over embedding python in ZPT and
> > embedding HTML in python should not be taken lightly, and
> > if we are not ready to focus on it, we should stop arguing about
> > it for now. I have plenty to say on the subject but I think
> > this is not the time.
>
> Suppose you see the following email on zope@zope.org after Zope 3 goes
> mainstream:
(snip)
Well, apparently Casey feels that now IS the time to argue about
it, and psychically extracted my objections as well ;-)
--
Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's THE FATUOUS CHAIN!
(random hero from isometric.spaceninja.com)
From chrism at plope.com Mon Feb 9 11:59:37 2004
From: chrism at plope.com (Chris McDonough)
Date: Mon Feb 9 11:59:41 2004
Subject: [Zope3-dev] Need help planning Zope X3 1.0
In-Reply-To: <20040209165025.GF1716@slinkp.com>
References: <40230606.4090805@zope.com>
<200402070811.35507.srichter@cosmos.phy.tufts.edu>
<40257358.5040607@zope.com>
<200402071929.25507.srichter@cosmos.phy.tufts.edu>
<402586CC.8040503@zope.com> <20040208203643.GD1723@slinkp.com>
<20040209111821.3f2c3f7e.casey@zope.com>
<20040209165025.GF1716@slinkp.com>
Message-ID: <1076345977.20894.99.camel@athlon>
+1 to Casey's concerns ;-)
From Mailer-Daemon at python.org Mon Feb 9 12:08:06 2004
From: Mailer-Daemon at python.org (Mail Delivery System)
Date: Mon Feb 9 12:08:21 2004
Subject: [Zope3-dev] Mail delivery failed: returning message to sender
Message-ID:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
corey@streamreel.net
SMTP error from remote mailer after RCPT TO::
host iris2.directnic.com [204.251.10.82]: 550 5.7.1 No such recipient
------ This is a copy of the message, including all the headers. ------
Return-path:
Received: from cache1.zope.org ([12.155.117.38])
by mail.python.org with esmtp (Exim 4.22)
id 1Apd17-0001K4-Cr; Sat, 07 Feb 2004 19:41:45 -0500
From: zope3-dev@zope.org (anthony)
Reply-To: zope3-dev@zope.org
To: ;
Subject: [Zope3GUI]
Message-ID: <20040207194145EST@dev.zope.org>
X-BeenThere: zope3-dev@zope.org
X-Zwiki-Version: 0.21.1
Precedence: bulk
List-Id:
List-Post:
List-Subscribe:
List-Unsubscribe:
List-Archive:
List-Help:
Date: Sat, 07 Feb 2004 19:41:45 -0500
X-Spam-Status: OK (default 0.038)
??changed:
- If you now click on the "View default package" action link, you end up
If you now click on the "View default folder" action link, you end up
--
forwarded from http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3GUI
From Mailer-Daemon at python.org Mon Feb 9 12:08:38 2004
From: Mailer-Daemon at python.org (Mail Delivery System)
Date: Mon Feb 9 12:08:40 2004
Subject: [Zope3-dev] Mail delivery failed: returning message to sender
Message-ID:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
corey@streamreel.net
SMTP error from remote mailer after RCPT TO::
host iris2.directnic.com [204.251.10.82]: 550 5.7.1 No such recipient
------ This is a copy of the message, including all the headers. ------
Return-path:
Received: from cache1.zope.org ([12.155.117.38])
by mail.python.org with esmtp (Exim 4.22)
id 1Apcy7-0006QV-C8; Sat, 07 Feb 2004 19:38:39 -0500
From: zope3-dev@zope.org (anthony)
Reply-To: zope3-dev@zope.org
To: ;
Subject: [Zope3GUI]
Message-ID: <20040207193839EST@dev.zope.org>
X-BeenThere: zope3-dev@zope.org
X-Zwiki-Version: 0.21.1
Precedence: bulk
List-Id:
List-Post:
List-Subscribe:
List-Unsubscribe:
List-Archive:
List-Help:
Date: Sat, 07 Feb 2004 19:38:39 -0500
X-Spam-Status: OK (default 0.032)
??changed:
- The '
Date and time: (time).