[Zope] Content Management

Don Brooksby DonB@clh.com
Wed, 12 Feb 2003 16:33:54 -0700


Thank you all for the help and info.

I now have the errors coming up properly, thanks Paul.  So now I can see =
what is going on.  I was able to trace the root of the problem and it =
came up to where I was referencing a value that was not passing right. =20

I have changed the reference and BAM! it works.

Dario, I am taking your suggestion on Python - I'm hitting the books and =
info available to trap errors etc through Python.

Much thanks, all mighty Zope Mentors.

--Don Brooksby

-----Original Message-----
From: Dario Lopez-K=E4sten

----- Original Message -----
From: "Paul Winkler"
> On Wed, Feb 12, 2003 at 01:14:53PM -0700, Don Brooksby wrote:
> > Because in my reading of other emails that are posting to Zope, as
> > much info as possible is what is requested, so here are 2 dtml
> > methods where I am seeing the failures - no error pages are
> > displayed, it just tells me it was not successful writing.
>
> That's because you caught the errors in
> <dtml-try>...<dtml-except>...</dtml-try>.
>
> Test it again with ONLY the <dtml-call> that
> actually updates the table; in particular get
> rid of the tags I mentioned.
>
> That way you'll get a traceback with more information.
> Come back and post the traceback and maybe somebody
> can help you.


Also, Don, you really don't want to use DTML for that kind of stuff. =
Better
to direct the posting of the form to a pythons script ("Script (Python)" =
as
they are called in the ZMI) and then generate error messages form there =
and
then either redirecting to or calling a DTML-method to report
errors/success.

Doing all that in DTML is way to hard to be worth the effort - been =
there,
done that - and you'll be able to write code that traps errors in a much
nicer way than you can do in DTML - and as a bonus you will find that =
yopur
code will easier to write and debug.

My 2 <insert lowly currency here> worth.

/dario
- --------------------------------------------------------------------
Dario Lopez-K=E4sten, IT Systems & Services Chalmers University of Tech.


_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -=20
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )