[web2py] input time-interval in web2py

2010-12-20 Thread Sahil Arora
I want to take input time to complete a task in format no. of days,hours (time interval) in web2py. Is there any defined field,type for this in SQLField. time module in python allows only max 24 hours time.

Re: [web2py] Re: input time-interval in web2py

2010-12-20 Thread Sahil Arora
4) > > Field('timeinterval','integer',requires=TimeInterval()) > > It will take values like "5,6" for 5 days and 6 hours. > > On Dec 20, 7:14 pm, Sahil Arora wrote: > > I want to take input time to complete a task in format no. of > > days,ho

[web2py] another funtion in view

2010-12-21 Thread Sahil Arora
I want to use a function in index.html other than index(). Where I should define ?

Re: [web2py] another funtion in view

2010-12-21 Thread Sahil Arora
efault.py > > def another(): > response.view='default/index.html' > > 2010/12/21 Sahil Arora : >> I want to use a function in index.html other than index(). Where I >> should define ? > > > > -- > My blog: http://martin.tecnodoc.com.ar > My po

[web2py] use of 'timedelta' as a field

2010-12-21 Thread Sahil Arora
Can I define a table with a field of type 'timedelta' in database. I have to do some calculations of time using timedelta.

Re: [web2py] use of 'timedelta' as a field

2010-12-21 Thread Sahil Arora
like SQLField('actual_time','timedelta') which is certainly not correct as it is giving error. Is there any other alternative so that i can do addition with actual_time . On Wed, Dec 22, 2010 at 11:16 AM, Sahil Arora wrote: > Can I define a table with a field of type '

Re: [web2py] Re: use of 'timedelta' as a field

2010-12-22 Thread Sahil Arora
would be to > convert > > it to a float or double if you can accept rounding errors. > -- Sahil Arora B.Tech 2nd year Computer Science and Engineering IIT Delhi Contact No: +91 9871491046

Re: [web2py] customizing size of form fields created using field.custom.widget

2010-12-23 Thread Sahil Arora
but i want only a particular field size to be decreased not all. Is there any other alternative? On 12/23/10, rochacbruno wrote: > You need to edit /static/CSS/base.css > > The form and imputs width is defined there. > > Enviado via iPhone > > Em 23/12/2010, às 09:38,

Re: [web2py] customizing size of form fields created using field.custom.widget

2010-12-23 Thread Sahil Arora
Create a new task Type :CodingDesigningTesting Title : Description : Estimated Time :dayshours On 12/23/10, Martín Mulone wrote: > Can you show me the source html of this form generated? > > 2010/12/23 Sahil Arora : >> I used the following code to generate a form in

Re: [web2py] customizing size of form fields created using field.custom.widget

2010-12-23 Thread Sahil Arora
thanks...that worked On 12/23/10, Martín Mulone wrote: > Add to your css definition or in /static/CSS/base.css this rule and > tell if this is working: > > #task_estimated_time_unit {width: 80px;} > > 2010/12/23 Sahil Arora : >> Create a new task >> >> &

[web2py] please explain this

2010-12-24 Thread Sahil Arora
what do you mean by word 'escape' when we say escape = False or in {{=x}} Variables injected into the HTML in this way are escaped by default. The escaping is ignored if x is an XML object, even if escape is set to True. -- Sahil Arora B.Tech 2nd year Computer Science and Engineering

Re: [web2py] Re: please explain this

2010-12-24 Thread Sahil Arora
I am asking what does escape=true does On Sat, Dec 25, 2010 at 11:02 AM, mdipierro wrote: > {{=x}} > > is equivalent to > > {{response.write(x,escape=True)}} > > Did I answer the question? > > > On Dec 24, 10:04 pm, Sahil Arora wrote: > > what do you mean

Re: [web2py] Re: please explain this

2010-12-24 Thread Sahil Arora
t;/b> > > This protects your page from html injection hacks. If you need to display > html from a variable and you know absolutely sure that it is safe, use > > {{=XML(x)}} > > Which also provides some helper methods to allow you to select "safe" tags > without all

[web2py] jquey effect problem

2010-12-27 Thread Sahil Arora
I tried this code to see the jquery effect. Hello World but onclicking on Hello slide Toggles but nothing appears( 'world' doesn't appear).Just a blank line. -- Sahil Arora B.Tech 2nd year Computer Science and Engineering IIT Delhi Contact No: +91 9871491046 Homepage-www

Re: [web2py] Re: jquey effect problem

2010-12-27 Thread Sahil Arora
i am doing this in default/index.html page in a application which extends layout.html which i think includes web2py_ajax.html . So is there any need to include any thing else. On Mon, Dec 27, 2010 at 6:29 PM, Luther Goh Lu Feng wrote: > The syntax is correct. Is the jquery library included? > > Y

Re: [web2py] Re: jquey effect problem

2010-12-28 Thread Sahil Arora
ot; with "#b". > > 2010/12/27 Sahil Arora : > > > > I have attached the source html...i amgetting no idea > > On Mon, Dec 27, 2010 at 7:53 PM, Luther Goh Lu Feng > > wrote: > >> > >> I suggest inspecting the source to see the hhtml for the

[web2py] preview image from video file

2011-06-10 Thread Sahil Arora
I am making an application in which i want to show the preview image from an uploaded video and also stream that video. Can u please guide me how can I get a preview image from a video file. Also how to stream a video file

Re: [web2py] Re: preview image from video file

2011-06-10 Thread Sahil Arora
deo-using-ffmpeg > > On Jun 10, 2:00 pm, Sahil Arora wrote: > > I am making an application in which i want to show the preview image from > an > > uploaded video and also stream that video. Can u please guide me how can > I > > get a preview image from > >

Re: [web2py] Re: preview image from video file

2011-06-12 Thread Sahil Arora
uploaded the video, > web2py can automatic reproduce the image and store it in the database. is > there any way to do this? > thank you so much. > -- Sahil Arora B.Tech 2nd year Computer Science and Engineering IIT Delhi Contact No: +91 9871491046 www.cse.iitd.ac.in/~cs1090213 <http://www.cse.iitd.ac.in/%7Ecs1090213>

Re: [web2py] Re: preview image from video file

2011-06-12 Thread Sahil Arora
@massimo waiting for your reply On Sun, Jun 12, 2011 at 9:08 PM, Sahil Arora wrote: > Sorry for the late repply... > @massimo ...the videos are on my hard disk.I just add them to database by > upload option so these videos are saved in the 'uploads' folder. > @Stifan

Re: [web2py] Re: preview image from video file

2011-06-13 Thread Sahil Arora
'upload' fiels > and you download them via the provided 'download' action than you get > http streaming out of the box. download supports partial content/range > requests. > > All you need is to embed a flash video player and link the video. Look > into the mediapl

Re: [web2py] prettyPhoto with web2py

2011-06-15 Thread Sahil Arora
or if there are similar plugins in web2py, please do tell On Wed, Jun 15, 2011 at 5:04 PM, Sahil Arora wrote: > Has anyone tried using prettyPhoto ( > http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/) > with web2py. I was trying for single photo(as in d

[web2py] prettyPhoto with web2py

2011-06-15 Thread Sahil Arora
Has anyone tried using prettyPhoto (http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/) with web2py. I was trying for single photo(as in demo), but facing problems.

Re: [web2py] prettyPhoto with web2py

2011-06-15 Thread Sahil Arora
I got the problem solved but don't know why this happened. The images whose link i was giving were in uploads folder. when i changed their path to a new folder in static which has only root permissions, everything got worked On Wed, Jun 15, 2011 at 5:20 PM, Sahil Arora wrote: > or if t