I'd like to suggest a patch to SelectWidget's very cool automatic
handling of Durus objects as options:
--- /usr/local/lib/python2.5/site-packages/qp/fill/widget.qpy
2006-12-03 23:14:07.000000000 -0500
+++ widget.qpy 2006-11-21 08:06:19.000000000 -0500
@@ -331,7 +331,8 @@
oid = getattr(value, "_p_oid", None)
if oid is None:
break
- oid = value._p_format_oid()
+ hi, lo = struct.unpack(">LL", oid)
+ oid = "%x" % ((hi << 32) | lo)
keys.append(oid)
else:
# found OID for every non-None value
This makes it easier to generate a key elsewhere that is compatible
with what SelectWidget automatically generates.
Dave
------
David K. Hess
Verscend Technologies, Inc.
dhess@verscend.com
214-684-5448