On Tue, Sep 11, 2001 at 03:14:15PM +0200, Emiliano wrote:
> Martin Hierling wrote:
>
> > I get "Resource has dependants" while trying this:
> >
> > while ( $article->fetch() ) {
> > $timetolive = round ( ($expire -( time() -$article->created)) / (60*60*24),0 );
> > if ($timetolive <= 0 ) {
> > $article->delete();
> > echo mgd_errstr();
> > continue;
> > }
> > blah ...;
> > }
> >
> > So, the article definitively has no followups or replys, only some
> > Parameters. I'm authenticated and have permissions to that topic but i am
> > not the author.
>
> Parameters are dependants. They are not deleted automatically with the
> article object. I hadn't thought about this issue before.
This definitely should be addressed in Midgard 2. I'm thinking about some
kind of cross-referenced construction/destruction handler queues...
--
/ Alexander Bokovoy
$ cat /proc/identity >~/.signature
`Senior software developer and analyst for SaM-Solutions Ltd.`
---
How many priests are needed for a Boston Mass?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]