Re: [Zope] Creating Factory Objects (Products)
Firestar writes: > Haha, thanks for the 'wisdom' cookies:) Here are the last two lines of the > traceback: > > File /usr/local/Zope-2.1.6/lib/python/OFS/Application.py, line 249, in > __bobo_traverse__ > (Object: ApplicationDefaultPermissions) > File /usr/local/Zope-2.1.6/lib/python/ZPublisher/HTTPResponse.py, line 511, > in notFoundError > NotFound: (see above) I have to admit that in this case the end of the traceback tells not much about the problem. I found in the sources (ZPublisher.HTTPResponse) that the resource not found is indicated as an HTML *comment* in the error page. I do not know, why the implementers hide this information. Anyway, the traceback seems to suggest that the problem is immediately at the top level of your URL. Is it possible that your "Data.fs" is empty or otherwise in a strange state? What happens, if you access your site with ":/manage"? Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Creating Factory Objects (Products)
Hi Dieter, Surprisingly, even though there's an error message, the product still manage to 'perform' its function, i.e. build a site from its template. :8080/manage still works ok; i guess Data.fs not corrupted. *scratch head* - does zope like to raise false alarms?? Anyway, thanks for your help. regards, firestar --Original Message-- From: Dieter Maurer <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] (Firestar) Sent: July 18, 2000 6:41:51 PM GMT Subject: Re: [Zope] Creating Factory Objects (Products) Firestar writes: > Haha, thanks for the 'wisdom' cookies:) Here are the last two lines of the > traceback: > > File /usr/local/Zope-2.1.6/lib/python/OFS/Application.py, line 249, in > __bobo_traverse__ > (Object: ApplicationDefaultPermissions) > File /usr/local/Zope-2.1.6/lib/python/ZPublisher/HTTPResponse.py, line 511, > in notFoundError > NotFound: (see above) I have to admit that in this case the end of the traceback tells not much about the problem. I found in the sources (ZPublisher.HTTPResponse) that the resource not found is indicated as an HTML *comment* in the error page. I do not know, why the implementers hide this information. Anyway, the traceback seems to suggest that the problem is immediately at the top level of your URL. Is it possible that your "Data.fs" is empty or otherwise in a strange state? What happens, if you access your site with ":/manage"? Dieter __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Creating Factory Objects (Products)
Hmm...Z Class was not mentioned in the guide that i'm reading now. Guess i have to check out on that later... thanks, firestar --Original Message-- From: Pierre Rougier <[EMAIL PROTECTED]> To: Firestar <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Sent: July 18, 2000 9:22:21 AM GMT Subject: Re: [Zope] Creating Factory Objects (Products) Hi Fire, This should work: -Create a new product (here InstantSiteProduct) (from here, your product can be accessed through the "Add" list) -In this product, add a Z Class (name it Instant Site) -In this ZClass, create your DTML methods (Designer and Builder) If u need to store properties in the Product, create a propertysheet in this Z Class. U will be able to access these properties from your product methods by using "" and, if u want to change the properties in your methods, use One more thing: all your changes on the product modify all the instances of your product... These things should work Hope this help Pierre :) > I'm following the tutorial in Zope Content Manager's Guide. I created an > 'InstantSite' product, with 2 DTML methods, Designer and Builder. I followed > most of the instructions, and managed to see the product in my 'Add List'. > But when i tried to add it into my other folders, the Builder page(which > would be called after Designer) could not be accessed. The error is: > > "Resource not found > > Sorry, the requested Zope resource does not exist. > Check the URL and try again." followed by the tracebacks... > > In fact, the tutorial doesn't seem comprehensive and contain errors(e.g. > screenshots different from description). Could anyone give this newbie some > pointers here? TIA. > > regards, > Firestar __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Creating Factory Objects (Products)
Hi Fire, This should work: -Create a new product (here InstantSiteProduct) (from here, your product can be accessed through the "Add" list) -In this product, add a Z Class (name it Instant Site) -In this ZClass, create your DTML methods (Designer and Builder) If u need to store properties in the Product, create a propertysheet in this Z Class. U will be able to access these properties from your product methods by using "" and, if u want to change the properties in your methods, use One more thing: all your changes on the product modify all the instances of your product... These things should work Hope this help Pierre :) > I'm following the tutorial in Zope Content Manager's Guide. I created an > 'InstantSite' product, with 2 DTML methods, Designer and Builder. I followed > most of the instructions, and managed to see the product in my 'Add List'. > But when i tried to add it into my other folders, the Builder page(which > would be called after Designer) could not be accessed. The error is: > > "Resource not found > > Sorry, the requested Zope resource does not exist. > Check the URL and try again." followed by the tracebacks... > > In fact, the tutorial doesn't seem comprehensive and contain errors(e.g. > screenshots different from description). Could anyone give this newbie some > pointers here? TIA. > > regards, > Firestar ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Creating Factory Objects (Products)
Haha, thanks for the 'wisdom' cookies:) Here are the last two lines of the traceback: File /usr/local/Zope-2.1.6/lib/python/OFS/Application.py, line 249, in __bobo_traverse__ (Object: ApplicationDefaultPermissions) File /usr/local/Zope-2.1.6/lib/python/ZPublisher/HTTPResponse.py, line 511, in notFoundError NotFound: (see above) Maybe because i'm a newbie, i tend to feel that Zope's error messages(or traceback) are not as clear as (for e.g.) PHP's error messages. Perhaps you can give me some pointers here? regards, firestar --Original Message-- From: Dieter Maurer <[EMAIL PROTECTED]> To: Firestar <[EMAIL PROTECTED]> Sent: July 17, 2000 11:23:04 PM GMT Subject: Re: [Zope] Creating Factory Objects (Products) Firestar writes: > "Resource not found > > Sorry, the requested Zope resource does not exist. > Check the URL and try again." followed by the tracebacks... You first need to determine what resource is not found. The tracebacks may help you with this. After you know the resource, you will ask, "why". If you are lucky, this becomes obvious, once you know "what". Dieter __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Creating Factory Objects (Products)
Hi, I'm following the tutorial in Zope Content Manager's Guide. I created an 'InstantSite' product, with 2 DTML methods, Designer and Builder. I followed most of the instructions, and managed to see the product in my 'Add List'. But when i tried to add it into my other folders, the Builder page(which would be called after Designer) could not be accessed. The error is: "Resource not found Sorry, the requested Zope resource does not exist. Check the URL and try again." followed by the tracebacks... In fact, the tutorial doesn't seem comprehensive and contain errors(e.g. screenshots different from description). Could anyone give this newbie some pointers here? TIA. regards, Firestar __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )