[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.js:18doFold 
foldcode.js:31(anonymous function) foldcode.js:69(anonymous function) 
VM977:23(anonymous function) jquery.js:2m.extend.globalEval 
jquery.js:2m.fn.extend.domManip jquery.js:3m.fn.extend.append 
jquery.js:3(anonymous function) ajax_editor.js:259j jquery.js:2k.fireWith 
jquery.js:2x jquery.js:4b

nginx webserver

On Wednesday, 11 December 2013 17:17:40 UTC-5, Richard Brown wrote:

 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 
 see the files and their privileges via WinSCP.


 I can edit any other file in my design (views, modules, databases, 
 database admin etc) just not anything in controllers.

 The 'Network' tab in Chrome's JavaScript console (see earlier post) shows 
 the file in red and the Status as 'cancelled'.



-- 
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: 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, 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 is why it has a 'Cancelled' message in the Java 
 console's Network tab; because it timed out?


-- 
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: 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/apache2.conf

 Header always append X-Frame-Options SAMEORIGIN


 On Thursday, December 19, 2013 5:14:03 PM UTC-6, Richard Brown wrote:

 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 is why it has a 'Cancelled' message in the Java 
 console's Network tab; because it timed out?



-- 
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.


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, maybe it could help
http://two-bulls.com/2011/02/to-solve-invalid-method-request-x16x03x01/
Finally, in your error.log line 6-34 there are several sudo messages, check
on google if you can find out more related to the rpi.



 Paolo


2013/12/18 Richard Brown rab1...@gmail.com

 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 I rebooted my RPi and was able to work for a couple of hours
 before I got a 'Communication Error' when trying to revert a file and that
 was it - no more editing.

 Could you recommend any useful tips/links regarding internet security
 please?

 Thanks again,  Richard

  --
 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 a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/fIuUAqdSieQ/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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/groups/opt_out.


[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.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/groups/opt_out.


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 rab1...@gmail.com

 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.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 a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/fIuUAqdSieQ/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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/groups/opt_out.


[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 
is why it has a 'Cancelled' message in the Java console's Network tab; 
because it timed out?

-- 
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/groups/opt_out.


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 your apache fake/malformed messages, see lines 497, 498, 516 and so
on

 Paolo


2013/12/17 Richard Brown rab1...@gmail.com


 Hi Paolo, I've attached the error.log and access.log files from
 /var/log/apache2 as requested. The logs were capture after a couple of
 failed attempts to edit files at about 20:18.The entries at around 19:30
 were to the target site via my smartphone.

 The folder /var/log/wsgi does not exist.

 The AliasMatch parameter is exactly as per the script in the link.

 I am about to reboot the RPi again to see if I can do some actual
 development.

 

 Leonel - I am aware of the concerns regarding db access from multiple
 threads, but my project (Heating Controller) specifically creates and
 modifies events which the Scheduler scans and acts upon so I'm not sure how
 separate databases would work. To avoid blurring the lines I was going to
 start a separate post on this topic once I am able to edit files...
 However, is there a high-level idiot's guide/explanation/diagram anywhere
 for novices like me as to how databases are stored and accessed?

 Richard

 --
 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 a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/fIuUAqdSieQ/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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/groups/opt_out.


[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 I rebooted my RPi and was able to work for a couple of hours 
before I got a 'Communication Error' when trying to revert a file and that 
was it - no more editing.

Could you recommend any useful tips/links regarding internet security 
please?

Thanks again,  Richard

-- 
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/groups/opt_out.
find / -name '*wsgi*'  wsgi.txt

/home/richard/wsgi.txt
/home/www-data/web2py/scripts/setup-web2py-nginx-uwsgi-on-centos.sh
/home/www-data/web2py/scripts/setup-web2py-nginx-uwsgi-centos64.sh
/home/www-data/web2py/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh
/home/www-data/web2py/scripts/setup-web2py-nginx-uwsgi-opensuse.sh
/home/www-data/web2py/scripts/setup-ubuntu-12-04-redmine-unicorn-web2py-uwsgi-nginx.sh
/home/www-data/web2py/handlers/isapiwsgihandler.py
/home/www-data/web2py/isapiwsgihandler.py
/home/www-data/web2py/wsgihandler.py
/var/lib/dpkg/info/libapache2-mod-wsgi.conffiles
/var/lib/dpkg/info/libapache2-mod-wsgi.postinst
/var/lib/dpkg/info/libapache2-mod-wsgi.md5sums
/var/lib/dpkg/info/libapache2-mod-wsgi.list
/var/lib/dpkg/info/libapache2-mod-wsgi.prerm
/var/cache/apt/archives/libapache2-mod-wsgi_3.3-4_armhf.deb
/run/apache2/wsgi.1715.0.1.sock
/etc/apache2/mods-enabled/wsgi.conf
/etc/apache2/mods-enabled/wsgi.load
/etc/apache2/mods-available/wsgi.conf
/etc/apache2/mods-available/wsgi.load
/usr/lib/apache2/modules/mod_wsgi.so-2.7
/usr/lib/apache2/modules/mod_wsgi.so-2.6
/usr/lib/apache2/modules/mod_wsgi.so
/usr/lib/python2.6/wsgiref.egg-info
/usr/lib/python2.6/wsgiref
/usr/lib/python2.6/dist-packages/mercurial/hgweb/wsgicgi.pyc
/usr/lib/python2.6/dist-packages/mercurial/hgweb/wsgicgi.py
/usr/lib/python3.2/wsgiref.egg-info
/usr/lib/python3.2/wsgiref
/usr/lib/python2.7/wsgiref.egg-info
/usr/lib/python2.7/wsgiref
/usr/lib/python2.7/dist-packages/mercurial/hgweb/wsgicgi.pyc
/usr/lib/python2.7/dist-packages/mercurial/hgweb/wsgicgi.py
/usr/share/python/runtime.d/libapache2-mod-wsgi.rtupdate
/usr/share/doc/libapache2-mod-wsgi
/usr/share/doc/mercurial-common/examples/hgweb.wsgi
/usr/share/pyshared/mercurial/hgweb/wsgicgi.py


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 rab1...@gmail.com

 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
 some extent for a while, and then stops. I was then away until Sunday
 evening but it was still working when I tried it then, and so I was
 actually able to do some development work. However tonight when I logged in
 - nothing again. Not a single file at all will open for editing.

 Could this be some sort of timing (or timeout) problem rather than a hard
 'bug'? File loading, when it does work, seems much slower than with the
 previous version. I've supplied some debug info in previous posts, but if
 there is anything else I can look at then please let me know.

  --
 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 a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/fIuUAqdSieQ/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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/groups/opt_out.


[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 have installed. The webserver is Apache. 
I first ran this install a year or so ago and it was all working fine until 
I had some database locking problems when using the Scheduler so I tried to 
upgrade Web2py to see if it fixed it. However I kept getting tickets and 
couldn't work out what was wrong, so I reran the above commands, 
which presumably re-installed everything, and it all sprang into life - but 
with the file editing problem currently under discussion.

The RPi is running Debian, but not the latest version as I didn't want to 
change anything that was working at the time. Maybe I should update now.

Hope this helps, Richard.




On Monday, 9 December 2013 22:04:31 UTC, 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 no longer edit default.py. When I try I get a 'blank' 
 edit screen with the 'Files Toggle', + A -' etc buttons at the top and the 
 'Powered by Web2py' footer - but nothing in between. I can edit my Views, 
 db files and Modules, and I can peek default.py but always this blank 
 screen whenever I try to edit it. It is my longest file at just over 800 
 lines, but it worked fine before I upgraded.

 I have tried both IE and Chrome with the same results. Any ideas?

 Richard


-- 
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/groups/opt_out.


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 rab1...@gmail.com

 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 have installed. The webserver is
 Apache. I first ran this install a year or so ago and it was all working
 fine until I had some database locking problems when using the Scheduler so
 I tried to upgrade Web2py to see if it fixed it. However I kept getting
 tickets and couldn't work out what was wrong, so I reran the above
 commands, which presumably re-installed everything, and it all sprang into
 life - but with the file editing problem currently under discussion.

 The RPi is running Debian, but not the latest version as I didn't want to
 change anything that was working at the time. Maybe I should update now.

 Hope this helps, Richard.




 On Monday, 9 December 2013 22:04:31 UTC, 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 no longer edit default.py. When I try I get a 'blank'
 edit screen with the 'Files Toggle', + A -' etc buttons at the top and the
 'Powered by Web2py' footer - but nothing in between. I can edit my Views,
 db files and Modules, and I can peek default.py but always this blank
 screen whenever I try to edit it. It is my longest file at just over 800
 lines, but it worked fine before I upgraded.

 I have tried both IE and Chrome with the same results. Any ideas?

 Richard

  --
 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 a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/fIuUAqdSieQ/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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/groups/opt_out.


[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/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/groups/opt_out.


[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 
described in one of jc's posts? If this was the problem wouldn't it either 
work or not work consistently?

Could you please explain where to find/how to view the Apache logs.

Thanks, Richard

-- 
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/groups/opt_out.


[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, December 17, 2013 3:08:17 PM UTC+1, Richard Brown wrote:

 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 
 described in one of jc's posts? If this was the problem wouldn't it either 
 work or not work consistently?

 Could you please explain where to find/how to view the Apache logs.

 Thanks, Richard



-- 
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/groups/opt_out.


[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 although I am on 2.8.2 the system is looking for files in 2.7.3.

I have deleted browser cache (and tried a different browser), deleted 
sessions in admin. I'm sure there's a simple fix. Anybody know what it is?

Thanks.


On Friday, 13 December 2013 09:27:04 UTC, Richard Brown wrote:


 Another update... today I cannot open *any* files for Editing- including 
 views - in either Chrome, IE or Torch. And on another PC.

 All files can be opened for viewing.

 I have attached the output from Inspect Element and the Debugger as I load 
 the page.

 Help!






-- 
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/groups/opt_out.


[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't the problem in itself. It's this feature in effect:
http://web2py.com/books/default/chapter/29/04/the-core#Static-asset-management
 
Regards


On Monday, December 16, 2013 5:31:49 PM UTC+1, jc wrote:

 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 although I am on 2.8.2 the system is looking for files in 2.7.3.

 I have deleted browser cache (and tried a different browser), deleted 
 sessions in admin. I'm sure there's a simple fix. Anybody know what it is?

 Thanks.


 On Friday, 13 December 2013 09:27:04 UTC, Richard Brown wrote:


 Another update... today I cannot open *any* files for Editing- including 
 views - in either Chrome, IE or Torch. And on another PC.

 All files can be opened for viewing.

 I have attached the output from Inspect Element and the Debugger as I 
 load the page.

 Help!






-- 
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/groups/opt_out.


[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 have map_hyphen = 'True' in routes.py to allow url's with hyphens. Maybe 
related to that, though it seems odd.
 



 BTW, the number there is only indirectly related to the web2py version, it 
 isn't the problem in itself. It's this feature in effect:
 http://web2py.com/books/default/chapter/29/04/the-core#Static-asset-management
  
 Thank you I was trying to find that in the book. 

I have now set the version explicitly (response.static_version = '2.8.2') 
in applications/admin/0.py (it was set to 2.7.3) and I have commented out 
the map_hyphen = 'True' in my routes.py and I can edit files again.
 


 Regards




-- 
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/groups/opt_out.


[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 
some extent for a while, and then stops. I was then away until Sunday 
evening but it was still working when I tried it then, and so I was 
actually able to do some development work. However tonight when I logged in 
- nothing again. Not a single file at all will open for editing.

Could this be some sort of timing (or timeout) problem rather than a hard 
'bug'? File loading, when it does work, seems much slower than with the 
previous version. I've supplied some debug info in previous posts, but if 
there is anything else I can look at then please let me know.

-- 
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/groups/opt_out.


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


 Another update... today I cannot open *any* files for Editing- including 
 views - in either Chrome, IE or Torch. And on another PC.

 All files can be opened for viewing.

 I have attached the output from Inspect Element and the Debugger as I load 
 the page.

 Help!






-- 
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/groups/opt_out.


[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 on this project in my spare time for almost a year now 
and am close to completion so it is pretty frustrating not to able to 
continue!

Thanks, Richard 

-- 
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/groups/opt_out.


[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 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 on this project in my spare time for almost a year now 
 and am close to completion so it is pretty frustrating not to able to 
 continue!

 Thanks, Richard 


-- 
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/groups/opt_out.


[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 
see the files and their privileges via WinSCP.


I can edit any other file in my design (views, modules, databases, database 
admin etc) just not anything in controllers.

The 'Network' tab in Chrome's JavaScript console (see earlier post) shows 
the file in red and the Status as 'cancelled'.

-- 
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/groups/opt_out.


[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 version I can no longer edit default.py. When I try I get a 'blank' 
 edit screen with the 'Files Toggle', + A -' etc buttons at the top and the 
 'Powered by Web2py' footer - but nothing in between. I can edit my Views, 
 db files and Modules, and I can peek default.py but always this blank 
 screen whenever I try to edit it. It is my longest file at just over 800 
 lines, but it worked fine before I upgraded.

 I have tried both IE and Chrome with the same results. Any ideas?

 Richard


-- 
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/groups/opt_out.


[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 calls may be crossing paths or something because it's 
not consistent.


-- 
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/groups/opt_out.


[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 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/groups/opt_out.
attachment: Web2py Capture 1.JPG

[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 no longer edit default.py. When I try I get a 'blank' 
 edit screen with the 'Files Toggle', + A -' etc buttons at the top and the 
 'Powered by Web2py' footer - but nothing in between. I can edit my Views, 
 db files and Modules, and I can peek default.py but always this blank 
 screen whenever I try to edit it. It is my longest file at just over 800 
 lines, but it worked fine before I upgraded.

 I have tried both IE and Chrome with the same results. Any ideas?

 Richard


-- 
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/groups/opt_out.