[James Miller, 2012-01-20]
> Hi, I am developing some extensions for griffith and have checked out the
> code to work on. I wondered if I might be able to get some feedback and
> maybe join your group.
great to hear that :)
about on_toggle and _on_toggle in initialise.py (i.e. changes outside
extensions directory): I added new pref. type (bool) which should make
it easier to move on_toggle and _on_toggle to extension's file (imagine
what would happen with seen flag if some other extension would use type_
= bool)
> I am an experienced developer of sorts, I have no
> experience of working with other developers, having worked alone for the
> last ten years and being self taught.
svn (or even better: git - I will convert the repo from svn to git
right after moving some other Griffith stuff to a new host sponsored by
gplhost.com) or any other VCS is a must these days. Please learn these
tools and send patches against latest versions in the repo (one per
feature/bug fix) instead of complete files. Version control systems make
collaboration a lot easier, I use git even for projects that I work on
alone.
Please also try to follow PEP8¹. Yeah, I know a lot of our code is not
compatible with PEP8 (a lot of our code is crap actually²), but we want
to change that.
[¹] http://www.python.org/dev/peps/pep-0008/
[²] I even started writing Griffith 2.0 from scratch, didn't have much
time to continue, though (but it's still on my TODO :)
> The extensions adds a dialog that allows the user to choose a directory,
> this directory is then scanned for movie files which are then added to
> griffith one at a time with the information downloaded from the current
> plugin (I have only tested IMDB).
I don't feel comfortable with extension adding new tables in the
database, maybe creating a new (sqlite) database would be a better
idea?
few other comments:
* extension doesn't work for me - my libglade doesn't recognize
"swapped" attribute, please also try to avoid glade, it's deprecated,
use gtk.builder instead (yeah, we didn't convert our .glade files
yet)
* exit() outside main script is a bad idea
* why _filename and all these setters, getters and synonyms? Why not a
public "filename" column? (the same for other proxy setters/getters)
* `foo != ""` can be replaced with `not foo` in most cases
[...]
> I am wondering if all that string manipulation in
> the plugin wouldn't be better served by DOM traversal
we already added lxml to the dependencies and all movies plugins will
use it... but I have to design a new API fist (the old one is not that
nice)
--
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl www.griffith.cc www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645