git clone https://github.com/web2py/web3py
cd web3py
$ pip3 install -r requirements.txt
Collecting pyjwt (from -r requirements.txt (line 1))
Using cached https:
//files.pythonhosted.org/packages/87/8b/6a9f14b5f781697e51259d81657e6048fd31a113229cf346880bb7545565/PyJWT-1.7.1-py2.py3-none-any.whl
Co
$ ./web3py-start applications/
Traceback (most recent call last):
File "./web3py-start", line 3, in
from web3py.core import main
File "/Users/sugizo/learn/python/web3py/web3py/__init__.py", line 1, in
from . core import render, DAL, Field, action, request, response,
redirect, abort,
fixed. sorry
On Friday, 26 April 2019 00:03:09 UTC-7, 黄祥 wrote:
>
> git clone https://github.com/web2py/web3py
> cd web3py
> $ pip3 install -r requirements.txt
> Collecting pyjwt (from -r requirements.txt (line 1))
> Using cached https://
> files.pythonhosted.org/packages/87/8b/6a9f14b5f781697e5
Yes. The plan is to provide the following executable from the official web
page:
OS web2py for py2.7, web2py for py3.7, web3py for py3.7 (WIP)
WINDOWS web2py for py2.7, web2py for py3.7, web3py for py3.7 (WIP)
On Thursday, 25 April 2019 22:02:37 UTC-7, rāma wrote:
>
> This is wonderful.
Thank you for your answer, but I do not understand the code you wrote...
the 2 fields are only filtering fields, no a db field.
The filtering fields are working well, but I want that the dates selected
will be preserved after postback. Do I have to read them from the
querystring? In which way?
t
They are the standard buttons "Search" and "Reset". I'd like from
javascript in the html view to execute "Search" by code.
Thank you
Il giorno venerdì 26 aprile 2019 00:05:39 UTC+2, João Matos ha scritto:
>
> You don't have the standard buttons, but have a search button created by
> you?
>
>
> q
Hello, is it possible to intercept the event regarding click to the
standard button search?
thank you
--
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
Is difficult to understand how you intend to trigger the search without
some infos.
Anyway just to give you an hint:
jQuery("#your_custom_widget").closest('form').trigger('submit');
On Fri, Apr 26, 2019 at 12:22 PM Andrea Fae' wrote:
> They are the standard buttons "Search" and "Reset". I'd lik
Found it on youtube
https://www.youtube.com/watch?v=IlfHqHAKCGc&list=PLU9qfJenUikEmVUZgQZj5RMa6GAuwq9c-
maybe it should be added to
http://www.web2py.com/init/default/documentation
regards
António
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web
Hello I will give you the codeok? This evening...
Il ven 26 apr 2019, 12:31 Massimiliano ha scritto:
> Is difficult to understand how you intend to trigger the search without
> some infos.
> Anyway just to give you an hint:
>
> jQuery("#your_custom_widget").closest('form').trigger('submit');
I've been working with Virtual Fields for a while, but now I'm wondering,
how could I write a Virtual Field method that modifies the row itself?
I mean, I would like to do something similar that what the .update_record()
method does. When you call row.update_record(), the row object is updated
2.18.5 under python 2:
File "C:\Python27\lib\pickle.py", line 892, in load_proto
raise ValueError, "unsupported pickle protocol: %d" % proto
ValueError: unsupported pickle protocol: 3
2.18.5 under python 3:
*import_from_csv_file error*
'charmap' codec can't decode byte 0x81 in position
Is it possible to have request args and link like
www.domain.org/a/c/index.html#anchor/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 receive
Il giorno giovedì 25 aprile 2019 21:40:25 UTC+2, Andrea Fae' ha scritto:
>
> How to preserve datepicker selected date after postback using web2py in a
> javascript view... I think it's a javascript problem but I don't know how
> to fix it.
> thank you
>
--
Resources:
- http://web2py.com
- htt
I don't know much js, but where is the submit/save button/function?
sexta-feira, 26 de Abril de 2019 às 11:19:19 UTC+1, Andrea Fae' escreveu:
>
> Thank you for your answer, but I do not understand the code you wrote...
> the 2 fields are only filtering fields, no a db field.
>
> The filtering fie
def change_name(row, name):
db(db.person.id == row.person.id).update(name=name)
db.define_table('person',
Field('name'),
Field.Method('change_name', change_name))
row = db.person(1)
row.change_name('Lisandro')
Anthony
On Friday, April 26, 2019 at 12:21:28 PM UTC-4, Lisandro wrote:
>
On Friday, April 26, 2019 at 2:25:10 PM UTC-4, Jörg Schneider wrote:
>
> Is it possible to have request args and link like
> www.domain.org/a/c/index.html#anchor/args ?
>
The "#anchor/args" part of the URL does not get sent to the server. What
are you trying to achieve?
--
Resources:
- http:/
Hi Anthony, thank you for your time.
I tried the method you suggested, but here is my problem: after calling the
method, the row object isn't updated.
row = db.person(1)
row.change_name('Lisandro')
print(row.name)
This doesn't print "Lisandro".
Instead, it prints the name the person had before
Hi rāma,
you're right, the console in the new experimental binaries is not working
fine - even the 'help' command gives errors ;-(
web2py -M -S my_app
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2019
Version 2.18.5-stable+timestamp.2019.04.08.04.22.03
Database drivers avail
Regarding the 'id' field. I create the id field myself so I can set
readable = False
Thanks for field_id recommendation. However, that didn't help either, the
field still didn't show up in the onvalidation function.
-Jim
On Thursday, April 25, 2019 at 4:51:20 PM UTC-5, João Matos wrote:
>
>
Hi,
Someone please share the correct DAL string when using a unix sock with
postgres.
Thanks,
--
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 rec
def change_name(row, name):
row.person.update_record(name=name)
The above will update the database and the local Row object.
Anthony
On Friday, April 26, 2019 at 5:00:34 PM UTC-4, Lisandro wrote:
>
> Hi Anthony, thank you for your time.
> I tried the method you suggested, but here is my prob
Replace you model with this
db.define_table('brix_test',
Field('site', 'reference site',
requires=IS_IN_DB(db, 'site',
'%(siteNumber)s - %(name)s',
zero='..')),
Field('mixer_tech', 'reference mixerTech',
requires=I
Thank you for the response it appears that they do have the same name . I'm
sorry I'm still new to programming in general, I've read around about how
to use append but I'm failing to understand how it can be applied to the
radio widget function which looks like this
- def radio_widget(field,val
db = DAL( 'postgres://***:@localhost/dbname',
'unix_socket:/tmp/.s.PGSQL.5432', migrate=True, lazy_tables=False, )
For those who needed.
Cheers,
El viernes, 26 de abril de 2019, 18:31:42 (UTC-5), xgp@gmail.com
escribió:
>
> Hi,
>
> Someone please share the correct DAL string when us
>
> $ ./web3py-start applications/
> Traceback (most recent call last):
> File "./web3py-start", line 3, in
> from web3py.core import main
> File "/Users/sugizo/learn/python/web3py/web3py/__init__.py", line 1, in
>
> from . core import render, DAL, Field, action, request, response,
26 matches
Mail list logo