I have used ldap_auth successfully by implementing the following in
models/db.py:
from gluon.contrib.login_methods.ldap_auth import ldap_auth
...
db = DAL('mysql://mydb:mydb@localhost/password')
...
# --- end of web2py scaffolding ---
Anthony, how to pass multiple variables, say result1 and result2?
On Thursday, September 22, 2016 at 2:18:01 PM UTC-4, Anthony wrote:
>
> "result" is a Javascript variable, so it does not exist in the Python
> context in which the URL() function is evaluated. Instead, you must add
> that part
On Wednesday, July 31, 2019 at 5:13:31 AM UTC-7, Vlad wrote:
>
> It's not really about a menu as a whole (that would be easy). It's about
> dynamically changing the background color for each menu item individually.
> In this context I can't pass neither style nor class (in contrast with, for
Hi
Please can you test this url and tell me what you have as result?
http://vps_ip/applications/app1/private/appconfig.ini
Change vps_ip for the ip of your server and app1 for the name of your
application (folder name)
Thx
--
Resources:
- http://web2py.com
- http://web2py.com/book
This are my migration settings:
DAL(settings.database_uri, migrate=True, fake_migrate_all=True)
When I add new tables of fields on the development version of the app they
are added properly. However, if I create a backup of the production
database (missing the newly added fields/tables) and I
> I want to avoid this and the users must only get redirected to the two
sites that are hosted. What should I do ? Two options.
1) remove the default welcome app from your live server (simply delete the
directory).
2) Add this key to your BASE dict (which basically tells web2py which apps
I have somehow suddenly lost my tables in appadmin, they have just
disappeared & i don't know where to!!! How can i retrieve them & why have
they disappeared??
Regards;
Mostwanted
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
Hi All,
I am getting gevent error even only when doing import on production
linux machine (Debian 9.5) . I am trying to register a new user and I use
recaptcha2 for that.
File "/home/www-data/web2py/applications/application/controllers/default.py",
line 4222, in register
if
Hi All,
This may sound silly but I have a hosting question - I am already
hosting two of my web2py sites on personal VPS server. And I only want
anyone who access it to these sites only. I have multiple applications
running under same web2py and two of which I use as separate domains. I
It's not really about a menu as a whole (that would be easy). It's about
dynamically changing the background color for each menu item individually.
In this context I can't pass neither style nor class (in contrast with, for
example a list helper where elements/options are made up of another helper
Ok, I narrowed the problem a bit:
In py4web/core.py, around line 207, there is this adjustment in order to
make some variables threadsafe:
# make sure some variables in pydal are thread safe
for _ in ['readable', 'writable', 'default', 'update', 'requires']:
setattr(pydal.DAL.Field, _,
Hi, I'm testing py4web and I'm stuck with record versioning.
If in models.py I define a trivial table with versioning enabled like this:
### Define you table below
#
# db.define_table('thing', Field('name'))
#
## always commit your models to avoid problems later
#
# db.commit()
#
I'm loving it!
Thanks again Massimo
Manuele
On 24/07/19 07:40, Massimo Di Pierro wrote:
OK. I know. I am not good with names.
But there are lots of requirements to be fulfilled.
py4web.com was available and the pypi package was available.
Here is running on google cloud:
On Tuesday, July 30, 2019 at 3:09:24 PM UTC-7, Vlad wrote:
>
> what would be the best way to specify a background color (different for
> each menu item, depending on some database-driven data) when I build the
> menu with menu.append(...) in menu.py?
>
> I would love to have something like
14 matches
Mail list logo