Re: [Zope-dev] zope.testrunner import location notifications

2009-05-28 Thread Christian Theune
Hi,

On Tue, 2009-05-26 at 12:42 +0200, Martijn Faassen wrote:
 Hi there,
 
 (in particular Christian Theune)

thanks for reminding. I dropped the ball on those.

 What's the status of the 'import location' notification functionality in 
 zope.testrunner?

I'll resume work on that once the ZODB migration code is done.

 What's the status of the ZODB migration code?

I'm taking up work on that again. It still lives in the Sandbox (svn
+ssh://svn.zope.org/repos/main/Sandbox/ctheune/zodbupgrade), but I
restructured it today so that it becomes easier to use. I still need to
provide tests and documentation though. I think this can happen in the
next days.

Christian
-- 
Christian Theune · c...@gocept.com
gocept gmbh  co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development


signature.asc
Description: This is a digitally signed message part
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] [Checkins] SVN: zope.app.http/trunk/ - Replacedthedependency on zope.deprecation with BBB imports

2009-05-28 Thread Martijn Faassen
Hi there,

Roger Ineichen wrote:
[snip]
 The only thing I could say about this concept is that we
 didn't start to remove #BBB marked imports.
 
 Just wait till we start remove the BBB imports and
 the packages from install_requires ...

Since we were hardly in a hurry removing deprecation warnings *years* 
after we promised to remove them in the text (there's still some 
around), I can't say we'll be in that much of a hurry to remove these. :)

Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] [Checkins] SVN: zope.app.http/trunk/- Replacedthedependency on zope.deprecation with BBB imports

2009-05-28 Thread Martijn Faassen
Hey,

Stephan Richter wrote:
[snip]
 I have been following this discussion and just want to mention that I fully 
 agree with Roger. If you release a final version of Zope or a package that 
 spews deprecation warnings or has not fixed the imports, then this should be 
 considered bad releasing.

I'm not sure I understand this. If you are releasing a final version of 
zope.app.component, do you want it *not* to spew deprecation warnings?

Or do you mean you require someone to go through all packages that may 
depend on zope.app.component and change the imports there before 
zope.app.component is released? But if so, you'd need to release 
zope.app.component with deprecation warnings.

Several times in the previous discussion I heard people talk about 
wanting to support multiple releases of a single package and not wanting 
indirect deprecation warninsg. I'm not going to defend their view here 
myself, but I must note we've been spending some months now moving away 
from zope.deprecation.

I highly doubt that this will hurt us seriously in the coming years. And 
if it does, at least we'll be using Python imports amenable by analysis 
by any Python programmer, with records in the CHANGES.txt that can be 
read by anyone, and not our own home-grown import system using module 
proxies.

Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] RFC: Site - Locus

2009-05-28 Thread Martijn Faassen
Hi there,

We have a concept of Site in the Zope Toolkit, along with SiteManager 
and the like. What this concept allows us to do is locally register 
components. Most typically this is used for local utilities such as a 
catalog.

During traversal, a thread-local is set with the current site, so that 
code that looks up a compoment will check the current site(s) before 
falling back on the global component registry.

The word site has bothered myself and others for some time. It doesn't 
really have the right connotations for random programmers; when you hear 
site you think about website, and that's not really what this implies. 
The reason we called it site I think has to do with the idea that we 
expected Zope-based web sites to be applications with a lot of local 
components.

I'm interested in refactoring zope.site to split it into two packages: 
one that has the pure site-based logic with minimal dependencies, and 
support to easily test with sites, and the other with dependencies on 
zope.container. While thinking about this, I figured this might be a 
good opportunity to rename the word 'site' to something better.

I propose we use the word 'Locus' instead of 'Site'. This word doesn't 
have a lot of connotations in the web programming world, and people can 
guess by simply looking at the word it might have something to do with 
*local* components. It's also short. It's also a synonym of the word 
site. The dictionary says: a place, a locality and the scene of any 
event or action. I think that works quite well.

Two possible options for moving forward with this:

* create a zope.locus package that contains the core locus support. It 
only speaks in terms of locus and doesn't use the word site

* zope.locuscontainer will have the container support surrounding sites.

* zope.site becomes a backwards compatible but deprecated package that 
does 'from .. import .. as' to keep 'getSite' and 'setSite' and such 
around. The package itself will be deprecated and people will be 
encouraged to depend on zope.locus (or zope.locuscontainer, but that 
will be rare).

The other plan:

* we fold the locus support into zope.component. This is assuming that 
the dependencies for Locus can be kept to a bare minimum (no ZODB 
dependencies either).

* we add the LocusContainer support to zope.container directly; since it 
already uses zope.component this isn't a problem

* zope.site is still a backwards compatible package (that depends on 
zope.container and zope.component, which it already does).

The second plan is my favorite if it is possible dependency-wise and 
zope.component doesn't take on new dependencies. I think support for 
local components could very well be part of zope.component conceptually. 
It would allow us to eliminate one package (zope.site) without 
introducing any new packages (the other plan increases the amount of 
packages by one, trading zope.site for zope.locuscontainer).

What do people think about:

* the idea of renaming Site to Locus

* the plan for refactoring?

Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On May 28, 2009, at 13:08 , Martijn Faassen wrote:

 What do people think about:

 * the idea of renaming Site to Locus

I think that's a terrible name. While site at least means something  
to people, locus doesn't carry any meaning in the specific knowledge  
domain you're trying to push it into.

jens

P.S.: Lokus is a slang word for toilet in German. Great connotation.  
My utilities need to go into the dump.



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkoec2kACgkQRAx5nvEhZLIHHwCgoNQ76/TKTC6KQ8FBAWMQVIhh
KS8AoKse/t3sRe9UEwDg0obcJWa8MIwX
=rG/4
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Martijn Faassen
Hey,

Jens Vagelpohl wrote:
 On May 28, 2009, at 13:08 , Martijn Faassen wrote:
 
 What do people think about:

 * the idea of renaming Site to Locus
 
 I think that's a terrible name. While site at least means something  
 to people, locus doesn't carry any meaning in the specific knowledge  
 domain you're trying to push it into.

But the whole point is that while site means something to people, it 
gives people the *wrong* idea about what the functionality is actually 
about.

A site in Zope terminology is something where local components can be 
registered and found. A site in any other web terminology means web 
site. site having a meaning to people already is actually a bad 
thing. If they see the word 'locus' they get two possible clues:

* this is something I don't understand yet, so I need to figure it out.

* Hm, I wonder whether it has something to do with local utilities.

 P.S.: Lokus is a slang word for toilet in German. Great connotation.  
 My utilities need to go into the dump.

Yes, many words we can use are bad slang word in some other language. 
Locus is also commonly used in genetics, my genes in the dump. :) We 
just need to watch out for slang words in English.

Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Zope Tests: 7 OK, 1 Failed

2009-05-28 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Wed May 27 12:00:00 2009 UTC to Thu May 28 12:00:00 2009 UTC.
There were 8 messages: 8 from Zope Tests.


Test failures
-

Subject: FAILED (errors=1) : Zope-trunk-alltests Python-2.4.6 : Linux
From: Zope Tests
Date: Wed May 27 21:02:06 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011808.html


Tests passed OK
---

Subject: OK : Zope-2.10 Python-2.4.6 : Linux
From: Zope Tests
Date: Wed May 27 20:51:54 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011803.html

Subject: OK : Zope-2.11 Python-2.4.6 : Linux
From: Zope Tests
Date: Wed May 27 20:53:56 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011804.html

Subject: OK : Zope-trunk Python-2.4.6 : Linux
From: Zope Tests
Date: Wed May 27 20:55:56 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011805.html

Subject: OK : Zope-trunk Python-2.5.4 : Linux
From: Zope Tests
Date: Wed May 27 20:58:00 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011806.html

Subject: OK : Zope-trunk Python-2.6.1 : Linux
From: Zope Tests
Date: Wed May 27 21:00:04 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011807.html

Subject: OK : Zope-trunk-alltests Python-2.5.4 : Linux
From: Zope Tests
Date: Wed May 27 21:04:06 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011809.html

Subject: OK : Zope-trunk-alltests Python-2.6.1 : Linux
From: Zope Tests
Date: Wed May 27 21:06:07 EDT 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-May/011810.html

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] [Checkins] SVN: zope.app.http/trunk/- Replacedthedependency on zope.deprecation with BBB imports

2009-05-28 Thread Roger Ineichen
Hi Martijn
  
 Betreff: Re: [Zope-dev] [Checkins] SVN: zope.app.http/trunk/- 
 Replacedthedependency on zope.deprecation with BBB imports
 
 Hey,
 
 Stephan Richter wrote:
 [snip]
  I have been following this discussion and just want to 
 mention that I 
  fully agree with Roger. If you release a final version of Zope or a 
  package that spews deprecation warnings or has not fixed 
 the imports, 
  then this should be considered bad releasing.
 
 I'm not sure I understand this. If you are releasing a final 
 version of zope.app.component, do you want it *not* to spew 
 deprecation warnings?

My fear is that deprecated imports will pull in packages
and act as the single point of an egg declaration. If someone
removes a dependency during a deprecation import cleanup lets
say zope.formlib in z3c.form from version 1.9.0 to 2.0.0 then
it's possible that a custom project didn't fix the zope.formlib
depndency in his setup.py because there is no need to do so.

Good luck if the last egg cleans up the zope.formlib dependency
and you didn't fix it in your project for your self. This 
will end in loosing the dependency at all and you don't know
why. Of corse you can fix this lost dependency and add it to
your setup.py. But you still don't know why. You also can't
find information about why in the zope.formlib package is not
needed anymore because another package is responsible for
not using the zope.formlib package.

I''m pretty sure that at this moment you like to know if 
you should still like to depend on zope.formlib or not and
also change to something else, but to what? What get refactored
and is not using zope.formlib anymore? 

With deprecation warnings, you get very early informed and you
will see which package are using newer versions. This will give
you the required information that you also should switch a to 
another better concept.

The deprecation message is a very important information and
can keep you informed on what's going on and about new better
concepts. 

Regards
Roger Ineichen

 Or do you mean you require someone to go through all packages 
 that may depend on zope.app.component and change the imports 
 there before zope.app.component is released? But if so, you'd 
 need to release zope.app.component with deprecation warnings.

I'm absolutly sure you should not release packages in a KGS
with deprecation warnings or deprecated imports.

Of corse there could be a package which uses deprecated
imports because another package get refactored. but not in
a KGS.

I think this is an important point. We agree that there could
be packages with deprecated imports. but the release manager
of the KGS has to do all the work for a clean deprecation free
KGS release. That's a pain for them.

 Several times in the previous discussion I heard people talk 
 about wanting to support multiple releases of a single 
 package and not wanting indirect deprecation warninsg. I'm 
 not going to defend their view here myself, but I must note 
 we've been spending some months now moving away from zope.deprecation.
 
 I highly doubt that this will hurt us seriously in the coming 
 years. And if it does, at least we'll be using Python imports 
 amenable by analysis by any Python programmer, with records 
 in the CHANGES.txt that can be read by anyone, and not our 
 own home-grown import system using module proxies.

The current situation without deprecation warnings requires
to read and follow 100 - 115 CAHNGES.txt files for some of
our projects. That's just a pain. And I'm pretty sure nobody 
which proposes to skip deprecation messages and uses such an
amount of packages is reading every CHANGES.txt file.

I'm 100% sure nobody not invloved in the core development
is happy with reading such an amount of CHANGES.txt files.

And as more as I think about our concept I think it's
totaly wrong. It's just bad to officialy recommend that
everybody should read the CHANGEs.txt or he get lost
in working with Zope packages.

Note if you will loose a dependency(egg) you can't read the
CHANGES.txt file of the lost package, you have to find out
why you lost the dependency an consult all CHANGES.txt files
from all of your used packages.

Regards
Roger Ineichen

 Regards,
 
 Martijn
 
 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  ** (Related lists -  
 http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )
 

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Matthew Wilkes

On 28 May 2009, at 12:39, Martijn Faassen wrote:

 * Hm, I wonder whether it has something to do with local utilities.

I don't think I'd make this jump.  I'd not be averse to a longer  
package name if it made it more explicit.

Matt
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Wichert Akkerman
Previously Martijn Faassen wrote:
 I propose we use the word 'Locus' instead of 'Site'. This word doesn't 
 have a lot of connotations in the web programming world, and people can 
 guess by simply looking at the word it might have something to do with 
 *local* components. It's also short.

I don't see short as a very important quality here. It is not a name you
have to type in often, so I would prefer something more descriptive. How
about componentroot or componentcontainer..

Wichert.

-- 
Wichert Akkerman wich...@wiggy.netIt is simple to make things.
http://www.wiggy.net/   It is hard to make things simple.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Martijn Faassen
Matthew Wilkes wrote:
 On 28 May 2009, at 12:39, Martijn Faassen wrote:
 
 * Hm, I wonder whether it has something to do with local utilities.
 
 I don't think I'd make this jump.  I'd not be averse to a longer  
 package name if it made it more explicit.

I wasn't primarily talking about a package name, but about the name for 
the concept (which can then be reflected class names, and a package 
name, if such a package is necessary).

Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Martijn Faassen
Wichert Akkerman wrote:
 Previously Martijn Faassen wrote:
 I propose we use the word 'Locus' instead of 'Site'. This word doesn't 
 have a lot of connotations in the web programming world, and people can 
 guess by simply looking at the word it might have something to do with 
 *local* components. It's also short.
 
 I don't see short as a very important quality here. It is not a name you
 have to type in often, so I would prefer something more descriptive. How
 about componentroot or componentcontainer..

I do find short an important quality here, because I find myself typing 
getSite() frequently, and in tests, setSite as well. It's also 
something one talks about.

A site isn't a container, I'll note. A site is something that has local 
components registered but doesn't need to be implemented as a container 
at all.

Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Wichert Akkerman
Previously Martijn Faassen wrote:
 Wichert Akkerman wrote:
  Previously Martijn Faassen wrote:
  I propose we use the word 'Locus' instead of 'Site'. This word doesn't 
  have a lot of connotations in the web programming world, and people can 
  guess by simply looking at the word it might have something to do with 
  *local* components. It's also short.
  
  I don't see short as a very important quality here. It is not a name you
  have to type in often, so I would prefer something more descriptive. How
  about componentroot or componentcontainer..
 
 I do find short an important quality here, because I find myself typing 
 getSite() frequently, and in tests, setSite as well. It's also 
 something one talks about.

People also talk about www which is horrible to pronounce in English :)

 A site isn't a container, I'll note. A site is something that has local 
 components registered but doesn't need to be implemented as a container 
 at all.

A site contains component registraties and possible persistent
components. That makes it a container to me.

Perhaps componentRegistry works better for you?

Wichert.

-- 
Wichert Akkerman wich...@wiggy.netIt is simple to make things.
http://www.wiggy.net/   It is hard to make things simple.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Roger Ineichen
Hi Martjin, Christian

 Betreff: [Zope-dev] RFC: Site - Locus

[...]

 The second plan is my favorite if it is possible 
 dependency-wise and zope.component doesn't take on new 
 dependencies. I think support for local components could very 
 well be part of zope.component conceptually. 
 It would allow us to eliminate one package (zope.site) 
 without introducing any new packages (the other plan 
 increases the amount of packages by one, trading zope.site 
 for zope.locuscontainer).
 
 What do people think about:
 
 * the idea of renaming Site to Locus

Oh my god, many -1

 * the plan for refactoring?

I think we have other things to cleanup in zope.site
befor we think about to split something out as the same 
as before.

What I like to see is that we remove the default Folder
container and simplify the hole implementation.

Since Jim and Stephan refactored the component registry
we are able to skip the half setup we use today.

There is no need to support a default Folder for our
utilities since we can registrer utilities everywhere.
Such registered component will get found, doesnt' matter
where they are located etc.

I think a dependency cleanup and split the same old bad 
concept into different packages is not usefull right now.

Are you aware of all the overhead we have in zope.site
right now?

We also have a bad/broken registry. I think Christian Theuni
also knows about it. Not sure if this is fixed or if
some utility registrations still hang arround in the 
local registry but shouldn't. If so, we have to take care
if we touch the existing implementation and find out what
could happen on all our production systems. And we need to 
support a fix for this broken registrations befor we touch or
move something.

Chistian,
are I'm correct that you run itno that too. Did you fix
something in zope.app.site once or did you add an issue
on launchpad? I remember something but not sure if I'm correct.


Regards
Roger Ineichen

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] [Checkins] SVN: zope.app.http/trunk/- Replacedthedependency on zope.deprecation with BBB imports

2009-05-28 Thread Martijn Faassen
Hey,

Roger Ineichen wrote:
[snip]
 My fear is that deprecated imports will pull in packages
 and act as the single point of an egg declaration. If someone
 removes a dependency during a deprecation import cleanup lets
 say zope.formlib in z3c.form from version 1.9.0 to 2.0.0 then
 it's possible that a custom project didn't fix the zope.formlib
 depndency in his setup.py because there is no need to do so.

I'm not sure I understand, but if you directly use zope.formlib you 
should have a direct dependency on it in your setup.py.

 Good luck if the last egg cleans up the zope.formlib dependency
 and you didn't fix it in your project for your self. This 
 will end in loosing the dependency at all and you don't know
 why. Of corse you can fix this lost dependency and add it to
 your setup.py. But you still don't know why. You also can't
 find information about why in the zope.formlib package is not
 needed anymore because another package is responsible for
 not using the zope.formlib package.

If you don't use zope.formlib, there isn't a problem. If you do use it, 
you should declare it. I'm not sure I understand the problem here. Of 
course the dependency refactoring will cause breakages here and there, 
but I don't think they're intractable (especially if we do provide a KGS 
for the toolkit packages).

 The deprecation message is a very important information and
 can keep you informed on what's going on and about new better
 concepts. 

I think you should be reading the CHANGES.txt of the packages you depend 
on when you upgrade the dependency.

If you *don't* depend on a package directly, you normally shouldn't have 
to be concerned when it disappears. Of course there might be bugs 
introduced in this process: packages you do somehow indirectly depend on 
disappear. That's something we'll have to live with if we want to move 
forward at all. I don't see how zope.deprecation is going to make any 
difference in this in any way however - you won't see any deprecation 
warnings either as the underlying package is simply gone.

A CHANGES.txt can contain much much better information than the 
deprecation warnings ever could. It can detail what happened, why it 
did, and what you should be doing. I've been rather confused with a 
what now? feeling when confronted with deprecation warnings in the 
past, and there was nothing else but these messages that I could 
investigate.

Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Martijn Faassen
Hey,

Roger Ineichen wrote:
[snip]
 What do people think about:

 * the idea of renaming Site to Locus
 
 Oh my god, many -1

Motivations beyond oh my god?

One reason Locus might be a bad word is because it's easily confused 
with Location, a concept we already have.

 What I like to see is that we remove the default Folder
 container and simplify the hole implementation.

I'm proposing we separate the folder implementation from the basic site 
functionality. It will then become easier for people to ignore the 
folder implementation and not use it, while we retain backwards 
compatibility for those who do need it.

[snip]
 I think a dependency cleanup and split the same old bad 
 concept into different packages is not usefull right now.

What is the same old bad concept? Details?

 Are you aware of all the overhead we have in zope.site
 right now?

Since I actually assembled these things into zope.site, I have some 
awareness of what is in there.

Could you actually point to specific points in the zope.site code? It's 
not a lot of code, after all. I'm proposing we move some of this code 
into zope.component, and the rest into zope.container (or we could leave 
it in zope.site for now). Where is the overhead we can safely remove?

Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] [Checkins] SVN: zope.app.http/trunk/- Replacedthedependency on zope.deprecation with BBB imports

2009-05-28 Thread Roger Ineichen
Hi Martjin

 Betreff: Re: [Zope-dev] [Checkins] SVN: zope.app.http/trunk/- 
 Replacedthedependency on zope.deprecation with BBB imports
 
 Hey,
 
 Roger Ineichen wrote:
 [snip]
  My fear is that deprecated imports will pull in packages and act as 
  the single point of an egg declaration. If someone removes a 
  dependency during a deprecation import cleanup lets say 
 zope.formlib 
  in z3c.form from version 1.9.0 to 2.0.0 then it's possible that a 
  custom project didn't fix the zope.formlib depndency in his 
 setup.py 
  because there is no need to do so.
 
 I'm not sure I understand, but if you directly use 
 zope.formlib you should have a direct dependency on it in 
 your setup.py.

should is the right word for this ;-)

  Good luck if the last egg cleans up the zope.formlib dependency and 
  you didn't fix it in your project for your self. This will end in 
  loosing the dependency at all and you don't know why. Of 
 corse you can 
  fix this lost dependency and add it to your setup.py. But you still 
  don't know why. You also can't find information about why in the 
  zope.formlib package is not needed anymore because another 
 package is 
  responsible for not using the zope.formlib package.
 
 If you don't use zope.formlib, there isn't a problem. If you 
 do use it, you should declare it. I'm not sure I understand 
 the problem here. Of course the dependency refactoring will 
 cause breakages here and there, but I don't think they're 
 intractable (especially if we do provide a KGS for the 
 toolkit packages).
 
  The deprecation message is a very important information and 
 can keep 
  you informed on what's going on and about new better concepts.
 
 I think you should be reading the CHANGES.txt of the packages 
 you depend on when you upgrade the dependency.
 
 If you *don't* depend on a package directly, you normally 
 shouldn't have to be concerned when it disappears. Of course 
 there might be bugs introduced in this process: packages you 
 do somehow indirectly depend on disappear. That's something 
 we'll have to live with if we want to move forward at all. I 
 don't see how zope.deprecation is going to make any 
 difference in this in any way however - you won't see any 
 deprecation warnings either as the underlying package is simply gone.

The point is that the deprecation message informs you for
upcomming work. Which is a good information. I do not read the
CHANGES.txt files ever night.

 A CHANGES.txt can contain much much better information than 
 the deprecation warnings ever could. It can detail what 
 happened, why it did, and what you should be doing. I've been 
 rather confused with a what now? feeling when confronted 
 with deprecation warnings in the past, and there was nothing 
 else but these messages that I could investigate.

Of corse should we have CHANGES.txt files. A deprecation 
warning should show a link where vi and emac users can write 
script which points directly to the CHANGES.txt at pypi if
they click on the deprecation warning link ;-)

Regards
Roger Ineichen

 Regards,
 
 Martijn
 
 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  ** (Related lists -  
 http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )
 

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Lennart Regebro
zope.locusts?

I don't think locus is an improvement to site. Although site is not
strictly correct, it's often the fact that it is a site. Locus doesn't
say anything, and adds another abstraction with no obvious benefit.

A longer name is better in that case. Like componentlocation or
registrationroot or something.

But I don't think site is particularily confusing in the first place,
even if it isn't 100% correct.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread robert rottermann

 One reason Locus might be a bad word is because it's easily confused 
 with Location, a concept we already have.

an other one is that in german locus is often used for a place where you sit
down and use  paper to clean your back afterwards..

robert
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Roger Ineichen
Hi Martjin

 Betreff: Re: [Zope-dev] RFC: Site - Locus
 
 Hey,
 
 Roger Ineichen wrote:
 [snip]
  What do people think about:
 
  * the idea of renaming Site to Locus
  
  Oh my god, many -1
 
 Motivations beyond oh my god?

My first motivation was the same as Jens had.
Lokus is such a unique word in german that you 
defently think this is a typo if you read Locus

But I think right now we have:

- a well known pattern with the ISite

- the concept is not bad or wrong

- the site is not a page (in web terms)

- the site is a kind of root (in web terms)

- the site map is an overview of what a site includes (in web terms)

I can't think there could be a better name for what the
site pattern does right now. There is absolutly no reason
why we should use another name for the same concept we use
the last 5 years.

Probably I missed something in your proposal, but as
far as I can see you don't propose to change something 
in the concept of the site pattern? right?

 One reason Locus might be a bad word is because it's easily 
 confused with Location, a concept we already have.
 
  What I like to see is that we remove the default Folder 
 container and 
  simplify the hole implementation.
 
 I'm proposing we separate the folder implementation from the 
 basic site functionality. It will then become easier for 
 people to ignore the folder implementation and not use it, 
 while we retain backwards compatibility for those who do need it.

Probably a good idea

 [snip]
  I think a dependency cleanup and split the same old bad 
 concept into 
  different packages is not usefull right now.
 
 What is the same old bad concept? Details?
 
  Are you aware of all the overhead we have in zope.site right now?
 
 Since I actually assembled these things into zope.site, I 
 have some awareness of what is in there.
 
 Could you actually point to specific points in the zope.site 
 code? It's not a lot of code, after all. I'm proposing we 
 move some of this code into zope.component, and the rest into 
 zope.container (or we could leave it in zope.site for now). 
 Where is the overhead we can safely remove?

The site offers a SiteManagementFolder, SiteManagerContainer
and a LocalSiteManager.

The SiteManagementFolder by default installed as ['default']
is absolutly useless and obsolate since the last refactoring.
It's just a container, earlier it was a kind of namespace.

Also the lookup concept for this default container should
get reviewed. I also think since we do not offer a Zope 3
application server the hole default setup which is not
needed for a working local component registry shuld probably
go to a own package.

I think the hard part of refactoring the ISite and local utility
concept is to moe the right concept how this pakage get used
into diefferent packags and not the components.

My first step whould be to write down the differen usecase
of zope.site, global and local utilities, location, component
and the registry which brings everything together.

Just refactoring zope.site and move the same packages arround 
because of dependencies is in my point of view the wrong
thing. We need to define wich package will offer which parts
of the hole site concept. otherwise it could be useless
if at the end all packages get used together in 99% of all
Zope projects.

What do you like to use independently from each other
which is now assembled as a unit in zope.site?

Regards
Roger Ineichen

 Regards,
 
 Martijn
 
 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  ** (Related lists -  
 http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )
 

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Roger Ineichen
Hi Martjin

 Betreff: Re: [Zope-dev] RFC: Site - Locus

I think if we really need a better naming, we should 
think about how everyting will fit together.

e.g.
application, root, site, registry, local, global
component, location, container, item, etc.

I don't think locus is the right missing part for
a better understanding if you need to explain the
zope world.

Regards
Roger Ineichen

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Jim Fulton
A few high-level comments.

1. I admire your desire to make this clearer. :)

2. I think local configuration address use cases that most people  
don't have but introduce complexity that I bet a lot of developers  
trip over.

3. I think the right word here is local registry.  I think the whole  
concept should be labeled as advanced and we should discourage people  
from even pondering it unless they have a strong use case, like  
wanting to host multiple web sites with different configs in the same  
application. :)

4. I think we should step back (re)think how we handle the goals that  
drive this.  If we do, we might  come up with something so different  
that we'd make this discussion moot.

Jim

On May 28, 2009, at 7:08 AM, Martijn Faassen wrote:

 Hi there,

 We have a concept of Site in the Zope Toolkit, along with  
 SiteManager
 and the like. What this concept allows us to do is locally register
 components. Most typically this is used for local utilities such as a
 catalog.

 During traversal, a thread-local is set with the current site, so that
 code that looks up a compoment will check the current site(s) before
 falling back on the global component registry.

 The word site has bothered myself and others for some time. It  
 doesn't
 really have the right connotations for random programmers; when you  
 hear
 site you think about website, and that's not really what this implies.
 The reason we called it site I think has to do with the idea that we
 expected Zope-based web sites to be applications with a lot of local
 components.

 I'm interested in refactoring zope.site to split it into two packages:
 one that has the pure site-based logic with minimal dependencies, and
 support to easily test with sites, and the other with dependencies on
 zope.container. While thinking about this, I figured this might be a
 good opportunity to rename the word 'site' to something better.

 I propose we use the word 'Locus' instead of 'Site'. This word doesn't
 have a lot of connotations in the web programming world, and people  
 can
 guess by simply looking at the word it might have something to do with
 *local* components. It's also short. It's also a synonym of the word
 site. The dictionary says: a place, a locality and the scene of any
 event or action. I think that works quite well.

 Two possible options for moving forward with this:

 * create a zope.locus package that contains the core locus support. It
 only speaks in terms of locus and doesn't use the word site

 * zope.locuscontainer will have the container support surrounding  
 sites.

 * zope.site becomes a backwards compatible but deprecated package that
 does 'from .. import .. as' to keep 'getSite' and 'setSite' and such
 around. The package itself will be deprecated and people will be
 encouraged to depend on zope.locus (or zope.locuscontainer, but that
 will be rare).

 The other plan:

 * we fold the locus support into zope.component. This is assuming that
 the dependencies for Locus can be kept to a bare minimum (no ZODB
 dependencies either).

 * we add the LocusContainer support to zope.container directly;  
 since it
 already uses zope.component this isn't a problem

 * zope.site is still a backwards compatible package (that depends on
 zope.container and zope.component, which it already does).

 The second plan is my favorite if it is possible dependency-wise and
 zope.component doesn't take on new dependencies. I think support for
 local components could very well be part of zope.component  
 conceptually.
 It would allow us to eliminate one package (zope.site) without
 introducing any new packages (the other plan increases the amount of
 packages by one, trading zope.site for zope.locuscontainer).

 What do people think about:

 * the idea of renaming Site to Locus

 * the plan for refactoring?

 Regards,

 Martijn

 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

--
Jim Fulton
Zope Corporation


___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Martijn Faassen
Roger Ineichen wrote:
[snip]
 The site offers a SiteManagementFolder, SiteManagerContainer
 and a LocalSiteManager.
 
 The SiteManagementFolder by default installed as ['default']
 is absolutly useless and obsolate since the last refactoring.
 It's just a container, earlier it was a kind of namespace.

Yes, with Grok we've been installing directly in the 
SiteManagementContainer (which contains the folder, if I got my 
terminology right). We can't just get rid of this though, as it would 
break a lot of existing ZODBs.

[snip]
 Just refactoring zope.site and move the same packages arround 
 because of dependencies is in my point of view the wrong
 thing. We need to define wich package will offer which parts
 of the hole site concept. otherwise it could be useless
 if at the end all packages get used together in 99% of all
 Zope projects.

Of course if we make such a separation each end needs to be useful for 
something.

 What do you like to use independently from each other
 which is now assembled as a unit in zope.site?

One use case I have is that I want to be able to write tests that just 
deal with site management without pulling in a lot. I have done this 
with hacked up code now in both z3c.saconfig and hurry.custom.

The other use case I have is that I want to write packages that just 
need to be able to set the site or get the site and shouldn't need to 
care about, or depend on, zope.container at all.

Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Martijn Faassen
Fabio Tranchitella wrote:
 * 2009-05-28 13:09, Martijn Faassen wrote:
 What do people think about:
 * the idea of renaming Site to Locus
 
 What is the technical advantage of renaming Site to Locus? To me it looks
 just like a (not so necessary) cosmetic change.

Obviously there is no technical advantage to a renaming. But good naming 
is important.

I'm fine if people don't like Locus, but I do think Site has been 
misleading, so it'd be nice if we could come up with a better word. 
Alternatively I'll just stick with 'site' and shuffle the code around 
without renaming.

Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Roger Ineichen
Hi Jim
  
 Betreff: Re: [Zope-dev] RFC: Site - Locus
 
 A few high-level comments.
 
 1. I admire your desire to make this clearer. :)
 
 2. I think local configuration address use cases that most 
 people don't have but introduce complexity that I bet a lot 
 of developers trip over.
 
 3. I think the right word here is local registry.  I think 
 the whole concept should be labeled as advanced and we should 
 discourage people from even pondering it unless they have a 
 strong use case, like wanting to host multiple web sites with 
 different configs in the same application. :)
 
 4. I think we should step back (re)think how we handle the 
 goals that drive this.  If we do, we might  come up with 
 something so different that we'd make this discussion moot.

probably we can also find a simpler concept for make local
configuration available with global configration files
like we have done in z3c.baseregistry. This could have the
benefit of both local and global done with the same pattern
e.g. zope.configuration.

I think global and local ist not so confusing, but the need
to define global and local configuration in a totaly 
different way is complex to explain and understand.

Regards
Roger Ineichen

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Roger Ineichen
Hi Martjin

 Betreff: Re: [Zope-dev] RFC: Site - Locus
 
 Roger Ineichen wrote:
 [snip]
  The site offers a SiteManagementFolder, SiteManagerContainer and a 
  LocalSiteManager.
  
  The SiteManagementFolder by default installed as ['default'] is 
  absolutly useless and obsolate since the last refactoring.
  It's just a container, earlier it was a kind of namespace.
 
 Yes, with Grok we've been installing directly in the 
 SiteManagementContainer (which contains the folder, if I got 
 my terminology right). We can't just get rid of this though, 
 as it would break a lot of existing ZODBs.
 
 [snip]
  Just refactoring zope.site and move the same packages 
 arround because 
  of dependencies is in my point of view the wrong thing. We need to 
  define wich package will offer which parts of the hole site 
 concept. 
  otherwise it could be useless if at the end all packages get used 
  together in 99% of all Zope projects.
 
 Of course if we make such a separation each end needs to be 
 useful for something.
 
  What do you like to use independently from each other which is now 
  assembled as a unit in zope.site?
 
 One use case I have is that I want to be able to write tests 
 that just deal with site management without pulling in a lot. 
 I have done this with hacked up code now in both z3c.saconfig 
 and hurry.custom.

I don't know this packages, but I agree, simpler testing setup 
is a great use case

 The other use case I have is that I want to write packages 
 that just need to be able to set the site or get the site and 
 shouldn't need to care about, or depend on, zope.container at all.

Probably a rare use case or could become imporant if we use other
patterns then the container traversal pattern. Do you have some
ideas of using a contianer less traversal pattern?

Regards
Roger Ineichen

 Regards,
 
 Martijn
 
 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  ** (Related lists -  
 http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )
 

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] refactoring site functionality

2009-05-28 Thread Martijn Faassen
Hey,

Jim Fulton wrote:
 2. I think local configuration address use cases that most people  
 don't have but introduce complexity that I bet a lot of developers  
 trip over.

I think there are two cases where people typically deal with local 
configuration:

* setting up local utilities (for authentication, the catalog, 
application-specific configuration storage + UI)

* writing tests that involve local utilities. (a more advanced case, but 
still quite common)

 3. I think the right word here is local registry.  I think the whole  
 concept should be labeled as advanced and we should discourage people  
 from even pondering it unless they have a strong use case, like  
 wanting to host multiple web sites with different configs in the same  
 application. :)

I don't think hosting multiple web sites with different configs in the 
same application is the only use case.

* the catalog. This can be done using a global component that somehow 
stuffs information in the ZODB, but there are no common patterns for 
this that people can follow, so local utilities are currently easier to use.

* often it is nice to have application configuration to have a user 
interface, so that end users can configure aspects of the application. 
This may be filling in an email address or customizing a template or 
adding a user, etc. Local utilities are a nice solution for this, even 
if there is just a single application installed.

 4. I think we should step back (re)think how we handle the goals that  
 drive this.  If we do, we might  come up with something so different  
 that we'd make this discussion moot.

My goals are:

* I do care about local component configuration

* I'm a simple person and want to make my life easier

* I want to be able to write and test local utilities without having to 
depend on zope.site for my testing (right now I have a hacked up version 
  that I just copy and paste). An example of the hacked up version of 
site management is here:

http://svn.zope.org/hurry.custom/trunk/src/hurry/custom/testing.py?rev=99648view=auto

And I'd like to put that code somewhere proper.

* I'd like to change the dependency structure so that a minor dependency 
on site management doesn't require a package to pull in zope.container 
(which pulls in quite a bit itself)

Regards,

Martijn

P.S. As of this point I'm dropping my proposal to rename anything to 
anything. Let's indeed focus on the wider discussion (as indicated by 
Roger and Jim)

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Martijn Faassen
Hey,

Roger Ineichen wrote:
[snip]
 Probably a rare use case or could become imporant if we use other
 patterns then the container traversal pattern. Do you have some
 ideas of using a contianer less traversal pattern?

Take a look at this graph:

http://startifact.com/depgraphs/zope.app.publisher-after2.svg

zope.app.publisher is pointing at both zope.container and zope.site.

I believe it's possible to break the dependency on zope.container. But 
if we did so and still had a (small) dependency on zope.site, we won't 
gain anything. If we do manage to break both dependencies, we can lose 
zope.site, zope.container, zope.cachedescriptors, zope.dottedname, 
zope.broken and zope.filerepresentation and zope.lifecycleevent from its 
dependency graph, if I read it well. That's 7 packages. :)

Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] refactoring site functionality

2009-05-28 Thread Wichert Akkerman
Previously Martijn Faassen wrote:
 * often it is nice to have application configuration to have a user 
 interface, so that end users can configure aspects of the application. 
 This may be filling in an email address or customizing a template or 
 adding a user, etc. Local utilities are a nice solution for this, even 
 if there is just a single application installed.

That sounds like a complicated workaround for not having a mutable
global configuration.

Wichert.

-- 
Wichert Akkerman wich...@wiggy.netIt is simple to make things.
http://www.wiggy.net/   It is hard to make things simple.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] refactoring site functionality

2009-05-28 Thread Roger Ineichen
Hi Wichert

 -Ursprüngliche Nachricht-
 Von: zope-dev-bounces+dev=projekt01...@zope.org 
 [mailto:zope-dev-bounces+dev=projekt01...@zope.org] Im 
 Auftrag von Wichert Akkerman
 Gesendet: Donnerstag, 28. Mai 2009 17:21
 An: Martijn Faassen
 Cc: zope-dev@zope.org
 Betreff: Re: [Zope-dev] refactoring site functionality
 
 Previously Martijn Faassen wrote:
  * often it is nice to have application configuration to have a user 
  interface, so that end users can configure aspects of the 
 application.
  This may be filling in an email address or customizing a 
 template or 
  adding a user, etc. Local utilities are a nice solution for 
 this, even 
  if there is just a single application installed.
 
 That sounds like a complicated workaround for not having a 
 mutable global configuration.

Or the right concept if a Server restart is not an option ;-)

btw, you are pointing to a good direction. Didn't we talk 
about reload global configuration during runtime years ago?

Regards
Roger Ineichen

 Wichert.
 
 -- 
 Wichert Akkerman wich...@wiggy.netIt is simple to make things.
 http://www.wiggy.net/   It is hard to make 
 things simple.
 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  ** (Related lists -  
 http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )
 

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Stephan Richter
On Thursday 28 May 2009, Jim Fulton wrote:
 3. I think the right word here is local registry.  I think the whole  
 concept should be labeled as advanced and we should discourage people  
 from even pondering it unless they have a strong use case, like  
 wanting to host multiple web sites with different configs in the same  
 application. :)

Another important use case for local registrations are plugins. Using 
z3c.baseregistry, Roger and I have been building plugins using local 
registries created via ZCML. It works very well.

Regards,
Stephan
-- 
Entrepreneur and Software Geek
Google me. Zope Stephan Richter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] RFC: Site - Locus

2009-05-28 Thread Stephan Richter
On Thursday 28 May 2009, Martijn Faassen wrote:
 * the idea of renaming Site to Locus

-1.

I immediately had the same connotation as all the other German speakers. And I 
am studying genetics right now as well, so I knew about locus.

Furthermore, I really do not see an advantage of renaming stuff right now. It 
would only force me to remap my brain for no good reason.

 * the plan for refactoring?

+1 on the refactoring, so I do not have to have the weight of the site 
management container around anymore/

Regards,
Stephan
-- 
Entrepreneur and Software Geek
Google me. Zope Stephan Richter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] refactoring site functionality

2009-05-28 Thread Stephan Richter
On Thursday 28 May 2009, Roger Ineichen wrote:
 btw, you are pointing to a good direction. Didn't we talk
 about reload global configuration during runtime years ago?

BTW, plone.reload looks really promising.

Regards,
Stephan
-- 
Entrepreneur and Software Geek
Google me. Zope Stephan Richter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )