Pre-save block is never launched

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pre-save block is never launched

Damien Cassou-3-2
Hi,

it is normally possible to have a 'pre-save block' that will be run
before each publishing. This is a block associated to a package
(AppDevGuide.pdf, 8-5).

However, this block is never executed by the system. The only other
solution is to implement a #preSave: method on the class side of one of
the classes. But this does not fit to my problem.

Is this a known problem ? How can I correct it please ?


Thank you very much


Damien

Reply | Threaded
Open this post in threaded view
|

Re: Pre-save block is never launched

Alan Knight-2
This is a known problem, AR 50664, but unfortunately not yet fixed. I suspect that putting a call to #runPreSave in publishPackage:userData: in the same place it does the class pre save actions would do it, but I haven't investigated closely.

At 05:43 AM 8/15/2006, Damien Cassou wrote:

>Hi,
>
>it is normally possible to have a 'pre-save block' that will be run before each publishing. This is a block associated to a package (AppDevGuide.pdf, 8-5).
>
>However, this block is never executed by the system. The only other solution is to implement a #preSave: method on the class side of one of the classes. But this does not fit to my problem.
>
>Is this a known problem ? How can I correct it please ?
>
>
>Thank you very much
>
>
>Damien

--
Alan Knight [|], Cincom Smalltalk Development
[hidden email]
[hidden email]
http://www.cincom.com/smalltalk

"The Static Typing Philosophy: Make it fast. Make it right. Make it run." - Niall Ross