[squeak-dev] CustomHelpToOrg dev question.

gettimothy gettimothy at zoho.com
Fri Sep 3 17:25:46 UTC 2021

Hi Folks

I am working on dumping the contents of a CustomHelp to a foo.org file in Org format as a first stab at a markup.

It is going ok, but I really stink at Streams, so I thought I would ask here for pointers.

DocCustomHelpToOrg  toTestFile: PostgresV3Help.

is a call and the method is:

toTestFile: aCustomHelp

|recurse ios contents spacer|

spacer := (Character cr asString),(Character cr asString).

contents := '*   ', aCustomHelp name asString , spacer.

ios := FileStream newFileNamed: ((aCustomHelp  name  asString), '.org').

recurse := [:help |

help pages do:[:each | | v  |

each asString first isUppercase


contents := contents , '*  ' .

recurse value: (Smalltalk at: each)]


v := help perform: each.

contents := spacer , contents , '** ' ,  (v title) , (Character cr asString), spacer , (v contents)  , spacer.


recurse value: aCustomHelp.

contents printOn: ios.

ios close.

try not to puke or spew diet soda out your nose.

I am getting "ok" output, but the first issue is that the entire output is wrapped in single quotes.

Here is the "collapsed" output with the first sub-section named "Overview" expanded. 

Notice the single quote right at the beginning and the single quote at the very end.

'  <----this is a problem I would like to get rid of

*   PostgresV3Help

** Overview

We''ve uploaded the latest version to the squeaksource repository in two forms: as a single package, and as multiple separate packages.




The single package version will not be updated anymore. The multi-package version consists of the following:


This is basically the implementation of the protocol. It enables one to create connections and execute text queries.

PostgresV3-Pool (depends on Core):

This is an implementation of a connection pool. We always use it when we''re connecting to a database. It also gives support for easy transaction handling.

PostgresV3-CodeMirror (depends on Core and Pool):

This is a set of high level tools which we use most of the time. It allows one to map Postgresql functions to Smalltalk methods. One can load, edit and save selected functions of a schema from a class browser. Invoking the smalltalk methods will result in calling the Postgresql functions. This tool has some limitations: only plpgsql functions are supported, some flags can''t be specified (e.g. security definer), no support for inout/out parameters, the return type has to be refcursor, or a basic type.


This is the old way to map rows to objects and cache them. We don''t use it anymore in new projects. The Core has support for custom rowClass per query (you can define what class should be instantiated for the rows returned by the query), which provides better row-object mapping.

We use it daily in our projects, and I would say it''s pretty stable.

** PostgresV3-Core

** PostgresV3-Pool (depends on Core)

** PostgresV3-CodeMirror (depends on Core and Pool)

** PostgresV3-Objects (Deprecated)

** Standard Usage Pattern

*  ** Jun 17, 2011 Forum.world.st discussion  Re: status of PostgresV3 package

** Sep 25, 2014; 5:28am  Forum.world.st discussionStatus of PostgresV3

'   <----this is a problem I would like to get rid of

thank you for your time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210903/c73238db/attachment.html>

More information about the Squeak-dev mailing list