Re: track change

2012-05-28 Thread Carsten Jantzen
ne (using a getter/setter > pair) without breaking client code. What I had in ming was to turn > your "skill" fields into computed attributes (using either properties > or a custom descriptor) to track change. > > Now having looked at django-audit implementation (http://

Re: track change

2012-05-25 Thread bruno desthuilliers
property" type for the most common use cases[2]. This let you turn a plain attribute into a computed one (using a getter/setter pair) without breaking client code. What I had in ming was to turn your "skill" fields into computed attributes (using either properties or a custom descriptor

Re: track change

2012-05-24 Thread Carsten Jantzen
Hi Bruno It's only to overview the stats and be able to track it. I had started looking at binding the skill to the player og detecting in the skill if it's changed. If its change then create a new one. But I can see the point in putting it en a seperate class and make it a skill changed instead.

Re: track change

2012-05-24 Thread bruno desthuilliers
On May 23, 10:45 pm, Carsten Jantzen wrote: > When I load the player I would like to see his latest stats. > If I goto the players page I would like to be able to view when and > what skill changed. > > I am looking for a good way to implement it. > I was thinking to make the skill it's own objec

Re: track change

2012-05-24 Thread Carsten Jantzen
Thanks I have looked some into it, but will look some more. I was afraid that it gave to much information compare to what I wanted. On 24 Maj, 06:37, Andre Terra wrote: > Google for Django Audit Log and/or Audit Trail. While some of the packages > might not be under active development, they may

Re: track change

2012-05-23 Thread Andre Terra
Google for Django Audit Log and/or Audit Trail. While some of the packages might not be under active development, they may be able to point you in the right direction. Cheers, AT -- Sent from my phone, please excuse any typos. -- On May 23, 2012 5:45 PM, "Carsten Jantzen" wrote: > Hi > > I am l

track change

2012-05-23 Thread Carsten Jantzen
Hi I am looking for a way to track a skill change for a player in a online game. model: Player 1 skill_x=1 skill_y=1 During next update I get a change Player 1 skill_x=2 skill_y=1 When I load the player I would like to see his latest stats. If I goto the players page I would like to be able to