[web2py] Re: Web2py, react, typescript, visual studio code setup

2020-03-13 Thread Larry Weinberg
ack.config.js* > > *- app: './static/reactsrc/index.tsx'* > + app: './static/src/index.tsx' > > среда, 11 марта 2020 г., 18:59:40 UTC+3 пользователь Larry Weinberg > написал: >> >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documenta

[web2py] Web2py, react, typescript, visual studio code setup

2020-03-11 Thread Larry Weinberg
Several people have asked about how to set up web2py to work with React (and Typescript) on the front end. Others have asked how to use an IDE like Visual Studio Code with web2py. I have a setup that I've posted to github that has the basics in place for doing this with a pre-configured Visual

Re: [web2py] Re: web2py_osx on Sierra (OSX 10.12)

2017-01-02 Thread Larry Weinberg
I see this happening too. After allowing the app to run, web2py stops working and the console errors look like this. Is sqlite the problem? error 11:49:43.484984 -0800 mtmd Can't trash .MobileBackups while MTM Snapshot Handler is running! error 11:49:43.599957 -0800

[web2py] Re: Dreamhost Passenger setup not working

2014-12-10 Thread Larry Weinberg
On dreamhost I did the following after enabling passenger: I placed all web2py files in root folder of website (not the public folder) e.g. my.subdomain.com/ I copied handlers/wsgihandler.py to passenger_wsgi.py I edited passenger_wsgi.py: Added: import sys import os INTERP

[web2py] Re: RSVP: Massimo @ Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-09 Thread Larry Weinberg
I hope to make it. On Wednesday, November 5, 2014 11:48:14 PM UTC-8, weheh wrote: Hi Bay Area web2py'ers. Get excited! *Massimo will attend our very own Bay Area* *web2py meetup* to meet, greet and present. Additional talks are planned. Details follow: Date: *Friday, December 5* Time:

[web2py] Re: web2py meetup with Massimo in north Bay Area

2014-10-30 Thread Larry Weinberg
Any Update on finalizing this date? On Tuesday, September 23, 2014 9:04:07 AM UTC-7, weheh wrote: Massimo can not commit to a date yet, but his best guess is December 5. Pencil it into your calendar please: Friday December 5, 6PM to 9PM. Location, Berkeley CA. THIS IS AN ESTIMATE ONLY AND

[web2py] Re: web2py meetup with Massimo in north Bay Area

2014-09-21 Thread Larry Weinberg
I will also try to attend if it's in early December On Monday, September 15, 2014 7:18:48 PM UTC-7, weheh wrote: Target early December. How much interest? Looking for another speaker. Will try to leverage python user's group. Otherwise, I have a nice room on UC Berkeley campus large

[web2py] Problem (and solution) with wsgihandler.py on Passenger Phusion + Apache

2014-05-24 Thread Larry Weinberg
I have experienced and fixed a problem with wsgihandler.py when using the latest Passenger Phusion and Apache. Dreamhost automatically upgraded the Phusion on my server and this immediately broke a couple of my web2py sites. It boiled down to the following line in the web2py-provided

[web2py] Re: SQLFORM.grid, how to edit non-visible field in the onvalidate function?

2014-02-08 Thread Larry Weinberg
will one of these work? form.element('input',_name=field_hidden)['_type'] = hidden form.element('input[name=field_hidden]')['_type'] = hidden -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-11 Thread Larry Weinberg
This is happening periodically for me for the last several releases of web2py. Using apache on centos. Sometimes I reload the editing page and it works. Often the tab for the file will show up with no contents. If I click on the tab, the contents sometimes show up. Seems like some ajax

[web2py] Re: Restful API with HTTPS and authentication

2013-09-16 Thread Larry Weinberg
I'm doing exactly that and not running into troubles. Could it be something about your SSL certificate? If it's not a well trusted certificate sometimes you need to install it on the client side. Does it match the domain name you are calling? I test my server with the following python code and

[web2py] Re: CAS provider and registration

2013-08-29 Thread Larry Weinberg
I can get the register to redirect as I wanted by adding this to the CAS server application's default controller index function: if session.service_arg: redirect(session.service_arg) The only thing missing then is the register button. It should be relatively trivial to add that in.

[web2py] Re: CAS provider and registration

2013-08-28 Thread Larry Weinberg
It look like trunk gives the same results. - I create two new apps up casserve and casclient - In casclient I create auth with this: - auth = Auth(db,cas_provider = 'http://127.0.0.1:8000/casserve/default/user/cas') - I launch casclient/default/index and the login menu only

[web2py] Re: CAS provider and registration

2013-08-27 Thread Larry Weinberg
I'm using 2.5.1 Once I set up the client to use the CAS provider, the registration options go away on the client. -- --- 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

[web2py] Re: CAS provider and registration

2013-08-27 Thread Larry Weinberg
Thanks Massimo. I will try that On Tuesday, August 27, 2013 1:12:47 PM UTC-7, Massimo Di Pierro wrote: I believe this is fixed in trunk. You have to update web2py and the views/default/users.html in your provider app. On Tuesday, 27 August 2013 09:33:45 UTC-5, Larry Weinberg wrote: I'm

[web2py] CAS provider and registration

2013-08-26 Thread Larry Weinberg
I've followed instructions elsewhere and set up a CAS provider application and a client application that uses the CAS service. It looks like the registration options go away from the client app in this flow. Once on the CAS provider login screen, I can navigate to registration choice, but when

[web2py] Re: auth.requires(True,requires_login=False) does not work

2013-08-24 Thread Larry Weinberg
I figured it out. I needed to add arguments to GET(). That's where the problem was coming from because I was sending in a value on the curl command. I think it's working now. Sorry for the noise. -- --- You received this message because you are subscribed to the Google Groups web2py-users

[web2py] auth.requires(True,requires_login=False) does not work

2013-08-23 Thread Larry Weinberg
It seems that the requires_login option for @auth.requires() does not work. Should it? Is there another way to make this work for restful calls? I want to implement a token based REST authentication I get an invalid arguments message. If I use Basic Authentication alone it works fine

[web2py] Redirected https is returning HTML instead of JSON. Direct call works fine.

2012-06-28 Thread Larry Weinberg
I have a function that returns JSON data. It works great when called directly over https (using curl or pycurl). If however I have a redirect somewhere that sends me to my web2py function it returns html instead which requests a redirect from the caller. I would like it to continue to deliver

[web2py] Re: Redirected https is returning HTML instead of JSON. Direct call works fine.

2012-06-28 Thread Larry Weinberg
Sorry. Once again this had nothing to do with web2py. I'll try and be more thorough next time I post. It was the method of redirect that my redirect server was using that was causing the problem. urllib2 and pycurl both failed to handle meta redirect which is supposedly not preferred method

[web2py] Re: Suggestion to add more mod_wsgi info to help new users -- WSGIPassAuthorization for instance

2012-06-28 Thread Larry Weinberg
Great! Thanks Massimo. I'm sure that will save some others some time!

[web2py] Re: Reopening: problems running from subfolder with mod_wsgi

2012-06-27 Thread Larry Weinberg
to works fine so far. On Monday, June 25, 2012 5:40:08 PM UTC-7, Larry Weinberg wrote: This error is always repeatable: The Internal error page always links incorrectly to the ticket. It links back to the top site. admin/default/ticket/up/10.102.67.127.2012-06-25.17-37-36.38cfaa82-a858

[web2py] Suggestion to add more mod_wsgi info to help new users -- WSGIPassAuthorization for instance

2012-06-27 Thread Larry Weinberg
I'm a newbie to apache configuration, so I just spent hours trying to determine why none of the REST-api-with-authentication web2py examples were working for me. All worked fine without authentication. It turns out the apache server with mod_wsgi strips the authorization out by default. A one

[web2py] Re: Suggestion to add more mod_wsgi info to help new users -- WSGIPassAuthorization for instance

2012-06-27 Thread Larry Weinberg
In order to have the web2py examples work out of the box on Apache with mod_wsgi, an extra directive is needed in the Apache configuration for the VirtualHost WSGIPassAuthorization On This allows basic authentication to proceed through. It looks like there are some good reasons why mod_wsgi

[web2py] Reopening: problems running from subfolder with mod_wsgi

2012-06-25 Thread Larry Weinberg
I am again running into occasional problems trying to run the trunk code from a subfolder instead of from a root folder under apache and mod_wsgi. Maybe my problem is compounded because I also have another web2py installed at the root, but it seems that some of the internal web2py functions are

[web2py] Re: Reopening: problems running from subfolder with mod_wsgi

2012-06-25 Thread Larry Weinberg
More info: I restart apache. Log in to admin in the subfolder version. Everything works properly. Log in to admin in the top level version. Visit the admin of the lower level version. Sometimes errors occur. Sometimes not. Sometimes it makes me log in again sometimes not. It appears

[web2py] Re: Reopening: problems running from subfolder with mod_wsgi

2012-06-25 Thread Larry Weinberg
This error is always repeatable: The Internal error page always links incorrectly to the ticket. It links back to the top site. admin/default/ticket/up/10.102.67.127.2012-06-25.17-37-36.38cfaa82-a858-4e7b-9a69-9afc0fb3e7e7 If I visit the errors link normally I can see the error. --

[web2py] Trunk trouble with routed subfolder

2012-06-24 Thread Larry Weinberg
I am working on a centos 5.5 server using apache and mod_wsgi. I have a subdomain set up which has web2py 1.99 installed at the root of the domain. This works great. I have been trying to set up a subfolder to host the trunk version of web2py independently so I can try it. I added to the apache

[web2py] Re: Trunk trouble with routed subfolder

2012-06-24 Thread Larry Weinberg
some more info: If I try to pack up a newly created app on the subfolder version, it fails with a ticket. Internal errorTicket issued: unknownhttps://pgdev.smithmicro.com/admin/default/ticket/unknown If I click on the ticket link, it's linked to unknown in the main web2py install instead of the

[web2py] Re: Trunk trouble with routed subfolder

2012-06-24 Thread Larry Weinberg
Um, I may have solved my own problem. In the https (443) section of the apache conf file I had a mistake: I had AliasMatch ^/trunk([^/]+)/static/(.*) /opt/web-apps/w2p_trunk/web2py/applications/$1/static/$2 instead of AliasMatch ^/trunk/([^/]+)/static/(.*)

[web2py] Editor broken in trunk?

2012-05-20 Thread Larry Weinberg
My previous web2py installation works fine I grabbed the trunk and out of the box the editor is unable to save. I can edit text, but there is no way to save the text now. Also, the menu bar is not visible for it. Is this a known problem or do I have some python installation problem?

[web2py] Re: Editor broken in trunk?

2012-05-20 Thread Larry Weinberg
I cannot save with the button. I tried Safari and Chrome. Both had the problem. On Sunday, May 20, 2012 8:46:42 AM UTC-7, Larry Weinberg wrote: My previous web2py installation works fine I grabbed the trunk and out of the box the editor is unable to save. I can edit text

[web2py] Re: how to set text limitation in a div

2012-05-15 Thread Larry Weinberg
You want style of overflow:hidden I believe.

[web2py] Why does jquery autocomplete not work in subview form after submission?

2012-05-14 Thread Larry Weinberg
I'm not sure if this is web2py question or javascript related issue. In an HTML view I am trying to call a subview with a form in it that has a jquery autocomplete attached to a text field in the form. I attach the autocomplete like this in the form view's document ready function:

[web2py] Re: Why does jquery autocomplete not work in subview form after submission?

2012-05-14 Thread Larry Weinberg
)} })}}); }); On Monday, May 14, 2012 3:19:05 PM UTC-7, Larry Weinberg wrote: OK, here is a minimal sample app that demonstrates the problem. I'm pretty new to web2py so maybe I'm not using the system as I should be. Thank you for taking a look!

[web2py] Re: Admin interface slow when static dir has a lot of files

2012-05-06 Thread Larry Weinberg
Is this being addressed? I am finding the same problem. Other than that, and a couple of other suggestions for having more links to speed up the admin interface workflow I am loving web2py!

[web2py] Admin Interface suggestions

2012-05-06 Thread Larry Weinberg
Once again I am LOVING web2py. It's transformational technology. I do have some admin interface suggestions: 1 - It would be very nice if all views in the admin interface included a single horizontal line near the top that had links back to the last 4 or 5 edited files to make it easier to