The req object is the parameter received in the call to
'convert_content' on my IContentConverter implementation. It's called
when clicking the new format in the "Download in other formats" link
at the bottom of the wiki page. Shouldn't be already initialized?

If not, I already get the wiki page Resource with:

wikipage = WikiPage(self.env, req.args.get('page', 'WikiStart'))

how do I set this resource to the req object?

I guess this will also fix the problem with the
[[Image(wiki:file.jpg)]] (omitting page name) in the PDF plugin.

Thanks very much!


On Mon, Apr 6, 2009 at 3:04 PM, Christian Boos <[email protected]> wrote:
>> My guess is Trac is trying to display an error, but it fails?
>>
>> Is this a bug I should report, or is there a problem with my plugin?
>>
>> Thanks very much, tell me if you need more info.
>>
>
> The req object has been wrongly initialized, you need to specify a
> resource (here, Resource('wiki', 'PageName')). Otherwise, how would you
> know which page is the one containing the attachment when you're talking
> about attachment:file.txt?
>
> -- Christian
>
> >
>



-- 
Álvaro J. Iradier Muro
Departamento de Desarrollo
[email protected]

Polar Technologies
T +34 976 527 952
F +34 976 466 125
www.polartech.es

Antes de imprimir este mensaje, por favor, compruebe que es verdaderamente
necesario. El medioambiente es cosa de todos.

AVISO LEGAL
Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener
información confidencial, siendo para uso exclusivo del destinatario,
quedando prohibida su divulgación, copia o distribución a terceros sin la
autorización expresa del remitente. Si Vd. ha recibido este mensaje
erróneamente, se ruega lo notifique al remitente y proceda a su borrado.
Gracias por su colaboración.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to