Updates! Refresh, BTreeFolder, and ZDebug products
Gang, BTreeFolder, now at version 0.2, has been updated for Zope 2.3.0, including the managment interface and the fix for a clipboard bug. Come'n get it! http://www.zope.org/Members/hathawsh/BTreeFolder If no one reports any problems, I think we can consider this version "stable" and re-label it version 1.0. ZDebug, now at version 0.2, has also been updated for Zope 2.3.0. It now displays the REQUEST when available. It includes a tweak for LoginManager. Please note that, for security reasons, you *must not* use older versions of ZDebug with Zope 2.3.0 and above. http://www.zope.org/Members/hathawsh/ZDebug But here's the biggest news: the Refresh product, which makes life just a little bit easier for filesystem product developers, now has an auto-refresh feature and the ability to set up dependent products. This means changes to your Python modules are instantly recognized by Zope and development is almost as nice as working with ZClasses. http://www.zope.org/Members/hathawsh/Refresh Note that all of these products now use a slightly different packaging convention. The paths do not include "lib/python/Products". This new convention fits the needs of INSTANCE_HOME users. (see http://www.zope.org/Members/4am/instancehome ) Shane
But here's the biggest news: the Refresh product, which makes life just a little bit easier for filesystem product developers, now has an auto-refresh feature and the ability to set up dependent products. This means changes to your Python modules are instantly recognized by Zope and development is almost as nice as working with ZClasses.
I am humbled to be on the same mail list. You rock. Thanks. -- Andy McKay.
[Shane Hathaway] | If no one reports any problems No problems so far :). Tried them with Zope 2.2.1. | But here's the biggest news: the Refresh product Excellent! When will this be included in standard Zope distributions?
On 13 Feb 2001, Erik Enge wrote:
[Shane Hathaway]
| If no one reports any problems
No problems so far :). Tried them with Zope 2.2.1.
Good to hear!
| But here's the biggest news: the Refresh product
Excellent! When will this be included in standard Zope distributions?
Probably Zope 2.4. Refresh was going to be in 2.3, but there were already so many new features that we didn't want to hold up Python Scripts, Cache Management, security assertions, etc, etc. Shane
Shane Hathaway wrote:
But here's the biggest news: the Refresh product, which makes life just a little bit easier for filesystem product developers, now has an auto-refresh feature and the ability to set up dependent products. This means changes to your Python modules are instantly recognized by Zope and development is almost as nice as working with ZClasses.
This is really cool :-) However, for some reason, I have to hit the Refresh button twice for any of my chanegs to take effect. Any idea why that is? cheers, Chris
Chris Withers wrote:
Shane Hathaway wrote:
But here's the biggest news: the Refresh product, which makes life just a little bit easier for filesystem product developers, now has an auto-refresh feature and the ability to set up dependent products. This means changes to your Python modules are instantly recognized by Zope and development is almost as nice as working with ZClasses.
This is really cool :-)
However, for some reason, I have to hit the Refresh button twice for any of my chanegs to take effect.
Any idea why that is?
What product are you refreshing? Maybe it's specific to the product. Shane
Shane Hathaway wrote:
Any idea why that is?
What product are you refreshing? Maybe it's specific to the product.
An NDA'd one ;-) Sorry, that's not a lot of help I know, but what sort of things should I be looking for that'd cause refresh to not work properly? cheers, Chris
Chris Withers wrote:
Shane Hathaway wrote:
Any idea why that is?
What product are you refreshing? Maybe it's specific to the product.
An NDA'd one ;-)
Sorry, that's not a lot of help I know, but what sort of things should I be looking for that'd cause refresh to not work properly?
I just got the same problem this past hour... actually, what happened is changes to one module took effect immediately, while changes to a different module of the same product required two refreshes. It's a dependency mapping problem I thought reload() took care of, but apparently not. However, I have an idea that might solve it. Thanks for the heads-up! Shane
Shane Hathaway wrote:
apparently not. However, I have an idea that might solve it. Thanks for the heads-up!
Pleasure :-) (as a workaround we've developed the 'Pound on the Refresh button like a monkey' technique *grinz*) cheers, Chris
Chris Withers wrote:
Shane Hathaway wrote:
apparently not. However, I have an idea that might solve it. Thanks for the heads-up!
Pleasure :-)
(as a workaround we've developed the 'Pound on the Refresh button like a monkey' technique *grinz*)
I've added logic to sort the modules by dependency before performing the refresh. It should solve the simian problem. Feedback encouraged! http://www.zope.org/Members/hathawsh/Refresh/ Shane
Shane Hathaway wrote:
I've added logic to sort the modules by dependency before performing the refresh. It should solve the simian problem. Feedback encouraged!
Perhaps a stupid question, but is the Refresh product Refreshable? ;-) *looks at Control Panel* *grinz* Of course it is :-) Thanks Shane... Chris
Shane Hathaway wrote:
http://www.zope.org/Members/hathawsh/ZDebug http://www.zope.org/Members/hathawsh/Refresh
Just noticed, since I installed these yesterday, the icon for the Python product I'm developing has changed to a ZCatalog icon. I'm using refresh on that product a lot adn ZDebug ocassionally. Given that the icons go back to how they should be when I restart the Zope server, it sounds like a Refresh issue. As to why it picks a ZCatalog icon, I can onyl guess 'cos the product in question subclasses ZCatalog. cheers, Chris
Chris Withers wrote:
Shane Hathaway wrote:
http://www.zope.org/Members/hathawsh/ZDebug http://www.zope.org/Members/hathawsh/Refresh
Just noticed, since I installed these yesterday, the icon for the Python product I'm developing has changed to a ZCatalog icon. I'm using refresh on that product a lot adn ZDebug ocassionally.
Given that the icons go back to how they should be when I restart the Zope server, it sounds like a Refresh issue. As to why it picks a ZCatalog icon, I can onyl guess 'cos the product in question subclasses ZCatalog.
I've improved the display of exceptions. But before packing up a 0.3.2 I wonder if we can get the icon problem solved. Theoretically, version 0.3.1 should solve the icon problem (which I've seen before) because of the module dependency resolution. Are you doing anything unusual to get the icon set up? Oh, here's a hypothesis... if, in __init__.py, you use "import" within the initialize() method rather than at module scope, Refresh can't detect the module dependency correctly. Shane
Shane Hathaway wrote:
Oh, here's a hypothesis... if, in __init__.py, you use "import" within the initialize() method rather than at module scope, Refresh can't detect the module dependency correctly.
We're not using import in this way but are still seeing icon wierdities. Also, if you use a methods={} in __init__.py of your product, those methods aren't refreshed. HTH, Chris
Just got this when I hit the refresh button: Exception type: SyntaxError Exception value: invalid syntax Traceback: File "E:\Zope\2.3.0\lib\python\Products\Refresh\RefreshPatch.py", line 253, in manage_performRefresh RefreshFuncs.performFullRefresh( File "E:\Zope\2.3.0\lib\python\Products\Refresh\RefreshFuncs.py", line 286, in performFullRefresh if performLoggedRefresh(jar, productid, raise_exc): File "E:\Zope\2.3.0\lib\python\Products\Refresh\RefreshFuncs.py", line 275, in performLoggedRefresh performRefresh(jar, productid) File "E:\Zope\2.3.0\lib\python\Products\Refresh\RefreshFuncs.py", line 265, in performRefresh reload(module) ...now I presume that's 'cos there's a syntax error in my module's code. Is there anyway I can get something like the tracebacks you get when you restart Zope and this kindof thing happens? cheers, Chris
Chris Withers wrote:
...now I presume that's 'cos there's a syntax error in my module's code. Is there anyway I can get something like the tracebacks you get when you restart Zope and this kindof thing happens?
Actually, the traceback I was looking for shows up in exactly the same palce as it did before: the console window... It'd be amazingly cool (if totally unnecessary) if it could be redirected into the Refresh Tab... cheers, Chris
participants (4)
-
Andy McKay -
Chris Withers -
Erik Enge -
Shane Hathaway