Re: state of the templates?
anatoly techtonik <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <CAPkN8x+h9B7aKkz40vu5vgvjTk9M_KoyejKaRgJz34c2jej5ow@mail.gmail.com> |
On Thu, Oct 16, 2014 at 5:56 AM, Stuart McGraw <[email protected]> wrote: > On 10/09/2014 09:49 PM, Stuart McGraw wrote: >> I chose to use the "devel" templates distributed with Roundup >> as the basis of a tracker I am configuring. >>[...] >> So I wonder if the devel templates are in the same state they >> were in version 1.4.10 or earlier? >> >> My question is, have the "devel" templates not been kept up to >> date? (I've noted and fixed some other, what seemed to me to >> be obvious, problems with them, see for example >> http://issues.roundup-tracker.org/issue2550855) > > Nobody has a comment on this?? I have. =) The Mercurial history is invaluable to see what was made during certain time. For example: $ cd share/roundup/templates/devel $ hg log . I see that there are security fixes and more. > Surely I can't be the first person to choose to use the devel > templates and run into problems with them? Right. I run into problems with templates before and found out that keeping them all consistent with internal data models that Roundup has (and especially with changes in those models) is manual process. There are no selenium tests, e.g. no harness - well, there are some tests for templates, but I am not sure they cover the whole tracker thing, no versioning of templates and the aforementioned data model. > I went through all the Updating... docs and applied all that did > not seem to have been applied already (some but not many were already > in there) and mostly things seem to be working most ok but I keep > coming across new problems. It is a good way to start writing tests, actually. Something like http://twill.idyll.org/ or alternatives that can go through all essential demo pages and templates. > Tonight, I discovered that the url, http://localhost:8917/demo/file > which works fine with the classic templates results in a templating > error ('NoneType' object is not iterable) with the devel templates. > > I am worried that when real people, who are much better at breaking > things than I, start using the tracker, I am going to be deluged > with a bunch of problems. Would someone who has tried using the > devel templates relate their experience please? > > I'll submit a bug report for the Roundup documentation -- it really > should point out that only the classic templates are well maintained > (and maybe responsive? (I had to discover the hard way that the jinja > template are broken, they barf on east-asian characters)). Jinja2 is a very fresh and experimental stuff, so it is completely ok to get and fix it. I am all for making templating to model layer in Roundup more maintainable, but for now I try to implement Routing and pluggable static pages for Roundup. ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho