Joel Turnbull | 1 Sep 2009 15:09

addCondition:labelled:


addCondition:labelled does not seem to be working the way I expected.

I just want to validate that a given text field is not empty

I have a description definition method and setter:

descriptionTags
^MAStringDescription new
    selectorAccessor: #tagsConverter;
    label: 'Tags';
    priority: 40;
    addCondition: [:value | value notEmpty ]
        labelled: 'Please provide at least one tag';
    yourself

tagsConverter: aString
    tags := aString asUppercase subStrings asSet

On submit, I get an error that nil does not understand asUppercase. Shouldn't the condition fail before the setter is called? I've tried [ :value | value notNil ], and beRequired as well, got the same error. I also tried to change the initialize method of the object I'm describing to set tags to an empty collection but that didn't work either.

Thanks,
Joel





_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
John M McIntosh | 1 Sep 2009 17:08

a question about pier syntax

Let me forward this to the pier list since it's a syntax related  
question.

 From kunicki <at> gmail.com

> First a quick note of thanks. I am really enjoying using Mobile Wiki  
> Server. I also like that I can edit from my desktop. I have read  
> your site and been digging around piercms.com as well. I was hoping  
> you could help with two questions:
>
> 1) I have tried using Breadcrumb but I cant get it to display in a  
> page or even in the overall structure (Using the design button). How  
> do I use this command?
>
> Basically I would love to have a breadcrumb showing me where I am in  
> the hiearchy of the site. Example:
>
> Home > Grammar > Nouns > Examples
>
> this would allow me to quickly move back up the hiearchy.
>
>
> 2) I like the tree  and navigation components. Is it impossible to  
> embed this into a page? I would like to have a page with some basic  
> content and then have a tree structure listed below. However, it  
> seems i have to add a component page, set it to tree, and thats all  
> i can do with it.
>
> Thanks for your patience with me. Again I thank you for bringing  
> this to the iPhone.
>
> Chris
--
= 
= 
= 
========================================================================
John M. McIntosh <johnmci <at> smalltalkconsulting.com>   Twitter:   
squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
= 
= 
= 
========================================================================

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Lukas Renggli | 2 Sep 2009 00:02
Picon
Gravatar

Re: addCondition:labelled:

> I just want to validate that a given text field is not empty

Normally sending #beRequired to the description should be enough. At
least with my Seaside forms this works well and there is no need to
add an additional check for #isEmpty.

> On submit, I get an error that nil does not understand asUppercase.
> Shouldn't the condition fail before the setter is called?

#beRequired ensures that a nil or empty value is not committed.
Additional conditions will not be evaluated (there are various
examples of this in Pier, for example).

Cheers,
Lukas

--

-- 
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Grimble Crumble | 2 Sep 2009 14:29

Ultra-newbie question

I have used Squeak, and I have used Seaside, but it has been a while.

I have brought up the Pier environment on a headless server, and it  
looks as if I probably have the ability to configure it, add to it,  
etc.  But there does not appear to be any documentation for Pier that  
is aimed at those who have forgotten what they may ever have learned  
about Seaside.  I'm going back over the Seaside tutorial, but I  
wonder if someone can tell me how to log in to the default Pier  
server, the one that comes up when you make minimal changes out of  
the box (not even running under Apache).  I had a "Log in" link on  
the page at one point, made the attempt with no errors reported, and  
was unable to edit anything.  I think I'm missing a major concept  
somehow.

Can anyone suggest what major item I've probably forgotten about  
Seaside?

Thanks.

GC

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Lukas Renggli | 2 Sep 2009 14:52
Picon
Gravatar

Re: Ultra-newbie question

> minimal changes out of the box (not even running under Apache).  I had a
> "Log in" link on the page at one point, made the attempt with no errors
> reported, and was unable to edit anything.  I think I'm missing a major
> concept somehow.

The default username/password of Pier is admin/pier.

The default username/password of Seaside is admin/seaside.

> Can anyone suggest what major item I've probably forgotten about Seaside?

The basics on Pier are documented here: http://www.piercms.com/doc.

Let us know if you have further questions.

Lukas

--

-- 
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Nicolas Roard | 2 Sep 2009 16:04
Picon

Re: Picasa client for Pier

On Mon, Aug 24, 2009 at 2:50 PM, Ciprian
Teodorov<ciprian.teodorov <at> gmail.com> wrote:
>
>
> On Mon, Aug 24, 2009 at 1:21 PM, Lukas Renggli <renggli <at> gmail.com> wrote:
>>
>> > If somebody is interested, I implemented a small picasaweb plugin for
>> > Pier
>> > which permits to embed the albums and the photos from picasa
>> > into a running pier web application. The plugin source is posted on
>> > squeaksource site: http://squeaksource.com/ <at> uxjO7eHSe8tI9dKs/9zFmuhpA.
>>
>> Cool! What is the name of the repository URL? The link you gave is
>> unfortunately not restful.
>
> Sorry for the link -- here you have the good one ;)
> http://www.squeaksource.com/PicasaClient/

I modified it a bit to use lightbox.
See http://www.impro-v-istres.fr/seaside/pier/photos/picasa for an
example of how it looks.
The code is on http://www.squeaksource.com/PicasaClientLightbox/

--

-- 
Nicolas Roard
"I love deadlines. I like the whooshing sound
they make as they fly by." -- Douglas Adams
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Grimble Crumble | 2 Sep 2009 20:33

Re: Ultra-newbie question

On Sep 2, 2009, at 2:52 PM, Lukas Renggli wrote:

>> minimal changes out of the box (not even running under Apache).  I  
>> had a
>> "Log in" link on the page at one point, made the attempt with no  
>> errors
>> reported, and was unable to edit anything.  I think I'm missing a  
>> major
>> concept somehow.
>
> The default username/password of Pier is admin/pier.

I have now achieved login, can't figure out what was happening before,
and may never.  Next, ...

>> Can anyone suggest what major item I've probably forgotten about  
>> Seaside?
>
> The basics on Pier are documented here: http://www.piercms.com/doc.
>
> Let us know if you have further questions.

Thanks very much.  I'll try to make at least marginal sense.

I want to make a random change on the page, for no other reason than
to see that I can have some effect.  So, the way to do that is... Turn
on Halos, I think, and then... OK, in a halo there are icons for Class
Browser, Object Inspector, and CSS Style Editor.  And also a pair of
letters, R-ender and S-ource.  I can edit the behavior of classes, but
if I want to change the color of one of the text objects, how do I do
that?  If I want to change the text itself, how do I do that?

OK, hard things are easy and easy things are hard.  The tools seem to
address issues of much greater complexity than I'm able to think about
yet.  And I don't see the corresponding tools for doing anything
dead simple.  And I have a feeling I'm staring blindly right at it.

Seaside manual maybe?  Any section in particular?  What I'm trying to
do should be the easy stuff, I would have thought.

I thank you in advance for your help.

>
> Lukas
>
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch
>
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

John McKeon | 2 Sep 2009 21:40
Picon

Re: Ultra-newbie question



On Wed, Sep 2, 2009 at 2:33 PM, Grimble Crumble <morph <at> growler.net> wrote:
On Sep 2, 2009, at 2:52 PM, Lukas Renggli wrote:

minimal changes out of the box (not even running under Apache).  I had a
"Log in" link on the page at one point, made the attempt with no errors
reported, and was unable to edit anything.  I think I'm missing a major
concept somehow.

The default username/password of Pier is admin/pier.

I have now achieved login, can't figure out what was happening before,
and may never.  Next, ...


Can anyone suggest what major item I've probably forgotten about Seaside?

The basics on Pier are documented here: http://www.piercms.com/doc.

Let us know if you have further questions.

Thanks very much.  I'll try to make at least marginal sense.

I want to make a random change on the page, for no other reason than
to see that I can have some effect.  So, the way to do that is... Turn
on Halos, I think, and then... OK, in a halo there are icons for Class
Browser, Object Inspector, and CSS Style Editor.  And also a pair of
letters, R-ender and S-ource.  I can edit the behavior of classes, but
if I want to change the color of one of the text objects, how do I do
that?  If I want to change the text itself, how do I do that?

After you are logged in, commands show up on the bottom of the page. (Where the Login link was, NOT the halos toolbar)

Click "Edit" to edit the page.
Click "Remove" to remove it.
Click "Add" to add a sub-page or a file or one of the many components available.
Click "Edit design" to change the CSS or the layout of the page structure.
Play with it, don't be afraid. the thing to understand is that you are not really writing any seaside code at this point. You are managing content.


OK, hard things are easy and easy things are hard.  The tools seem to
address issues of much greater complexity than I'm able to think about
yet.  And I don't see the corresponding tools for doing anything
dead simple.  And I have a feeling I'm staring blindly right at it.

See above.
 

Seaside manual maybe?  Any section in particular?  What I'm trying to
do should be the easy stuff, I would have thought.

I thank you in advance for your help.

Hope this helped
John



Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki



--
http://jmck.seasidehosting.st
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Grimble Crumble | 2 Sep 2009 22:01

Re: Ultra-newbie question


On Sep 2, 2009, at 9:40 PM, John McKeon wrote:



On Wed, Sep 2, 2009 at 2:33 PM, Grimble Crumble <morph <at> growler.net> wrote:
On Sep 2, 2009, at 2:52 PM, Lukas Renggli wrote:

[...]
The basics on Pier are documented here: http://www.piercms.com/doc.

Let us know if you have further questions.

Thanks very much.  I'll try to make at least marginal sense.

I want to make a random change on the page, for no other reason than
to see that I can have some effect.  So, the way to do that is... Turn
on Halos, I think, and then... OK, in a halo there are icons for Class
Browser, Object Inspector, and CSS Style Editor.  And also a pair of
letters, R-ender and S-ource.  I can edit the behavior of classes, but
if I want to change the color of one of the text objects, how do I do
that?  If I want to change the text itself, how do I do that?

After you are logged in, commands show up on the bottom of the page. (Where the Login link was, NOT the halos toolbar)

Click "Edit" to edit the page.
Click "Remove" to remove it.
Click "Add" to add a sub-page or a file or one of the many components available.
Click "Edit design" to change the CSS or the layout of the page structure.
Play with it, don't be afraid. the thing to understand is that you are not really writing any seaside code at this point. You are managing content.


Sure, OK, that's exactly what I want to do.  I had to stumble a bit more, apparently.  I appreciate your patience.

Two questions.
 1. If I click the Class Browser button, then I *am* modifying code, right?  I mean, I can make changes to class behavior of, ... the Pier classes?

 2. When I clicked Edit, I could totally go to town on the "Welcome to Pier!" block of text.  I still haven't worked out how to affect the "What's new" block.


[...]

Hope this helped
John


Yes indeed.  Thanks.

[...]
--
http://jmck.seasidehosting.st
_______________________________________________
Magritte, Pier and Related Tools ...

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Ciprian Teodorov | 3 Sep 2009 20:10
Picon
Gravatar

Re: Picasa client for Pier

hi Nicolas,


that's really cool but why didn't you publish it as a new version of the same project?

Cheers,
Cip

On Wed, Sep 2, 2009 at 4:04 PM, Nicolas Roard <nicolas.roard <at> gmail.com> wrote:
On Mon, Aug 24, 2009 at 2:50 PM, Ciprian
Teodorov<ciprian.teodorov <at> gmail.com> wrote:
>
>
> On Mon, Aug 24, 2009 at 1:21 PM, Lukas Renggli <renggli <at> gmail.com> wrote:
>>
>> > If somebody is interested, I implemented a small picasaweb plugin for
>> > Pier
>> > which permits to embed the albums and the photos from picasa
>> > into a running pier web application. The plugin source is posted on
>> > squeaksource site: http://squeaksource.com/ <at> uxjO7eHSe8tI9dKs/9zFmuhpA.
>>
>> Cool! What is the name of the repository URL? The link you gave is
>> unfortunately not restful.
>
> Sorry for the link -- here you have the good one ;)
> http://www.squeaksource.com/PicasaClient/

I modified it a bit to use lightbox.
See http://www.impro-v-istres.fr/seaside/pier/photos/picasa for an
example of how it looks.
The code is on http://www.squeaksource.com/PicasaClientLightbox/

--
Nicolas Roard
"I love deadlines. I like the whooshing sound
they make as they fly by." -- Douglas Adams
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki



--
Ciprian TEODOROV
Ph.D Student
Lab-STICC/AS CNRS UMR 3192
University of Brest

phone: (+33)(0) 6 08 54 73 48
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Gmane