[Zope-dev] Re: I am starting to hate Zope/Plone development and its bl**dy lack of refresh.

2006-09-05 Thread Max M

Max M wrote:


I am not sure what is causing the problems. I am mostly a developer of
end user tools. Not a core Zope/Plone developer. And I am not really
interested in becoming one either. There must be a niche for developers 
like me that focus on end users.



Well ok. I have researched a bit more. All the speedup suggestions gave 
at maximum 5-10 seconds. Not nearly enough. (Didn't try to buy a new 
computer though. Will do that next week ;-)


I also tried to run Zope as a zeo client from a usb flash disk.

As expected the initial compilation to byte code was slw. I then 
expected it to run fast after that. It didn't!

*clever* configuration clearly wasn't clever enough for me.


So I made a site with a standard Zope tool:

class simple_tool(UniqueObject, PropertyManager,
   SimpleItem.SimpleItem, ActionProviderBase):


And I added a simple Plone skin.

Now refresh worked like a charm. Both when changing the code in the tool 
and the page templates in the skin.


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?


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

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


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 )


[Zope-dev] Re: I'm starting to get bored of people complaining about Zope

2006-09-05 Thread Max M

Sidnei da Silva wrote:

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).


I have tried that. It doesn't work.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

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


[Zope-dev] buildbot failure in Zope branches 2.10 2.4 Linux zc-buildbot

2006-09-05 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.10 2.4 Linux 
zc-buildbot.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 7427
Blamelist: ctheune,jim,jukart,shh

BUILD FAILED: failed svn

sincerely,
 -The Buildbot

___
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] buildbot failure in Zope branches 2.9 2.4 Linux zc-buildbot

2006-09-05 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.9 2.4 Linux 
zc-buildbot.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 7427
Blamelist: shh

BUILD FAILED: failed svn

sincerely,
 -The Buildbot

___
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] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2006-09-05 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 7428
Blamelist: andreasjung,ctheune,jim,jukart,shh

BUILD FAILED: failed svn

sincerely,
 -The Buildbot

___
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] buildbot failure in Zope trunk 2.4 Windows 2000 zc-bbwin6

2006-09-05 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Windows 2000 
zc-bbwin6.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 7428
Blamelist: andreasjung

BUILD FAILED: failed compile

sincerely,
 -The Buildbot

___
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] buildbot failure in Zope branches 2.9 2.4 Windows 2000 zc-bbwin2

2006-09-05 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.9 2.4 Windows 2000 
zc-bbwin2.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 7427
Blamelist: shh

BUILD FAILED: failed compile

sincerely,
 -The Buildbot

___
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] buildbot failure in Zope branches 2.10 2.4 Windows 2000 zc-bbwin2

2006-09-05 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.10 2.4 Windows 2000 
zc-bbwin2.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 7427
Blamelist: ctheune,jim,jukart,shh

BUILD FAILED: failed compile

sincerely,
 -The Buildbot

___
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'm starting to get bored of people complaining about Zope

2006-09-05 Thread Sidnei da Silva
On Tue, Sep 05, 2006 at 04:34:14PM +0200, Max M wrote:
| I have tried that. It doesn't work.

Maybe you didn't try hard enough. This has always worked for me.

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


[Zope-dev] buildbot failure in Zope branches 2.9 2.4 Linux zc-buildbot

2006-09-05 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.9 2.4 Linux 
zc-buildbot.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 7469
Blamelist: 
alga,andreasjung,flox,gintautasm,jukart,mgedmin,oestermeier,poster,shh,srichter,tseaver

BUILD FAILED: failed svn

sincerely,
 -The Buildbot

___
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] buildbot failure in Zope branches 2.9 2.4 Windows 2000 zc-bbwin2

2006-09-05 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.9 2.4 Windows 2000 
zc-bbwin2.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 7469
Blamelist: 
alga,andreasjung,flox,gintautasm,jukart,mgedmin,oestermeier,poster,shh,srichter,tseaver

BUILD FAILED: failed compile

sincerely,
 -The Buildbot

___
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] buildbot failure in Zope branches 2.10 2.4 Windows 2000 zc-bbwin2

2006-09-05 Thread buildbot
The Buildbot has detected a failed build of Zope branches 2.10 2.4 Windows 2000 
zc-bbwin2.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 7470
Blamelist: 
alga,andreasjung,flox,gintautasm,jukart,mgedmin,oestermeier,poster,shh,srichter,tseaver

BUILD FAILED: failed compile

sincerely,
 -The Buildbot

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


[Zope-dev] Documentation on get_transaction().commit(...)

2006-09-05 Thread zope-dev

Where would I find API documentation on get_transaction().commit(...)?

I am calling get_transaction().commit(1) at various points in my program
and it seems like it's not actually committing those transactions.

I'd be grateful on a quick explanation for how this works.

I'd like to commit sub-transactions as I go, but I don't want to stop
the execution of the script (without the 1, it seems to arrest
execution).  I do not care about the ability to roll back the
transaction.

Best,
Brian

Brian Rosenthal
General Partner, RoboCommerce, LLC
[EMAIL PROTECTED]
http://www.robocommerce.com
800-644-7626

___
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] get_transaction().commit() stops execution

2006-09-05 Thread zope-dev

In my custom Zope Product (in python), get_transaction().commit() halts
execution (without throwing an exception).

Is this the proper behavior?

If it is, then how do you commit what you've done so far without halting
execution?
And, if not, what would cause it to halt execution?

Thank you in advance,
Brian

Brian Rosenthal
General Partner, RoboCommerce, LLC
[EMAIL PROTECTED]
http://www.robocommerce.com
800-644-7626

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