All,
One of the most impressive things I see about pier is the ability to
move pages around. A few days ago, I found that if I moved a page,
then edited it, all of the links on the page were broken. A three
page test would be:
root - Root has children *folder* and *command*
folder - Folder has a *parent>../.* and a *sibling/child>../
command*
command - Command has a *root>../.* and a *sibling/parent>../
folder*
If command is moved from being a child of root to being a child of
folder, then when it is edited, the link will not be updated to
*root>../..* and *sibling/parent>../..*.
If we add the following to the bottom of PRMoveCommand>>doExecute,
then it removes this problem:
self structure enumerator everything do: [:e |
(PROutgoingReferences on: e) do: [:link | link update ]]
This evening, I wrote a test case, and tested this with some older
code, but when I load Pier-model 300 and Pier tests 129, about a
dozen tests fail and there an issue with a DNU in
PRPathReference>>setTarget:, if someone is changing the Pier-Model,
could you add this test:
PRMoveCommandTest>>testMoveIntoFolderCheckContents
"Taken from #testMoveIntoFolder"
self command
target: (self command root childrenDecoration at: 'folder').
self kernel root contents: 'Before root has two children, *folder*
and *command*. After will be one child named folder, which has a
child command'.
(self kernel root childrenDecoration at: 'folder')
contents: 'Folder has a *parent>../* and a *sibling/child>../
command*.'.
(self kernel root childrenDecoration at: 'command')
contents: 'Command has a *root parent>../* and a *sibling/
parrent>../folder*.'.
self deny: (self kernel root enumerator everything
anySatisfy: [:e | (PROutgoingReferences on: e)
anySatisfy: [:link | link isBroken]]).
self
shouldnt: [self command execute]
raise: PRStructureError.
self
assert: (self command root contents includesSubString: 'two
children, *folder* and *folder/command*.').
self
assert: ((self command root childrenDecoration at: 'folder')
contents includesSubString: 'has a *parent>../* and a *sibling/
child>command*.').
self
assert: (((self command root childrenDecoration at: 'folder')
childrenDecoration at: 'command') contents includesSubString:
'Command has a *root parent>../..* and a *sibling/parrent>..*.')
Thanks,
John
Hi folks!
I was trying to see how to manage all my code and resources of a Pier
application. There are several things I must manage:
1) My library (css, js, and so on), seaside components, ...
2) External files ( /files )
3) Pier content (trough import/export utility)
For 1) I use Monticello.
But I don't know how to manage 2) and 3). I tough I could have a SVN project
where I can put them. So, what I should do is: export and then commit SVN.
However, I would like to have all in the same control version system. Is
there a way I can do 2) and 3) in MC ?
Thanks in advance,
Mariano
I hope this is the right place to discuss WikiServer and Pier.
I've been messing around a bit with John McIntosh's WikiServer1.3.5b on the iPhone and would like some help understanding what's going on with Pier.
I wanted to understand the overall structure better and thought I would like to see the Tree view at the bottom left instead of just Children.
However when viewing Tree instead of Children view at bottom left things are getting lost.
In order to reproduce the symptoms in a fresh WikiServer, click Help, then Layout, then Environment, see at the bottom left:
Children
Contents
Footer
Search
Sidebar
Style.css
Title
Wikiserver.png
Click Sidebar/Navigation,/Settings, choose Component Class = Tree, then Apply.
Go back to Help/Layout/Environment, and only see:
-WikiServer
+Help
at bottom left. Previous items above are not there.
In order to revert back to Children view in the sidebar the necessary items were no longer available in the sidebar.
I had to search for the Navigation page and then do as follows:
Do a search for Navigation, go to Navigation page, click Settings, revert Component Class back to Children from Tree.
Position back to the Environment page (Help/Layout/Environment), items above are back.
What changes might I need to make in order for the Tree view to not lose the items?
Ken G. Brown
I use Pier in pharo0.1-10268web09.04. When I try to download a File I
added before, original file name is ignored and it is named as 'Pier'
always. The contents is correct.
--
Dennis Schetinin
Hi,
i need to manage one Magritte description for money data.
I think it's base on ScaledDecimal class.
Anyone development it ?
Any pointers would be greatly appreciated!
Thanks,
Dario
Hello,
I am just playing with pharo web and did an update of the latest pharo web
image. When I'm surfing to the pier installation and click on "News", I get
a DNU "WAHtmlRoot>>#rss".
What's the proper dependency for that?
Editing spooled news posting...: It's rsrss - www.squeaksource.com/rsrss and
then package RSRSS2.
Kind regards,
Markus
Ok, I'm not clear on how to setup a blog given the base pier
installation from MC. There is an
add blog cmd in the command, then a number of blog components in the
add component logic.
However I'm not quite sure what the steps are to put a blog into a new
wiki are? Plus any changes
to the environment that are needed.
Right now if I add a blog, then add a blog archive I just get "no blog
found" since
findBlog
^ self context structure parents reverse
detect: [ :each | each isKindOf: PBBlog ]
ifNone: [ nil ]
doesn't find the PBBlog
Obviously some structure/steps are required beyond the let's try this
and see what happens.
--
=
=
=
========================================================================
John M. McIntosh <johnmci(a)smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
=
=
=
========================================================================
Hi
I need to do something and I really don't know how to do it. I have a
PRMenuWidget and for each menu item I have a particular background image. In
those images I have also the text. For example, in the aboutUs.gif there is
also the text "About Us". I want to put another background image for mouse
hover (actually it only changes the text color). This works well. The
problem is that I want to use this image not only with hover but also when
that menu item is selected. When I click on that menu item, I want to put
that image.
In html + javascript it should be something like this:
<td colspan="9"><a onmouseout="window.status=''; changeImages('about_us',
'images/about-us.gif'); return true;" onmouseover="window.status='about us';
changeImages('about_us', 'images/about-us-over.gif'); return true;" href="
about.html">
<img width="171" height="40" border="0" alt="about us" src="
images/about-us.gif" name="about_us"/>
</a>
</td>
any ideas of how can I do this trough pier/seaside ?
Thanks in advance,
Mariano
Hi there,
is there anyway to visualize errors next the components that caused them?
One solution I can think of is actually validating every single one of these
components, however it doesn't feel nice.
I am currently using a bespoke sublcass of MAToOneRelationDescription to
structure my form into different sections. It is cascading the validation to
all these embedded objects.
Any ideas?
Cheers,
Felix
Hello,
I am using the latest Pharo based Pier one click image on debian
server, and I have set up Image persistency.
Problem is that backup images seem to be cumulating and eating my disk
space quite rapidly. As far as I have understood, there should be a
max of 3 backed images, while I have tens, and even hundreds of them.
I suspected that maybe it is the file rights issue, but everything
seems to be ok, (also if a process can create file, it usually can
also delete it).
Thanks in advance!
rush
http://www.cloud208.com/