[web2py] Grid data is not displayed on using Edit/View in case there are two grids in one view

2014-06-09 Thread Sarbjit
I am using two grids in my application but I have observed that when I use Edit/View button for GRID1, then the layout of the grid is not proper (Data from Grid1 is not seen) and default layout doesn't seems to be loaded. NOTE :- Since web2py doesn't supports two grids in one view, I am using L

[web2py] Re: Bootstrap 3

2014-06-09 Thread Gael Princivalle
I'll be happy also when it will be available. I think today websites must be designed for mobile devices, and Bootstrap 3 fits to this requirement. Il giorno domenica 8 giugno 2014 07:48:12 UTC+2, Osswalt ha scritto: > > Any plan to embed Bootstrap 3 into web2py ? > > Greg > -- Resources: - htt

[web2py] web2py vs others. Status of 2014

2014-06-09 Thread António Ramos
what is the status of the evolution of web2py compared with other, mainly rails /or django ? which of these including web2py has gain more improvements over the last year? Does anybody knows? Is still web2py over the others? >From the beginning Massimo used the phrase "Ideas we had , ideas we s

Re: [web2py] RapydScript / RapydML - impressive

2014-06-09 Thread António Ramos
I think i need something like that. cleaner is simple to read .. 2014-06-09 3:35 GMT+01:00 nick name : > Does anyone have experience with RapydScript (lightweight py-like to JS > translator) and RapydML (pythonic-template to html/xml/svg translator)? > > Have just discovered them, and from a cu

Re: [web2py] RapydScript / RapydML - impressive

2014-06-09 Thread António Ramos
interesting read from RapydML. {% extends basic.html %} For those unfamiliar with it, the above line includes HTML from basic.html inside of the current page. This is a useful technique to avoid unnecessary copies of HTML that's common to multiple pages (this includes navigation menus, website l

Re: [web2py] create a link SQLFORM to another table with id.belongs

2014-06-09 Thread LoveWeb2py
Hi Fabiano, Thank you for your reply. What do you mean by *"edit the registry of URL arguments are changed. "* Here is my code: def query_table2(): table2_records = [] table1_inv_record = request.args(0) row = db(db.table1.id==table1_inv_record).select() for line in row: joined

Re: [web2py] create a link SQLFORM to another table with id.belongs

2014-06-09 Thread Fabiano Almeida
Hi, Sorry for my poor english, by lazy, sometimes I use google translate (portuguese -> english), and don't check the translation. table1_inv_record = request.args(0) In this line you get de first args, but on click to edit record in grid, the function it's called again and url change args, then

[web2py] Is there a web2py plugin which lays out divs in a neat grid?

2014-06-09 Thread Spokes
Is anyone aware of a web2py plugin which can take a bunch of divs (let's say, of the same class name) and lay them out, in sequence, in a neat grid? I'm looking for something like the following jquery plugin: http://vnjs.net/www/project/freewall/. Thank you. -- Resources: - http://web2py.co

Re: [web2py] Re: Adding information to certain input before added to db?

2014-06-09 Thread Fabiano Almeida
Other way is before and after callbacks http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#before-and-after-callbacks If necessary, you can call function: db.table1._before_insert.append( lambda f: my_function(f)) This way you do not need to manually enter the registry

[web2py] Determining the height or width of an HTML object before it is rendered?

2014-06-09 Thread Spokes
Is there a server-side way in web2py to determine the height or width of an HTML object, as it would be rendered by the browser, if the object's height, width, and style have not been explicitly assigned (i.e. the height may be dependent on inner HTML objects/content)? Thanks. -- Resources: -

Re: [web2py] create a link SQLFORM to another table with id.belongs

2014-06-09 Thread LoveWeb2py
No problem at all and I appreciate you trying to respond to English. Is Object your table name and Almoxarifado_id is your id field in Objeto? Objeto.almoxarifado_id On Monday, June 9, 2014 1:30:49 PM UTC-4, Fabiano Almeida wrote: > > Hi, > > Sorry for my poor english, by lazy, sometimes I use g

Re: [web2py] create a link SQLFORM to another table with id.belongs

2014-06-09 Thread Fabiano Almeida
Objeto it's the table almoxarifado_id it's a FK (reference field) 2014-06-09 14:48 GMT-03:00 LoveWeb2py : > No problem at all and I appreciate you trying to respond to English. > > Is Object your table name and Almoxarifado_id is your id field in Objeto? > > Objeto.almoxarifado_id > > > On Mond

[web2py] Re: Adding information to certain input before added to db?

2014-06-09 Thread 黄祥
thank you so much for showing simpler version, anthony. best regards, stifan On Saturday, June 7, 2014 11:19:27 PM UTC+7, Anthony wrote: > > Aside from the code below, somewhat simpler approaches would be to > manipulate request.post_vars *before* calling SQLFORM, or using an > onvalidation fun

Re: [web2py] create a link SQLFORM to another table with id.belongs

2014-06-09 Thread LoveWeb2py
Hi Fabiano, I'm still trying to get this For your Objeto.almoxarifado_id.default = session.almoxarifado Shouldn't there be a db.Objeto.almoxarifado_id ? If I try to just put table2.id I get an error saying table2 isn't defined. Here is what I have so far def query_table2(): table1_inv_reco

[web2py] Re: Determining the height or width of an HTML object before it is rendered?

2014-06-09 Thread Leonel Câmara
I can't imagine any good reason as for why you would want to do this. You might be better off telling us what you're trying to accomplish so we can help you find a better way to do it. That said. You could do it with selenium, see, for instance, this stackoverflow question: http://stackoverflo

Re: [web2py] create a link SQLFORM to another table with id.belongs

2014-06-09 Thread Fabiano Almeida
def query_table2(): table1_inv_record = None table2_records = [] if request.args: try: session.table1_id = int(request.args(0)) except: pass row = db(db.table1.id==session.table1_id).select() for line in row: joined_records = line.inv_id query=d

Re: [web2py] create a link SQLFORM to another table with id.belongs

2014-06-09 Thread Fabiano Almeida
My db.py: Almoxarifado = db.define_table('almoxarifado', Field('name')) Objeto = db.define_table('objeto', Field('name'), Field('almoxarifado_id', db.almoxarifado)) Objeto.almoxarifado_id.requires=IS_IN_DB(db, 'almoxarifado.id', '%(nome)s') 2014-06-09 17:09 GMT-03:00 LoveWeb2py : > Hi Fabian

Re: [web2py] create a link SQLFORM to another table with id.belongs

2014-06-09 Thread LoveWeb2py
It's working! Thank you so much! I actually didn't need the db.table1.id.default = session.table1.id I think this was the line that fixed it: row = db(db.table1.id==session.table1_id).select() Thank you, thank you, thank you!! Such a huge help. Have a virtual beer on me :) Once On Monday, Ju

[web2py] RBAC access configuration - giving users permission to give other users permissions

2014-06-09 Thread Alex Glaros
I'd like to configure RBAC so that users can give other users permission to give others access. Do I need an additional table to do this or is it a matter of defining another group in the regular auth-group, auth-membership, auth-permissions tables? Example: All U.S. states will have (a) big

Re: [web2py] create a link SQLFORM to another table with id.belongs

2014-06-09 Thread Fabiano Almeida
Hi, Good! db.table1.id.default = session.table1.id > This line is used to insert new record automatically by SQLFORM. For the id field is unnecessary, it is useful when you want to set a default value, eg FK. All beers!! -- Resources: - http://web2py.com - http://web2py.com/book (Documentatio

[web2py] Re: Determining the height or width of an HTML object before it is rendered?

2014-06-09 Thread Spokes
What was the problem with the approach mentioned above? Anyway, here is what I was trying to do: my page has a bunch of divs (let's call them cells), each containing content which makes their height distinct from other cells, while the width more or less remains constant. I'd like to arrange th

[web2py] Re: Bootstrap 3

2014-06-09 Thread Christopher Steel
Is something like this too ambitious? / impossible?... This product works great for me. It is currently used by the Plone project, License is New MIT. Obviously it would take some work to make it work with and/or integrate with web2py but it works very well. It allows you to install one or mor

[web2py] Re: web2py vs others. Status of 2014

2014-06-09 Thread Massimo Di Pierro
Good questions. Web2py has changed less in the last year than in the year before and most of the changes have been small improvements and strengthening security. In my view web2py is a very mature project and users do not want big changes at this point. We have some todo items including a more

[web2py] Re: web2py vs others. Status of 2014

2014-06-09 Thread 黄祥
On Tuesday, June 10, 2014 9:14:03 AM UTC+7, Massimo Di Pierro wrote: > > Good questions. > > Web2py has changed less in the last year than in the year before and most > of the changes have been small improvements and strengthening security. In > my view web2py is a very mature project and users

Re: [web2py] Re: Virtual Fields do not show in "details" view and are not searchable

2014-06-09 Thread Mandar Vaze / मंदार वझे
On Fri, Jun 6, 2014 at 5:51 PM, Anthony wrote: > Virtual field shows up OK in the "table" view, but : >> > >> 1. It does not appear at all when I click on "View" button >> > > By default, virtual fields don't show up in readonly forms, but you can > list them in the "fields" argument. To pass the

[web2py] SQLFORM does not submit,if displayed over jQuery load

2014-06-09 Thread Najtsirk
Hi, in my default.py i have a simple function: def edit_posts(): form=SQLFORM(db.postos, request.args(0)).process() return dict(form=form) On my posts page, i have a table of all posts with a button, that calls a SQLFORM with a jQuery load, like this: Edit Until here, everythin