I have some trouble trying to extend hierarchical structure of my site. If I have "virtual" directory structure, need to call method resolving "Error 404". I've try it. But method "standard_error_message" render only, and no way to catch exception. I don't need to see Zope Error Screen. I want to give up this exception. What you recommend me? <!--#if "error_type=='NotFound'"--> <!--#var "RESPONSE.redirect('/')"--> <!--#/if-->
Dmitry, First I have something to ask you, please don't send html formatted mail to the list, some people use mailers that can't handle it. Thanks in advance. Now to your problem. You need to look at the <dtml-try> <dtml-except> </dtml-try> construct. If you need more info check the Zope docs. HTH Phil phil.harris@zope.co.uk ----- Original Message ----- From: Dmitry B. Khlonin To: zope-dev@zope.org Sent: 17 March 2000 23:34 Subject: [Zope-dev] Error 404: Not Found I have some trouble trying to extend hierarchical structure of my site. If I have "virtual" directory structure, need to call method resolving "Error 404". I've try it. But method "standard_error_message" render only, and no way to catch exception. I don't need to see Zope Error Screen. I want to give up this exception. What you recommend me? <!--#if "error_type=='NotFound'"--> <!--#var "RESPONSE.redirect('/')"--> <!--#/if-->
On Sat, Mar 18, 2000 at 02:34:54AM +0300, Dmitry B. Khlonin wrote:
I have some trouble trying to extend hierarchical structure of my site. If I have "virtual" directory structure, need to call method resolving "Error 404". I've try it. But method "standard_error_message" render only, and no way to catch exception. I don't need to see Zope Error Screen. I want to give up this exception. What you recommend me?
<!--#if "error_type=='NotFound'"--> <!--#var "RESPONSE.redirect('/')"--> <!--#/if-->
Have a look at how it is being handled at Zope.org: http://www.zope.org/standard_error_message/view_source -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server ---------------------------------------------
Im building an object heirarchy in which I want to define one-to-one 'has-a' relationships which allow for both properties AND objects. For example, a Story object 'has-a' heading, body and photo. In this case, the heading and body would be text based properties, but the photo is an object. I guess what I am trying to do is promote some kinds of objects to the level of properties in zClasses. I can modify the zClass to add sub-objects at instantiation time, but this doesnt provide guarantees that the added objects wont be renamed or deleted, and the modification of the zClass add_form needs to be done at the dtml level, rather than the property sheets forms based level I am looking for. Does anyone have any Ideas as to how to approach this?
participants (4)
-
Dmitry B. Khlonin -
Martijn Pieters -
morton@dennisinter.com -
Phil Harris