Mailing List Archive

Parental Controls and MythVideo
I have a large family and am interested in squeezing a tad more
functionality out of my MythTV System...Here's my problem (and my proposed
solution):

I love that there are 4 levels of "Parental Control" for movies. It allows
me to set movies from L1 (anyone can watch) to L4 (only for my wife and I).
The problem comes in the PIN. With the current system, the PIN is for
"changing levels", which means that in order to truly limit L4 to my wife
and I, I'd have to keep the PIN to myself, and enter it for my older
children when they want to bump the level up to 2 or 3. What I'd rather do
is have multiple PIN's, one for L2, one for L3, and one for L4. That way,
my G only crowd could just use it without thinking (always a good thing), my
PG crowd could have the L2 PIN, my PG-13 crowd could have the L3 PIN, and
only my wife and I can have L4 (OK...that's a tad contrived, 'cuz no way do
my opinions on what my kids can watch match the ratings that nicely, but one
could dream...). My hope is to have the L4 PIN unlock any level from 4
down, L3 from 3 down, etc, so that any one person only has to remember 1
PIN.

This will keep me from having to run downstairs every time the middle tier
children want to change levels (no comments about needing to get away from
my computer and get some exercise, thanks)...

I've already started looking at the code, and doing a bit of coding, but was
wondering (before I get too far) a: if this was already available somehow,
and I was just being dense and missing it, and b: if I was the only one with
this particular itch (ie, would this be useful to submit, or should I just
slink off in a corner and keep it to myself ;-)

Assuming the answers are no, it's not available, and no I'm not alone, this
is what I believe would be necessary to do this patch right:

1: write a modified version of MythPasswordDialog that takes an array of
valid passwords, and returns true if -any- of them match.
2: modify the occurrences of checkParentPassword() to accept a "level" as
and argument and use the new Dialog from (1).
3: move the Parental Controls to their own configuration screen (another
screen under General? their own settings screen?), add the new fields,
complete with useful descriptions.
4: test, test, test.

With 8 children ranging from 18 to 2s, believe me, this will get -hammered-
on in my house ;-)

My worries:
i: The CodingStandards wiki page says to use Myth for gui tasks...I was
hoping to quickly and quietly copy 80% of MythPasswordDialog into
MythMultiPasswordDialog, and that's based on Qt. How big a problem is this
one?
ii: MythPasswordDialog is more of a general function, and probably belongs
inside the mythdialogs.h/cpp inside libmyth, but I was considering being
down and dirty and simply inserting it into the videodlg.h/cpp inside
mythvideo. Again, since nobody else is using it, how big a problem is this?

Thanks in advance!
--
Doug
Re: Parental Controls and MythVideo [ In reply to ]
On 09/07/2007 12:29 AM, Doug Young wrote:
> I've already started looking at the code, and doing a bit of coding,

Just how much coding are you willing to do? Any interest in looking
through the archives/repo at the multi-user SoC project stuff and
starting to tackle it "the right way"? (Not saying that a multi-PIN
approach wouldn't be accepted, just that there are /many/ more benefits
to a multi-user approach.)

> but was
> wondering (before I get too far) a: if this was already available somehow,
> and I was just being dense and missing it,

Don't know. I don't use any parental controls (my parents live
1000miles away, so it would take them a while to get here to change
things for me).

> and b: if I was the only one with
> this particular itch (ie, would this be useful to submit, or should I just
> slink off in a corner and keep it to myself ;-)

From posts I've seen on the lists, you're definitely not the only one
with the itch, and some are itching for more (like the multi-user thing).

Just a suggestion to consider.

Thanks,
Mike

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Parental Controls and MythVideo [ In reply to ]
On 9/6/07, Michael T. Dean <mtdean@thirdcontact.com> wrote:
>
> On 09/07/2007 12:29 AM, Doug Young wrote:
> > I've already started looking at the code, and doing a bit of coding,
>
> Just how much coding are you willing to do? Any interest in looking
> through the archives/repo at the multi-user SoC project stuff and
> starting to tackle it "the right way"? (Not saying that a multi-PIN
> approach wouldn't be accepted, just that there are /many/ more benefits
> to a multi-user approach.)
>
> > but was
> > wondering (before I get too far) a: if this was already available
> somehow,
> > and I was just being dense and missing it,
>
> Don't know. I don't use any parental controls (my parents live
> 1000miles away, so it would take them a while to get here to change
> things for me).
>
> > and b: if I was the only one with
> > this particular itch (ie, would this be useful to submit, or should I
> just
> > slink off in a corner and keep it to myself ;-)
>
> From posts I've seen on the lists, you're definitely not the only one
> with the itch, and some are itching for more (like the multi-user thing).
>
> Just a suggestion to consider.
>
> Thanks,
> Mike
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>

Multi-user would be -great-...and sounds like I'd have to wrap my brain
around a -much- larger part of the codebase to do it right. Eventually,
yes, I could easily see myself going that far, as donating code back to a
project I've used would be great. I'd like to start off a -tad- less
ambitious, as I've learned that biting off more than you can chew is a good
way to sour yourself on a project and then have a large amount of incomplete
code lying around that you never get back to.

However, I will take a look to see what's been asked about, proposed,
etc...see if I can make this something that might be compatible with a
possible, eventual larger implementation.
--
Doug
Re: Parental Controls and MythVideo [ In reply to ]
On 9/6/07, Doug Young <goofdad@gmail.com> wrote:
>
> On 9/6/07, Michael T. Dean <mtdean@thirdcontact.com> wrote:
> >
> > On 09/07/2007 12:29 AM, Doug Young wrote:
> > > I've already started looking at the code, and doing a bit of coding,
> >
> > Just how much coding are you willing to do? Any interest in looking
> > through the archives/repo at the multi-user SoC project stuff and
> > starting to tackle it "the right way"? (Not saying that a multi-PIN
> > approach wouldn't be accepted, just that there are /many/ more benefits
> > to a multi-user approach.)
> >
> > > but was
> > > wondering (before I get too far) a: if this was already available
> > somehow,
> > > and I was just being dense and missing it,
> >
> > Don't know. I don't use any parental controls (my parents live
> > 1000miles away, so it would take them a while to get here to change
> > things for me).
> >
> > > and b: if I was the only one with
> > > this particular itch (ie, would this be useful to submit, or should I
> > just
> > > slink off in a corner and keep it to myself ;-)
> >
> > From posts I've seen on the lists, you're definitely not the only one
> > with the itch, and some are itching for more (like the multi-user
> > thing).
> >
> > Just a suggestion to consider.
> >
> > Thanks,
> > Mike
> >
>
> Multi-user would be -great-...and sounds like I'd have to wrap my brain
> around a -much- larger part of the codebase to do it right. Eventually,
> yes, I could easily see myself going that far, as donating code back to a
> project I've used would be great. I'd like to start off a -tad- less
> ambitious, as I've learned that biting off more than you can chew is a good
> way to sour yourself on a project and then have a large amount of incomplete
> code lying around that you never get back to.
>
> However, I will take a look to see what's been asked about, proposed,
> etc...see if I can make this something that might be compatible with a
> possible, eventual larger implementation.
> --
> Doug
>


I found the following threads...are there more out there (I searched for
"multi user")?
Multi-user option:
http://www.gossamer-threads.com/lists/mythtv/dev/21747?search_string=multi%20user;#21747
multi-user subsystem:
http://www.gossamer-threads.com/lists/mythtv/dev/207245?search_string=multi%20user;#207245
Multi-User MythWeb:
http://www.gossamer-threads.com/lists/mythtv/dev/69237?search_string=multi%20user;#69237

Everyone seems to have a differing opinion as to what should be "secured"
how...and I'm not sure I disagree with Chris' comment on the last one about
the possibility of this being beyond the scope of a PVR type
appliance...hmm...gonna sleep on it ;-)
--
Doug
Re: Parental Controls and MythVideo [ In reply to ]
On 09/07/2007 01:21 AM, Doug Young wrote:
> On 9/6/07, Doug Young <goofdad@gmail.com> wrote:
>
>> Multi-user would be -great-...and sounds like I'd have to wrap my brain
>> around a -much- larger part of the codebase to do it right. Eventually,
>> yes, I could easily see myself going that far, as donating code back to a
>> project I've used would be great. I'd like to start off a -tad- less
>> ambitious, as I've learned that biting off more than you can chew is a good
>> way to sour yourself on a project and then have a large amount of incomplete
>> code lying around that you never get back to.
>>
>> However, I will take a look to see what's been asked about, proposed,
>> etc...see if I can make this something that might be compatible with a
>> possible, eventual larger implementation.
> I found the following threads...are there more out there (I searched for
> "multi user")?
> Multi-user option:
> http://www.gossamer-threads.com/lists/mythtv/dev/21747?search_string=multi%20user;#21747
> multi-user subsystem:
> http://www.gossamer-threads.com/lists/mythtv/dev/207245?search_string=multi%20user;#207245
>

That's the one from the SoC project.

There's a branch for the code (though I don't know what, if any, is
salvageable) at http://svn.mythtv.org/trac/browser/branches/multiuser .

The official/approved project write-up from SoC is at
http://www.mythtv.org/wiki/index.php/SoC2006#Make_Myth_Multi-user , and
Daniel K. is probably the best source of info on what already exists and
how much is left to do (though I would guess that the answer to the
second question is "most of it").

> Multi-User MythWeb:
> http://www.gossamer-threads.com/lists/mythtv/dev/69237?search_string=multi%20user;#69237
>
> Everyone seems to have a differing opinion as to what should be "secured"
> how...and I'm not sure I disagree with Chris' comment on the last one about
> the possibility of this being beyond the scope of a PVR type
> appliance...hmm...gonna sleep on it ;-)

I think getting the multi-user frontend in place would be a good start
(with as much multi-user support in the backend as required). From
there, it can be extended to provide more backend and MythWeb support.

Mike


_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Parental Controls and MythVideo [ In reply to ]
Parental Control Patch submitted: Ticket 3973.

Wow...my first ;-) You always remember your first . . . oh, wait . . .

Daniel...can you tell me what, if anything, got done for the SoC project
Mike mentioned. I'm considering tackling this mostly because I run a large,
diverse household (ie, one of the target audiences). My key usage points
are that it has to be -extremely- invisible day to day (I almost lost the
WAF battle when the tv started coming up in a menu instead of booting to
live...don't even want to think about having to make her log in!), but
powerful enough to be useful. Not sure how to approach that, so was looking
for some pointers.

Thanks!
--
Doug
Re: Parental Controls and MythVideo [ In reply to ]
On Sat, 2007-09-15 at 17:08 -0700, Doug Young wrote:

> Daniel...can you tell me what, if anything, got done for the SoC
> project Mike mentioned. I'm considering tackling this mostly because
> I run a large, diverse household (ie, one of the target audiences).
> My key usage points are that it has to be -extremely- invisible day to
> day (I almost lost the WAF battle when the tv started coming up in a
> menu instead of booting to live...don't even want to think about
> having to make her log in!), but powerful enough to be useful. Not
> sure how to approach that, so was looking for some pointers.

There is a list of TODO's in the last comment on the merge
ticket, #2532.

The branch also needs to be brought up to date with the current
trunk. In addition to the TODO's there are usability issues, but
the basic account handling is there except for the seven issues
mentioned in the TODO.

If you are really going to spend some time on this I'll get the
branch updated with the changes in trunk for you, so it will be
easier for you to work on this. Your household sounds like the
ideal testbed for improving usability.

-- Daniel

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Parental Controls and MythVideo [ In reply to ]
On 9/15/07, Daniel Kristjansson <danielk@cuymedia.net> wrote:
>
> On Sat, 2007-09-15 at 17:08 -0700, Doug Young wrote:
>
> > Daniel...can you tell me what, if anything, got done for the SoC
> > project Mike mentioned. I'm considering tackling this mostly because
> > I run a large, diverse household (ie, one of the target audiences).
> > My key usage points are that it has to be -extremely- invisible day to
> > day (I almost lost the WAF battle when the tv started coming up in a
> > menu instead of booting to live...don't even want to think about
> > having to make her log in!), but powerful enough to be useful. Not
> > sure how to approach that, so was looking for some pointers.
>
> There is a list of TODO's in the last comment on the merge
> ticket, #2532.
>
> The branch also needs to be brought up to date with the current
> trunk. In addition to the TODO's there are usability issues, but
> the basic account handling is there except for the seven issues
> mentioned in the TODO.
>
> If you are really going to spend some time on this I'll get the
> branch updated with the changes in trunk for you, so it will be
> easier for you to work on this. Your household sounds like the
> ideal testbed for improving usability.
>
> -- Daniel
>


OK...looked through 2532, and there's comments there about what remains to
be done, but not a whole lot on exactly what is currently been done.

I guess the best place to start would be to bring the branch up to the
trunk, then I can diff the codeline, see what's been done, look at the TODO
list at the end there, and go from there.

Hopefully I can get it stable and invisible enough to make mainline code.
Yes, I guess that means I'm tackling this. My household -is- the perfect
testbed, and since I have a significant background in multi-user
authentication and authorization systems I'm pretty sure I can handle
multi-user TV's.
--
Doug
Re: Parental Controls and MythVideo [ In reply to ]
On 09/15/2007 09:18 PM, Doug Young wrote:
> OK...looked through 2532, and there's comments there about what
> remains to be done, but not a whole lot on exactly what is currently
> been done.
>
> I guess the best place to start would be to bring the branch up to the
> trunk, then I can diff the codeline, see what's been done, look at the
> TODO list at the end there, and go from there.

You can see what's been done with the revision log for the branch:
http://svn.mythtv.org/trac/log/branches/multiuser?rev=11488 .

Most of the commits are merges (which you can skip over to get an idea
of what's been changed).

Mike
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Parental Controls and MythVideo [ In reply to ]
OK...I've been looking thru the history, and I'm not sure If it would be
wiser to continue on that path, or re-apply to main, making changes as I
go. Among the things I'm worried about is the lack of complexity in the
permissions system, simply because it will be hard to keep similar options
grouped together. Anyway, my mind has been churning ;-)

Also, Bump on the incident (3973) ... I didn't inclde [PATCH] in the name
(which I guess I should have) but it is definately a patch ;-P

--
Doug
Re: Parental Controls and MythVideo [ In reply to ]
On 09/22/2007 12:20 PM, Doug Young wrote:
> OK...I've been looking thru the history, and I'm not sure If it would be
> wiser to continue on that path, or re-apply to main, making changes as I
> go. Among the things I'm worried about is the lack of complexity in the
> permissions system, simply because it will be hard to keep similar options
> grouped together. Anyway, my mind has been churning ;-)
>

I'll leave that for Daniel to comment on.

> Also, Bump on the incident (3973) ... I didn't inclde [PATCH] in the name
> (which I guess I should have) but it is definately a patch ;-P

Enhancement is really the right type for that patch, so you did
everything right. And you don't need to say, "[patch]" in the ticket
description. If you look closely at Trac you'll notice that there are
unapplied patches going back to the triple-digit ticket numbers. The
devs just happen to have other things happening in their lives besides
just Myth. :)

On the bright side, if you're building your own, you can apply any
patches you like.

Mike
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Parental Controls and MythVideo [ In reply to ]
>
> > Also, Bump on the incident (3973) ... I didn't inclde [PATCH] in the
> name
> > (which I guess I should have) but it is definately a patch ;-P
>
> Enhancement is really the right type for that patch, so you did
> everything right. And you don't need to say, "[patch]" in the ticket
> description. If you look closely at Trac you'll notice that there are
> unapplied patches going back to the triple-digit ticket numbers. The
> devs just happen to have other things happening in their lives besides
> just Myth. :)
>
> On the bright side, if you're building your own, you can apply any
> patches you like.
>

I'm a professional Dev myself, so I know the feeling...I also know that a
squeaky wheel gets the grease, and a polite, semi-humble but squeaky wheel
is even better ;-)

--
Doug
Re: Parental Controls and MythVideo [ In reply to ]
> I'm a professional Dev myself, so I know the feeling...I also know that a
> squeaky wheel gets the grease, and a polite, semi-humble but squeaky wheel

> is even better ;-)

I looked it over when you first opened the ticket, I am going to make a few
tiny changes but will commit it mostly as-is.

Often when I make time promises, I end up being a liar. I will try to get it
in there soon, if you do not see it in there in the next week feel free to
prod again.

--
Anduin Withers

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Parental Controls and MythVideo [ In reply to ]
>
> I looked it over when you first opened the ticket, I am going to make a
> few
> tiny changes but will commit it mostly as-is.
>
> Often when I make time promises, I end up being a liar. I will try to get
> it
> in there soon, if you do not see it in there in the next week feel free to
> prod again.
>
> --
> Anduin Withers
>

Thanks!

I'll look it over when I see it committed to see the changes so future
changes will fit into the project better.

--
Doug
Re: Parental Controls and MythVideo [ In reply to ]
On 9/22/07, Anduin Withers <awithers@anduin.com> wrote:
> Often when I make time promises, I end up being a liar. I will try to get it
> in there soon, if you do not see it in there in the next week feel free to
> prod again.

OK...got busy and almost a month passed with no checkin, so I'm
carefully prodding :-)

--
Doug
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Re: Parental Controls and MythVideo [ In reply to ]
> OK...got busy and almost a month passed with no checkin, so I'm
> carefully prodding :-)

Yeah, I'm slow. I am working on getting it in though (this response is being
made during a break I've taken while making a few small modifications to
it).

--
Anduin Withers

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev