|
From: Mark D. D. <mad...@gm...> - 2011-08-28 16:48:57
|
Hi,
After re-reading the docs and the mailing list, it appears to me that
my understanding regarding future mtimes was wrong.
However, I do think it's a big convenience to write articles dated in
the future, so I looked into writing a callback for filtering mtime.
Is this an okay way to handle future mtimes?
<snip>
import datetime
from datetime import datetime
def cb_prepare(args):
request = args["request"]
data = request.get_data()
now = datetime.now().timetuple()
data["entry_list"] = filter(lambda e: not e['timetuple'] > now,
data["entry_list"])
</snip>
On Sun, Aug 28, 2011 at 11:15 PM, Mark David Dumlao <mad...@gm...> wrote:
> Hi!
> I'm new to pyblosxom and I would like some clarification as to how mtimes work.
>
> As best as I understand, entries with an mtime later than today should
> not be displayed, whereas mtimes older than today should be displayed
> by the blog in decreasing order of date.
>
> Is this a correct understanding? If not, how can I help to make this
> happen, and in the meantime, what is the best way for me to write
> entries well in advance of their publish date?
> --
> This email is: [x] actionable [ ] fyi [x] social
> Response needed: [x] yes [ ] up to you [ ] no
> Time-sensitive: [ ] immediate [x] soon [ ] none
>
--
This email is: [ ] actionable [ ] fyi [ ] social
Response needed: [ ] yes [ ] up to you [ ] no
Time-sensitive: [ ] immediate [ ] soon [ ] none
|