veeara282 / instant-press

Open source CMS for the Web2Py framework
GNU General Public License v2.0
4 stars 4 forks source link

Got error ticket tryng to "edit" instant press #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install beta5 in web2py 1.89.1 (maverick Python 2.6.6)
2. Trying to access instant-press "edit" in "installed applications" page
3. Got an error ticket:
Traceback (most recent call last):
  File "..../web2py/gluon/restricted.py", line 188, in restricted
    exec ccode in environment
  File "...../web2py/applications/admin/views/default/design.html", line 290, in <module>
    </div>
IndexError: list index out of range
4.There's no error ticket in instant press. 

Please provide any additional information below.

Original issue reported on code.google.com by woi...@gmail.com on 14 Nov 2010 at 11:29

GoogleCodeExporter commented 9 years ago
I don't see a problem related to instant press. But I'll try it with the last 
version.

Original comment by mulone.m...@gmail.com on 15 Nov 2010 at 1:34

GoogleCodeExporter commented 9 years ago
well Instant Press is the only appliance that triggers such effect...

Original comment by woi...@gmail.com on 15 Nov 2010 at 5:55

GoogleCodeExporter commented 9 years ago
I think the problem is in the admin code (design.html) Instant Press is not at 
fault, the error is triggered when there are two directories in a subdir of the 
static directory where one is a prefix of the other. In the case of Instant 
Press 'table' and 'tableresize' in the plugins directory of ckeditor (in 
static/js). I have filed this and a solution in the Web2py Google Groups.

Original comment by ndegroot0 on 15 Nov 2010 at 10:14

GoogleCodeExporter commented 9 years ago
Thanks for the swift answer...I've applied your patch and it works, at least 
for i2p:)

Original comment by woi...@gmail.com on 15 Nov 2010 at 11:25

GoogleCodeExporter commented 9 years ago
The patch is no longer needed, a similar patch is included in Web2py now.

Original comment by ndegroot0 on 20 Nov 2010 at 8:30