Re: [Tutor] Ressources for licensing

2010-12-12 Thread David Hutto
On Sun, Dec 12, 2010 at 2:32 PM, David Hutto  wrote:
> On Sun, Dec 12, 2010 at 2:27 PM, David Hutto  wrote:
>> You need a file that sets the initial time used for the app(the time
>> on the individuals computer), and a function that checks that initial
>> start up file for the current time and the original usage time of
>> first start up.
>>
>
> pseudocode:
>
> def initialfile():
>    f = open('/initialfile','w')
>    if f:
>        pass
>    if not f:
>        time = os/sys.time
>        f.write(time)
>
> def check original:
>    if f found:
>        check f.time
>        currenttime
  if f.time > setlimit of time:
sys.exit()
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Ressources for licensing

2010-12-12 Thread David Hutto
On Sun, Dec 12, 2010 at 2:27 PM, David Hutto  wrote:
> You need a file that sets the initial time used for the app(the time
> on the individuals computer), and a function that checks that initial
> start up file for the current time and the original usage time of
> first start up.
>

pseudocode:

def initialfile():
f = open('/initialfile','w')
if f:
pass
if not f:
time = os/sys.time
f.write(time)

def check original:
if f found:
check f.time
currenttime
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Ressources for licensing

2010-12-12 Thread David Hutto
You need a file that sets the initial time used for the app(the time
on the individuals computer), and a function that checks that initial
start up file for the current time and the original usage time of
first start up.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Ressources for licensing

2010-12-12 Thread Knacktus

Am 12.12.2010 03:42, schrieb David Hutto:

On Sat, Dec 11, 2010 at 9:52 AM, Knacktus  wrote:

Hi everyone,

can anybody recommend a lib or some other ressources about license
mechanisms of desktop applications written in python. I'm thinking of a
license-key that can be used to limit the time the application can be used.
I also need to exploit the usage of a license server.



You probably need:

def license_this(self):
 print "touch mine"

license_this(self)



I don't get it. Could you please explain a bit?





Cheers,

Jan
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor



___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Ressources for licensing

2010-12-11 Thread David Hutto
On Sat, Dec 11, 2010 at 9:52 AM, Knacktus  wrote:
> Hi everyone,
>
> can anybody recommend a lib or some other ressources about license
> mechanisms of desktop applications written in python. I'm thinking of a
> license-key that can be used to limit the time the application can be used.
> I also need to exploit the usage of a license server.


You probably need:

def license_this(self):
print "touch mine"

license_this(self)


>
> Cheers,
>
> Jan
> ___
> Tutor maillist  -  tu...@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor