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

2014-09-17 Thread Trevor Strauss
I'm having this same problem since upgrading from 2.8.2 to 2.9.9 Error in console when loading a newly created file is... Uncaught TypeError: Cannot read property 'length' of undefined comment-fold.js:24(anonymous function) comment-fold.js:24(anonymous function) foldcode.js:113getRange foldcode

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

2014-04-13 Thread Massimo Di Pierro
Can you submit a patch to the scripts/setup-web2py-* scripts? On Thursday, 10 April 2014 00:26:14 UTC-5, Michael Sounhein wrote: > > Apparently there was a fix discovered here. > https://www.mail-archive.com/web2py@googlegroups.com/msg129910.html > > append the following line to /etc/apache2/apac

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

2014-04-13 Thread Michael Sounhein
Apparently there was a fix discovered here. https://www.mail-archive.com/web2py@googlegroups.com/msg129910.html append the following line to /etc/apache2/apache2.conf Header always append X-Frame-Options SAMEORIGIN On Thursday, December 19, 2013 5:14:03 PM UTC-6, Richard Brown wrote: > > Yes, e

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

2013-12-19 Thread Richard Brown
Yes, everything but editing. If I reboot the RPi it works for a while, then stops. It seems to me like it is a timing or timeout problem. Everything takes noticeably longer since the upgrade, including my application site which takes >15 seconds to load even over my local network. perhaps that

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

2013-12-19 Thread paolo.vall...@gmail.com
No but I am not a master of mod_wsgi. everything works but the editor, right? Paolo 2013/12/19 Richard Brown > Hi Paolo, this is a web site so presumably has to accessible from the > outside? > > We should probably keep this discussion separate and concentrate on the > main issue - is there a

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

2013-12-19 Thread Richard Brown
Hi Paolo, this is a web site so presumably has to accessible from the outside? We should probably keep this discussion separate and concentrate on the main issue - is there anything from my list of files with wsgi references which you need to see the errors? -- Resources: - http://web2py.co

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

2013-12-19 Thread paolo.vall...@gmail.com
there are plenty how-to for improving the security of your network/rpi. I don't know your network configuration, given that I can't tell you what to do. Surely you have apache accessible from 'outside' if this is not intentional I would fix it as the first thing to do. Moreover, I found this, mayb

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

2013-12-18 Thread Richard Brown
Hi Paolo, I think I'm getting a bit out of my depth here... I can't specifically find any wsgi log files, I did a 'find'for filenames containing 'wsgi' and the results are attached, with the command I used for the search at the top of the file. Please tell me what I need to send. Last night

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

2013-12-18 Thread paolo.vall...@gmail.com
You should locate the log of mod_wsgi, please post those as soon you find them, from the apache log everything seems to work well (I see 304 for cached stuff and 200 when you edit file), for example line 720-725. Be aware that, you got a lot of requests from external ip which are sending against yo

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

2013-12-17 Thread Paolo Valleri
logs should be placed in /var/log/apache2/ and /var/log/wsgi can you also check if the string after alias_match in /etc/apache2/sites-available/default matches the one mentioned here: https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-ubuntu.sh#L148 Paolo On Tuesday, Decembe

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

2013-12-17 Thread Richard Brown
Hi Paolo, there are no error messages in the Chrome Console, just a 'cancelled' status against the file to be edited under the Network tab. The details are in my posts on Dec 10 in response to Massimo's question. I will try map_hyphen this evening - is this to be added to 'routes.py' as desc

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

2013-12-17 Thread Leonel Câmara
BTW Richard, the scheduler db locking problems are to be expected if you're using sqlite, what you should do is to use one sqlite database for the scheduler and another for the rest of your app. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2

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

2013-12-17 Thread paolo.vall...@gmail.com
the editor requires several files, I'm just wondering if you get all of them, can you check if there are error in Chrome console? Moreover, please check apache logs, if something is not working there. have you enabled map_hyphen ? Paolo 2013/12/17 Richard Brown > Hi Paolo, as a C programming,

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

2013-12-17 Thread Richard Brown
Hi Paolo, as a C programming, PC-using hardware engineer bumbling around in Linux-land I came across this sequence of commands: wget http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh chmod +x setup-web2py-ubuntu.sh sudo ./setup-web2py-ubuntu.sh So whatever it does that is what I hav

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

2013-12-17 Thread paolo.vall...@gmail.com
Hi Richard, which webserver are you using? Let us know more info about the infrastructure you have build on the rpi Paolo 2013/12/16 Richard Brown > OK, to answer Paolo's question on Friday as to what had changed to make it > not work at all - nothing, only the passage of time. So as an expe

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

2013-12-16 Thread Richard Brown
OK, to answer Paolo's question on Friday as to what had changed to make it not work at all - nothing, only the passage of time. So as an experiment I rebooted my RPi once again and behold it all sprang into life. I have rebooted several times since the Web2py upgrade and each time it works to

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

2013-12-16 Thread jc
On Monday, 16 December 2013 17:06:28 UTC, LightDot wrote: > > Hm. It should be looking for > "/admin/static/_2.7.3/codemirror/lib/codemirror.css", > so _2.7.3 and not -2.7.3. > > > I don't think this dash is a direct typo in the web2py code. A rewrite rule > somewhere, regex gone wrong? > > I

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

2013-12-16 Thread LightDot
Hm. It should be looking for "/admin/static/_2.7.3/codemirror/lib/codemirror.css", so _2.7.3 and not -2.7.3. I don't think this dash is a direct typo in the web2py code. A rewrite rule somewhere, regex gone wrong? BTW, the number there is only indirectly related to the web2py version, it isn

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

2013-12-16 Thread jc
Same problem for me using Chrome and Midori on Linux after upgrading to 2.8.2 However I try to launch the editor I get a blank screen. In the java console I get a load of this type of error: GET http://127.0.0.1:8000/admin/static/-2.7.3/codemirror/lib/codemirror.css 404 (NOT FOUND) So althoug

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

2013-12-13 Thread Paolo Valleri
Please, let us know what you have changed in the last days, if today nothing work and in the early days only default.py. @devs we should try to update response.static_version for each new major release at least. Paolo On Friday, December 13, 2013 10:27:04 AM UTC+1, Richard Brown wrote: > > > An

[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 cal

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

2013-12-11 Thread Leonel Câmara
What happens if you do an "inspect element" on the blank part of the screen? Segunda-feira, 9 de Dezembro de 2013 22:04:31 UTC, Richard Brown escreveu: > > I am running Web2py on a Raspberry Pi and accessing the Admin > Interface via a browser on a Windows 8.1 PC. Since upgrading to the > latest

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

2013-12-11 Thread Richard Brown
Yes, it was working fine until I upgraded Web2py. I can open it to view (peek) and it's all there OK, but if I try to edit I get a blank page. If I create a new file from the Admin Interface in the 'controllers' group it behaves in exactly the same way - and this is created by Web2py. I can also

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

2013-12-11 Thread Niphlod
silly question: have you checked that the file indeed exists and is readable on the raspberry ? (i.e. file permissions are ok) On Wednesday, December 11, 2013 9:00:45 PM UTC+1, Richard Brown wrote: > > A quick update - I tried creating a new file under controllers and that > can't be opened for

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

2013-12-11 Thread Richard Brown
A quick update - I tried creating a new file under controllers and that can't be opened for editing either so it has got nothing to do with file size or content, just any file in the controllers folder. Any additional help or workaround for this would be much appreciated. I have been working o

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

2013-12-10 Thread Richard Brown
> > Sorry, the message image did not display in my last post, I've attached it > as a file. > -- 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 receiv

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

2013-12-10 Thread Richard Brown
Thanks for the reply - there are no errors in the Console tab, just a warning: event.returnValue is deprecated. Please use the standard event.preventDefault() instead. jquery.js:4 ...but this appears for any page within the Administrative Interface. However, if I click the Network tab ther

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

2013-12-09 Thread Massimo Di Pierro
In Chrome, can you check the JavaScript Console? Does it show any error? On Monday, 9 December 2013 16:04:31 UTC-6, Richard Brown wrote: > > I am running Web2py on a Raspberry Pi and accessing the Admin > Interface via a browser on a Windows 8.1 PC. Since upgrading to the > latest version I can