[web2py] problem playing an uploaded audio file

2010-08-13 Thread tiffany
i have defined my table as: db.define_table('songs',Field('name','string'),Field('song_file','upload')) i need to play these song files using embed. what can i do? also how can I create and play playlists... songs of which r also uploaded in the uploads folder thanx in advance :)

[web2py] problem with represent

2010-08-14 Thread tiffany
i have declared my database as, db.define_table('song', SQLField('name','string',requires=IS_NOT_EMPTY(),label='Name of the Song'), SQLField('album_id',db.album,label='Album',requires=IS_IN_DB(db,'album.id','% (name)s')), SQLField('genre',db.Genre,label='Genre',requires=IS_IN_DB(db,'Genre.id

[web2py] problem in playing a playlist

2010-08-17 Thread tiffany
i am creating a playlist from the files stored in the uploads folder of the song during function call and storing it in the uploads folder only.I have wriiten only the relative paths of the songs (in this case the song file name itself' So when run direclty on the computer it works. but in the view