On Mon, 2011-07-18 at 09:59 +0200, Vincent wrote: > Le 17/07/2011 22:02, David García Granda a écrit : > > This sounds like a sensible change. I'm not sure that activity types > >>> should be editable though since it will mean data specific to activity > >>> types will be stored in a name/value pair table. A predetermined set > >>> of activity types would make for a better schema. > >>> > >> I agree. I had run into exactly the dilemma you mention - user created > >> activity types would pose the problem of associating appropriate labels > >> and DB fields. Whilst reviewing my code last night I realized that I had > >> abandoned the editable activity types at some point and opted for > >> hard-coded categories instead: Resistive, Cardio-Vascular & Weights. > >> > >> Regarding these new categories - for the sake of agreeing on a term - > >> shall we use 'categories' or 'activity types'? Also, the official > >> Pytrainer description refers to 'Resistive' sports. Do we want to keep > >> this as the activity type/category for cycling, running, etc, or would a > >> term such as 'geo-spacial', 'cross-country' or 'distance-based' be > >> preferred? Please comment. > >> > Hi, > I'm not sure but the "user created activity types" seems to be useful > according Pytrainer categories with CSV imports, GPX imports... > I remember I explored source code to do my own "GPX import" for > SportsTracker and the categorie seems to be selected from import files > if "forced_to" is unchecked. > Well, I've written the code, made an additional MySQL table and created the additional notebook tab in the 'Preferences' dialog. So the functionality exists for a user to specify custom categories. However, this will have to be adapted to the use-case you describe above. The 'Sports Categories' (activity types) being discussed in the top paragraph will have to be hard coded (and not user specified) so that the GUI can ask the user for sensible data for, say, Weight training and for sensible data when creating a new Cardio-Vascular activity record. I hope my explanation makes sense.
Please elaborate on the functionality you mention above. I do not ever use GPS, so I am not sure what you mean. regards, Werner ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Pytrainer-devel mailing list Pytrainer-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytrainer-devel