there was a problem loading my static files in the designer

I would push it but our project uses git here is a patch.
/*******************************************************
fix web2py bug when static path matches

ex:
filepath =/test/dojox
path = /test/dojo

passes '/'.join(file_path).startswith('/'.join(path))
invalid index exception thrown by path.append(file_path[len(path)])
len(path):2
len(filepath):

*******************************************************/




diff --git a/src/applications/admin/views/default/design.html b/src/
applications/admin/views/default/design.html
index f50093e..afbc996 100644
--- a/src/applications/admin/views/default/design.html
+++ b/src/applications/admin/views/default/design.html
@@ -203,8 +203,8 @@ for c in controllers: controller_functions
+=[c[:-3]+'/%s.html'%x for x in functi
       items=file.split('/')
       file_path=items[:-1]
       filename=items[-1]
-      while path!=file_path:
-          if '/'.join(file_path).startswith('/'.join(path)):
+      while path!=file_path:
+          if len(file_path)>= len(path) and all([ v==file_path[k] for
k,v in enumerate(path)]):
               path.append(file_path[len(path)])
               thispath='static__'+'__'.join(path)
     }}





On Nov 12, 9:22 am, mdipierro <[email protected]> wrote:
> Please give it a try and report any bug.
>
> 1.89.1
> - new admin layout (thanks Branko Vukelic)
> - new admin search
> - new admin language selector (thanks Yair)
> - new Welcome app (thanks Martin Mulone)
> - beter wizard
> - admin support for DEMO_MODE=True
> - admin exposes GAE deployment button (always)
> - MENU support None links (thanks Michael Wolfe)
> - web2py.py -J for running cron (thanks Jonathan Lundell)
> - fixed ~db.table.id on GAE (thanks MicLee)
> - service.jsonrpc supports service.JsonRpcException (thanks Matt)
> - many small bug fixes.

Reply via email to