On Wed, Apr 27, 2016 at 4:44 PM, Niphlod wrote:
> on these "philosophical" notes, boring for someone, exciting for yours
> truly, the are a few other pointers (just to point out that the concept of
> "caching" isn't really something to discard beforehand)...be aware that on
>
Thats brilliant, but when I put it in the script in, it doesnt work:
ajax_form = SQLFORM(db[field_array[3]], this_page_ajax, deletable=True)
if ajax_form.process().accepted:
response.js = 'alert("hi");'
The form is being called thru a modal and ajax iframe, but even when
If the form action itself is loaded in an iframe, then it won't work, as
response.js is only executed at the end of Ajax requests. Is there any
reason it needs to be loaded in an iframe rather than via a standard Ajax
request?
It might help if you show more of the relevant code.
Anthony
On
Thank you very much Leonel. This is also a very useful hint. As with the
previous recommendation I need a deeper knowledge about the subject to make
a decission, and this is a good point to start with.
Thank you and best regards.
El miércoles, 27 de abril de 2016, 14:48:18 (UTC+2), Leonel
I have a routes.py file in web2py's home directory which contains the
follwing code:
routes_onerror = [
(r'init/*', r'/error/default/index')
,(r'org/*', r'/error/default/index')
,(r'*/404', r'/error/default/index')
,(r'*/*', r'/error/default/index')
]
# specify action in charge of
Hello guys, good afternoon! Maybe I'm missing something absurd, I'm not
seeing, but this is my first app to study web2py.
I have some tables with relationships, but I can not enter data in Table
Movies, which has fields related to other tables.
Under the codes and the results. Thanks a lot for
Hi all,
I'm trying to setup a form to manage two tables:
db.define_table('pratiche',
Field('nome', requires=IS_NOT_EMPTY()),
Field('descrizione', 'text', requires=IS_NOT_EMPTY()),
Field('stato_pratica', requires=IS_IN_SET(['aperta',
'attesa',
When using SQLFORM.factory, a dummy DAL object is created and doesn't have
any default upload folder, so for any upload fields, you must specify the
"uploadfolder" argument.
Anthony
On Thursday, April 28, 2016 at 6:04:01 PM UTC-4, Andrea Marin wrote:
>
> Hi all,
>
> I'm trying to setup a form
Thanks for this method
Il giorno giovedì 28 aprile 2016 20:10:46 UTC+2, Val K ha scritto:
>
> 'form.vars.field = any' must be placed before form.process()
> So, in your case:
> form = SQLFORM(db.pratiche)
> form.vars.stato_pratica = 'aperta'
>
> if form.process().accepted:
>
>
please try:
db.movies.category.requires = IS_IN_DB(db, 'categories.title',
db.categories._format, multiple = True)
ref:
http://web2py.com/books/default/chapter/29/07/forms-and-validators#Validators
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
Specifically, before creating the form, something like this should work:
db.allegati.doc.uploadfolder = os.path.join(request.folder, 'uploads')
Anthony
On Thursday, April 28, 2016 at 6:39:02 PM UTC-4, Anthony wrote:
>
> When using SQLFORM.factory, a dummy DAL object is created and doesn't
Are you saying you have multiple forms on the same page? The allowance of
multiple formkeys for the same form was not really intended for the case of
multiple forms on the same page -- rather, it was intended more for the
case where the user might open up the same page in multiple browser tabs
On Thursday, April 28, 2016 at 11:44:34 AM UTC-4, Leonel Câmara wrote:
>
> I would probably change the way the application works. There is absolutely
> no need for you to have all the 16 forms in the HTML at the same time and
> then try to process each one in the controller to see which was
Seems like a javascript issue as the problem seems to be only in the UI as
the deploy button is becoming available sooner than it should. Strange.
since everything worked well before and we didn't change anything in that
particular code. I'll look into it.
--
Resources:
- http://web2py.com
-
Have anyone used yagmail?
http://kootenpv.github.io/2016-04-24-yagmail
On Friday, April 22, 2016 at 2:34:54 AM UTC-4, Mirek Zvolský wrote:
>
> Not sure if I properly understand your question.
> But..
>
> I use this in starting web in such easy way:
> - Virtual server Debian, no SMTP/POP3
I would probably change the way the application works. There is absolutely
no need for you to have all the 16 forms in the HTML at the same time and
then try to process each one in the controller to see which was submitted.
Just load the form you need when you need it using ajax.
That said
OK, thanks for the clarification. *Leonel* -- we're not seeing any errors
on our side, and I don't think we've changed anything in the API -- we
certainly haven't changed anything deliberately. Can you think of anything
that might be causing this?
On Friday, April 22, 2016 at 12:45:22 AM
is there "# -*- coding: utf-8 -*-" as first line of your file.py?
On Friday, April 22, 2016 at 4:13:54 PM UTC+3, c.lp...@gmail.com wrote:
>
> hi,All:
>when i execute the following code:
> >>> from gluon import *
> >>> db =
>
Thank you. Only caveat to this solution is, every time someone access the
page, the model will be showing. An alternative solution will be to keep
the modal close untill the page is accessed, once the page is accessed
invoke the modal "open" by clicking the button. I would imagine the
I understand that the whole default.py file is executed on each request to a
function internal to it. But does it import if the statement evaluates to false?
For example if default.py has:
Function x():
If 1==2:
Import a
Does a get imported every time function x is called?
--
is there a way to update table and calculate using FIFO (First In First
Out) methods?
e.g.
Unit Trade Unit Remaining Subscription Unit NAV Date
3.000,00 1.000,00 1.000,00 01/03/2016
2.000,00 1.000,00 1.000,00 01/02/2016
1.000,00 1.000,00 1.000,00 01/01/2016
let say i have the data above, when
On Thursday, April 28, 2016 at 4:23:26 PM UTC-7, 黄祥 wrote:
>
> is there a way to update table and calculate using FIFO (First In First
> Out) methods?
> e.g.
> Unit Trade Unit Remaining Subscription Unit NAV Date
> 3.000,00 1.000,00 1.000,00 01/03/2016
> 2.000,00 1.000,00 1.000,00 01/02/2016
>
'form.vars.field = any' must be placed before form.process()
So, in your case:
form = SQLFORM(db.pratiche)
form.vars.stato_pratica = 'aperta'
form.add_button('Back', URL('index'))
if form.process().accepted:
On Friday, April 22, 2016 at 12:23:59 AM UTC+3, Andrea Marin wrote:
>
>
I have inherited a very nice clinical trials randomization module written
in web2py (2.9.5) and have been asked to modify it to accommodate a new
clinical study.
The application features a screen to display all the randomization strata
in a list on the screen -- each stratum generates a form
Access to books in Spanish version, except the prologue, gives the
following error
Access:
http://web2py.com/books/default/chapter/41/01/introduccion
Response:
"
Internal errorTicket issued:
books/167.60.25.205.2016-04-28.19-34-49.e80354e6-8fee-47e8-9512-2525744cda96
pardon, i forgot to include my code i'm done so far with the unexpected
result (no error occured)
code:
def __after_insert_redemption_detail(f, id):
query_unit = db.unit.account == f['account']
row_unit = db(query_unit).select(orderby = ~current.db.unit.id).first()
db.unit.insert(account =
I haven't used yagmail, I only looked quickly but I didn't see an advantage
of yagmail over the web2py mail functions.
The bootply layout below looks great - I don't see any reason that wouldn't
work.
Do you want to receive email into the app? I didn't see how yagmail
supports inboud email,
On Thursday, April 28, 2016 at 12:01:50 PM UTC-7, Richard wrote:
>
> Why not just found a way to attach Ipython notebook (which seem to had
> been renamed Jupyter) to your app??
>
> https://jupyter.org/
>
> By providing dataset over which users can interact with... I am not sure
> exactly how
Why not just found a way to attach Ipython notebook (which seem to had been
renamed Jupyter) to your app??
https://jupyter.org/
By providing dataset over which users can interact with... I am not sure
exactly how to do that, but one idea could be to db select data that user
can play with inside
Il 28/04/16 00:26, Val K ha scritto:
> Hi!
> I made mini but useful and universal class to hold json-serializable
> objects.
> Main goal - serialize objects having items-function() as js-objects
>
It looks very interesting to me :)
Thank you for sharing!
I'll notice here if I use it for a little
Good points... I forgot about the aspect of changing site way to make
calculation... At the same time, I understand the need as more specific for
some user the rest of the crowd stock with the basic calculation if they
don't know how to hack their own calculation function... In this context
31 matches
Mail list logo