This site is an archive; learn more about 8 years of OpenHatch.

[Devel] roundup milestones and patch for divide by zero issue

Jack Grigg me at jackgrigg.com
Wed Jan 5 22:37:36 UTC 2011


Yup, that's the right way to do it; the "python:" tag defines a TAL tempting expression that gives access to the full Python language, so as long as your Python is correct it should work! :) The supported templating expressions in Roundup are (from the docs):

Path Expressions - Reference TAL items eg. item/status/checklist
String Expressions - Generic string interpolation eg. string:hello ${user/name}
Python Expressions - eg. python: 1+1

Hope this helps, and thanks for the patch - didn't notice the problem as we already had items in the milestone ^_^

Cheers,
Jack

Sent from my iPod Touch

On 4/01/2011, at 2:56 PM, will kahn-greene <willg at bluesock.org> wrote:

> Hi!
> 
> I just set up Roundup for PyBlosxom, but needed milestones
> functionality.  Asheesh kindly shared the work that you folks had done
> with the OpenHatch Roundup instance with me.  That helped a TON!  Thank
> you OpenHatch Ninja Team so much for the work that you did.  Asheesh
> says Jack did most of the work--thank you Jack!
> 
> One thing I bumped into was that if a milestone has no bugs in it, then
> it kicks up a divide-by-zero error when going to issue.index.html for a
> given milestone.  I fixed that.  If there's a better way to fix it, I'm
> all ears...  This is my first foray into Zope TAL, so my ignorance as to
> what can/can't be done is pretty high.
> 
> Patch is attached.  I hope it helps!
> 
> /will
> <dbz_fix.patch>
> _______________________________________________
> Devel mailing list
> Devel at lists.openhatch.org
> http://lists.openhatch.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openhatch.org/pipermail/devel/attachments/20110105/56940d04/attachment-0001.html>


More information about the Devel mailing list