[Zope-CMF] R: Portal type = None

Vladimir Iliev vlado@vintech.bg
25 Nov 2002 17:32:04 +0200


On Mon, 2002-11-25 at 17:17, trashMan wrote:
> Help, please!!
>=20
> I have the same problem!
> where  must i do "portal_type =3D meta_type =3D 'Type'" ??=20
>=20
> Max
>=20
> -----Messaggio originale-----
> Da: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org] Per conto
> di Chris McDonough
> Inviato: venerd=C3=AC 9 agosto 2002 22.06
> A: 220hex; zope-cmf@zope.org
> Oggetto: Re: [Zope-CMF] Portal type =3D None
>=20
>=20
> Evidently CMF 1.2 used to automatically set an object's portal_type to
> its meta_type if it didn't exist.  This no longer happens in 1.3. So you
> need to explicitly declare a portal_type on these objects. The simplest
> way to do this is "portal_type =3D meta_type =3D 'Type'"
>=20
> ----- Original Message -----
> From: "220hex" <gif@220hex.org>
> To: <zope-cmf@zope.org>
> Sent: Friday, August 09, 2002 3:12 PM
> Subject: [Zope-CMF] Portal type =3D None
>=20
>=20
> > For some strage reason during the upgrade from CMF 1.2 to 1.3,
> most of my
> > portal documents have lost their type definition. When I go to the
> workflow
> > tag for these documents it says:
> > ------
> > This object's portal type is: None.
> >
> > This object doesn't belong to any workflow.
> > ------
> > Even stranger is the fact that I run two different CMF instances,
> but only
> > the oldest one is affected.
> >
> > Is there any way I can programatically change the portal type on
> these
> > documents?
> > I hate the idea of having to manually recreate hundreds of docs :(
> >
> > .gif
>=20
>=20
>=20
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>=20
> See http://collector.zope.org/CMF for bug reports and feature requests

...

class blablabla(Document):

  meta_type =3D portal_type =3D 'blablabla'

...

--=20
Vladimir Iliev