﻿ticket	summary	type	release	owner	status	created	modified	_description	_reporter
11591	Provide a macro to insert page breaks and change page format in exported document	enhancement	1.0	Aurélien Bompard	new	2014-02-20T16:01:44+01:00	2014-02-20T16:01:44+01:00	When one export a document containing larges images,  page breaks must be inserted in the generated document and the page layout must be changed from portrait to landscape and back. It would be useful to have macros to automatize those tasks.	Matthias
6960	Ignore elements for export by marker in xhtml	enhancement	0.11	Aurélien Bompard	new	2010-04-09T13:57:57+02:00	2010-04-11T12:49:24+02:00	"Idea which was firstly described [ticket:6953 there (6953)].

It will be useful that some html elements which marked by special marker are not exported.

For example:
{{{
{{{
#!html
<p>
Hello <span odtexportignore>burn in hell</span>!
</p>
}}}
}}}

In odt file only ""Hello !"" paragraph will be."	entend
11122	problems with DiaVisView Images	enhancement		Aurélien Bompard	new	2013-05-28T16:13:02+02:00	2013-08-07T03:51:40+02:00	"If I export a page with a DiaVisView Macro call the resulting odt document contained just an empty Image container.

I did this hack to make it work:

{{{
--- odtexport.py	2013-03-25 00:56:46.000000000 +0100
+++ odtexport.py	2013-05-28 16:07:53.000000000 +0200
@@ -262,6 +262,9 @@
         # Handle attached images
         html = re.sub('<img [^>]*src=""(%s/raw-attachment/([^/]+)(?:/([^""]*))?)""'
                       % base_url, self.handle_attached_img, html)
+        # Handle DiaVisView images
+        html = re.sub('<img [^>]*src=""(%s/attachment/([^/]+)(?:/([^""]*))?)""'
+                      % base_url, self.handle_attached_img, html)
         # Handle chrome images
         html = re.sub('<img [^>]*src=""(%s/chrome/([^""]+))""'
                       % base_url, self.handle_chrome_img, html)
@@ -278,6 +281,8 @@
         path_segments = path.split(""/"")
         parent_id = '/'.join(path_segments[:-1])
         filename = len(path_segments) > 1 and path_segments[-1]
+	filename = re.sub('\?format=raw','',filename)
+        self.env.log.debug('filename: %s' % filename)
         attachment = Attachment(self.env, realm, parent_id, filename)
         filename = attachment.path
         if not os.path.exists(filename): # fallback
}}}
"	anonymous
8157	Download - gives blank page	defect	0.11	Aurélien Bompard	assigned	2010-11-24T14:11:31+01:00	2013-03-25T01:47:12+01:00	"I managed to install the plugin and I can see the ""download in odt"" link.

However, when I click it, I get a blank page in the browser with the url ending in wiki/Manual?format=odt.

Here is the log for when I click ""download txt"" (minute 06) and odt (minute 07)

{{{
2010-11-24 13:06:56,086 Trac[main] DEBUG: Dispatching <Request ""GET u'/wiki/Manual'"">
2010-11-24 13:06:56,137 Trac[svn_fs] DEBUG: Subversion bindings imported
2010-11-24 13:06:56,141 Trac[session] DEBUG: Retrieving session for ID u'malmeida'
2010-11-24 13:06:56,147 Trac[api] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow']
2010-11-24 13:06:56,149 Trac[chrome] DEBUG: Prepare chrome data for request
2010-11-24 13:07:07,477 Trac[main] DEBUG: Dispatching <Request ""GET u'/wiki/Manual'"">
2010-11-24 13:07:07,482 Trac[session] DEBUG: Retrieving session for ID u'malmeida'
2010-11-24 13:07:07,486 Trac[chrome] DEBUG: Prepare chrome data for request
2010-11-24 13:07:07,489 Trac[odtexport] DEBUG: start function wiki_to_html
2010-11-24 13:07:07,552 Trac[api] DEBUG: Updating wiki page index
2010-11-24 13:07:07,589 Trac[main] DEBUG: Dispatching <Request ""GET u'/wiki/Manual'"">
2010-11-24 13:07:07,595 Trac[session] DEBUG: Retrieving session for ID u'malmeida'
2010-11-24 13:07:07,599 Trac[chrome] DEBUG: Prepare chrome data for request
2010-11-24 13:07:07,603 Trac[odtexport] DEBUG: start function wiki_to_html
2010-11-24 13:07:07,605 Trac[api] DEBUG: Updating wiki page index

}}}


Why isn't it showing a download window like it should?"	Miguel
13443	Export plugin leaves the browser waiting for a reply	defect	1.0	Aurélien Bompard	new	2018-06-15T23:13:54+02:00	2018-06-27T07:04:25+02:00	"I managed to install the plugin properly, and I see the link at the button of wiki pages saying 

Download in other formats: Plain Text | '''OpenDocument'''

When I click in '''OpenDocument''' The browser just keeps waiting for the server reply. This can go on for several minutes (I have not seen stopping after about 10 minutes)

If I monitor the processes in the server, there in nothing really using CPU or memory related to the web server. CPU and memory usage are low and there are no running tasks (all asleep).

If I read the trac logs, I see a log line for the start of the conversion, and then nothing after that:

{{{
2018-06-15 17:05:44,927 Trac[odtexport] DEBUG: start function wiki_to_html
}}}

This happens on Wiki pages with and without attachments (I saw there was a previous bug related to attachments, this is definitely not the case).

"	anonymous
