Python Product doesn't appear in Products list in Control Panel
I've just written a new on-disk Product, only it doesn't appear in the control panel products listing. I've got a ZEO server and client setup - I've tried having the product in both the client SOFTWARE_HOME lib dir and its own personal Products dir. The initialize() gets called in both cases, but the product doesn't appear in the products listing. There's no errors displayed on server or client startup. Anyone got a hint or clue to spare? Richard
if there are any errors that occur during the processing of your initialize method they might get swallowed up completely. put a try/except around the code inside your initialize method and put something like "import traceback; traceback.print_exc()" in the except. set the STUPID_LOG_FILE environment variable and watch the log output. jens On Tuesday, June 18, 2002, at 04:29 , Richard Jones wrote:
I've just written a new on-disk Product, only it doesn't appear in the control panel products listing. I've got a ZEO server and client setup - I've tried having the product in both the client SOFTWARE_HOME lib dir and its own personal Products dir. The initialize() gets called in both cases, but the product doesn't appear in the products listing.
There's no errors displayed on server or client startup.
Anyone got a hint or clue to spare?
Richard
On Tue, 18 Jun 2002 21:52, Jens Vagelpohl wrote:
if there are any errors that occur during the processing of your initialize method they might get swallowed up completely.
I thought of that too, and nope, no exceptions are being raised and swallowed. I also thought "hey, it's Zope, maybe it'll just magically get better overnight" but no go. It's still broken. My product refuses to appear in the products list. :( Richard
On Wed, 19 Jun 2002 09:44, Richard Jones wrote:
On Tue, 18 Jun 2002 21:52, Jens Vagelpohl wrote:
if there are any errors that occur during the processing of your initialize method they might get swallowed up completely.
I thought of that too, and nope, no exceptions are being raised and swallowed.
I also thought "hey, it's Zope, maybe it'll just magically get better overnight" but no go. It's still broken. My product refuses to appear in the products list. :(
Freaky - it's appearing in the Add menu now (wasn't yesterday). Some of the tweaking I did this morning must've paid off. Still doesn't appear in the Products listing, but at least I can actually use it. Richard
On Wed, 19 Jun 2002 10:00, Richard Jones wrote:
On Wed, 19 Jun 2002 09:44, Richard Jones wrote:
On Tue, 18 Jun 2002 21:52, Jens Vagelpohl wrote:
if there are any errors that occur during the processing of your initialize method they might get swallowed up completely.
I thought of that too, and nope, no exceptions are being raised and swallowed.
I also thought "hey, it's Zope, maybe it'll just magically get better overnight" but no go. It's still broken. My product refuses to appear in the products list. :(
Freaky - it's appearing in the Add menu now (wasn't yesterday). Some of the tweaking I did this morning must've paid off. Still doesn't appear in the Products listing, but at least I can actually use it.
Heh, but the add doesn't work: Error Type: AttributeError Error Value: AccountMunger Traceback (innermost last): File /export/01/zope/dev_csr_code/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /export/01/zope/dev_csr_code/lib/python/ZPublisher/Publish.py, line 187, in publish File /export/01/zope/dev_csr_code/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook File /export/01/zope/dev_csr_code/lib/python/ZPublisher/Publish.py, line 162, in publish File /export/01/zope/dev_csr_code/lib/python/ZPublisher/BaseRequest.py, line 340, in traverse File /export/01/zope/dev_csr_code/lib/python/App/FactoryDispatcher.py, line 102, in __bobo_traverse__ File /export/01/zope/dev_csr_code/lib/python/App/Product.py, line 137, in _product (Object: Products) AttributeError: (see above) Richard (sigh)
On Tue, 18 Jun 2002 18:29, Richard Jones wrote:
I've just written a new on-disk Product, only it doesn't appear in the control panel products listing. I've got a ZEO server and client setup - I've tried having the product in both the client SOFTWARE_HOME lib dir and its own personal Products dir. The initialize() gets called in both cases, but the product doesn't appear in the products listing.
There's no errors displayed on server or client startup.
Anyone got a hint or clue to spare?
Well, I finally caved in and read the source. Without the environment var FORCE_PRODUCT_LOAD, Zope only does a half-baked job of loading the Product in a ZEO client. And I've run into this before (about a year ago). *sigh* Richard
participants (2)
-
Jens Vagelpohl -
Richard Jones