[Zope-dev] _setObject error - urgent!

Andy McKay andym@ActiveState.com
Fri, 1 Sep 2000 09:13:44 -0700


Sorry for the cross post and so on, panicked with a deadline approaching.
The error was caused my a cataloguing error after intialisation.

Thanks.

----- Original Message -----
From: "Andy McKay" <andym@ActiveState.com>
To: <zope-dev@zope.org>; <zope@zope.org>
Sent: Thursday, August 31, 2000 10:00 AM
Subject: [Zope-dev] _setObject error - urgent!


> Hi,
>
> I think I have traced my error with cut and paste, I am getting an error
on
> _setObject. If the object is not registered with Zope properly this will
be
> a problem. Basic synopsis:
>
> Im importing an object from a script so Im getting a handle to the folder
I
> would like the object to be in: this is obj.
>
> Then I call add and set object:
>
>     obj._setObject(id, globals()[doctype](id, m))
>
> This rather unusual syntax allows me to use a constructor for man
different
> objects. The type is specified in 'doctype', I then get this error:
>
>     2000-08-31T16:56:57 PROBLEM(100) ASPNDoc Error: [exceptions.NameError:
> cat]
>
> Any ideas?
>
> Thanks in advance
>
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>