[gpodder] Re: gPodder 3.1 development status update

  • From: Thomas Perl <m@xxxxxx>
  • To: gpodder@xxxxxxxxxxxxx
  • Date: Sat, 10 Mar 2012 09:31:31 +0100

Hi,

On Thu, Mar 08, 2012 at 09:17:02AM +0000, Tom Potts wrote:
> Hi, all.  I'm just piping up to say that I've been working on the sync as
> well.  I've been working on getting a framework in place for iPod sync, but
> I haven't been working on it long, so my code is far from complete.

Anything to share already? Have you uploaded the code somewhere?

> Thomas, you mention that it would probably be best to have sync
> functionality as an extension -- are there any docs around about writing
> extensions?  Or is it just best to look at the existing extensions?

Right now, we don't have any formal docs for writing extensions, but
basically it's the same as the old "hooks" mechanism, just with a
different name (which will make more sense to non-technical users) and
some advanced features (GUI configurability).

Also, the extensions mechanism (especially the configuration party)
isn't totally fleshed out yet - I still have to consult with Bernd on
some changes that I'd like to see in his ports of the old extensions.


Thanks,
Thomas

> On 5 March 2012 08:39, Joseph Wickremasinghe 
> <jnwickremasinghe@xxxxxxxxx>wrote:
> 
> > Hey Thomas,
> >
> > Thanks for your response! I haven't uploaded my code anywhere yet. I'll
> > make a patch on top of the 'master' branch and send it to you in the next
> > couple of days.
> >
> > Joseph
> >
> > --- On Mon, 3/5/12, Thomas Perl <m@xxxxxx> wrote:
> >
> > > From: Thomas Perl <m@xxxxxx>
> > > Subject: [gpodder] Re: gPodder 3.1 development status update
> > > To: gpodder@xxxxxxxxxxxxx
> > > Date: Monday, March 5, 2012, 1:28 AM
> > > Hi Joseph,
> > >
> > > On Fri, Mar 02, 2012 at 10:08:34AM -0800, Joseph
> > > Wickremasinghe wrote:
> > > > I've actually been working on device sync for gPodder,
> > > but I'm a only
> > > > a Python novice so it's been more of a learning project
> > > for me. I
> > > > actually started by copying the sync.py code from 2.20
> > > into the 3.01
> > > > codebase, and figuring out how to get it working, which
> > > involved
> > > > adding back in various settings, some object model
> > > tweaks, and making
> > > > a couple of changes to the SQLlite db.
> > >
> > > Which changes did you make exactly? Do you have a patch on
> > > top of our
> > > "master" branch that I could have a look at?
> > >
> > > > I've only been working on filesystem-based syncing,
> > > under GTK though,
> > > > but from what I can tell, my changes wouldn't break
> > > other UIs, these
> > > > other interfaces just wouldn't show any of the sync
> > > menus / commands
> > > > in the interface.
> > >
> > > That should be okay - ideally we would also have sync for
> > > the CLI
> > > (doesn't make so much sense for the QML UI while it's mainly
> > > targetted
> > > at the Nokia N9) but that can wait a bit more.
> > >
> > > > Anyway, I've got it 95% working at present. My last
> > > issue is trying to
> > > > get the episode published date to show up correctly in
> > > the custom sync
> > > > rename.
> > >
> > > Sounds promising. Have you uploaded your code somewhere?
> > >
> > > > But, I still have a number of questions The first of
> > > course is even
> > > > whether the approach to syncing used for 2.20 is even
> > > something you
> > > > wanted to carry over into 3.x. Additionally, would it
> > > be ok for me to
> > > > add in filesytem-based syncing into GTK only, since
> > > that's the
> > > > platform I'm using?
> > >
> > > > How do you handle changes to the SQLlite db structure
> > > (additional
> > > > columns to the tables)? Is that even something you'd
> > > want to do?
> > >
> > > That's taken care of by src/gpodder/schema.py - basically
> > > you would need
> > > to introduce a new version, update the initial schema SQL
> > > and then
> > > modify the "upgrade" function to upgrade the schema from the
> > > old version.
> > >
> > > But let's have a look at your code - maybe the database
> > > changes aren't
> > > needed at all? Also, in case we turn the sync into an
> > > extension (we
> > > should), it could store its own data in a separate
> > > file/database below
> > > $GPODDER_HOME (so it's even more flexible).
> > >
> > > > Let me know your thoughts. I'm happy to rework the sync
> > > using JSON if
> > > > that's your preferred approach - I imagine a lot of the
> > > settings & UI
> > > > updates that I've made will be unaffected anyway.
> > >
> > > I'd like to see the code and then we can start integrating
> > > from there :)
> > >
> > > Thanks,
> > > Thomas
> > >
> > >
> > >
> >
> >

Other related posts: