Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

plone.reload was: Re: refactoring site functionality

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


hannosch at hannosch

Jun 1, 2009, 10:40 AM

Post #1 of 4 (416 views)
Permalink
plone.reload was: Re: refactoring site functionality

Stephan Richter wrote:
> 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.

For all I know plone.reload works and people use it during daily
development including myself. The code reloading part has some
limitations, like not dealing with properties / decorated methods, but
the ZCML part should just work (tm).

It's currently a bit Zope 2 specific, but the general pattern as seen in
http://dev.plone.org/plone/browser/plone.reload/trunk/plone/reload/zcml.py
should be easy to adopt to non-Zope 2. It makes some assumptions like
zope.testing.cleanup functions to be available for all secondary
registries populated by ZCML handlers.

Hanno

_______________________________________________
Zope-Dev maillist - Zope-Dev[at]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 )


m.van.rees at zestsoftware

Jun 2, 2009, 1:12 AM

Post #2 of 4 (374 views)
Permalink
Re: plone.reload was: Re: refactoring site functionality [In reply to]

Hanno Schlichting, on 2009-06-01:
> Stephan Richter wrote:
>> 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.
>
> For all I know plone.reload works and people use it during daily
> development including myself. The code reloading part has some
> limitations, like not dealing with properties / decorated methods, but
> the ZCML part should just work (tm).

Confirmed, I use it daily with great delight, so thanks for creating
it!

Some things indeed do not work, for example I usually get errors when
trying to reload code in plone portlets. When errors like that occur,
or I notice some other problem that might be cuased by bad reloading,
I do not even think about it but first restart Zope to see if the
error is still there.

For a small zope 3 or grok application the startup is already small
though, so it may not be useful there.

Cheers,

--
Maurits van Rees | http://maurits.vanrees.org/
Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]

_______________________________________________
Zope-Dev maillist - Zope-Dev[at]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 )


srichter at cosmos

Jun 2, 2009, 7:16 AM

Post #3 of 4 (373 views)
Permalink
Re: plone.reload was: Re: refactoring site functionality [In reply to]

On Tuesday 02 June 2009, Maurits van Rees wrote:
> For a small zope 3 or grok application the startup is already small
> though, so it may not be useful there.

Well, I would hook it up so that it reloads Python files at every request
automatically, if any changed and ZCML if a ZCML file changed. This way I can
avoid the roundtrip to the shell all the time.

Regards,
Stephan
--
Entrepreneur and Software Geek
Google me. "Zope Stephan Richter"
_______________________________________________
Zope-Dev maillist - Zope-Dev[at]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 )


chrism at plope

Jun 2, 2009, 9:41 AM

Post #4 of 4 (373 views)
Permalink
Re: plone.reload was: Re: refactoring site functionality [In reply to]

If you start up a WSGI app with "paster", this is what "paster serve --reload"
does, except it just restarts the process. In practice, when the application
starts fast enough, it's very useful.

- C


On 6/2/09 10:16 AM, Stephan Richter wrote:
> On Tuesday 02 June 2009, Maurits van Rees wrote:
>> For a small zope 3 or grok application the startup is already small
>> though, so it may not be useful there.
>
> Well, I would hook it up so that it reloads Python files at every request
> automatically, if any changed and ZCML if a ZCML file changed. This way I can
> avoid the roundtrip to the shell all the time.
>
> Regards,
> Stephan

_______________________________________________
Zope-Dev maillist - Zope-Dev[at]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 RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.