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
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
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
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
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
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
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
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
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
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:
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
26 matches
Mail list logo