[geeklog-devel] draft vs. draft_flag
Ramnath R Iyer
casual.dodo at gmail.com
Sat Sep 22 13:39:39 EDT 2007
On Saturday 22 September 2007 09:15:24 Dirk Haun wrote:
> Okay, I'm confused now ...
>
> In stories, we have a draft_flag field in the DB and a draft_flag
> checkbox in the story editor. The story class does some conversion back
> and forth and seems to end up with both a _draft and a _draft_flag
> member variable.
I think 'draft' is what you need to map it to. No idea what
$story->_draft_flag is doing there.
> Do we really need both? And if so, which is supposed to hold which
> values ('on' as in a checkbox vs. 1 as for a flag)?
>
> I was trying to map the Atompub <app:draft> tag to the story draft flag
> (and back) but I'm a bit lost now as to which I should map it to ...
Are you sure you want to do that? Even if you set the <app:draft> tag while
publishing, I think it would have to come back as a draft_flag (as part of
the content) when it is retrieved.
--
Ramnath R Iyer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20070922/59bb497c/attachment.sig>
More information about the geeklog-devel
mailing list