How to generate thumbnail for video files automatically?
On Wednesday, March 19, 2014 12:29:44 PM UTC+5:30, Ravi wrote:
>
>
> Hi ! I am new to web2py and python and trying to build a page to display
> video files list with thumbnail like youtube do. I am using Expose to
> di
i need to add to get my desired display.
this is my code..
from gluon.tools import Expose
def myfolder():
return dict(files=Expose('/home/ravi/Videos'))
help is appreciated. Thanx in advance.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://
import datetime
now=datetime.datetime.now()
dbu.define_table('files',
Field('title', "string", unique=False),
Field('file', 'upload', autodelete=True),
Field('datecreated','datetime',default=now,readable=False))
yes sir
i am using the command python2.5
On Jul 9, 7:14 pm, mdipierro wrote:
> Are you sure you are using python 2.5?
>
> On 9 Lug, 09:06, Ravi wrote:
>
> > ok
> > now its giving me this-
> > Traceback (most recent call last):
> > File "appcfg.py
ok
now its giving me this-
Traceback (most recent call last):
File "appcfg.py", line 68, in
run_file(__file__, globals())
File "appcfg.py", line 64, in run_file
execfile(script_path, globals_)
File "/home/ravi/Desktop/google_appengine/google/appengine/tools
no python 3.1
plz. help
On Jul 9, 2:28 am, mdipierro wrote:
> Strange appcfg.py is aGAEfile. Are you using python 2.5?
>
> On 8 Lug, 11:47, Ravi wrote:
>
> > on running appconfig.py it is showing this error-
>
> > Traceback (most recent call last):
> >
on running appconfig.py it is showing this error-
Traceback (most recent call last):
File "appcfg.py", line 68, in
run_file(__file__, globals())
File "appcfg.py", line 64, in run_file
execfile(script_path, globals_)
NameError: global name 'execfile' is not defined
what shud i do
7 matches
Mail list logo