[cvs-annodex] commit (/annodex): cmmlwiki/trunk/cmmlwiki/browse.py
conrad
nobody at lists.annodex.net
Tue Nov 29 14:16:48 EST 2005
Update of /annodex (new revision 1667)
Modified files:
cmmlwiki/trunk/cmmlwiki/browse.py
Log Message:
add a count of the CMML clips to the item overview
Modified: cmmlwiki/trunk/cmmlwiki/browse.py
===================================================================
--- cmmlwiki/trunk/cmmlwiki/browse.py 2005-11-29 03:09:08 UTC (rev 1666)
+++ cmmlwiki/trunk/cmmlwiki/browse.py 2005-11-29 03:16:48 UTC (rev 1667)
@@ -84,6 +84,18 @@
vals = {}
vals['ixi'] = ixi
+ sql = 'SELECT COUNT(ixc) FROM item_clips WHERE ixi="%(ixi)s"'
+ inspector.cur.execute (sql, vals)
+ try:
+ row = inspector.cur.fetchone()
+ clips = row[0]
+ except:
+ clips = 0
+
+ print "<b>CMML</b>: %d clips<br/>" % (clips)
+
+ vals = {}
+ vals['ixi'] = ixi
sql = 'SELECT ixh FROM item_heads WHERE ixi="%(ixi)s"'
inspector.cur.execute (sql, vals)
try:
--
conrad
More information about the cvs-annodex
mailing list