[[Zope] Job Board Howto]

Randall F. Kern randy@spoke.net
Mon, 21 May 2001 11:21:24 -0700


Look in lib/python/OFS/ObjectManager.py:

def manage_delObjects(self, ids=3D[], REQUEST=3DNone)

So...

context.events.manage_delObjects(id)

(You can pass a single string id, the function is smart enough to
convert it to a list)

-Randy

> -----Original Message-----
> From: Jason Joy [mailto:kyroraz@usa.net]
> Sent: Monday, May 21, 2001 11:10 AM
> To: zope@zope.org
> Subject: Re: [[Zope] Job Board Howto]
>=20
>=20
> This is something that I am looking into... If anyone knows=20
> how to delete
> objects with a call like this, please post it.  :)  It's been=20
> driving me a
> little crazy. :)
>=20
> Jason
>=20
> The Doctor What <docwhat@gerf.org> wrote:
> > Hi!
> >=20
> > I like your example of how to build a job board.  I'm using some of
> > the info from it to do a schedule system, but without ZClasses (I
> > use a DTML Document as the schedule item).
> >=20
> > I do have one thing that your example board doesn't have:  a delete
> > job.  This would, in a real system, require permissions around it,
> > but it would be educational.
> >=20
> > I have been trying things like this (in a python script=20
> here and dtml
> > methods (not shown)):
> > context.events.manage_delObject(id)
> >=20
> > but I just get an AttributeError.
> >=20
> > So, I thought this would be useful for your HOWTO (and for me to
> > know, eh?)
> >=20
> > :-)
> >=20
> > --=20
> > Thank goodness modern convenience is a thing of the remote future.
> > 	 -- Pogo, by Walt Kelly
> >=20
> > The Doctor What: Guru to the Gods               =20
> http://docwhat.gerf.org/
> > docwhat@gerf.org                                           =20
>        KF6VNC
> >=20
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -=20
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
>=20
>=20
> ____________________________________________________________________
> Get free email and a permanent address at=20
> http://www.netaddress.com/?N=3D1
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>=20