Re: [web2py] Re: modules: NameError("name 'reload' is not defined",)

2020-08-18 Thread AGRogers
I am completely out of my depth re this issue. But I just read the following on the py4web group and wondered whether it might be related. Proper use of modules Q from Richard: Where do modules go? A I think proper modules should be installed with pip but if you want to distribute the source of

Re: [web2py] Re: Server SQL non existent or access denied

2020-08-18 Thread AGRogers
Hi Andrea According to https://docs.microsoft.com/en-us/sql/connect/python/pyodbc/step-3-proof-of-concept-connecting-to-sql-using-pyodbc?view=sql-server-ver15 *pyODBC uses* the *Microsoft ODBC* driver for SQL Server. If your version of the *ODBC* driver *is* 17.1 or later, you *can use* the

Re: [web2py] Re: Nested menu item

2020-08-18 Thread AGRogers
I'm pretty sure that bootstrap doesn't allow nesting menus more than a single level. If you need more you need to use a custom menu system. I'm not sure how that applies to web2py's menu system. But I suspect it too only accommodates a single level by design. On Wed, 19 Aug 2020, 7:24 am Vlad,

[web2py] Re: Nested menu item

2020-08-18 Thread Vlad
I may be missing something, but it seems to me that by design MENU helper produces regular, simple menu code, as it's not bootstrap-enabled by itself. I mean, this was my assumption to begin with; that's why I haven't even tried it - rather setting up menu as a list of items (i.e. data

[web2py] Re: DAL Could not create constraint or index

2020-08-18 Thread villas
I presume therefore that you need those fields. This is the kind of thing I do to get things working. Please forgive me if I've missed something. - I would create those required fields manually in your database (without the constraint that causes the problem). - Set

[web2py] Re: DAL Could not create constraint or index

2020-08-18 Thread Andrea Fae'
Thank you Villas. I'm using option 2 and now I have the tables without "created_by" and "modified_by". Now I will try to reset signature=true and see what will happen. If it causes the same error I could add but they will not managed automatically by web2py, or I'm wrong? What do you suggest?

[web2py] Re: URI for mssql

2020-08-18 Thread Andrea Fae'
if you use mssql 2016 you maybe it's better to use this: mssql4://user:password@servername/databasename I'm not specifying instance, and it seems working. Maybe I will try with the instance too. thanks Il giorno martedì 18 agosto 2020 07:18:06 UTC+2, T.R.Rajkumar ha scritto: > > I use the

Re: [web2py] Re: modules: NameError("name 'reload' is not defined",)

2020-08-18 Thread Kevin Keller
I see there is an open issue on git from 8 days ago: https://github.com/web2py/web2py/issues/2341 So just FYI it is already reported. Its a strange error. Must be somewhere in the module save function and after save it should trigger the compile which obviously does not work anymore either.

Re: [web2py] Re: modules: NameError("name 'reload' is not defined",)

2020-08-18 Thread xgp.l...@gmail.com
Hi, I already open a conversation about this but no complete answers were given. I ran from source and experience the same error. Cheers, El Tuesday, August 18, 2020 a la(s) 8:52:43 AM UTC-5, kell...@gmail.com escribió: > Same issue here with newest web2py > > Am Di., 18. Aug. 2020 um 07:08

Re: [web2py] Re: modules: NameError("name 'reload' is not defined",)

2020-08-18 Thread Kevin Keller
Same issue here with newest web2py Am Di., 18. Aug. 2020 um 07:08 Uhr schrieb 'Annet' via web2py-users < web2py@googlegroups.com>: > I reported the same problem some time ago. > > When I edit a module and save it I get this nameError. Since I am > importing the modules into other applications I

[web2py] Re: How to improve a widget select list that allows new options to be added?

2020-08-18 Thread Clemens
Hi, not sure, what kind of form you're using. Expecting you use SQLFORM, I solved this in similar case as follows: form[0].insert(-1, TR(TD(LABEL(T('City')), TD(SELECT(_name='city', *[OPTION('{} {}'.format(city.code, city.name), _value=city.id) for

[web2py] How to improve a widget select list that allows new options to be added?

2020-08-18 Thread AGRogers
Hi I want a drop down list that shows all the values from existing records AND allows the user to add a new value if they want. I have got something working using https://select2.org/ . But my approach is questionable. The problem i have is that when a new value is added and the form is

[web2py] Re: unicode symbols

2020-08-18 Thread Clemens
A(XML(''), ...) On Tuesday, August 18, 2020 at 1:29:19 PM UTC+2 Dirk C wrote: > Hello, > I wonder if i can replace the string 'mytext' with a unicode symbol like > > > {{=A('mytext',callback=URL(r=request,f='ltb_wijzig_groepssamenstelling' > ,vars=dict(v_groepslid_id=groepslid.id >

[web2py] unicode symbols

2020-08-18 Thread Dirk C
Hello, I wonder if i can replace the string 'mytext' with a unicode symbol like {{=A('mytext',callback=URL(r=request,f='ltb_wijzig_groepssamenstelling' ,vars=dict(v_groepslid_id=groepslid.id,v_dossier_id=dossier[0].id,v_ckz=dossier[0].f_ckz,v_naam=dossier[0].f_naam,v_action= "EDIT")))}} --

[web2py] Re: Nested menu item

2020-08-18 Thread 'Annet' via web2py-users
Hi, I've got a two level menu, however, calling {{=MENU(response.app_menu)}} doesn't render a Bootstrap 4 menu like your resulting html code. It renders something pretty ugly: Our network Networks we joined Do you have any idea how to solve this