[Calendarserver-maintainers] Bug#616592: store X-* properties using Pythonic names
martin f krafft
madduck at debian.org
Sat Mar 5 21:32:46 UTC 2011
Package: python-vobject
Version: 0.8.1c-3
Severity: wishlist
python-vobject makes vCard/iCalendar properties available as object
attributes. It knows that while e.g. X-SIP might hold a contact's
SIP address and X-SIP is valid IANA syntax, the Python attributes
must be named x_sip, because the dash is not a valid character for
a Python identifier. It does this by mapping '_' to '-' in
__getattr__/__setattr__, so the attribute name inside the instance
(__dict__) actually contains a '-'.
There are tools in the Python universe that (rightfully) access e.g.
__dict__ directly (e.g. ipython's tab completion, among others).
Those tools see the '-', which is not proper Python syntax.
I would think it were better if vobjects stored
properties/attributes using Pythonic names and converted them from
and to IANA rules on input and output respectively.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.37-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ipython depends on:
ii python 2.6.6-3+squeeze5 interactive high-level object-orie
ii python-pexpect 2.3-1 Python module for automating inter
ii python2.6 2.6.6-8+b1 An interactive high-level object-o
Versions of packages ipython recommends:
pn global <none> (no description available)
pn python-foolscap <none> (no description available)
pn python-openssl <none> (no description available)
pn python-twisted-core <none> (no description available)
ii python-wxgtk2.8 2.8.10.1-3+b1 wxWidgets Cross-platform C++ GUI t
pn python-zope.interface <none> (no description available)
Versions of packages ipython suggests:
ii libjs-jquery 1.5.1-1 JavaScript library for dynamic web
ii python-gobject 2.21.4+is.2.21.3-1 Python bindings for the GObject li
ii python-gtk2 2.17.0-4 Python bindings for the GTK+ widge
pn python-matplotlib <none> (no description available)
ii python-numpy 1:1.4.1-5 Numerical Python adds a fast array
pn python-profiler <none> (no description available)
pn python-qt3 | python-q <none> (no description available)
-- debconf-show failed
--
.''`. martin f. krafft <madduck at d.o> Related projects:
: :' : proud Debian developer http://debiansystem.info
`. `'` http://people.debian.org/~madduck http://vcs-pkg.org
`- Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 1124 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
URL: <http://lists.alioth.debian.org/pipermail/calendarserver-maintainers/attachments/20110305/7fb9d9d1/attachment.pgp>
More information about the Calendarserver-maintainers
mailing list