[web2py] Re: Modules Import Problem.

2019-01-02 Thread Alfonso Serra
Hi, im having a similar issue: In modules, i have a utils.py module with a function called "first" that i cant import from another module. The problem is that theres a utils.py module installed in the python standard library that obviously doesn not has that function and its being imported

[web2py] Male file upload optional_SQLFORM

2019-01-02 Thread Arindam Dasgupta
Hi Greetings for the new year!! I recently ran into a problem. I need to make fileupload field in SQLFORM optional How can I do that ? My Model: db.define_table('rates_frames', Field('frame_size' type='string' ), Field('frame_id' , type='string'),

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread 黄祥
same here test using conda $ uname Darwin $ python -V Python 3.7.1 $ git clone --recursive https://github.com/web2py/web2py.git $ cd web2py $ git checkout modular $ python setup.py Traceback (most recent call last): File "setup.py", line 4, in from gluon.fileutils import tar, untar,

[web2py] Re: How to put a variable in the A helper?

2019-01-02 Thread Stephan
Oh, I see. Thank you! Am Dienstag, 1. Januar 2019 19:46:50 UTC+1 schrieb Massimo Di Pierro: > > This > > {{=A('Your File', > callback=URL('tracker',vars=dict(contents=contents.id.id,art='zip')), > _onclick="window.open('%s');") % (download_file)}} >

Re: [web2py] modular web2py - need help

2019-01-02 Thread Carlos Cesar Caballero Díaz
I like a LOT the idea, my initial tests seems to work ok in Python 3.6.7 on Ubuntu except the test_web ones are failing. Tell me please, that one of the new year resolution is to have web2py in pypi :) That's something I would love to help make a reality. This are my wishes: 1- pypi 2- The

[web2py] ajax controller loses formatting?

2019-01-02 Thread Vlad
I am sure I am missing something very basic here, but... googling didn't help... When I have a contoller which I use in ajax calls, it all works just perfect except that the view loses the formatting (for example, it does keep the links and bullets - yet loses bootstrap formatting of

[web2py] Re: error exporting data (CSV) using smartgrid

2019-01-02 Thread Armando Hernandez
i found a workaround https://github.com/web2py/web2py/issues/1542 had to comment out this line: https://github.com/web2py/web2py/blob/cef31f127796c638753297235f4e886f6a9e5410/gluon/sqlhtml.py#L2668 now my smartgrid's export to CSV work again!!! El domingo, 23 de diciembre de 2018, 22:29:50

[web2py] Happy New Year

2019-01-02 Thread Val K
So it will not be a flask but the box of bottles? -- 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 subscribed to

Re: [web2py] Happy New Year

2019-01-02 Thread Carlos Cesar Caballero Díaz
Happy new year!! I have answered this in other thread because for some reason I have missed this one, and many of my wishes match yours https://groups.google.com/d/msg/web2py/BskHaFZkVEI/sudO0jdsFgAJ First a question (mostly for curiosity). Why using Bottle instead (for example) Flask or

Re: [web2py] Re: ajax controller loses formatting?

2019-01-02 Thread Eliezer (Vlad) Tseytkin
Got it, I knew I missed something basic :) Thank you!! On Wed, Jan 2, 2019, 7:22 PM Anthony In order for an associated view to be executed, you must return a > dictionary. If you return a string or HTML helper, it will be returned > directly to the browser with no view being executed. > >

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread 黄祥
thx carlos, here is the steps i took git clone --recursive https://github.com/web2py/web2py.git cd web2py/gluon/packages/dal/ git checkout modular $ python -V Python 3.7.1 $ python ../../../setup.py Traceback (most recent call last): File "../../../setup.py", line 85, in start() File

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread sandeep patel
@Carlos Cesar Caballero, I have taken the same steps as you suggested but I am getting the same error. Robodia@DESKTOP-E4IOU2U MINGW64 /d/TestingWeb3py/web2py/gluon/packages/dal (modular) $ python ../../../setup.py Traceback (most recent call last): File "../../../setup.py", line 4, in

[web2py] Re: ajax controller loses formatting?

2019-01-02 Thread Anthony
In order for an associated view to be executed, you must return a dictionary. If you return a string or HTML helper, it will be returned directly to the browser with no view being executed. Anthony On Wednesday, January 2, 2019 at 3:14:50 PM UTC-5, Vlad wrote: > > I am sure I am missing

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread Carlos Cesar Caballero Díaz
Hi, this is working for me: git clone --recursive https://github.com/web2py/web2py.git git checkout modular cd web2py/gluon/packages/dal/ git checkout modular cd ../../../ Greetings. El 2/1/19 a las 9:24 p.m., 黄祥 escribió: thx carlos, here is the steps i took | git clone --recursive

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread 黄祥
yes, you r right, previous error before is due to the lack of step i took - git checkout must run twice in web2py folder and web2py/gluon/packages/dal - execute python (setup.py) must be in web2py folder can't be from another path e.g. web2py/gluon/packages/dal then python ../../../setup.py will

[web2py] Re: Male file upload optional_SQLFORM

2019-01-02 Thread 黄祥
not sure what do you mean with optional, there is fields in SQLFORM constructor another way is using conditonal fields (show_if) *ref:* http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM http://web2py.com/books/default/chapter/29/07/forms-and-validators#Conditional-fields

[web2py] Re: Modules Import Problem.

2019-01-02 Thread Alfonso Serra
Hi, so far it looks like this works: at the model 01_config.py import sys sys.path.insert(0, r"E:\webdev\web2py-mod.02\applications\myapp\modules") then im able to import as: from utils import myfunc where utils.py is an application module at applications\myapp\modules -- Resources: -

[web2py] Happy New Year

2019-01-02 Thread davidjensen
Base web3py on the fastest possible web server (vibora?) Make utilities for nosql data store. -- 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

Re: [web2py] Re: broken inframe video on manual web page

2019-01-02 Thread Nico Zanferrari
Hi, I've opened issue 2068 for this. nico Il giorno mer 17 ott 2018 alle ore 01:21 Nico Zanferrari ha scritto: > Well, it seems that Vimeo has dropped the hubnut feature on July, see >

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread Carlos Cesar Caballero Díaz
Guys, I think you need to include the "modular" branch of pydal too: cd gluon/packages/dal/ git checkout modular Greetings. El 2/1/19 a las 4:32 a.m., 黄祥 escribió: same here test using conda | $ uname Darwin $ python -V Python3.7.1 $ git clone --recursive

[web2py] SQL NOT IN issue(belong)

2019-01-02 Thread Yann Dulondel
Hi All Happy new year 2019. I have an issue with SQL NOT IN I tried to get a heater pad list(dropdown) in a form. The heater must be related to user depot and not been used. If they are used the heater id is set up in table articles

[web2py] Re: @auth.requires_signature() vs @auth.requires_login()

2019-01-02 Thread Leonel Câmara
Yes it makes perfect sense. -- 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 subscribed to the Google Groups

Re: [web2py] Re: Male file upload optional_SQLFORM

2019-01-02 Thread Arindam Dasgupta
Thanks Steve!! That was a lot of help for me and I solved my issue with that. BR//Arindam On Wed, Jan 2, 2019 at 5:00 PM 黄祥 wrote: > not sure what do you mean with optional, there is fields in SQLFORM > constructor > another way is using conditonal fields (show_if) > > *ref:* >