Re: Making 'title' non-mandatory in new issues

"John P. Rouillard" <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
Hi Dan:

In message <[email protected]>,
Dan Tenenbaum writes:
>I want issue titles to be auto-generated from information inside
>files that are attached to issues. This will be done via a detector.
> [...]
>So... when creating an issue, I want to allow an empty title. Currently I'll get the error:
>
>Error: Required issue property title not supplied 
>
>...if I leave the title blank. This is coming from the roundup package (not from detectors). Looks like it's in cgi/form_parser.py. But it's difficult to figure out what exactly to change. I'd like it to be up to my detector whether or not a missing title is valid.
>

Look in your tracker directory under html/issue.item.html. You should
see something like:

   <input type="hidden" name="@required" value="title,priority">

If you remove 'title' from there, form_parser.py shouldn't report the
lack of a title. Search for @required in
http://www.roundup-tracker.org/docs/customizing.html for further
details.

>And also, for a new issue only, I don't even want to see the input
>box for Title, since whatever the user puts in there will be
>overwritten by my detector.

In tracker_dir/html/issue.item.html put something like:

 <tal:block tal:condition="python: context.id">
    <put existing html for the title block here>
 </tal:block>

This checks to see if the id of the context of the web request (see:
http://www.roundup-tracker.org/docs/customizing.html#determining-web-context
) is true. If the id is empty the user is creating/editing a new
issue. If the id is not null/empty an existing issue is being edited
and this will show the title.

See tracker_dir/html/issue.item.html and search for "New Issue" to see
an example of how the tal templating lanaguage is used.

--
				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.