[web2py] [Request] LDAP/FreeIpa Schema support
Hi, We had a hard time configuring web2py to authorise using our LDAP/FreeIPa schema. More precisely getting the groups of the user. At the end we had to do a few changes directly in ldap_auth.py, that's not ideal but at least it's working. Could be possible for you to add one mode in LDAP even more flexible than the current "custom" mode? Or perhaps to extend the "custom" mode with more options? Thanks Vicente -- 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 "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Testing accions that access the database.
Thanks, this worked for me. In my case I wanted to do the tests in a clone of the original, so the data was there previously. Still I had problems with the migrations in web2py until I used this parameters: if request.function == '_TEST': workdb = DAL('postgres://user:password@localhost/testdb',check_reserved =['all'], lazy_tables=False, migrate=True, fake_migrate=True, fake_migrate_all=True) else: workdb = DAL('postgres://user:password@localhost/productiondb', check_reserved=['all'], lazy_tables=True) On Wednesday, 2 March 2011 01:19:04 UTC, Santiago wrote: > > Hello, > > We need to create unit tests for accions that access the database. > Does web2py provide tools to do this? The idea is to have a test > purpose database and populate it with test data at the moment the > tests run. Then, the test would use this fake data populated in the > database. > > Thanks in advance > Santiago -- 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 "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] doctesting xmlrpc call/service in web2py
Hi, I'm trying to doctest this tiny function: def call(): """ Function used for xmlrpc calls >>> request.args.append("http: //mydomain/application/controller/call/xmlrpc") >>> call() True """ session.forget() return service() But it fails before doing the comparison: Function call [failed] ** Line 3, in /home/vcarro/Downloads/web2py/applications/rvx//controllers/reviews.py in call.__doc__ Failed example: call() Exception raised: Traceback (most recent call last): File "/usr/lib64/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "", line 1, in call() File "/home/vcarro/Downloads/web2py/applications/rvx/controllers/reviews.py", line 31, in call return service() File "/home/vcarro/Downloads/web2py/gluon/tools.py", line 5132, in __call__ raise HTTP(404, "Not Found") HTTP: 404 NOT FOUND Ideas to doctest this function? -- 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 "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.