Changeset 2911

Show
Ignore:
Timestamp:
04/22/07 06:47:00 (2 years ago)
Author:
alberto
Message:

TW: fixed static dir registartion in mods.tg when TG apps are not mounted at root

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • projects/ToscaWidgets/trunk/CHANGELOG.txt

    r2908 r2911  
    440.1a2 (unrelased): 
    55------------------ 
     6* TG apps can now be mounted at different paths than / and TW's static resources 
     7  will be served properly. Thanks to Noah Gift for reporting the problem. 
    68* Removed DeprecationWarnings thrown by latest RuleDispatch. Patch from  
    79  Florent Aide. 
  • projects/ToscaWidgets/trunk/toscawidgets/mods/tg.py

    r2872 r2911  
    3535 
    3636            from  toscawidgets.resources import registered_directories 
    37             for webpath, dir in registered_directories.get_all(PREFIX): 
     37            for webpath, dir in registered_directories.get_all(): 
     38                webpath = self.__class__.url(webpath) 
    3839                log.info("Registering static directory %r at %r", dir, webpath) 
    3940                self._register_static_directory(webpath, dir)