David Goodger | 1 Mar 06:54 2012

Re: Failed to install in windows

On Tue, Feb 28, 2012 at 23:09, ning zhou <nathon.py <at> gmail.com> wrote:
> All the logs attached, by the latest version.
> I think it should be a computer environment issue. Because same procedure
> works in Ubuntu.

Fixed the buildhtml.py issues.

Fixed the one real test failure, due to the way Windows deals with
absolute paths.

The remainder of the test failures are a result of a bug in Python,
http://bugs.python.org/issue6108, fixed in Python 2.6.5. From
<http://www.python.org/download/releases/2.6.7/NEWS.txt>:

"""
- Issue #6108: unicode(exception) and str(exception) should return the same
  message when only __str__ (and not __unicode__) is overridden in the
  subclass.
"""

I recommend you upgrade your Python.

> BTW,  C:\python26\python.exe buildhtml.py .. > buildhtml.log could not
> redirect the output on screen to the file  buildhtml.log. I have to copy it
> to the buildhtml.log.

That must be a Windows thing, nothing Docutils can do about it.

--

-- 
David Goodger <http://python.net/~goodger>
(Continue reading)

David Sankel | 1 Mar 18:53 2012
Picon

Re: Failed to install in windows

On Wed, Feb 29, 2012 at 10:54 PM, David Goodger <goodger <at> python.org> wrote:
On Tue, Feb 28, 2012 at 23:09, ning zhou <nathon.py <at> gmail.com> wrote:> BTW,  C:\python26\python.exe buildhtml.py .. > buildhtml.log could not
> redirect the output on screen to the file  buildhtml.log. I have to copy it
> to the buildhtml.log.

That must be a Windows thing, nothing Docutils can do about it.

Try "C:\python26\python.exe buildhtml.py .. 2>&1 > buildhtml.log" instead. This redirects the error output to the normal output before sending it to a file.

David

-- 
David Sankel
Sankel Software
www.sankelsoftware.com
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
ning zhou | 2 Mar 03:18 2012
Picon

Re: Failed to install in windows

<at> David Goodger, I have tried 2.6.6, but same issue. I will ignore those issues mentioned before, since buildhtml.py works for many existed .txt files.
<at> David Sankel, Thanks for your tips. 

2012/3/2 David Sankel <camior <at> gmail.com>
On Wed, Feb 29, 2012 at 10:54 PM, David Goodger <goodger <at> python.org> wrote:
On Tue, Feb 28, 2012 at 23:09, ning zhou <nathon.py <at> gmail.com> wrote:> BTW,  C:\python26\python.exe buildhtml.py .. > buildhtml.log could not
> redirect the output on screen to the file  buildhtml.log. I have to copy it
> to the buildhtml.log.

That must be a Windows thing, nothing Docutils can do about it.

Try "C:\python26\python.exe buildhtml.py .. 2>&1 > buildhtml.log" instead. This redirects the error output to the normal output before sending it to a file.

David

-- 
David Sankel
Sankel Software
www.sankelsoftware.com

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Pete R. Jemian | 1 Mar 21:21 2012

how to link to a local HTML file?


Must be a FAQ for this.  Cannot find it, though.

How to link from one .rst file to an HTML file in the same directory?

This does not work::

     See this file: <file://./neighbor.html>

Thanks!

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
David Goodger | 2 Mar 15:52 2012

Re: how to link to a local HTML file?

On Thu, Mar 1, 2012 at 15:21, Pete R. Jemian <jemian <at> anl.gov> wrote:
> Must be a FAQ for this.  Cannot find it, though.

Not a FAQ, because it's quite basic. You're over-thinking it.

> How to link from one .rst file to an HTML file in the same directory?
>
> This does not work::
>
>     See this file: <file://./neighbor.html>

Try:

    `See this file <neighbor.html>`_

or:

    See this file: `<neighbor.html>`_

For details, see
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#hyperlink-targets

--

-- 
David Goodger <http://python.net/~goodger>

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Docutils-users mailing list
Docutils-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Rita | 3 Mar 13:42 2012
Picon

building tables

Hello,


I am using reStructuredText with Python Sphinix to generate reports to html. I am querying a database to generate my data and was wondering if there is a way to call my database statement directly thru reStructuredText. Somelike like {{{ echo "select * from data" | psql }}} . Is that possible?


--
--- Get your facts first, then you can distort them as you please.--
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Pete R. Jemian | 3 Mar 14:41 2012

Re: how to link to a local HTML file?

But of course!  Thanks for setting this straight.

Pete

On 3/2/2012 8:52 AM, David Goodger wrote:
> On Thu, Mar 1, 2012 at 15:21, Pete R. Jemian<jemian <at> anl.gov>  wrote:
>> Must be a FAQ for this.  Cannot find it, though.
>
> Not a FAQ, because it's quite basic. You're over-thinking it.
>
>> How to link from one .rst file to an HTML file in the same directory?
>>
>> This does not work::
>>
>>      See this file:<file://./neighbor.html>
>
> Try:
>
>      `See this file<neighbor.html>`_
>
> or:
>
>      See this file: `<neighbor.html>`_
>
> For details, see
> http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#hyperlink-targets
>

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Roberto Alsina | 4 Mar 22:35 2012
Picon

ANN: rst2pdf 0.90 is out

After a long break because I was busy, rst2pdf 0.90 is out at http://rst2pdf.googlecode.com

Major changes: it works with docutils 0.7/0.8/etc (the getlanguage bug, if you were hit by it), it has a ton of bugfixes, supports UML, and it supports

.. raw:: html

Yes, I know, that's strange.

Full(ish) changelog:

  • Added raw HTML support, by Dimitri Christodoulou
  • Fixed Issue 422: Having no .afm files made font lookup slow.
  • Fixed Issue 411: Sometimes the windows registry has the font's abspath.
  • Fixed Issue 430: Using --config option caused other options to be ignored (by charles at cstanhope dot com)
  • Fixed Issue 436: Add pdf_style_path to sphinx (by tyler <at> datastax.com)
  • Fixed Issue 428: page numbers logged as errors
  • Added support for many pygments options in code-block (by Joaquin Sorianello)
  • Implemented Issue 404: plantuml support
  • Issue 399: support sphinx's template path option
  • Fixed Issue 406: calls to the wrong logging function
  • Implemented Issue 391: New --section-header-depth option.
  • Fixed Issue 390: the --config option was ignored.
  • Added support for many pygments options in code-block (by Joaquin Sorianello)
  • Fixed Issue 379: Wrong style applied to paragraphs in definitions.
  • Fixed Issue 378: Multiline :address: were shown collapsed.
  • Implemented Issue 11: FrameBreak (and conditional FrameBreak)
  • The description of frames in page templates was just wrong.
  • Fixed Issue 374: in some cases, literal blocks were split inside a page, or the pagebreak came too early.
  • Fixed Issue 370: warning about sphinx.addnodes.highlightlang not being handled removed.
  • Fixed Issue 369: crash in hyphenator when specifying "en" as a language.
  • Compatibility fix to Sphinx 0.6.x (For python 2.7 docs)

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Aahz | 7 Mar 18:36 2012

Re: building tables

On Sat, Mar 03, 2012, Rita wrote:
> 
> I am using reStructuredText with Python Sphinix to generate reports to
> html. I am querying a database to generate my data and was wondering if
> there is a way to call my database statement directly thru
> reStructuredText. Somelike like {{{ echo "select * from data" | psql }}} .
> Is that possible?

You'd have to create a custom directive using Python code.  Not sure how
that works with Sphinx.  One advantage is that you could then use Python
directly to query SQL and format the results.
--

-- 
Aahz (aahz <at> pythoncraft.com)           <*>         http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote 
programs, then the first woodpecker that came along would destroy civilization.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
David Goodger | 12 Mar 04:40 2012

Re: FileInput exiting on IOError

On Tue, Feb 28, 2012 at 08:38, Guenter Milde <milde <at> users.sf.net> wrote:
> Dear David,
>
> I am still waiting for a consensus regarding the IOError handling.

I'm sorry about that. I wrote most of a reply some time ago, but was
troubled about part of it, and then life got in the way.

I had a big problem with the patch as-is, and felt that a discussion
first was better. I apologize for the long delay.

> On 2012-01-22, Guenter Milde wrote:
>> On 2012-01-20, David Goodger wrote:
>>> On Fri, Jan 20, 2012 at 05:01, Guenter Milde <milde <at> users.sf.net> wrote:
>>>> On 2010-12-28, Eli Bendersky wrote:
>
> Maybe we can start with the simpler decisions:
>
>>>>> I'm using docutils programmatically for converting ReST to HTML
>>>>> (specifically docutils.core.publish_from_doctree). Since the
>>>>> usage is programmatic (controlled by my application) I must have
>>>>> full control of exceptions for logging. However, I noticed that
>>>>> the FileInput class used by docutils for various purposes exits
>>>>> the application (sys.exit) when it can't find a file.
>
> IMO this is a valid bug report. There should be an option to
> suppress the conversion of IOError into sys.exit() (especially for
> programmatic use).

I agree.

>>> Instead, how about adding a command-line/config option to control
>>> this? Then programmatic users can handle any exceptions themselves,
>>> and regular users won't see any change.
>
>> I don't think that an additional config setting is necessary. The
>> "traceback" setting already switches between passing exceptions to the
>> caller or catching and reporting exceptions by
>> core.Publisher.report_Exceptions.
>
> Could you agree on using the "traceback" setting for IOErrors, too?

Yes, that makes sense.

> Regular users would only see a change, if they use the --traceback
> option. Tey get a traceback instead of the short error message, e.g.
>
>  Traceback (most recent call last):
>    File "/home/milde/.bin/rst2html", line 23, in <module>
>      ...
>  docutils.io.InputError: [Errno 2] Datei oder Verzeichnis nicht gefunden: u'foffy'
>
> I hope you can agree on these two points and look forward to
> discussing the implementation.

My now-completed earlier reply will follow.

--

-- 
David Goodger <http://python.net/~goodger>

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Docutils-users mailing list
Docutils-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.

Gmane