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.
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
I want to use a function in index.html other than index(). Where I
should define ?
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
Can I define a table with a field of type 'timedelta' in database.
I have to do some calculations of time using timedelta.
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 '
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
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,
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
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
>>
>>
&
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
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
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
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
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
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
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
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
> >
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>
@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
'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
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
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.
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
24 matches
Mail list logo