I was trying to make a copy of my enviornment template in Pier using
the seaside 3.0rc oneclick available from squeak.org
The steps I took:
login.
click on +system
click on _environment
select the copy command and name it environmentcopy
save
create a new page.
click settings.
Point the environment to /system/templates/environmentcopy
(have to manually enter that since "choose" doesn't work as I expected)
save
start editing /system/templates/environmentcopy.
it saves the changes in the original environment page.
Is this normal behavior? I thought copy meant copy contents, not just
create a new link to the same file.
Lawson
At 09:29 18/08/2010, Lukas Renggli wrote:
>I already committed a patch :-)
Impressive; thanks!
Just in case you would still have some time to devote, a similar case
is "PRViewCommand >> label", which is in particular often called by
"WAAnchorTag >> goto:"
An alternative would be:
PRViewCommand >> label
^ self viewComponentClass labelIn: self context
Which would imply for example:
PRDefaultView class >> labelIn: aContext
^ aContext structure title
And eventually:
PRDefaultView >> label
^ self class labelIn: sel context
In the "worth" case, the class would instantiate itself to compute its label.
That could though break the plug-ins that depend on the current behavior.
Regards,
Reza
At 08:53 18/08/2010, Lukas Renggli wrote:
>I don't see anybody depending on the instance-side implementation.
Thanks for your response Lukas.
I'll propose a patch asap.
Regards,
Reza
Hi Lukas, all,
#isRestful is called by PRContext >> urlOn:, typically via the
PRMenuRenderer (so, upon every page refresh), which delegates to the
current Command, which, in the case of PRViewCommand, delegates in
turn to its 'viewComponent'.
To avoid creating an instance of the #viewComponentClass just to
check if its #isRestful, would it make sense to:
1) Move to the class side the four occurrences of #isRestful
implementation in the PRViewComponent hierarchy, and then
2) Change the code in PRViewCommand to delegate to #viewComponentClass?
Regards,
Reza
At 09:07 14/08/2010, Nick Ager wrote:
>How about downloading one of Lucas' daily builds or use Seaside30rc on Pharo
Hi Lawson, Nick, all,
I actually downloaded and tried both. I didn't
notice the following issue you mentioned in a previous email.
>I can leave a comment but I get stuck in a loop
>where I can't cancel the comment request.
My understanding is that you refer a
functionality that is not an endless loop, but
actually part of the blog's design. The "leave a
comment" dialog appears systematically, even if
you cancel it, as far as the post still accepts comments (there is a timeout).
This being said, I observed better development
performances with the Hudson download. It seems
that the Seaside30rc on Pharo package comes with
some development packages pre-loaded that
sometimes make you wait a while before accepting
a method, or rendering a text typed in a
workspace, etc. (I'm still under Vista and not OSX, sorry for that).
With the Husdon image, Build #200 (13 août 2010
10:40:23), I only had a small issue with the
settings dialog. MCConfiguration >>
updateFromImage seems missing. From a comparison
of the packages for MonticelloConfigurations
between Seaside30rc on Pharo and Hudson images in
http://www.squeaksource.com/Pharo, it appears
that the version of Hudson is outdated. I loaded
the latest one
(MonticelloConfigurations-StephaneDucasse.61) and
it seems working just fine now.
Hoping this helps,
Regards,
Reza
http://www.lukas-renggli.ch/blog/installation
The video doesn't load in either safari, firefox or chrome on my Mac.
Are there more resources I should be looking at for this?
Lawson
Hi Elliot,
I reply to the Magritte list, because other people might be interested
or provide other answers too:
> I'm wanting to do something like http://www.nakedobjects.net but with
> Pharo/Magma/Magritte2 (and later seaside for web view). I've looked at the
> Magritte tutorial that is dated Feb 5, 2007 but it seems to be a little
> outdated and geared specifically towards seaside. Is there a later tutorial
> for Magritte or other material that I can reference to learn it? I've
> loaded the Magritte2 package from squeaksource and it looks a little
> daunting!
The tutorial is not outdated, Magritte was relatively stable in the
past few years. I've been repeatedly using the tutorial in the past
few years in various training sessions.
The Seaside book has a chapter on Magritte:
<http://book.seaside.st/book/advanced/magritte>; and of course the
other links from <http://www.lukas-renggli.ch/smalltalk/magritte>.
The package Magritte-Core can be used without Seaside, in fact there
is nothing that depends on Seaside. However, most people (including
myself) have been using Magritte in the context of Seaside, that's why
the support there is the most sophisticated. There is Magritte-Morphic
that creates basic Morphic interfaces.
> Is Pharo/Magma/Magritte2 the right stack for this type of project in your
> opinion?http://www.lukas-renggli.ch/smalltalk/magritte
Sure, I almost use it in any project.
Lukas
> Thanks in advance for any information you can provide.
> Elliot
>
--
Lukas Renggli
www.lukas-renggli.ch