I want to represent a field with a link to a function in an
SQLFORM.smartgrid with reference to the row:
db.place.mode.represent=lambda mode,row: A(mode,_href=URL(
'place_mode_change',args=[row.id],user_signature=True))
In the above expression the link A is constructed from the mode which is
Thank you very, very much. I've never thought that i can reroute an http
error. Again, Thank you!!
joi, 16 iulie 2015, 03:00:31 UTC+3, Massimo Di Pierro a scris:
Who says we do not have a clue? ;-)
There are multiple ways:
1) The easiest way is to create a model file in your app that does:
Thanks Massimo.
On Thursday, 16 July 2015 00:49:32 UTC+1, Massimo Di Pierro wrote:
This is not valid syntax:
/web2py.py --ip 10.2.1.15:8000 #WRONG
supposed to be
/web2py.py --ip 10.2.1.15 --port 8000 http://10.2.1.15:8000/
On Wednesday, 15 July 2015 18:36:58 UTC-5, Gary Cowell
I have two tables:
db.define_table('room',
Field('name'),
Field('status', 'reference room_status'))
db.define_table('room_status')
Field('status_name'))
The room_status table contians 2 records (keep it simple): Busy, Empty
I can show the 'busy' and empty in a listbox or as radio
Posting the error information would probably help. Leaving the type blank
sets 'string' as default. According to the documentation there is only a
type 'double' but no type 'float'. What's the data type of your column in
the db?
Alex
--
Resources:
- http://web2py.com
- http://web2py.com/book
Hello
I need to generate a grid like
https://lh3.googleusercontent.com/-Y_uOwCxGkY0/Vaguw-0K1DI/AJM/4dkpl2IQORc/s1600/Captura.PNG
table definition is:
db.define_table ('produccion',
Field ('proyecto', 'reference proyectos'),
Field ('month', 'date'),
Here. Just post a link to this thread.
https://github.com/web2py/web2py/issues/new
On Wednesday, 15 July 2015 18:51:37 UTC-5, Samuel Sowah wrote:
On Wednesday, July 15, 2015 at 11:46:38 PM UTC, Massimo Di Pierro wrote:
you may be right. Will check asap. Please open a ticket.
I've never
Hello Thomas,
It seems that the css for label anyhow uses a strong font so
strong/strong would not have any visible effect. This is just to
illustrate how you can pass html in a form element:
label=XML('I consent for to provide my contact information to ___.
II confirm that my house
On Thursday, 16 July 2015 02:37:46 UTC-5, Esteban Bulutsuzku wrote:
El miércoles, 15 de julio de 2015, 6:09:26 (UTC-3), Massimo Di Pierro
escribió:
web2py include pydal and pydal is an API for accessing RDBMs and some
NoSQL engines. This is not your use case.
web2py does not include
Hi Anthony,
Thanks for your reply. Setting _disabled = True on the widget solves the
issue.
Kind regards,
Annet
--
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
Added my 2¢ .
I have many mission critical, emedded or huge projects on web2py, they make
real work for real people.
2015-07-16 4:37 GMT+02:00 Alex mrauc...@gmail.com:
I never understood why ORM should be better than the DAL. Actually I think
it's the other way around. I worked with ORM for
https://www.youtube.com/watch?v=Itlc9NUOx_Y
On Thursday, July 16, 2015 at 7:41:00 AM UTC, Massimo Di Pierro wrote:
Perhaps they no longer support oembed? Can you provide an example of a URL?
On Wednesday, 15 July 2015 23:35:45 UTC-5, Samuel Sowah wrote:
currently, when I use autolinks'
1.
*action :*
after clean app, login, check the response.toolbar()
*result *:
no session value, no post_vars and no vars request
2.
*action *:
fill in the SQLFORM.factory, submit the button, check the response.toolbar()
*result *:
the checkout in second load component is not filled (no session
Perhaps they no longer support oembed? Can you provide an example of a URL?
On Wednesday, 15 July 2015 23:35:45 UTC-5, Samuel Sowah wrote:
currently, when I use autolinks' expand_one, I don't get youtube videos
rendering anymore, or anything for that matter, not even files. it just
turns
El miércoles, 15 de julio de 2015, 6:09:26 (UTC-3), Massimo Di Pierro
escribió:
web2py include pydal and pydal is an API for accessing RDBMs and some
NoSQL engines. This is not your use case.
web2py does not include a OODBM but nothing prevent you from accessing one
and take advantage
Can some one look into this! I get this error after installing a new app from
an existing w2p file.
Traceback (most recent call last):
File /home/www-data/web2py/gluon/main.py, line 436, in wsgibase
session.connect(request, response)
File /home/www-data/web2py/gluon/globals.py, line
Are you sure your code has not changed? We have not changed the logic there
in a year or more.
On Thursday, 16 July 2015 04:44:34 UTC-5, Samuel Sowah wrote:
https://www.youtube.com/watch?v=Itlc9NUOx_Y
http://www.sec.gov/news/speech/2012/spch020912co.pdf
home.html
{{from gluon.contrib.autolinks import expand_one}}
{{def find_url(text):}}
{{s = text.find(http)}}
{{e = text.find( , s)}}
{{if s is not -1:}}
{{if e!=-1:}}
{{url = text[s:e+1]}}
{{else:}}
{{url = text[s:]}}
{{return url}}
Found the problem after reading this https://noembed.com/
Chrome now blocks insecure scripts from loading on secure sites
http://code.google.com/p/chromium/issues/detail?id=81637.
I had https in the link, took that out to just http and it's working now,
my bad.
On Thursday, July 16,
I don't think they are not interested in fixing it... I really think they
would like to fix it, but they may have limited resources to do it and many
issues to solve... Mean that, they have to prioritise and of course if you
have only few users affected by an issue make it easy to postponed this
web2py does not include a OODBM but nothing prevent you from accessing one
and take advantage of all the other features. You simply would not do it
through the DAL. The reason is that there is no standardize API for
accessing OODBMs. Every one of them is different and every one has its
Its in Portuguese
http://juliarizza.gitbooks.io/curso-web2py/content/
But its easier to navigate that the web2py.com online book.
Regards
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
After installing the file, from the admin screen click on the clean
option (this should clear your cache, session, errors content). See if
this helps.
If that doesn't work, please take a look at the discussions related to
this in the group. Search for pickle.HIGHEST_PROTOCOL.
XML() worked perfectly (and good catch on 'recieve', I get that wrong every
time :P)
Thank you Massimo and Johann for the quick replies.
On Thursday, 16 July 2015 04:00:21 UTC-4, Johann Spies wrote:
Hello Thomas,
It seems that the css for label anyhow uses a strong font so
strong/strong
I noticed some error in the scripts above, with time.ctime instead of
time.time which I ask myself how it has even work before... I am in the
process to make it works and make dummy app with will demonstrate all this
working...
Richard
On Tue, Jul 14, 2015 at 10:30 AM, Samuel Sowah
Any other thoughts on how this could happen? I think I've seen it done
before
On Tuesday, July 14, 2015 at 5:14:56 PM UTC-4, Dave S wrote:
On Tuesday, July 14, 2015 at 11:29:00 AM UTC-7, Dave S wrote:
On Tuesday, July 14, 2015 at 11:07:39 AM UTC-7, LoveWeb2py wrote:
Hello,
My goal is
Well, if I comment out the sizes, everything works. I have tried using double
as my field type. It doesn't work either.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list
just an idea, if you just have 2 or under 10 option why not is_in_set
validators instead?
e.g.
db.define_table('room',
Field('name'),
Field('status') )
room.status.requires = IS_IN_SET([('Busy', T('Busy') ), ('Empty',
T('Empty') ) ] )
best regards,
stifan
--
Resources:
-
you forget the type for the size field, as said before: default is string,
so you must specify your type, e.g.:
Field('size1', 'double'),
Field('size2', 'double')
the error messages indicates a different error. A failed Foreign Key
constraint happens when you set an invalid id for a FK field.
continue my testing in another discussion :
https://groups.google.com/forum/#!topic/web2py/I0qpV7P_Vrw
but much smaller (without session, without validation, to see how form work
in components)
test from the book about components : it works well, when i go futher,
split it into 2 functions, it
As the subject reads. Could anyone explain to me which type works? I did an
update to my application and now my calculation is giving me an error. This
is what I had when it was working:
Field('size1','float'),
Field('size2','float'),
Field('color','reference color'),
Alex,
Just noticed that it is not the calculation. The error lies in the Size 1
Size 2 of my db. These values could be decimal. So let me post this again.
db:
Field('size1'),
Field('size2'),
Field('color','reference color'),
error:
Traceback (most recent call last):
File
Definitely sounds odd. Can you upload a minimal app that reproduces the
problem?
On Thursday, July 16, 2015 at 5:47:52 PM UTC-4, icodk wrote:
I want to represent a field with a link to a function in an
SQLFORM.smartgrid with reference to the row:
db.place.mode.represent=lambda mode,row:
33 matches
Mail list logo