At Thursday 17/8/2006 11:41, Kirk Strauser wrote:

    stockexception = 'FileUnavailableError'

    # Does the file exist?
    if not filename in context.files.objectIds():
        raise stockexception

This is unrelated to your main question, but using string exceptions is discouraged...

Gabriel Genellina
Softlab SRL

Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!

Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to