Commit 84029178 authored by Mayoro Diagne's avatar Mayoro Diagne

use dms_cache_factory instead of dms_cache_long (mistake), PDF form tab id is...

use dms_cache_factory instead of dms_cache_long (mistake), PDF form tab id is view, View tab of PDF form should be over than the form it self to allow good display

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36966 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ef5b2cac
...@@ -69,7 +69,7 @@ def getPropertiesCSSDict(parsed_scribus ...@@ -69,7 +69,7 @@ def getPropertiesCSSDict(parsed_scribus
properties_css_page = {} properties_css_page = {}
properties_css_pagediv = {} properties_css_pagediv = {}
properties_page = {} properties_page = {}
properties_css_page['position'] = 'relative' #properties_css_page['position'] = 'relative'
# creating image class for background # creating image class for background
properties_css_background = {} properties_css_background = {}
# making background id # making background id
...@@ -432,7 +432,7 @@ class PDFTypeInformation(ERP5TypeInformation): ...@@ -432,7 +432,7 @@ class PDFTypeInformation(ERP5TypeInformation):
generateParsedScribus = CachingMethod(generateParsedScribus, generateParsedScribus = CachingMethod(generateParsedScribus,
('PDFTypeInformation_generateParsedScribus', ('PDFTypeInformation_generateParsedScribus',
md5.new(scribus_form.getData()).digest()), md5.new(scribus_form.getData()).digest()),
cache_factory='dms_cache_long') cache_factory='dms_cache_factory')
return generateParsedScribus() return generateParsedScribus()
def getERP5Form(self): def getERP5Form(self):
...@@ -545,7 +545,7 @@ class PDFTypeInformation(ERP5TypeInformation): ...@@ -545,7 +545,7 @@ class PDFTypeInformation(ERP5TypeInformation):
#generateERP5Form = CachingMethod(generateERP5Form, #generateERP5Form = CachingMethod(generateERP5Form,
# ('PDFTypeInformation_generateERP5Form', # ('PDFTypeInformation_generateERP5Form',
# md5.new(self.getDefaultScribusFormValue().getData()).digest()), # md5.new(self.getDefaultScribusFormValue().getData()).digest()),
# cache_factory='dms_cache_long') # cache_factory='dms_cache_factory')
return generateERP5Form().__of__(self) return generateERP5Form().__of__(self)
# XXX criticize ERP5.Document.Image # XXX criticize ERP5.Document.Image
...@@ -708,7 +708,7 @@ class PDFTypeInformation(ERP5TypeInformation): ...@@ -708,7 +708,7 @@ class PDFTypeInformation(ERP5TypeInformation):
else: else:
name = 'Document Procedure Definition' name = 'Document Procedure Definition'
return list(action_list) + [ return list(action_list) + [
CacheableAction(id='form', CacheableAction(id='view',
name=name, name=name,
description='', description='',
category='object_view', category='object_view',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment