Re: [web2py] Re: Embed youtube videos

2012-06-07 Thread Kevin Miller
Yes thanks. I was thinking about that. Thank you very much for your responses. I recently started to use web2py and I think its a wonderful python framework. This is my first project with it. On Thu, Jun 7, 2012 at 2:15 AM, pbreit wrote: > You could write a little but of code to figure out if th

Re: [web2py] Re: Embed youtube videos

2012-06-07 Thread pbreit
You could write a little but of code to figure out if the user put in the whole URL or just the code and then just save the code. On Wednesday, June 6, 2012 10:46:55 PM UTC-7, dundee wrote: > > Ok thanks for answering. Thanks for the idea. I include the first part of > the url and replace the c

Re: [web2py] Re: Embed youtube videos

2012-06-06 Thread Kevin Miller
Ok thanks for answering. Thanks for the idea. I include the first part of the url and replace the code section with the argument passed to the view. When I used the entire URL it did not work. The only problem I don't like with this approach is that the user has to enter the code (which is sometime

[web2py] Re: Embed youtube videos

2012-06-06 Thread pbreit
Should be pretty easy. Once you capture the YouTube URL, just pass it to a view and then: === view.html === http://example.com"; frameborder="0"/> === controller.py === def play_video(): video = db.video(request.args(0)) return dict(video=video) video.url would need to be something li