bug?

A Mennucc <[email protected]> Fri, 19 Apr 2013 12:51:12 +0200
Newsgroups gmane.comp.video.freevo.devel
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============8472267085374583598==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="----enig2IIXSSDAWKCSHBGVDVCFR"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
------enig2IIXSSDAWKCSHBGVDVCFR
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

hi,

I updated kaa and freevo to latest git; it would not start, traceback is

Traceback (most recent call last):
  File
"/home/freevo/.local/lib/python2.6/site-packages/freevo/helpers/recordser=
ver.py",
line 40, in <module>
    import config
  File
"/home/freevo/.local/lib/python2.6/site-packages/freevo/config.py", line
37, in <module>
    import plugin
  File
"/home/freevo/.local/lib/python2.6/site-packages/freevo/plugin.py", line
39, in <module>
    from event import Event
  File
"/home/freevo/.local/lib/python2.6/site-packages/freevo/event.py", line
102, in <module>
    MIXER_VOLUP            =3D Event('MIXER_VOLUP', arg=3D5)
  File
"/home/freevo/.local/lib/python2.6/site-packages/freevo/event.py", line
54, in __init__
    self.arg =3D arg
  File
"/home/freevo/.local/lib/python2.6/site-packages/kaa/base/event.py",
line 90, in arg
    elif len(arg) =3D=3D 1:
TypeError: object of type 'int' has no len()


I conjured this patch, even if I do not truly understand whats going on.


---
/home/freevo/.local/lib/python2.6/site-packages/kaa/base/event.py~  =20
2013-04-19 11:55:16.000000000 +0200
+++ /home/freevo/.local/lib/python2.6/site-packages/kaa/base/event.py  =20
2013-04-19 12:47:48.408344657 +0200
@@ -87,7 +87,7 @@
         """
         if not arg:
             self._arg =3D None
-        elif len(arg) =3D=3D 1:
+        elif type(arg) in (tuple,list) and len(arg) =3D=3D 1:
             self._arg =3D arg[0]
         else:
             self._arg =3D arg


a.




------enig2IIXSSDAWKCSHBGVDVCFR
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlFxIaIACgkQ9B/tjjP8QKSDswCfdiJkoxzRzm8fZ93M2ksJGetm
kVUAnRBcETRcmQz6kDyDpvFDJWUkYbdI
=NU/A
-----END PGP SIGNATURE-----

------enig2IIXSSDAWKCSHBGVDVCFR--


--===============8472267085374583598==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
--===============8472267085374583598==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

--===============8472267085374583598==--