nugget bug

rand-kzPqTZqrtG+O+QkcXTtFxKWz8mPg4b/[email protected] Mon, 22 Mar 2004 16:04:14 -0700
Newsgroups gmane.comp.pythin.pyds.devel
Message-ID <[email protected]>
Hi,
I have just started adding some macros to my PyDS, and calling them from my templates and nuggets.

They are a great feature, and have enabled me to do some cool things re my blogroll and categories.

But, I've run into something with nuggets that seems like a bug.

I added a macro to a nugget (say, the firstBelowCalendar one), and set its Active flag to 'yes'.
Then publish a post, and see what I expected.
But, then I went back and modified the macro that the nugget calls, saved it, and published a new post - and did not see the changes.

Also, I can't recall for certain, but I think I also tried just changing nugget content directly (not the content of the called macro), and also got the same behavior - PyDS ignoring the new changes.

The only way that I could get any changes in nugget behavior to be reflected in my cloud was to first change the Active flag to 'no', save it, then turn it back to 'yes' and save again. Only these steps seem to regenerate the nugget .js file in the nuggets folder.

Not so bad as a workaround when I am making changes directly in the nugget, but when the changes are in a macro called by the nugget, it is less obvious remembering to do this for nuggets that use the changed macro.

I am running 0.7.1 on WinXP.

Rand