Commit 193778d2 authored by Andreas Jung's avatar Andreas Jung

showing number of indexed objects in the ZMI

parent bac64649
......@@ -2,7 +2,7 @@
<dtml-var manage_tabs>
<p class="form-help">
Nothing to manage at this time.
Objects indexed: <dtml-var numObjects>
</p>
......
......@@ -6,6 +6,10 @@ You can update this DateRangeIndex by editing the following field and clicking
<emUpdate</em>.
</p>
<p>
Objects indexed: <dtml-var numObjects>
</p>
<form action="&dtml-URL1;/manage_edit" method="POST">
<table cellpadding="2" cellspacing="0" border="0">
<tr>
......
......@@ -2,7 +2,7 @@
<dtml-var manage_tabs>
<p class="form-help">
Nothing to manage at this time.
Objects indexed: <dtml-var numObjects>
</p>
......
......@@ -2,7 +2,7 @@
<dtml-var manage_tabs>
<p class="form-help">
Nothing to manage at this time.
Objects indexed: <dtml-var numObjects>
</p>
......
......@@ -2,7 +2,7 @@
<dtml-var manage_tabs>
<p class="form-help">
Nothing to manage at this time.
Objects indexed: <dtml-var numObjects>
</p>
......
......@@ -206,6 +206,9 @@ class UnIndex(SimpleItem):
# First we need to see if there's anything interesting to look at
datum = self._get_object_datum(obj, attr)
# print self.getId(), obj.absolute_url(1), datum
# We don't want to do anything that we don't have to here, so we'll
# check to see if the new and existing information is the same.
oldDatum = self._unindex.get(documentId, _marker)
......@@ -241,8 +244,13 @@ class UnIndex(SimpleItem):
def numObjects(self):
""" return number of indexed objects """
return len(self)
print 'numobjects', self.getId(), len(self._unindex)
return len(self._unindex)
def indexSize(self):
""" return of distinct values indexed"""
print 'indexSize', self.getId(), len(self)
return len(self)
def unindex_object(self, documentId):
""" Unindex the object with integer id 'documentId' and don't
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment