Skip to content

Commit 07a0be0

Browse files
committed
While the other IPR search resuls have special text for the 'no search result' case, document_search doesn.
- Legacy-Id: 835
1 parent fd29caa commit 07a0be0

5 files changed

Lines changed: 14 additions & 19 deletions

File tree

ietf/idtracker/models.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -920,12 +920,3 @@ class DocumentWrapper(object):
920920
def __init__(self, document):
921921
self.document = document
922922

923-
class Test(TestCase):
924-
def testDoctest(self):
925-
# doctests in models.py will be automatically tested when running
926-
# django's 'test' command, but for other modules we need to make a
927-
# bit of extra effort to have doctests run.
928-
#import doctest
929-
#import templatetags.ietf_filters
930-
#doctest.testmod(templatetags.ietf_filters)
931-
pass

ietf/idtracker/tests.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import doctest
2+
import templatetags.ietf_filters
3+
4+
class IDTrackerTest(TestCase):
5+
def testDoctest(self):
6+
# doctests in models.py will be automatically tested when running
7+
# django's 'test' command, but for other modules we need to make a
8+
# bit of extra effort to have doctests run.
9+
10+
#doctest.testmod(templatetags.ietf_filters)
11+
pass

ietf/templates/ipr/search_doc_result.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
{% block search_result %}
55
<table cellpadding="1" cellspacing="0" border="0">
66

7-
{% if not iprs %}
8-
<tr>
9-
<td></td>
10-
<td colspan="2"><b>{% block search_failed %}No IPR disclosures were found related to <i>{{ doc }}</i>{% endblock %}</b></td>
11-
</tr>
12-
{% else %}
137
<tr><td colspan="3">Total number of IPR disclosures found: {{ iprs|length }} </td></tr>
148
{% for ipr in iprs|dictsort:"submitted_date" %}
159
<tr valign="top" bgcolor="#dadada">
@@ -44,7 +38,6 @@
4438
{% endif %}
4539
</tbody>
4640
{% endfor %}
47-
{% endif %}
4841

4942
</table>
5043
{% endblock %}

test/mkrelease

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ svn info $REPO/tags/$VER 2>&1 | grep -q "Not a valid URL" || die "The tag '$VER'
164164
note " Ok"
165165

166166
note "Verifying there's no uncommitted changes..."
167-
$do svn st | grep "^[AMCG] " && die "There seems to be uncommitted changes in this working copy"
167+
$do svn st | grep "^[AMGRD] " && die "There seems to be uncommitted changes in this working copy"
168168

169169
note "\nUpdating the version info in $VERFILE and making sure'\$Rev\$' is Ok"
170170
$do sed -i -r -e "/^__version__/s/\"[.0-9]+(-dev)?\"/\"$VER\"/" \

test/update-db

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ for dir in $DBLOCK /var/lock /var/state /var/run /var/tmp; do
2525
done
2626
[ "$lock" ] || die "Couldn't find a directory to keep lock in."
2727

28-
set -x
2928
[ "$DBDUMP" ] || DBDUMP="$1"
3029
[ "$DBDUMP" ] || DBDUMP=/www/tools.ietf.org/events/raw/sqldump/sqldump.raw
3130
[ "$DBFIX" ] || DBFIX=$build/test/sql_fixup.sql
3231
[ "$DBTIME" ] || DBTIME=$state/update-db.time
3332
[ "$DBDONE" ] || DBDONE=$state/update-db.done
3433
[ "$DBLOCK" ] || DBLOCK=$lock
35-
set +x
3634

3735
PIDFILE=$DBLOCK/pid
3836

@@ -45,6 +43,7 @@ while true; do
4543
#echo "Last update done $(date -r $DBDONE +'%Y-%m-%d %H:%M')."
4644
if [ $DBDUMP -nt $DBTIME ]; then
4745
echo "Updating database dated $(date -r $DBDONE +'%Y-%m-%d %H:%M') from dump with time $(date -r $DBDUMP +'%Y-%m-%d %H:%M')"
46+
echo -n "Updating database from dump with time $(date -r $DBDUMP +'%Y-%m-%d %H:%M')... " 1>&2
4847

4948
echo "$$" > $PIDFILE
5049
chmod a+rw $PIDFILE
@@ -58,6 +57,7 @@ while true; do
5857
touch -r $DBDUMP $DBTIME
5958
touch $DBDONE
6059
echo "Done."
60+
echo "Done." 1>&2
6161
else
6262
echo "Database is up-to-date (updated $(date -r $DBDONE +'%Y-%m-%d %H:%M') from dump with time $(date -r $DBDUMP +'%Y-%m-%d %H:%M'))"
6363
fi

0 commit comments

Comments
 (0)