aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/html.py
Commit message (Collapse)AuthorAgeFilesLines
* command:html: Rework comment <div> closingW. Trevor King2013-03-121-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Comment nesting wasn't working properly before, where you could get things like: <div class="comment root" id="a"> </div> <!-- close a --> <div class="comment" id="a/b"> <div class="comment" id="a/b/c"> <div class="comment root" id="d"> </div> <!-- close d --> </div> <!-- close a/b/c --> </div> <!-- close a/b --> from a comment tree (using fake ids) of: . |-- a | `-- a/b | `-- a/b/c `-- d The new handling pushes the `div_close(depth)` call to the front of the comment block, because a comment's depth tells us how many of the already-rendered comments we need to close. Closing comments at the top of the block means that we'll always have at least one unclosed comment to close after the comment loop completes. With the new handling, we'll get a more appropriate: <div class="comment root" id="a"> <div class="comment" id="a/b"> <div class="comment" id="a/b/c"> </div> <!-- close a/b/c --> </div> <!-- close a/b --> </div> <!-- close a --> <div class="comment root" id="C29a03522-ed6e-4a9a-8823-23a1c513865f"> </div> <!-- close d --> Reported-by: Owen Jacobson <owen.jacobson@grimoire.ca>
* Use libbe.util.http.HTTP_USER_ERROR everywhere instead of hardcoding 418W. Trevor King2012-10-281-1/+0
|
* command:html: remove %default from option help stringsW. Trevor King2012-10-271-6/+5
|
* Ran update-copyright.py.W. Trevor King2012-10-161-2/+5
|
* command:html: convert -moz-border-radius to border-radius.W. Trevor King2012-09-171-9/+9
| | | | | | border-radius and friends are standard CSS3 [1]. [1]: http://www.w3.org/TR/css3-background/#the-border-radius
* command.html: display "Target:" detail for bugs with targets.W. Trevor King2012-09-171-0/+10
|
* command:html: fix two auto% -> auto typos in CSS.W. Trevor King2012-09-171-2/+2
| | | | | | | | | | | | | | | | | | These were introduced in commit d61d54ce33022f0613c5e19e2f52be4ab77c4664 Author: Gianluca Montecchi <gian@grys.it> Date: Mon Jan 24 22:47:32 2011 +0100 New html output for html command and propogated in commit 5b6be7a511670cdf1961d13040cddcb34e70b8a1 Author: W. Trevor King <wking@drexel.edu> Date: Sun Apr 17 02:41:07 2011 -0400 Rework `be html` to use Jinja2 templates.
* command:html: add --strip-email option.W. Trevor King2012-09-031-6/+21
|
* command:html: oops, use default arguments for 'notify' and 'auth'.W. Trevor King2012-09-031-2/+2
|
* command:html: fix super(HTML. self) -> super(HTML, self).W. Trevor King2012-09-031-1/+1
|
* command:html: rewrite as a libbe.util.wsgi.ServerCommand.W. Trevor King2012-09-031-291/+368
| | | | | | | | | Now `be html` defaults to serving the BE repo live. With the `--export-html` option, it reverts to the earlier static dump behaviour. This will make it easier for others to embed a read-only HTML server in their own app (e.g. as a gitorious issue tracker).
* Rewrite commands to use bugdirs instead of a single bugdir.W. Trevor King2012-08-291-36/+49
| | | | | | | The bulk of the work is in regard to XML, with new BugDir.xml and .from_xml methods to support the new <bugdir> entity. I also split the guts import_xml's ._run method into sub-methods to make the import logic more obvious.
* Ran update-copyright.py.W. Trevor King2012-02-161-10/+10
|
* Fix my busted 1512c0e2a64e patch to libbe/util/encoding.py.W. Trevor King2011-11-131-1/+1
| | | | | | | | | | | | | | Some temporary changes to encoding.py seem to have been added to commit 1512c0e2a64e19c8d4e5697257a4df5ddd8bc727 Author: W. Trevor King <wking@drexel.edu> Date: Tue Nov 8 07:14:43 2011 -0500 by accident. The initial change came from discussions with Niall Douglas, during which I realized that "filesystem encoding" ususally means the encoding for the *path*, not the *contents*. To avoid further confusion I'd renamed `get_filesystem_encoding` to the less ambiguous `get_text_file_encoding`. This commit should complete the transition.
* Run update_copyright.py.W. Trevor King2011-05-251-1/+2
|
* "X or ''|e" -> "(X or '')|e" for proper escaping.W. Trevor King2011-04-171-7/+7
|
* Correct <tdata> -> <tbody> typo in `be html` templates.W. Trevor King2011-04-171-2/+2
|
* Ensure comment div ids start with a letter (per validator.w3.org).W. Trevor King2011-04-171-2/+2
|
* Correct <tbody> -> </tbody> typo in `be html` templates.W. Trevor King2011-04-171-1/+1
|
* Rework `be html` to use Jinja2 templates.W. Trevor King2011-04-171-558/+530
|
* Remove commented code from html.pyChris Ball2011-02-221-3/+0
|
* Left aligned the table cellsGianluca Montecchi2011-01-251-4/+4
|
* New html output for html commandGianluca Montecchi2011-01-241-53/+209
|
* Bumped to version 1.0.01.0.0Chris Ball2011-01-081-1/+1
|
* Ran update_copyright.py.W. Trevor King2010-10-211-0/+1
|
* Avoid loading the whole bugdir when calling `be html -e`.W. Trevor King2010-07-141-3/+5
| | | | | This cleans up Mathieu Clabaut's fix to the html_gen definition problems in `be html -e`.
* Exception when doing 'be html -e'Mathieu Clabaut2010-07-121-4/+4
| | | | 'html_gen' was referenced before assignment.
* Ran update_copyright.pyW. Trevor King2010-06-221-11/+12
|
* Fix relative links from bug pages in `be html`.W. Trevor King2010-02-221-3/+3
| | | | | Introduced by bugs/XXX.html -> bugs/XXX/index.html in wking@drexel.edu-20100220181238-j5ecst02y0k9ioo9
* Use truncated_id in `be html` comment <div id="">W. Trevor King2010-02-221-4/+5
|
* Added `be html --min-id-length INT` optionW. Trevor King2010-02-201-2/+8
|
* Merged Gianluca's truncated-IDs in `be html` output patch.W. Trevor King2010-02-201-20/+46
|\ | | | | | | | | Or at least merged the general idea. Changes in the implementation listed in #bea/01e/2f9#.
| * Variable lenght of the file name in the be html command.Gianluca Montecchi2010-02-111-4/+34
|/
* Fixed a bug in the be html command.gian2010-02-101-1/+1
| | | | | | File "/usr/lib/python2.5/site-packages/libbe/command/html.py", line 371, in _escape return xml.sax.saxutils.escape(char) NameError: global name 'char' is not defined
* Merged Eric Kow's HTML escaping patchW. Trevor King2010-02-091-8/+1
|
* Sort comments in `be html`.W. Trevor King2010-02-021-0/+2
|
* libbe.command.html.HTMLGen._long_to_linked_user() handles failed conversion.W. Trevor King2010-01-301-2/+34
| | | | | | | Before, anything matching libbe.util.id.REGEXP was convert-or-die. Now it's convert-or-no-op. Much safer ;). The new _long_to_linked_user doctest would have failed with the old implementation.
* `be html` links (<a href="...) #-delimited references in text/* bodies.W. Trevor King2010-01-271-5/+34
|
* Added shortname (.id.user()) data to `be html`s comment dataW. Trevor King2010-01-191-2/+3
|
* Updated copyright informationW. Trevor King2010-01-011-2/+2
|
* Added UserInterface and other improved abstractions for command handlingW. Trevor King2009-12-311-5/+7
|
* Don't chdir() in libbe/command/html.py doctests.W. Trevor King2009-12-291-10/+7
|
* Remove libbe.ui.util.cmdutilW. Trevor King2009-12-291-11/+4
| | | | All of its functionality has moved off into more focused modules.
* Fixed libbe.command.diff + ugly BugDir.duplicate_bugdir implementationW. Trevor King2009-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | duplicate_bugdir() works, but for the vcs backends, it could require shelling out for _every_ file read. This could, and probably will, be horribly slow. Still it works ;). I'm not sure what a better implementation would be. The old implementation checked out the entire earlier state into a temporary directory pros: single shell out, simple upgrade implementation cons: wouldn't work well for HTTP backens I think a good solution would run along the lines of the currently commented out code in duplicate_bugdir(), where a VersionedStorage.changed_since(revision) call would give you a list of changed files. diff could work off of that directly, without the need to generate a whole duplicate bugdir. I'm stuck on how to handle upgrades though... Also removed trailing whitespace from all python files.
* Transitioned severity to Command-format, also added Command._get_*()W. Trevor King2009-12-141-3/+4
| | | | | | | | | | | | | | The old .requires_* thing was rediculous. The new ._get_*() callbacks allow the caller to provide a means for getting the expensive structures, which the command can use, or not, as required. This will also make it easier to implement the completion callbacks. The callbacks should probably have matching .set_*() methods, to avoid the current cache tweaking cmd._storage = ... etc. But that can wait for now...
* Transitioned new to Command-formatW. Trevor King2009-12-141-0/+1
|
* Transitioned html to Command-formatW. Trevor King2009-12-141-118/+146
|
* Transitioned comment to Command formatW. Trevor King2009-12-141-7/+5
|
* Initial directory restructuring to clarify dependenciesW. Trevor King2009-12-071-0/+609