Workout With Friends
Stay fit with a little motivation
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes | List of all members
wowf.models.workout.SpeedWorkout Class Reference
Inheritance diagram for wowf.models.workout.SpeedWorkout:
Inheritance graph
Collaboration diagram for wowf.models.workout.SpeedWorkout:
Collaboration graph

Public Member Functions

def __init__
- Public Member Functions inherited from wowf.models.workout.DeviceWorkout
def create
- Public Member Functions inherited from wowf.models.workout._Workout
def id

Public Attributes

 user
 challenge
 points
 speed

Static Public Attributes

tuple speed = Column(Numeric(4, 2), nullable=False, doc='speed in meters per second')
- Static Public Attributes inherited from wowf.models.workout.Workout
tuple id = Column(Integer(unsigned=True), primary_key=True)
tuple user_id = Column(Integer(unsigned=True), ForeignKey('users.id'), nullable=False)
tuple challenge_id = Column(Integer(unsigned=True), ForeignKey('challenges.id'), nullable=False)
tuple challenge_type_id
tuple points = Column(SmallInteger(unsigned=True), nullable=False)
tuple created_at = Column(DateTime, nullable=False, default=current_timestamp)
tuple user
tuple challenge
- Static Public Attributes inherited from wowf.models.meta.Base
tuple query = DBSession.query_property()
- Static Public Attributes inherited from wowf.lib.fulltext.FulltextBase
list index_fields = []

Static Private Attributes

string __tablename__ = 'speed_workouts'
dictionary __mapper_args__ = {'polymorphic_identity': ChallengeType.lookup_data.index('speed') + 1}

Detailed Description

Definition at line 65 of file workout.py.

Constructor & Destructor Documentation

def wowf.models.workout.SpeedWorkout.__init__ (   self,
  user,
  challenge,
  samples 
)

Definition at line 71 of file workout.py.

Member Data Documentation

dictionary wowf.models.workout.SpeedWorkout.__mapper_args__ = {'polymorphic_identity': ChallengeType.lookup_data.index('speed') + 1}
staticprivate

Definition at line 68 of file workout.py.

string wowf.models.workout.SpeedWorkout.__tablename__ = 'speed_workouts'
staticprivate

Definition at line 67 of file workout.py.

wowf.models.workout.SpeedWorkout.challenge

Definition at line 73 of file workout.py.

wowf.models.workout.SpeedWorkout.points

Definition at line 77 of file workout.py.

tuple wowf.models.workout.SpeedWorkout.speed = Column(Numeric(4, 2), nullable=False, doc='speed in meters per second')
static

Definition at line 69 of file workout.py.

wowf.models.workout.SpeedWorkout.speed

Definition at line 77 of file workout.py.

wowf.models.workout.SpeedWorkout.user

Definition at line 72 of file workout.py.


The documentation for this class was generated from the following file: