I'm starting to get bored of people complaining about Zope (was: Re: [Zope-dev] Re: I am starting to hate Zope/Plone development and its bl**dy lack of refresh.)

2006-09-05 Thread Sidnei da Silva
On Tue, Sep 05, 2006 at 03:39:14PM +0200, Max M wrote:
| So the problem only exists for me in Archetype based products. Anytime I 
| do a change in any AT content type I need to restart the site.
| 
| Can anybody confirm this behavior?

That's a known-(at least to me)-issue. 

   When you refresh an Archetypes-based product you need to refresh
   Archetypes as well. You can do this by marking the product as
   dependent on Archetypes and then refresh Archetypes (which will
   refresh it's dependencies, refreshing your product).

If you don't know what I'm talking about go research more about the
refresh functionality in Zope 2.

-- 
Sidnei da Silva
Enfold Systemshttp://enfoldsystems.com
Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
___
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] Re: I am starting to hate Zope/Plone development and its bl**dy lack of refresh.

2006-09-05 Thread Lennart Regebro

One problem with fixing the refresh is that the more you fix, the
longer the refresh will take. To fix Five to be stable in refresh, we
may very well have to kill all things registered by ZCML, and
re-register all of it. It's highly unlikely that we get a real stable
refresh by just refreshing one products ZCML. What happens if there
are overrides, and so on.

So, in the end, you end up with refreshing everything, which would
take just as long as stopping and starting the ZEO client.

We can probably make it possible to make the refresh somewhat more
stable and support a wider range of cases. But you still have to make
very careful configuration of the refresh in most of this cases, and
if you don't do it just right, it won't work.

So I'm not sure it's worth the effort.

Doing tests is a good idea especially if you take a bit of care. The
calendar products I'm working on have that care taken automatically,
as it's split into three products, one pure python, one Zope layer
with the persistance and UI and one CPS integration. Most tests are on
the python product, or the Zope product. The python tests take 0.8
seconds to run, the Zope tests 4 seconds.

With CPS it gets worse, because the tests need to create a CPS site.
It's the same with Plone. In those cases tests will not be faster than
refreshing. Running all of them takes a bit less than a minute I
think, and running just one isn't that much faster. But the amount of
tests needed there is very low, as most is done on the CalCore and
CalZope layer.

This way development is pretty fast, and doesn't need much refreshing.
Then comes a part where you need to get it to actually work, and not
just pass the tests. Here you need to refresh a bit. And then most of
the work is UI-fixing, which doesn't need refresh again, because it's
mostly HTML.

I find this mode of development faster than when I had working
refresh, beause the existance of the tests stop me from shooting my
foot. ;)
___
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: I'm starting to get bored of people complaining about Zope (was: Re: [Zope-dev] Re: I am starting to hate Zope/Plone development and its bl**dy lack of refresh.)

2006-09-05 Thread Dieter Maurer
Sidnei da Silva wrote at 2006-9-5 10:46 -0300:
 ...
That's a known-(at least to me)-issue. 

   When you refresh an Archetypes-based product you need to refresh
   Archetypes as well. You can do this by marking the product as
   dependent on Archetypes and then refresh Archetypes (which will
   refresh it's dependencies, refreshing your product).

If you don't know what I'm talking about go research more about the
refresh functionality in Zope 2.

We are refreshing AT contents types without a need to refresh AT
itself (in Zope 2.8.1, AT 1.3.x).



-- 
Dieter
___
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 )