> How do you add the data toggle, data target, etc. as well?
>
I had the same problem, Anthony helped me solve it:
See the end of this section in the book:
http://web2py.com/books/default/chapter/29/05#HTML-helpers
And specifically for "data-*" attributes, you can now do:
form.element('inp
i think it related with record representation
db.define_table('supplier',
Field('name', unique=True, requires=IS_NOT_EMPTY() ), format =
'%(name)s')
db.item.supplied_by.requires = IS_IN_DB(db, db.supplier.id, '%(name)s')
ref:
http://web2py.com/books/default/chapter/29/06/the-database-abstr
An Item has a supplier as shown in the schema below. I would like smartgrid
to diplay a supplier as 'Costco' rather than its id, which is 3. What's
wrong with this picture?
db_foo.py:
db=DAL('sqlite://storage.sqlite')
db.define_table('supplier',
Field('name', unique=True, requires=IS_NOT_EM
hello everybody,
i need help
I want to know how I can create a module to create, edit, update videos
thank you
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issu
Hi all,
I am using jquerymobile on a web2py test application and I realize that the
"response.flash" notifications can not be closed or dismissed. I checked
the layout.html in jquery_plugin and it does include web2py_ajax.html which
includes web2py.js, but the notifications don't work as desire
This is a bug. Please open a ticket.
English is not a special case, it simply is the default language. Which
means that it assumes it does not need to check translation files for
english.
On Tuesday, 25 February 2014 20:33:34 UTC-6, User wrote:
>
> One minor downside to T.force(T.http_accept_l
Hi Horst:
Sadly there have been a lot of changes in pg8000, so it is not backward
compatible with the current custom version in web2py.
First, you need to delete the pg8000 folder in contrib, and put the new
pg8000 folder (the one with __init__.py) directly in the web2py top level
folder (at the
One minor downside to T.force(T.http_accept_language) is that when using
the web2py shell with models it gives an error:
Traceback (most recent call last):
File "C:\www\web2py\gluon\restricted.py", line 217, in restricted
exec ccode in environment
File "applications\my_app\models\0.py", l
Thanks this does work. Most of my site visitors will be English language
speakers, is there any important performance hit I should be aware of? Why
is en-us a special case?
On Tuesday, February 25, 2014 12:46:41 AM UTC-5, Massimo Di Pierro wrote:
>
> For now do this:
>
> T.current_languages =
Can you show some code? Do you have the version of web2py.js associated
with the version of web2py you are using?
Anthony
On Tuesday, February 25, 2014 4:56:11 PM UTC-5, Davy Jacops wrote:
>
> Seems other users with Safari have a similar problem with my form, so
> possibly this is not browser r
Now I understand better. You cannot pass vars to linkto. That is by design
because in principle, the linkto function may need parameters specified by
the SQLFORM.
On Thursday, 20 February 2014 04:17:47 UTC-6, mcamel wrote:
>
> Hi,
>
> I've seen an unexpected 'SQLTABLE linkto' behaviour (both at
Seems other users with Safari have a similar problem with my form, so
possibly this is not browser related.
Maybe some cookie / authentication issue is in play here?
Op dinsdag 25 februari 2014 21:55:42 UTC+1 schreef Davy Jacops:
>
> My web2py app is ready, and I was about to deploy, but
> ju
try yourself. Take the welcome app from 2.8.2.
If /welcome/default/index takes more than 50ms to be served, then it's the
server/web2py config.
My laptop of 4 years ago with Ubuntu 12.10 loads the page in 22ms with the
rocket webserver.
First round of fetching static assets with an empty cache t
Hello all.
I've tried to update the ckeditor version of the plugin without success.
Someone knows the right way to do it ?
Thanks in advance.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/w
Anthony, I got this figured out. I had a syntax error on my side. Thanks
as always.
On Tuesday, February 25, 2014 4:25:14 AM UTC-8, Anthony wrote:
>
> Yes, but what code is running that produces the error? Can we see the
> relevant controller and/or view code? Also, did you edit the tracebac
...no I don't have response.toolbar() in my layout.html.
It's only in generic.html. I've cancel it, and it don't appear any more.
Il giorno martedì 25 febbraio 2014 21:50:39 UTC+1, Anthony ha scritto:
>
> The buttons to which you refer are not part of the grid at all. Rather,
> they are generated
My web2py app is ready, and I was about to deploy, but
just found out it doesn't work at al under Internet Explorer 11!
I developed everything using safari, chrome & also tested in firefox.
All working fine.
But I have a form (generated via SQLFORM.factory) with a submit button.
Using IE11:
The buttons to which you refer are not part of the grid at all. Rather,
they are generated by response.toolbar(), which perhaps you have in your
layout.html file. You can set it to display only when request.is_local is
True, so regular users won't see it.
Anthony
On Tuesday, February 25, 2014
I've tried the latest pg8000 as a drop-in replacement, but it seems web2py
can't import it:
Failure to connect, tried 5 times:
Traceback (most recent call last): File
"/Users/sfx/dev/mdb/web2py.app/Contents/Resources/gluon/dal.py", line 7766,
in __init__ File
"/Users/sfx/dev/mdb/web2py.app/C
Just to point to the same function in order to make an autocontained
example.
I don't use empty string in my application. Anyway i've tested your
suggestion and gives the same result.
El martes, 25 de febrero de 2014 18:26:49 UTC+1, Massimo Di Pierro escribió:
>
> Why are you passing an empty
Hello all.
With editable=True I don't want to let the possibility to the user to click
on buttons at the bottom of the grid:
Design Request Response Session DB Tables DB stats
I've tried with showbutton=False but it seems that it' don't exist in
sqlform.grid.
grid = SQLFORM.grid(query=query,
thecode can't be that bad. Can it?
On Tue, Feb 25, 2014 at 8:50 PM, Niphlod wrote:
> Every efficiency trick brings down considerably the response time, but
> usually you'd start from < 400 ms response times to go lower, maybe
> arriving at < 100 ms
>
> 2 full seconds is so much that it's not web
Every efficiency trick brings down considerably the response time, but
usually you'd start from < 400 ms response times to go lower, maybe
arriving at < 100 ms
2 full seconds is so much that it's not web2py the one you should look
at it's your app's code.
--
Resources:
- http://web2py.c
Please try with:
table#t1 input{width:auto;}
Il giorno martedì 25 febbraio 2014 18:45:31 UTC+1, Dominique ha scritto:
>
> Unfortunately, no ...
>
> Le mardi 25 février 2014 18:29:38 UTC+1, Massimo Di Pierro a écrit :
>>
>> I think the problem may be the size of the INPUT. Try add this in style
>
Unfortunately, no ...
Le mardi 25 février 2014 18:29:38 UTC+1, Massimo Di Pierro a écrit :
>
> I think the problem may be the size of the INPUT. Try add this in style
>
> input { width: 50px; }
>
>
>
> On Tuesday, 25 February 2014 10:49:07 UTC-6, Dominique wrote:
>>
>> Hello Massino,
>>
>> Than
I think the problem may be the size of the INPUT. Try add this in style
input { width: 50px; }
On Tuesday, 25 February 2014 10:49:07 UTC-6, Dominique wrote:
>
> Hello Massino,
>
> Thank you so much for spending some of your time for me. I appreciate.
>
> The following codes will show you my p
Why are you passing an empty string as action?
l = URL('', vars=dict(data='data in vars'))
Perhaps you want:
l = URL(args=request.args, vars=dict(data='data in vars'))
On Thursday, 20 February 2014 04:17:47 UTC-6, mcamel wrote:
>
> Hi,
>
> I've seen an unexpected 'SQLTABLE linkto' behaviour
Fixed in trunk: http://code.google.com/p/web2py/issues/detail?id=1871
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because yo
Ticket opened: http://code.google.com/p/web2py/issues/detail?id=1881
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you
perhaps you can follow the books advise too on :
http://web2py.com/books/default/chapter/29/13/deployment-recipes#Efficiency-tricks
and the groups advise too on :
https://groups.google.com/forum/#!msg/web2py/JgkMaQ_VlXs/m7R7L_ZYQk8J
best regards,
stifan
--
Resources:
- http://web2py.com
- http
Hi,
I'm using web2py with nginx and sqlite. And my response times are pretty
bad. last time I measured it I god results around 2000ms.
When I use google pagespeed it tells me three things I should improve: use
browser caching for images, put javascript and css below the fold and check
the conten
Hello Dominique,
sorry fo the lack of response. Would you be able more of your code? It is
not clear where the scrollbars come from so I would not know how to remove
them.
On Tuesday, 25 February 2014 09:23:53 UTC-6, Dominique wrote:
>
> Hello,
>
> Any idea to help me.
> I am not a professiona
Hello,
Any idea to help me.
I am not a professional, did you notice ? ;)
Thank you in advance
Dom
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You
Whoa! That works.
So the gluon.tools documentation was erroneous. Their prototype did not
include 'request', at least, not in the preamble at the top.
Thanks.
On Monday, 24 February 2014 23:14:32 UTC-5, Kiran Subbaraman wrote:
>
> Include request in the parameters, and see if that works.
> Re
What is "file"? It must not be the original request.vars.photo you were
dealing with, as that was a string object. In any case, looks like "file"
is what we need, so you should now be able to use it in your original code
and have web2py automatically rename and save the file via the built-in
up
Well, this isn't a question, but a bug report (I'm new to the list).
I was following online book, chapter 3, with a small difference. Instead of
using singular on tables names I use plural, so I give to the image table
the name 'images'. However I made a mistake when referencing images in
post
Let me know if you think we should upgrade.
On Monday, 24 February 2014 14:32:05 UTC-6, Mariano Reingart wrote:
>
> You could try to update pg8000 from the official:
>
> https://github.com/mfenniak/pg8000
>
> Let us know if that works, so we could update the one distributed with
> web2py
> The on
Eheh I agree, and since it's an open source project I added a pull request
which took quite a while due to my poor git skills and having to revert a
borked previous change in my fork.
https://github.com/web2py/web2py/pull/383
--
Resources:
- http://web2py.com
- http://web2py.com/book (Document
Hi, Leonel!
Thank you for your reply. The solution is identical to the one I already
found by myself in
https://groups.google.com/forum/#!topic/web2py/JOX2YIPE8D8
But since this posting dates 2011, I wonder, why that simple and effective
solution is not part of the current web2py release.
Gree
Yes, but what code is running that produces the error? Can we see the relevant
controlled and/or view code? Also, did you edit the traceback? I don't see any
of the calls shown in it.
Anthony
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/
I think this is actually a bug in web2py because the SMTP standard says the
day of the week, if included, should be one of the following:
day = "Mon" / "Tue" / "Wed" / "Thu"
/ "Fri" / "Sat" / "Sun"
And I don't see "Di" there.
This happens because class Mail
Solved with this workaround:
https://groups.google.com/forum/#!topic/web2py/JOX2YIPE8D8
But is there a better or cleaner way? And why is that workaround not part
of the current release of web2py?
Sincerely,
Jochen
Am Dienstag, 25. Februar 2014 09:16:58 UTC+1 schrieb Jochen Schoenfeld:
>
> Hi
Sorry...This should have read:
Line: 324 ~ tom
Line: 246 ~ dick
Line: 112 ~ harry
also, I am displaying this info in a SQLFORM.grid
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issue
Ok great this is smooth!!! thumbs up to python+web2py!!!
On Tue, Feb 25, 2014 at 8:00 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> $filename = $_FILES["file"]["name"];
> move_uploaded_file($_FILES["file"]["tmp_name"], "uploaded/".$filename);
>
> would be:
>
> import shutil, os
>
Hi!
I use mail.send() to notify users about events in a (german) web2py
application.
Unfortunately, the header of the e-mail contains
Date: Di, 25 Feb 2014 08:13:08 +
instead of
Date: Tue, 25 Feb 2014 08:13:08 +
and e-mail readers show January 1, 1970 as its date since they cannot inte
45 matches
Mail list logo