On Mon, Feb 22, 2010 at 02:10:38PM +0100, Gianluca Montecchi wrote: > On Mon, Feb 22, 2010 at 06:47:54AM -0500, W. Trevor King wrote: > > On Mon, Feb 22, 2010 at 11:55:02AM +0100, Gianluca Montecchi wrote: > > > > On Fri, Feb 12, 2010 at 12:09:23AM +0100, Gianluca Montecchi wrote: > > > > > I pushed to my tree a solution to use shorter file name in the be > > > > > html command > > > > > output (bug-id bea/01e) > > > > > > > > > > It begin to try with a 3 chars file name, if this fail, it try up to > > > > > 8 chars, > > > > > if it is not possible to create a short file name up of 8 chars, the > > > > > full bug > > > > > uuid is used (like now). > > > > > > > > I've looked this over, and here are my thoughts: > > > > * If you want short bug names, won't you want short comment names too? > > > > > > In my opinion no. The idea is to have short http address, and with > > > be html you access the bug id not the comment. > > > > You do access comment IDs: > > html_export/bugs/01e#2f9 > > html_export/bugs/12c#469 > > For now you cannot.
Yes you can. In your tree:
class HTMLGen (object):
...
def _generate_bug_comment_entries(self, bug):
...
if depth == 0:
comment_entries.append('<div class="comment root">')
else:
comment_entries.append(
'<div class="comment" id="%s">' % comment.uuid)
...
I'd forgoten to fix this UUID reference in my take on your branch.
It's fixed now.
> > You wouldn't want to link someone to the top of a long thread.
>
> This can be a good idea if there are some comments that are mandatory to add
> (ie: when you close a bug), otherwise, how we can decide that a comment is
> worth of linking at the top of a long thread ?
I thought we were setting things up so a user can email a pretty,
little URL. We're not auto-generating a table of contents or
anything. Whoever wants to send the URL can figure out what comment
they want to link to (if any). My initial statement should have been,
"You might not want to...". Sorry ;).
--
This email may be signed or encrypted with GPG (http://www.gnupg.org).
The GPG signature (if present) will be attached as 'signature.asc'.
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
My public key is at http://www.physics.drexel.edu/~wking/pubkey.txt
pgpklVKD3GXom.pgp
Description: PGP signature
_______________________________________________ Be-devel mailing list [email protected] http://void.printf.net/cgi-bin/mailman/listinfo/be-devel
