Hi
I've been littering my code with javascript keep-alive calls, to ensures
that sessions don't timeout when I'm say writing a blog post, or a user is
uploading details in one of my custom forms.
Thinking about the problem, I noticed that I'm normally within an edit when
I'm in a form and could fix the problem generically by derving from
PRContentsWidget and overriding the #renderContentOn: method as:
renderContentOn: html
super renderContentOn: html.
self context command isView ifFalse: [
html script: (html jQuery ajax
callback: [ "Do nothing" ];
interval: 10 minutes).
"self application cache expiryPolicy configuration at: #cacheTimeout"
]
The keep alive will then be rendered for all non-view commands. Do others
use a similar approach?
Cheers
Nick
Pier looks neat and feature complete.
I looked at the FAQ and found the indicated path to managment tool
|(those starting with /environment/|) to be obsolete with verison 2.0 of
Pier, it will be helpful for the beginner.
I have tried for more than a hour to change this "What's new?" things on
the right of a default Pier setup. Is it a blog or so? I can not even
add article to it?
Please some light
Hilaire
--
Education 0.2 -- http://blog.ofset.org/hilaire
Thanks Jan, i'll take a look at it right away :)
Ricardo
2011/1/6 <smallwiki-request(a)iam.unibe.ch>:
> Send smallwiki mailing list submissions to
> smallwiki(a)iam.unibe.ch
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
> or, via email, send a message with subject or body 'help' to
> smallwiki-request(a)iam.unibe.ch
>
> You can reach the person managing the list at
> smallwiki-owner(a)iam.unibe.ch
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of smallwiki digest..."
>
>
> Today's Topics:
>
> 1. Re: source.lukas-renggli.ch offline (Tudor Girba)
> 2. Re: A few questions (Lukas Renggli)
> 3. Re: A few questions (Reza Razavi)
> 4. Magritte XML support (Ricardo Jacas)
> 5. Re: Magritte XML support (Jan van de Sandt)
> 6. Using different template elements for blogs (sergio_101)
> 7. Re: Using different template elements for blogs (Lukas Renggli)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 4 Jan 2011 14:21:30 +0100
> From: Tudor Girba <tudor.girba(a)gmail.com>
> Subject: Re: source.lukas-renggli.ch offline
> To: "Magritte, Pier and Related Tools ..." <smallwiki(a)iam.unibe.ch>
> Message-ID: <4C198CEF-AD43-49E0-AC17-BC06EC379CC4(a)gmail.com>
> Content-Type: text/plain; charset=us-ascii
>
> It's up and running again :)
>
> Doru
>
>
> On 4 Jan 2011, at 09:09, Lukas Renggli wrote:
>
>> Surprisingly they fixed my internet connection already this morning
>> and the server is online again. It might take a while for the DNS
>> entry to propagate to you.
>>
>> Thanks for the patience.
>>
>> Cheers,
>> Lukas
>>
>> --
>> Lukas Renggli
>> www.lukas-renggli.ch
>> _______________________________________________
>> Magritte, Pier and Related Tools ...
>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>
> --
> www.tudorgirba.com
>
> "Relationships are of two kinds: those we choose and those that happen. They both matter."
>
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 4 Jan 2011 18:35:34 +0100
> From: Lukas Renggli <renggli(a)gmail.com>
> Subject: Re: A few questions
> To: "Magritte, Pier and Related Tools ..." <smallwiki(a)iam.unibe.ch>
> Message-ID:
> <AANLkTimahx=wEX0y5qNxKX9mfo49insP+dx3Fjs-Eh63(a)mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> The reason for not replying are simple:
>
> - I didn't have internet except for the iPhone for the past weeks.
> - I moved my houshold from Bern to Zurich.
> - I started with a new job yesterday.
>
> So please stop expecting immediate answers.
>
> The answer is:
>
> Doru setup the piercms.com site, ask him to integrate/fix/add content
> (or maybe better create a bug report). We originally planned to have a
> chapter on Pier in the Seaside book, similar to the one on Magritte;
> but that didn't happen due to time constraints.
>
> Lukas
>
>
> On Tuesday, 4 January 2011, Norbert Hartl <norbert(a)hartl.name> wrote:
>>
>> On 04.01.2011, at 11:44, Reza Razavi wrote:
>>
>> At 11:11 04/01/2011, Norbert Hartl wrote:
>>
>> On 03.01.2011, at 21:39, Mariano
>> Martinez Peck wrote:
>>
>> yes, it would be awesome. You
>> can contact Tudor Girba and ask him a template or a ready image (like he
>> did for Pharo)
>> I don't think the preparation of the image is a problem. We
>> should first figure out who will host the image.
>> Yes, and also the book content. I guess that we could start from here
>> (Section on Pier):
>>
>> http://scg.unibe.ch/archive/masters/Reng06a.pdf
>>
>> http://www.piercms.com/doc/
>> ?<http://www.piercms.com/doc/>
>> Well, now I think Lukas should say anything. On the one hand the information and the infrastructure is there. www.piercms.com is a wiki, right? :) So we are talking again where to put information and how to collaborate. I only had the impression that the book form of the wiki might concentrate the efforts better.
>> Lukas, is www.piercms.com open for content contributors? Do you think a book is a good idea or do you have the impression that the wiki pages are sufficient for documenting?
>>
>> ?<http://www.piercms.com/doc/>?As Lukas is not
>> speaking up I assume he is not interested.
>> Well, he probably knows how time consuming may be such a project ;-)
>> Also, he has already written quite a lot on this topic.
>> What's there really new to add?
>>
>> Well, as long as there are questions about pier there is something to add. I think newbie information is rare. There are a lot of things doable with default pier. These things depend often on the difference between linking, embedding and the available parameters. Other use cases are solvable with permissions (and/or embedding things). I know no information source that explains PRDocument and possible usage and this is quite a powerful feature. That is only usage. The more you work with pier the more you want to extend it. Information about the class hierarchies is not really there. E.g. how to embed a widget programmatically in a page. How to write a command? Why and how to extend PRValueLink?. ......?Is that a suitable answer?
>>
>> Do you know where the other
>> images are hosted?
>> Could we have book.piercms.com?
>> It currently redirects to seaside.st.
>>
>> Ok, there is a dns entry and the zone info was changed today. So there might be good news at the end of this day :) Lukas?
>> Norbert
>>
>
> --
> Lukas Renggli
> www.lukas-renggli.ch
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 04 Jan 2011 18:52:20 +0100
> From: Reza Razavi <razavi(a)acm.org>
> Subject: Re: A few questions
> To: "Magritte, Pier and Related Tools ..." <smallwiki(a)iam.unibe.ch>
> Message-ID: <9c0312$4f4non(a)smtp.pt.lu>
> Content-Type: text/plain; charset="us-ascii"; format=flowed
>
> At 18:35 04/01/2011, Lukas Renggli wrote:
>>The reason for not replying are simple:
>>
>>- I didn't have internet except for the iPhone for the past weeks.
>>- I moved my houshold from Bern to Zurich.
>>- I started with a new job yesterday.
>
> Thanks Lukas for the information, and All the Best for your new
> living environment and job.
>
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 5 Jan 2011 17:21:13 -0300
> From: Ricardo Jacas <ricardo.jacas(a)gmail.com>
> Subject: Magritte XML support
> To: smallwiki(a)iam.unibe.ch
> Message-ID:
> <AANLkTik7QxoqLrvS3ny8A0z6rft12XDc5k=H-4QOqD3x(a)mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> hi,
> since this is my first email to the mailing list let me instroduce myself,
> my name is RIcardo Jacas from the University of chile.
>
> Im currently building a seaside aplication to produce xml reports,
> i've been using Magritte to produce this components.
> is there any way to produce xml escription using magritte?
>
> I skimmed the mailing list archive, the classes and methods of
> Magritte and i haven't seen anything obvious.
>
> Ricardo
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 5 Jan 2011 21:47:22 +0100
> From: Jan van de Sandt <jvdsandt(a)gmail.com>
> Subject: Re: Magritte XML support
> To: "Magritte, Pier and Related Tools ..." <smallwiki(a)iam.unibe.ch>
> Message-ID:
> <AANLkTimp_w4MnnOc=K5ssaE9j9QW34tFd03j2r8ck9+Q(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello Ricardo,
>
> The the Magritte 2 Add-Ons repository [1] contains a package that extends
> Magritte 2 with support for mapping Magritte described objects to XML and
> visa versa.
>
> Jan.
>
> [1] http://source.lukas-renggli.ch/magritte2addons
>
>
> On Wed, Jan 5, 2011 at 9:21 PM, Ricardo Jacas <ricardo.jacas(a)gmail.com>wrote:
>
>> hi,
>> since this is my first email to the mailing list let me instroduce myself,
>> my name is RIcardo Jacas from the University of chile.
>>
>> Im currently building a seaside aplication to produce xml reports,
>> i've been using Magritte to produce this components.
>> is there any way to produce xml escription using magritte?
>>
>> I skimmed the mailing list archive, the classes and methods of
>> Magritte and i haven't seen anything obvious.
>>
>> Ricardo
>> _______________________________________________
>> Magritte, Pier and Related Tools ...
>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>>
>
hi,
since this is my first email to the mailing list let me instroduce myself,
my name is RIcardo Jacas from the University of chile.
Im currently building a seaside aplication to produce xml reports,
i've been using Magritte to produce this components.
is there any way to produce xml escription using magritte?
I skimmed the mailing list archive, the classes and methods of
Magritte and i haven't seen anything obvious.
Ricardo
At 18:35 04/01/2011, Lukas Renggli wrote:
>The reason for not replying are simple:
>
>- I didn't have internet except for the iPhone for the past weeks.
>- I moved my houshold from Bern to Zurich.
>- I started with a new job yesterday.
Thanks Lukas for the information, and All the Best for your new
living environment and job.
source.lukas-renggli.ch (Magritte, Pier, OmniBrowser, PetitParser,
Helvetia, ...) will be offline in the next couple of days as I am
moving the server to a new location. If you need to load code from
these repositories during that time please create a mirror in the next
12 hours.
Happy new year!
Lukas
--
Lukas Renggli
www.lukas-renggli.ch
Hi,
I thought that it would be nice to host my openId identity on my Pier
based web site. In order to do so, I would need the following in head
section of html:
<head>
<link rel="openid.server" href="http://www.myopenid.com/server">
<link rel="openid.delegate" href="http://codinghorror.myopenid.com/">
</head>
What is the easiest way to do that?
Many thanks,
Davorin Rusevljan
http://www.cloud208.com/
In the Pier application, when I change the ServerPath to / access to the
welcome page is ok, but then browsing in the other page broke:
http://localhost:8080/dates
/dates/ not found
Maye be it is not possible to change it
--
Education 0.2 -- http://blog.ofset.org/hilaire