Re: "target" directive not working on images
Dany Nativel <[email protected]> Mon, 14 Feb 2005 00:47:21 +0100
| Newsgroups | gmane.comp.python.pyds.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Georg,
Reading your email again I can confirm that I did install the docutils
that shipped with PyDS (binary installer for windows). Maybe this
feature was not available in this release. So I guess my best bet is to
go back and reinstall the exact same version that matches PyDS.
Thanks again
Dany
Dany Nativel wrote:
> I grabbed the latest Docutils 0.3.7 and installed it (python setup.py
> install)
>
> When I restarted PyDS I can no longer see my posts ... I get the
> following if I try to view a post :
> Exception exceptions.AttributeError: HTMLFragmentWriter instance has
> no attribute 'visitor'
> C:\dn_apps\Python23\Lib\site-packages\PyDS\Tool.py 522
> renderTextWithTraceback html = apply(self.renderText, [tmpl,
> structured], kw)
> C:\dn_apps\Python23\Lib\site-packages\PyDS\Tool.py 550
> renderText homeTool=kw.get('homeTool')
> C:\dn_apps\Python23\Lib\site-packages\PyDS\StructuredText.py 189
> renderText settings_overrides={
> C:\dn_apps\Python23\lib\site-packages\docutils\core.py 371
> publish_string enable_exit_status=enable_exit_status)
> C:\dn_apps\Python23\lib\site-packages\docutils\core.py 513
> publish_programmatically output =
> pub.publish(enable_exit_status=enable_exit_status)
> C:\dn_apps\Python23\lib\site-packages\docutils\core.py 197
> publish self.writer.assemble_parts()
> C:\dn_apps\Python23\lib\site-packages\docutils\writers\html4css1.py
> 115 assemble_parts self.parts[part] =
> ''.join(getattr(self.visitor, part))
>
> I tried to rerender everthing but it didn't help. Anything I should
> have done after reinstalling docutils ?
>
> Thanks
> Dany
>
>
>
> Georg Bauer wrote:
>
>> Hi!
>>
>> Dany Nativel wrote:
>> | Looking at the reST documentation I tried to use the "target"
>> directive
>> | without success. This is what I get :
>> |
>> | System Message: ERROR/3 (<string>, line 10)
>> |
>> | Error in "image" directive: unknown option: "target".
>> |
>> | .. image:: http://natzo.com/hardware/boom01.jpg
>> | :height: 150
>> | :target: http://natzo.com/hardware/boom01.jpg
>> | :align: center
>> |
>> | Is this a normal behavior ? How can I have a clickable image under
>> PyDS ?
>>
>> Weird. It should work if the docutils version is for the version of
>> docutils you use in PyDS - have you made sure that those two are the
>> same? There has been some development with docutils and PyDS might not
>> use the newest version (I know that I don't distribute the newest
>> versions with my debian packages and with the installation
>> instructions).
>>
>> bye, Georg
>
>
>
> _______________________________________________
> Pyds-users mailing list
> Pyds-users-iYtK5bfT9M//Ad8WF/[email protected]
> http://www.westfalen.de/cgi-bin/mailman/listinfo/pyds-users
>
>
>
> _______________________________________________
> Pyds-users mailing list
> Pyds-users-iYtK5bfT9M//Ad8WF/[email protected]
> http://www.westfalen.de/cgi-bin/mailman/listinfo/pyds-users