[web2py] routes.py to app/controller/function/1/2/3

2021-11-01 Thread 'Annet' via web2py-users
ID, the router would then sets the args and redirects the request to 'init/main/index/6/1/5/24'which renders the site. Is this possible? Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Services

2021-10-29 Thread 'Annet' via web2py-users
2.20.4. Thanks in advance for your replies. KInd regards, Annet -- 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

[web2py] form.custom.widget.image breaks in case of form.errors

2021-05-14 Thread 'Annet' via web2py-users
and confusing behaviour. Is there a fix for this problem? Best, Annet -- 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

[web2py] form.custom.widget.image does not show preview

2021-05-14 Thread 'Annet' via web2py-users
I have a view with the following code: {{=form.custom.widget.image}} The problem is that in the update form the image does not display, which is very confusing to the user. is there a way to fix this issue? Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com

[web2py] Unable to handle upload

2021-04-26 Thread 'Annet' via web2py-users
rm.process().accepted: Kind regards, Annet -- 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 Goo

[web2py] data-w2p_remote

2021-01-21 Thread 'Annet' via web2py-users
other apge loads fine it is just the /init/home/index/ page that has this problem. I find this annoying and wonder why this happens and if there is a way to prevent this from happening. Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Re: Selecting payment method

2020-12-23 Thread 'Annet' via web2py-users
I am not sure I fully understand your question, but doesn't SQLFORM.widgets. radio.widget on the pay_with solve your issue? Best, Annet Op dinsdag 22 december 2020 om 17:25:57 UTC+1 schreef mauri...@gmail.com: > I worked on a way to pay through various methods. It involves a user > sel

[web2py] Digitally sign URLs

2020-12-08 Thread 'Annet' via web2py-users
, Annet -- 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&q

[web2py] sessions2trash.py

2020-12-08 Thread 'Annet' via web2py-users
regards, Annet -- 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-

[web2py] Re: How to customize email settings.

2020-12-04 Thread 'Annet' via web2py-users
', 'user', args='reset_password')+'?key=%(key)s to the address bar of your browser. Use the form to set a new password' auth.messages.reset_password_subject = 'Password reset: ' Kind regards, Annet Op woensdag 2 december 2020 om 17:17:56 UTC+1 schreef lbjc...@gmail.com: > I recently successfu

[web2py] Re: In case of form.errors browse for image again

2020-11-11 Thread 'Annet' via web2py-users
Unable to handle upload Version web2py™ Version 2.20.4-stable+timestamp.2020.05.03.05.18.50 Traceback The upload field is in sub.update_record(**db.prm_generic._filter_fields(form.vars)) Why doesn't web2py handle this properly? KInd regards, Annet Op woensdag 11 november 2020 om 17:04:00 UTC

[web2py] In case of form.errors browse for image again

2020-11-11 Thread 'Annet' via web2py-users
again, every time one of the other fields doesn't validate. I haven't noticed this behaviour in version 2.14 of web2py, I am experiencing this behaviour in web2py 2.20. I hope there's an easy fix, for this is very annoying. Kind regards, Annet -- Resources: - http://web2py.com - http

[web2py] Re: Upload images to folder outside web2py

2020-11-09 Thread 'Annet' via web2py-users
the respective model files to response.models_to_run So, Gael's post indirectly helped me solve the issue. Kind regards, Annet Op zaterdag 7 november 2020 om 23:45:08 UTC+1 schreef snide...@gmail.com: > > > On Monday, November 2, 2020 at 7:35:45 AM UTC-8, Annet wrote: >> >

[web2py] Re: Upload images to folder outside web2py

2020-11-02 Thread 'Annet' via web2py-users
I forgot to say, uploading an image works, if the folder isn't there it is being created, otherwise the image is uploaded to the folder. Best, Annet Op maandag 2 november 2020 om 16:17:48 UTC+1 schreef Annet: > > To upload images to separate folders outside web2py I set the upload &g

[web2py] Upload images to folder outside web2py

2020-11-02 Thread 'Annet' via web2py-users
in the folder. I hope someone knows how to solve this issue. Kind regards, Annet -- 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

[web2py] Re: Opalstack for ex-webfaction users or people looking for a Web2Py Web Hosting (Tutorial for Python 3 or 2.7)

2020-10-20 Thread 'Annet' via web2py-users
Hi, Jose, is right, I had the same problem: I did not go to my app directory prior to activating the virtualenv. No need to switch databases. Personally I prefer Opalstack's control panel over Webfaction's control panel. It's simpler and more powerful. Best, Annet Op dinsdag 20 oktober 2020

[web2py] Re: routes.py and root_static

2020-10-19 Thread 'Annet' via web2py-users
Hi Jose, Thanks for your reply. One more thing. I've got routes.py in web2py's root folder, as you can see I've got three applications, do I place the robots.txt file in all three application's static folder? Kind regards, Annet Op vrijdag 16 oktober 2020 om 12:39:18 UTC+2 schreef Jose C

[web2py] routes.py and root_static

2020-10-14 Thread 'Annet' via web2py-users
into the /applications/init/static/ Kind regards, Annet -- 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

[web2py] Share sessions

2020-10-13 Thread 'Annet' via web2py-users
ific order to place them in. Kind regards, Annet -- 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

[web2py] Re: web2py hosting

2020-10-13 Thread 'Annet' via web2py-users
Hi Jose, You're right no regrets at all. Just like you I very much appreciate their willingness to help you solve the problems you run into when deploying your applications. Annet Op dinsdag 13 oktober 2020 om 08:51:21 UTC+2 schreef Jose C: > Hi Annet, > > Just FYI, I'm going on

[web2py] Re: web2py hosting

2020-10-10 Thread 'Annet' via web2py-users
. Last week I signed up with Opalstack, https://www.opalstack.com/ and I am glad I did, great support and a simple but powerful control panel. One of the former WF support people wrote a web2py install script which got me up and running in no time. Hope this was helpful, Annet V. Op vrijdag

[web2py] Re: How to automatically reset or hide drop down menus in navbar

2020-10-01 Thread 'Annet' via web2py-users
ry(window).resize(hoverMenu); // on resize event jQuery('ul.nav li.dropdown a').click(function(){window.location=jQuery(this).attr('href');}); }); I think this adds the support you're looking for. Annet Op donderdag 1 oktober 2020 om 07:42:22 UTC+2 schreef Octavio: > I'd like to make

[web2py] Re: Setting a default value for a reference field

2020-09-19 Thread 'Annet' via web2py-users
= '*Whats your place of operations?'* do what you want? Annet Op vrijdag 18 september 2020 om 12:41:11 UTC+2 schreef mostwanted: > > Is there a way to create a placeholder for a reference field? > e.g: > {{ > *Field('place', 'reference locations', label=SPAN('Place of operations'),

[web2py] Re: formatting a field in SQLTABLE

2020-08-24 Thread 'Annet' via web2py-users
Maybe use the represent attribute in the field constructor db.table.field.represent = lambda val, row: function()) and use: locale.format('%10.2f', val, grouping=True) Best, Annet Op maandag 24 augustus 2020 om 07:43:15 UTC+2 schreef Vlad: > I've got the rows to be displayed in a ta

[web2py] Re: Nested menu item

2020-08-18 Thread 'Annet' via web2py-users
this issue? Kind regards, Annet Op vrijdag 17 juli 2020 om 16:33:16 UTC+2 schreef Vlad: > Missing something basic, but seems to me that the following code should > result in nested menu: > > response.menu = [['One', False, 'link1', > [ > [

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

2020-08-17 Thread 'Annet' via web2py-users
annoying. Annet Op zondag 16 augustus 2020 om 12:09:28 UTC+2 schreef Vlad: > same error, though with a lot more than 3 lines > > On Wednesday, June 24, 2020 at 5:36:36 AM UTC-5 serge.bo...@gmail.com > wrote: > >> >> I have an issue saving my modues with

[web2py] Re: What happened to OptionsWidget

2020-08-13 Thread 'Annet' via web2py-users
Hi, Thanks for your reply. I didn't alter anything in the code, however, I moved the widget to another module, in which I forgot to import sqlhtml.py You reply pointed me in that direction. Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] What happened to OptionsWidget

2020-08-11 Thread 'Annet' via web2py-users
this no longer works. I get an error on; OptionsWidget I guess the OptionsWidget has been replaced, the problem is I cannot figure out by what. I hope one of you knows, Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: How do I prevent going back to previous page after user is logged out?

2020-07-31 Thread 'Annet' via web2py-users
problem use the request object to redirect HTH, Annet -- 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

[web2py] Re: Autocomplete JSON output format.

2020-07-28 Thread 'Annet' via web2py-users
= ["first_option", "second_option", "third_option"] $(function() {$("#dummy_table_name").autocomplete({lookup: suggestions, minChars: 2});}); }); the autocomplete works, however, I need the ajax lookup, I hope you can help me solve this one last issue. Kind re

[web2py] Autocomplete JSON output format.

2020-07-26 Thread 'Annet' via web2py-users
es", "data": "AE" }, { "value": "United Kingdom", "data": "UK" }, { "value": "United States","data": "US" } ] Or this: "suggestions": ["United

[web2py] Re: Having a user belong to 2 groups with different priviledges

2020-06-18 Thread 'Annet' via web2py-users
auth.has_membesrhip(Region2) and auth.has_membesrhip(HR) task ... Maybe this points you in the direction of a solution Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues

[web2py] Re: invalid literal for long() with base 10: when linking 2 tables

2020-06-14 Thread 'Annet' via web2py-users
, 'store_registration.contact_number', '%(contact_number)s') and then write your own ON UPDATE CACADE functions Kind regards, Annet -- 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

[web2py] Re: Bootstrap 4 and MENU helper problem

2020-06-11 Thread 'Annet' via web2py-users
Hi Val, Thanks for your reply. I'll do as you suggest. Kind regards, Annet -- 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

[web2py] datatable_list = request.controller in ['network', 'calendar'] True or False

2020-06-02 Thread 'Annet' via web2py-users
and python 3.7 this no longer works, does anyone know what the alternative syntax is? Kind regards, Annet -- 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

[web2py] Re: Bootstrap 4 and MENU helper problem

2020-06-02 Thread 'Annet' via web2py-users
> > > > > The issue left is the bit in red, I haven't been able to figure out how to add the class to the A element. Furthermore I don't understand why web2py reverses the order of the bit in orange, no matter the order in which I write the code, I always get

[web2py] Bootstrap 4 and MENU helper problem

2020-05-29 Thread 'Annet' via web2py-users
(response.menu, _class='nav navbar-nav', ul_class='dropdown-menu', li_class='dropdown')}} Kind regards, Annet -- 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

[web2py] Re: __pycache__

2020-05-24 Thread 'Annet' via web2py-users
Hi Jose, Thanks for your reply, the link to the discussion on stackoverflow was very helpful. Kind regards, Annet -- 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

[web2py] Re: CSS URL Helper

2020-05-24 Thread 'Annet' via web2py-users
When you store the css code in a view e.g. css.html and include it in a view you can do: background-image: url('{{=URL('static','images/headerback.jpg')}}'); An other option is the following: Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: LOAD in web2py 2.14 and 2.19.1

2020-05-20 Thread 'Annet' via web2py-users
Hi Jim, Thanks for your reply. I did what you advised me to do. It's not a python 3.7 issue. I think it has something to do with modules not being reloaded after they have been edited. 404 NOT FOUND wasn't pointing in that direction. Kind regards, Annet -- Resources: - http://web2py.com

[web2py] 2.19.1 cm-s-twilight

2020-05-19 Thread 'Annet' via web2py-users
I wonder whether it is possible to change the editor's background colour and colour from cm-s-twilight to a light background colour. The dark background doesn't work well under certain light conditions in the room I'm working in. Kind regards, Annet -- Resources: - http://web2py.com - http

[web2py] Re: Displaying images with their title in a for statement in an image slideshow

2020-05-19 Thread 'Annet' via web2py-users
Have a look at the html of the Bootstrap 4.5 carousel https://getbootstrap.com/docs/4.5/components/carousel/ maybe that points you in the right direction. Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] LOAD in web2py 2.14 and 2.19.1

2020-05-18 Thread 'Annet' via web2py-users
'content/hero'}} This used to work well, in web2py 2.19 .1 it results in a 404 NOT FOUND error 404 NOT FOUND Any ideas why this no longer works? Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] __pycache__

2020-05-13 Thread 'Annet' via web2py-users
application. Kind regards, Annet -- 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] Re: two web2py servers and sessions in redis

2020-05-08 Thread 'Annet' via web2py-users
I had a similar problem, Anthony explained to me that I should share the session cookie among all subdomains under the main domain: response.cookies['session_id_A']['domain'] = '.example.com' I hope this points you in the right direction to solve the issue. Annet -- Resources: - http

[web2py] Re: Autocomplete widget filter values

2020-05-05 Thread 'Annet' via web2py-users
or Filter to call name_autocomplete() in the jquery controller. Kind regards, Annet -- 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

[web2py] Menu no longer renders {{=MENU(response.menu)}}

2020-04-30 Thread 'Annet' via web2py-users
onger render? Kind regards, Annet -- 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] Re: Server error when accessing admin

2020-04-30 Thread 'Annet' via web2py-users
Hi Ian, I do have a copy of the script, it's a bit old, but I'll attach it anyway, maybe it's of help. Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: Server error when accessing admin

2020-04-30 Thread 'Annet' via web2py-users
, e.g. http://domain.com/ For the administrative interface to work, the web2py app must be mounted to and accessed through an HTTPS-enabled site. You would usually mount the app to two websites - HTTPS-disabled one for normal access, and HTTPS-enabled one for admin logins Kind regards, Annet

[web2py] Re: How to customize "Invalid function/someview" ?

2020-04-30 Thread 'Annet' via web2py-users
I think routes_onerror = [] in routes.py is whar you're looking for: routes_onerror = [ ,(r'*/404', r'/handler/default/on_404_error') ,(r'*/*', r'/handler/default/onerror') ] Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Re: Mac Catalina 10.15.4 - Cannot run web2py binary

2020-04-21 Thread 'Annet' via web2py-users
them. Kind regards Annet -- 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 "w

[web2py] Re: Mac Catalina 10.15.4 - Cannot run web2py binary

2020-04-21 Thread 'Annet' via web2py-users
I switched to web2py source code long ago, after buying a new mac mini with Mac OS X Catalina I decided to switch to homebrew en pyenv, there are some caveats but if you've sorted these out, it all works well. Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-19 Thread 'Annet' via web2py-users
Using cached psycopg2-2.8.4.tar.gz (377 kB) Installing collected packages: psycopg2 Running setup.py install for psycopg2 ... done Successfully installed psycopg2-2.8.4 Annets-Mini:~ me$ Your using Linux but maybe this information points you in the right direction. Kind regards,

[web2py] {{block head}}{{end}}

2020-04-18 Thread 'Annet' via web2py-users
What is the use of: {{block head}}{{end}} {{block page_js}}{{end page_js}} In layout.html I expected something like this: {{block head}} all head elements here {{end}} But I obviously didn't get it :-( Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] auth.settings.extra_fields and on_define

2020-04-11 Thread 'Annet' via web2py-users
Is it possible to add the keyword argument on_define to auth.settings.extra_fields['auth_user'] Kind regards, Annet -- 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

[web2py] Re: web2py 2.19.1 is OUT

2020-04-10 Thread 'Annet' via web2py-users
this error? Kind regards, Annet -- 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] on_define and IS_IN_DB()

2020-04-10 Thread 'Annet' via web2py-users
. This is the situation saved by on_define. Does this mean that I should put IS_IN_DB() in the on_define keyword argument? on_define = lambda table: [table.vertex_id.set_attributes(requires=IS_IN_DB(db, 'vtx_vertex.id', '%(id)s')] Kind regards, Annet -- Resources: - http://web2py.com - http

[web2py] configuration.take() or configuration.get() and pool_size = 0 error

2020-04-08 Thread 'Annet' via web2py-users
something to do with code in the admin app, since that's where the tickets are stored. I have not been able to locate the code, but it has to do with a < operator comparing a str and int. Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - h

[web2py] Rocket error

2020-03-18 Thread 'Annet' via web2py-users
" to client but received socket error Is there a fix for this issue? Kind regards, Annet -- 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

[web2py] BUG response.cookies and sessions2trash.py

2020-02-27 Thread 'Annet' via web2py-users
ne can help me solve the issue. Kind regards, Annet -- 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

[web2py] Re: Setting a default reference value as that of a specific group the logging in user is a member of

2020-02-25 Thread 'Annet' via web2py-users
for the drop-down. I hope this points you in the right direction to solve your problem Kind regards, Annet -- 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

[web2py] Mail in separate application

2020-02-19 Thread 'Annet' via web2py-users
if 'auth' in globals() and auth.is_logged_in(): At the moment all apps have the following setting: mail = auth.settings.mailer Is it possible to only have this code in the controlpanel application and have the other apps check; if 'mail' in globals(): and then use 'mail' to send mail? Kind regards, Annet -

Re: [web2py] Raspberry pi cannot connect to postgreSQL

2020-02-06 Thread 'Annet' via web2py-users
Thank you both for your replies. @Massimiliano Are you sure the user is *posgres* and not *postgres*? :-D > I've checked the connection string over and over again and just did not spot the missing 't' Thank you so much for your help! Best, Annet -- Resources: - http://web2py.com - h

[web2py] Raspberry pi cannot connect to postgreSQL

2020-02-06 Thread 'Annet' via web2py-users
onalError: FATAL: password authentication failed for user "posgres" FATAL: password authentication failed for user "posgres" This is the connection string: uri = postgres://posgres:password@localhost:5432/database_name Kind regards, Annet -- Resources: - http:

[web2py] raspberry pi starting browser xdg-open issue and error ticket postgreSQL

2020-02-06 Thread 'Annet' via web2py-users
ot;, line 1282, in __init__ raise self.error ProgrammingError: ('FATAL', '28P01', 'password authentication failed for user "posgres"') I hope you can help me solve the issues Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gith

[web2py] No driver of supported ones ('psycopg2',) is available

2020-01-20 Thread 'Annet' via web2py-users
RuntimeError: No driver of supported ones ('psycopg2',) is available I have psycopg2 installed in the python directory /Library/Python/2.7/site-packages/ that is not where web2py expects it to be, is there a way to solve this issue? Kind regards, Annet -- Resources: - http://web2py.c

[web2py] Database drivers available does not show psycopg2

2019-12-20 Thread 'Annet' via web2py-users
On Mac OS X Catalina with psycopg2 installed in the /Python/2.7/site-packages web2py does not find the psycopg2 driver: Database drivers available: sqlite3, imaplib, pyodbc, pymysql, pg8000 It did on lower versions of Mac OS X, is there a way to solve this issue? Best, Annet -- Resources

[web2py] Re: Is it possible to load older web2py binaries for Mac?

2019-12-19 Thread 'Annet' via web2py-users
Hi Jarrod, I also have an issue after upgrading to Mac OS X Catalina see this post for Massimo's answer: https://groups.google.com/forum/?fromgroups=#!topic/web2py/431xgrgLkn0 Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Re: Illegal instruction 4

2019-12-06 Thread 'Annet' via web2py-users
Hi Leonel, Thanks for your reply. I am already running Web2py from source and I am using PostgreSQL 12. Seems like more people are having the same problem both on Windows and Mac. so far I haven't read a plausible solution. Kind regards, Annet -- Resources: - http://web2py.com - http

[web2py] Illegal instruction 4

2019-12-05 Thread 'Annet' via web2py-users
browser... Illegal instruction: 4 It is nearly impossible to work with Web2py, when I start the server, after a few minutes Python quits with the Illegal Instruction 4 error. Is there a way to fix this issue? Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Validator IS_NOT_IN_DB not working | web2py

2019-10-18 Thread 'Annet' via web2py-users
What about form = SQLFORM() if form.process(...).accepted instead of form = SQLFORM().process() if form.accepted: Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] Re: auth_membership grid with both, group id and group roles displayed when adding a new record

2019-10-08 Thread 'Annet' via web2py-users
? Best Annet -- 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&q

[web2py] Re: auth_membership grid with both, group id and group roles displayed when adding a new record

2019-10-07 Thread 'Annet' via web2py-users
Use IS_IN_DB() ids = [1,3,5] > db.auth_membership.group_id.requires = IS_IN_DB(db(db.auth_group.id.belongs(ids)), 'auth_group.id', '%(role)s') Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - ht

[web2py] Re: Can't connect to MySQL

2019-09-10 Thread 'Annet' via web2py-users
According to the book the connection string for MySql is: mysql://username:password@localhost/test?set_encoding=utf8mb4 Maybe adding the TCP port solves the issue: mysql://username:password@localhost:13306/test?set_encoding=utf8mb4 Kind regards, Annet -- Resources: - http://web2py.com

[web2py] Re: Custom form errors style

2019-08-23 Thread 'Annet' via web2py-users
To diasble it: if form.accepts(..., hideerror=False): to restyle it, restyle: .error Kind regards, Annet -- 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

[web2py] Re: How to stopped redirection to user/login.html

2019-08-21 Thread 'Annet' via web2py-users
What about: auth.settings.on_failed_authentication = lambda url: redirect(url) That is what the book says changing the default behaviour. Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Re: web3py -> py4web

2019-08-21 Thread 'Annet' via web2py-users
^ SyntaxError: invalid syntax I starting py4web py4web-start apps fails with the following error: FileNotFoundError: [Errno 2] No such file or directory: '/Users/me/py4web/apps/__init__.py' How do I resolve these issues? Kind regards, Annet -- Resources: - http://web2py.co

[web2py] default/user/profile 404 NOT FOUND

2019-07-04 Thread 'Annet' via web2py-users
All of a sudden this link http://127.0.0.1:8000/controlpanel/default/user/profile no longer works, instead of returning the form it returns a 404 NOT FOUND. I didn't change anything in the user function, so I have no idea why this happens. Kind regards, Annet -- Resources: - http

[web2py] Re: sqlform grid to show a field entirely, without cutting off the text

2019-06-18 Thread 'Annet' via web2py-users
I think Anthony answered this question in this post: https://groups.google.com/forum/?fromgroups=#!topic/web2py/okMVqyQPKV8 hope he did ;-) Regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Re: intercepting login & logout events

2019-06-18 Thread 'Annet' via web2py-users
= session.forced_logged_out_message else: auth.messages.logged_out = session.messages_logged_out return None Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

Re: [web2py] Re: setting up pscycopg2

2019-06-13 Thread 'Annet' via web2py-users
folder pip resides. I am glad you solved the issue. Kind regards, Annet. -- 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 becau

Re: [web2py] Re: setting up pscycopg2

2019-06-12 Thread 'Annet' via web2py-users
Web2py will always use psycopg2 instead of pg8000 if psycopg2 is installed. I hope this helps you solve the issue. Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] Don't allow textarea to contain html tags

2019-04-23 Thread 'Annet' via web2py-users
it does not contain any html tag or to strip the textarea of any html tags. Kind regards, Annet -- 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

[web2py] Re: CSS button alignment

2019-04-06 Thread 'Annet' via web2py-users
I think Bootstrap's float-right and float-left will solve this issue. https://getbootstrap.com/docs/4.1/utilities/float/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: session.connect()

2019-03-28 Thread 'Annet' via web2py-users
idea what causes the difference in behaviour. I hope you do. Kind regards, Annet -- 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 mes

[web2py] session.connect()

2019-03-27 Thread 'Annet' via web2py-users
e the fact that a user is logged in with the init application, on localhost it works however, in production where init and cms have their own subdomain it does not work. Are there additional setting to get this to work in production? Kind regards, Annet -- Resources: - http://web2py.com - http://

[web2py] IS_IN_SET instead of IS_IN_DB

2019-03-21 Thread 'Annet' via web2py-users
+ ' - ' + r.ntw_edge_label_set.myLabel)) for r in rows], multiple=(0, 6), zero='Select a value')) This works but in my opinion this is rather ugly: '%s' %str(r.vtx_vertex.name + ' - ' + r.ntw_edge_label_set.myLabel)) for r in rows Is there a way to improve this code? Kind regards, Annet. -- Resources: - http

[web2py] auth.settings user_url

2019-02-26 Thread 'Annet' via web2py-users
() and set auth.settings.login_url = URL('controlpanel', 'default', 'user', args='login') I removed def user(): from the init application. Is there a setting to not just set the login_url but to set all urls, something like: auth.settings.user_url = URL('controlpanel', 'default', 'user') Kind regar

[web2py] Re: Issue between 2.14.5 and 2.17.2

2018-10-26 Thread 'Annet' via web2py-users
rlos said I had add the import os statement to my own model file. This was not the case in web2py version 2.14.5 (I checked all my model files), so I guess something must have changed between 2.14.5 and 2.17.2. Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] Issue between 2.14.5 and 2.17.2

2018-10-25 Thread 'Annet' via web2py-users
on.back_end_vertexID)), NameError: name 'os' is not defined What has changed between these versions that's causing this error? As far as I can see 0_imports .py still imports os Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gith

[web2py] Re: Autocomplete widget match middle of word

2018-09-17 Thread 'Annet' via web2py-users
Hi Anders, In the query use .contains() Something lijke: rows = db(db.table.field.contains(request.get_vars.term, case_sensitive=False)).select().as_list() Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Re: response menu

2018-07-22 Thread 'Annet' via web2py-users
Hi Stavros, I think this'll solve your problem: {{=MENU(response.menu, _class='web2py-menu', li_class='dropdown', ul_class='dropdown-menu')}} Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] grouping and counting

2018-05-24 Thread 'Annet' via web2py-users
viewtype 2 x views of whichy thing usersz none thing users etc. This is the join: join = db.auth_user.on(db.app_settings.vertexID==db.auth_user.vertexID) Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Re: raise HTTP(503, "")

2018-05-17 Thread 'Annet' via web2py-users
Hi Stifan, Thanks for your helpful reply. Anthony's solution solves the issue. Best, Annet -- 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

[web2py] raise HTTP(503, "")

2018-05-15 Thread 'Annet' via web2py-users
I have the following line of code in 00_db.py raise HTTP(503, "Maintenance") Is it possible to replace the code between "" with a view name, as in response.view = '503_handler.html' Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (D

[web2py] Re: join and count()

2018-04-14 Thread 'Annet' via web2py-users
NGID)) rowset = db((db.vtx_label.label.belongs(labels)) & (db.vtx_label.vertexID!=vertexID)) label_count = db.vtx_label.id.count() count = rowset.select(label_count, join=join).first()[label_count] rows = rowset.select(join=join) Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentati

[web2py] join and count()

2018-04-13 Thread 'Annet' via web2py-users
.belongs(labels)) & (db.vtx_label.vertexID!=vertexID) & (db.vtx_label.vertexID==db.vtx_vertex.id) & (db.vtx_vertex.typeID==IOTHINGID)) count = rowset.count() rows = rowset.select() I'd like to keep the join separate from the where clause. Best, Annet -

[web2py] Re: LOAD an routes_onerror

2018-03-16 Thread 'Annet' via web2py-users
ide = True) Kind regards, Annet -- 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 Gro

[web2py] LOAD an routes_onerror

2018-03-06 Thread 'Annet' via web2py-users
results in the menu in the header displaying multiple dropdown carets and the menu items not being clickable anymore. What is the best way to solve this issue? Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

Re: [web2py] _href to URL()

2018-02-26 Thread 'Annet' via web2py-users
Hi Anthony, Thanks for your reply and explanation, I changed my code to the code you provided. Kind regards, Annet -- 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

  1   2   3   4   5   6   7   8   9   10   >