Ticket #377 (new defect)

Opened 15 years ago

Last modified 14 years ago

CPSAttachedFileWidget: file preview hangs and useless 'printable version'

Reported by: bdelbosc Owned by: madarche
Priority: P2 Milestone: CPS 3.5.7
Component: CPSSchemas Version: unspecified
Severity: normal Keywords: widgets
Cc:

Description (last modified by fguillaume) (diff)

CPSAttachedFileWidget: file preview hangs and useless 'printable version'

the new preview inside the portail use regexp to render the page that takes minutes of computing to display a simple pdf of 740K

this is not acceptable

we should not processe anything during rendering this should be done during the computing of field xx_html

furthermore by doing this we can remove ugly and useless 'printable version' link

Change History

comment:1 Changed 15 years ago by bdelbosc

  • Priority changed from P1 to P2

ok the pb comes from the CPSDefault.utils regexp html_body_regexp = re.compile('.*<html.*?>.*<body.*?>(.*)</body>.*</html>.*',

Marc-Aurèle replaces it with html_body_regexp = re.compile('<body.*?>(.*)</body>', in CPSDefault > 3.24.3

it is now quiet fast and not anymore a showstopper

still a P2 because of the useless 'printable version' link and we should only save the body of the document

comment:2 Changed 15 years ago by bdelbosc

  • Severity changed from blocker to normal

comment:3 Changed 14 years ago by fguillaume

  • Description modified (diff)
  • Milestone changed from unspecified to CPS 3.5.0
Note: See TracTickets for help on using tickets.