Re: [Rhythmbox-devel] A new pythonic rhythmdb module

2010-07-11 Thread Sriram Ramkrishna
Neskie, This is good, and I will give a chance to try it out. As I understand it you created a new AP that doesn't match the rhythmdb C libraray right? Secondly, it might be better if you could create a bugzilla feature request and then attach your module there. That way the maintainer and othe

Re: [Rhythmbox-devel] A new pythonic rhythmdb module

2010-07-11 Thread Neskie Manuel
Here's the module. import os import re class Song(): """A representation of a song in rhythmbox database.""" def __init__(self, l=[]): self.fields = l def __getitem__(self, tag): for field in self.fields: if "<%s>" % tag in field: return fiel