[Nuxeo-tickets] [Nuxeo Repository] #1720: make resource links independant of the context

Nuxeo Repository trac at nuxeo.com
Wed Aug 2 11:31:42 CEST 2006


#1720: make resource links independant of the context
-------------------------------+--------------------------------------------
 Reporter:  ogrisel            |       Owner:  lregebro  
     Type:  defect             |      Status:  new       
 Priority:  P3                 |   Milestone:  CPS 3.4.3 
Component:  CPSSharedCalendar  |     Version:  TRUNK     
 Severity:  major              |    Keywords:  OPTIM PERF
-------------------------------+--------------------------------------------
 Many CalZope / CPSSharedCalendar templates make links to CSS / js files
 dependending on the location of the viewed event / day / week ...

 This makes it impossible for the client to cache these resources correctly
 and multiply the average number of simultaneous requests by 5 to 10 wich
 impact the overall performance of the application a lot.

 The solution is to make them point to ${base_url}++resource++resourcename
 where
 base_url is something like context/portal_url or better
 request/cpsskins_base_url on CPS.

 At least the following templates are affected:

 {{{
 action_needed_events.pt:    tal:content="string:@import
 url(${context/absolute_url}/++resource++calendar.css);"
 attended_events.pt:    tal:content="string:@import
 url(${context/absolute_url}/++resource++calendar.css);"
 attendees.pt:    tal:content="string:@import
 url(${context/absolute_url}/++resource++calendar.css);"
 calendar.pt:    tal:content="string:@import
 url(${context/absolute_url}/++resource++calendar.css);"
 day.pt:    tal:content="string:@import
 url(${context/absolute_url}/++resource++calendar.css);"
 event.pt:      tal:content="string:@import
 url(${context/absolute_url}/++resource++calendar.css);"
 meetinghelper.pt:    tal:content="string:@import
 url(${context/absolute_url}/++resource++calendar.css);"
 month.pt:    tal:content="string:@import
 url(${context/absolute_url}/++resource++calendar.css);"
 organized_events.pt:    tal:content="string:@import
 url(${context/absolute_url}/++resource++calendar.css);"
 week.pt:    tal:content="string:@import
 url(${context/absolute_url}/++resource++calendar.css);"
 }}}

-- 
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1720>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository


More information about the Nuxeo-tickets mailing list

This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.