Hi Eric:

On Aug 4, 1:11 am, Eric Shulman <elsdes...@gmail.com> wrote:
> > I am using the NewsFeed/RSS writing function of the SaveAs plugin 
> > fromhttp://www.tiddlytools.com/#SaveAsPluginversion2.5.2.
> > was expecting the rss feed to be sorted by last published date.
>
> I concur... RSS (xml) output is now sorted by modification date (most recent 
> first).
>
> > Also if it is easy to add to the code, an option to limit the number
> >    Total number of tiddlers to write
>
> That's easy to do... I've added support for an optional "limit:nnn"
> macro param that will truncate the resulting list of tiddlers before
> writing to the file.
> [...]
> Get the updates (v2.6.0) here:
>    http://www.TiddlyTools.com/#SaveAsPlugin
>    http://www.TiddlyTools.com/#SaveAsPluginInfo

I downlaoded it and I have a bug to report.
It appears the limit functionality always ends up with a value that
causes 0 tidders to be written.

I am invoking it as:

<<saveAs "label:save content" "filename:SEC_ps.html" "type:PureStore"
not nopublish and (content or structure)>>
<<saveAs "label:rss for content" "filename:SEC_tw.xml" "type:NewsFeed"
not nopublish and (content or structure)>>
<<saveAs "label:save studentbook" "filename:SEC_tw.html"
"type:TiddlyWiki" not ( content or structure or InstructorOnly or
Notes or Revisions or systemConfigDisable or temporary )>>

The inital popup from the browser in each case gives some non-zero
(e.g. 123) number of tiddlers to save, yet I get the yellow
status box at the end saying there are 0 tiddlers saved.

  0 tiddlers written to C:\Documents and Settings\rouilj\My Documents
\sec_class\SEC_tw.xml

If I comment out:

   if (limit) tids=tids.slice(0,limit);

then the proper number of tiddlers are written. I did start up firebug
and set it to break on errors, and it isn't showing
anything. However I suspect that limit is getting a value that
evaluates to true yet is not a suitable second arg for
slice resulting in a 0 length slice. (Which I claim should raise an
error, so I could be all wrong here.)

If I use:

<<saveAs "label:rss for content" "filename:SEC_tw.xml" "type:NewsFeed"
"limit:0" not nopublish and (content or structure)>>

I get as expected 0 output tiddlers. If I user limit:-1 it puts 1 less
then the number originally found (again as expected).

-- rouilj

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to