How by using A helper callback sen a data from inputs??
{{=A('Search', callback=URL('list', vars={'search'}),
target='t', _class='button white-bgc')}}
IF do by _onclick="ajax('list',['search], 't')" - how disable button and
show "Working..." message in button?
I should be able to see "My orders"?
I have:
> Not Authorized
> Privilegios insuficientes
El martes, 14 de julio de 2015, 11:44:29 (UTC-5), Massimo Di Pierro
escribió:
>
> I made another simple online store: https://github.com/mdipierro/estore3
>
> Can you help me test, suggest improvement,
Mind that routes_in = [(, 'code->url')] redirects to the url with code.
It does not redirect on error. For there is a routes_onerror. It is
documented in the routes.examples.py
On Thursday, 16 July 2015 16:47:52 UTC-5, ari wrote:
>
> Thank you very, very much. I've never thought that i can r
Something like this?
db.define_table('item', Field('name'),Field('value','double'))
def index():
c = lambda id: "c%s" % id
table = TABLE()
item = db(db.item).select():
for item in items:
table.append(TR(LABEL(item.name),INPUT(_name=c(item.id),value=item.value
session.flash should probably be response.flash since you are not
redirecting.
In response.js = "jQuery('#show').get(0).reload()" what is #show? You do
not show a ... in your code.
On Thursday, 16 July 2015 17:50:41 UTC-5, 黄祥 wrote:
>
> continue my testing in another discussion :
> https://grou
Hi,
I'm trying to customize the grid in edit mode.
Something like:
{{if 'grid' in globals():}}
{{if grid.update_form:}}
{{form = grid.update_form}}
{{=form.custom.begin}}
{{=form.custom.submit}}
{{=form.custom.end}}
{{else:}}
{{=grid}}
I found a way! :-D
{{=grid.elements('.form_header')[0]}}
On Friday, July 17, 2015 at 12:36:09 PM UTC+2, Massimiliano wrote:
>
> Hi,
>
> I'm trying to customize the grid in edit mode.
>
> Something like:
>
> {{if 'grid' in globals():}}
> {{if grid.update_form:}}
> {{form = gr
Hi,
I have been playing with pysaml2 and web2py, maybe this SP example helps:
https://github.com/josedesoto/web2py-sp-example
Regards,
On Tuesday, 14 October 2014 19:31:05 UTC+2, Prasad Muley wrote:
>
> Thanks for Mandar.
>
> On Tue, Oct 14, 2014 at 10:59 PM, Mandar Vaze > wrote:
>
>>
>> https
Hi,
I have been playing with pysaml2 and web2py, maybe this SP example helps:
https://github.com/josedesoto/web2py-sp-example
Regards,
On Monday, 27 October 2014 08:09:07 UTC+1, Prasad Muley wrote:
>
> Hi Massimo,
>
>In which provider log should I look into? (service provider [web2py
How to extract the value from this query/row object - - ?
Total =
db(db.ordered_prod.order_number==ord_num).select(db.ordered_prod.subtotal.sum()).first()
I know this is silly and may have a simple answer but for me I get a weird
response if I print Total . Like below -
Cheers, Rahul
-
s = db.ordered_prod.subtotal.sum()
row = db(db.ordered_prod.order_number==ord_num).select(s).first()
print row[s]
On Friday, 17 July 2015 07:58:31 UTC-5, Rahul wrote:
>
> How to extract the value from this query/row object - - ?
> Total =
> db(db.ordered_prod.order_number==ord_num).select(db.o
Ciao,
I want to use https://kallithea-scm.org/ as mercurial repository web
interface.
Everything works fine except one last step in web2py web interface.
When I click on the "Versioning" web interface button I get the error:
Versione web2py™ Version 2.11.2-stable+timestamp.2015.05.30.11.29.
my bad, i forgot to include the main actor.
*views/default/index.html*
{{extend 'layout.html'}}
{{=LOAD('default', 'post.load', ajax = True,
target = 'post') }}
{{=LOAD('default', 'show.load', ajax = True,
target = 'show') }}
about flash, already tried response.flash and session.
They are killing mercurial by changing the API over and over.
On Friday, 17 July 2015 08:16:53 UTC-5, zenzero...@gmail.com wrote:
>
> Ciao,
>
> I want to use https://kallithea-scm.org/ as mercurial repository web
> interface.
> Everything works fine except one last step in web2py web interface.
Thanks Vikash!
2015-07-15 14:15 GMT-03:00 Vikash Sharma :
> Module defines grouping logic at one place, the way you want to design it.
> Example, all customer database, order details, vendor details and
> respective operation are organised & implemented separately. Read more
> about cohesion and
As AngularJS died to reborn in this rapidly changing web world, i think
web2py should also born again.
I see myself using web2py as a rest API, coding more and more with
javascript and less with python and i dont like it!
It feels so "UGLY"
When will we have web2py with new "batteries" included
Massimo has done W3, and I think it should a per app to use a JS lib like
angular of ractive...
Should web2py-next becomes something like web2py-brython (
http://www.brython.info/)?
Richard
On Fri, Jul 17, 2015 at 12:26 PM, António Ramos
wrote:
> As AngularJS died to reborn in this rapidly cha
On Thursday, July 16, 2015 at 4:33:32 PM UTC-7, Alex wrote:
>
>
> the error messages indicates a different error. A failed Foreign Key
> constraint happens when you set an invalid id for a FK field. Check your
> references, from the snippet you posted only color is a foreign key so
> maybe thi
On Thursday, July 16, 2015 at 10:11:16 PM UTC-7, greenpoise wrote:
>
> Well, if I comment out the sizes, everything works. I have tried using
> double as my field type. It doesn't work either.
As Alex said, the error you posted is a Foreign Key exception ... a
reference to another table has
On Friday, July 17, 2015 at 1:05:15 AM UTC-7, ermolaev...@gmail.com wrote:
>
> How by using A helper callback sen a data from inputs??
>
>
> {{=A('Search', callback=URL('list', vars={'search'}),
> target='t', _class='button white-bgc')}}
>
>
> IF do by _onclick=
does the problem persist if you use vars instead of args?
--
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 are subscr
You have found a bug, which I have submitted here:
https://github.com/web2py/web2py/issues/1024
Thanks for putting this together.
Anthony
On Friday, July 17, 2015 at 1:53:36 PM UTC-4, icodk wrote:
>
> The attached app is a simple two tables app that demonstrates smart/grid
> bug in represent
For now, one workaround might be to do this right before defining the grid:
db.place.mode.type = 'integer'
In that case, because the grid won't think the field is a "reference"
field, it will not attempt to cache the output of the "represent" function.
Also, you probably don't see an "Add" butt
It's a bug: https://groups.google.com/forum/#!topic/web2py/oui2tBIvcoM
On Friday, July 17, 2015 at 4:27:34 PM UTC-4, Alex Glaros wrote:
>
> does the problem persist if you use vars instead of args?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web
On Friday, July 17, 2015 at 8:01:11 AM UTC-7, Massimo Di Pierro wrote:
>
> They are killing mercurial by changing the API over and over.
>
Mercurial's official API is the command line, and they make no promises
about compatibility of any internal interface between versions. They say
this over
yes
something like that ;)
thanks Massimo
On Friday, July 17, 2015 at 3:13:56 AM UTC-5, Massimo Di Pierro wrote:
>
> Something like this?
>
> db.define_table('item', Field('name'),Field('value','double'))
>
> def index():
> c = lambda id: "c%s" % id
> table = TABLE()
> item = d
can grid record be displayed vertically?
E.g.,
db.define_table('Preferences',
Field('prefer_weekly_digest','boolean'),
Field('prefer_no_alerts','boolean'),
Field('default_reply_to_friend_requests', 'string'))
User sees their preferences in vertical format
Weekly Digest ☐
Prefer n
Perfect! Thank you Massimo.
Cheers!
Rahul
(Uses web2py to make life and work easier)
--
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
28 matches
Mail list logo