From HNBeck at t-online.de Mon May 1 11:31:04 2006 From: HNBeck at t-online.de (Hans N Beck) Date: Mon, 1 May 2006 11:31:04 +0200 Subject: Security (was: Re: Pier user in context) In-Reply-To: References: <592AC73A-5A71-47B7-BEC1-FB1846CF481B@t-online.de> <2739B88A-DB19-420A-9823-EFF372B0270C@iam.unibe.ch> <590EAD3C-B0A1-4815-9B76-FDF561C9ADD3@t-online.de> Message-ID: Hi Lukas, Am 30.04.2006 um 21:55 schrieb Lukas Renggli: >> For security and web, I'm a little bit paranoid, especially at >> such powerful systems like Pier ;-) I've discussed security in >> Seaside/Pier with a friend, and from this I'm not sure today what I >> expect from such systems like seaside/pier. He says, security >> belongs only to buisness logic. I'm not so shure, also what to call >> buisness logic in Pier...... I will post a related question to the >> list later. > > If your friend means "model" when talking about "business logic", he > is right: the security decoration is a pure model object, that works > exactly the same for all views, not just seaside one. Thanks to the > nature of visitors one can easily control how security concerns are > handled when performing operations. Yes, I know that this is a common way to think. What bothers me is this (from a naive point of view): - security should not something which is only be added (thats the nature of decoration), because what was added can also be removed or forget to add. It seems more natural to me that security is deep in the mechanism of objects (or better message send), like the vats in E or Islands in Croquet. - if one say model or buisness logic, one could easily think at the multi tier architectures. Here it is a common way to say, security must handled be the database objects (for example), not by the objects which are only a viewer. My problem is 1) that these viewers are mediators of security and 2) that in complex systems this viewers can be itself complex object with model-view architecture. From this I would naively think, that looking at security of buisness logic objects is not enough, or in other words, the partitioning in model-view is not unambiguous and (in some way) fractal. BTW, thats one point why I like Tweak, because it's architecture adresses this problem. But maybe I'm only paranoid :-)) Thanks for the code example, it answers indeed my question. Regards Hans From HNBeck at t-online.de Mon May 1 11:32:08 2006 From: HNBeck at t-online.de (Hans N Beck) Date: Mon, 1 May 2006 11:32:08 +0200 Subject: Security (was: Re: Pier user in context) In-Reply-To: References: <592AC73A-5A71-47B7-BEC1-FB1846CF481B@t-online.de> <2739B88A-DB19-420A-9823-EFF372B0270C@iam.unibe.ch> <590EAD3C-B0A1-4815-9B76-FDF561C9ADD3@t-online.de> Message-ID: <1DE346B2-200D-487C-818F-57629718EBBF@t-online.de> Hi Lukas, what I forgott: thanks for the answers, Lukas ! Regards Hans From renggli at iam.unibe.ch Mon May 1 19:22:54 2006 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 1 May 2006 19:22:54 +0200 Subject: Security (was: Re: Pier user in context) In-Reply-To: References: <592AC73A-5A71-47B7-BEC1-FB1846CF481B@t-online.de> <2739B88A-DB19-420A-9823-EFF372B0270C@iam.unibe.ch> <590EAD3C-B0A1-4815-9B76-FDF561C9ADD3@t-online.de> Message-ID: <9A671BBF-BF16-4E11-A47A-CA6BB59D447B@iam.unibe.ch> > Yes, I know that this is a common way to think. What bothers me is > this (from a naive point of view): > > - security should not something which is only be added (thats the > nature of decoration), because what was added can also be removed or > forget to add. Well, as soon as the unix security package is loaded, the security decoration adds itself automatically to all newly created structures. There is no easy way, except by manually editing the object-graph from the inspector, to add or remove security decorations. > It seems more natural to me that security is deep in > the mechanism of objects (or better message send), like the vats in E > or Islands in Croquet. In my opinion this is something different. I want to keep as much as possible pluggable in Pier, so that users with different needs can use different security systems. There are already two security frameworks that both work nicely, that both have advantages and disadvantages, and that every user can decide to use or not to use. > - if one say model or buisness logic, one could easily think at the > multi tier architectures. Here it is a common way to say, security > must handled be the database objects (for example), not by the > objects which are only a viewer. My problem is 1) that these viewers > are mediators of security and 2) that in complex systems this > viewers can be itself complex object with model-view architecture. In Pier the security is not handled by the view, but by the model. That is also the reason why it works in the Seaside view and in the OmniBrowser view without additional code. > From this I would naively think, that looking at security of > buisness logic objects is not enough, or in other words, the > partitioning in model-view is not unambiguous and (in some way) > fractal. BTW, thats one point why I like Tweak, because it's > architecture adresses this problem. Yeah, this is true for Pier. Some logic had to be duplicated in different views, because the (meta-)model (Magritte) is unable to handle it in a generic way, e.g. when rendering links to HTML or a pretty printed Text-Stream I have in both cases to manually check the permission to be able to render the link disabled, however even it would not be rendered disabled users would be unable to navigate there because this would activate an invalid-context and the context is part of the model. Hope this clarifies some things, Lukas Side-note: I do not claim that the security model of Pier is secure and impossible to break, as with everything I write as open-source it suits my personal needs. Bug-reports, fixes and enhancements are always welcome. -- Lukas Renggli http://www.lukas-renggli.ch From hnbeck at t-online.de Mon May 1 20:14:16 2006 From: hnbeck at t-online.de (Hans N Beck) Date: Mon, 1 May 2006 20:14:16 +0200 Subject: Security (was: Re: Pier user in context) In-Reply-To: <9A671BBF-BF16-4E11-A47A-CA6BB59D447B@iam.unibe.ch> References: <592AC73A-5A71-47B7-BEC1-FB1846CF481B@t-online.de> <2739B88A-DB19-420A-9823-EFF372B0270C@iam.unibe.ch> <590EAD3C-B0A1-4815-9B76-FDF561C9ADD3@t-online.de> <9A671BBF-BF16-4E11-A47A-CA6BB59D447B@iam.unibe.ch> Message-ID: <47C99820-872E-41C6-86E9-CCD2F225E330@t-online.de> Hi, > >> - if one say model or buisness logic, one could easily think at the >> multi tier architectures. Here it is a common way to say, security >> must handled be the database objects (for example), not by the >> objects which are only a viewer. My problem is 1) that these viewers >> are mediators of security and 2) that in complex systems this >> viewers can be itself complex object with model-view architecture. > > In Pier the security is not handled by the view, but by the model. > That is also the reason why it works in the Seaside view and in the > OmniBrowser view without additional code. Yes, this is clear (because decorators are part of model) if looking at "Seaside only" solutions. My statement above was made by thinking Seaside/Pier itself as a view in a greater solution. But ok, where to draw the borders between model and view may be somewhat academic :-) >> > > Hope this clarifies some things, Oh, I understand the implementation in Pier, and also the intention. I only want to play with a different point of view ;-) > > Side-note: I do not claim that the security model of Pier is secure > and impossible to break, as with everything I write as open-source it > suits my personal needs. Bug-reports, fixes and enhancements are > always welcome. Hey ! Don't be angry, I know the rules of open-source, and I never want to be destructive. I'm only interested in different point of views, discussions and the question "why ?" 8-) So thank you very much for the answers. I hope we could talk a little bit further at some SqueakNic or something like this :-) Greetings Hans From ramonleon at cox.net Tue May 2 04:18:21 2006 From: ramonleon at cox.net (Ramon Leon) Date: Mon, 01 May 2006 19:18:21 -0700 Subject: Tasks In-Reply-To: <47C99820-872E-41C6-86E9-CCD2F225E330@t-online.de> References: <592AC73A-5A71-47B7-BEC1-FB1846CF481B@t-online.de> <2739B88A-DB19-420A-9823-EFF372B0270C@iam.unibe.ch> <590EAD3C-B0A1-4815-9B76-FDF561C9ADD3@t-online.de> <9A671BBF-BF16-4E11-A47A-CA6BB59D447B@iam.unibe.ch> <47C99820-872E-41C6-86E9-CCD2F225E330@t-online.de> Message-ID: <4456C16D.7000606@cox.net> Lucas, is there a particular reason that Pier doesn't allow WATask subclasses to be added as components? From renggli at iam.unibe.ch Tue May 2 07:19:15 2006 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 2 May 2006 07:19:15 +0200 Subject: Tasks In-Reply-To: <4456C16D.7000606@cox.net> References: <592AC73A-5A71-47B7-BEC1-FB1846CF481B@t-online.de> <2739B88A-DB19-420A-9823-EFF372B0270C@iam.unibe.ch> <590EAD3C-B0A1-4815-9B76-FDF561C9ADD3@t-online.de> <9A671BBF-BF16-4E11-A47A-CA6BB59D447B@iam.unibe.ch> <47C99820-872E-41C6-86E9-CCD2F225E330@t-online.de> <4456C16D.7000606@cox.net> Message-ID: <8608F138-6F53-46C4-9623-F464A42D1A53@iam.unibe.ch> > Lucas, is there a particular reason that Pier doesn't allow WATask > subclasses to be added as components? Actually subclasses of WATask should work. In some older versions of Pier there was a bug that a WATask rendered empty on the first request, however I think this problem is solved in current versions of Pier. Can you give some more details about your task? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From rleon at insario.com Tue May 2 18:48:30 2006 From: rleon at insario.com (Ramon Leon) Date: Tue, 2 May 2006 09:48:30 -0700 Subject: Tasks Message-ID: <24C40DFA333DC44882F9FB0115F33D8F49A584@ARGON.insario.local> > Actually subclasses of WATask should work. In some older > versions of Pier there was a bug that a WATask rendered empty > on the first request, however I think this problem is solved > in current versions of Pier. > > Can you give some more details about your task? > > Cheers, > Lukas My bad, I'd forgotten to add canBeRoot on the class side, wasn't showing up in the component list. Works fine. From chris at wysseier.net Tue May 2 23:06:05 2006 From: chris at wysseier.net (Christoph Wysseier) Date: Tue, 02 May 2006 23:06:05 +0200 Subject: Pier Environment Changes Message-ID: <4457C9BD.2040901@wysseier.net> Hi Lukas I tried to change as a first step the environment (adding my own layers and removing the ugly tables) using the following statement:
+commands+
+tree+
+contents+
But it seems, that this code gets escaped. Inspecting the kernel and its root structure I see my HTML code as part of a paragraph which seems to escape all the HTML characters... Help is welcome! ;-) Cheers, Chris -- -------------------------------- Christoph Wysseier L?nggassstr. 74 3012 Bern T +41 31 972 92 08 M +41 78 616 35 35 chris at wysseier.net -------------------------------- From rleon at insario.com Tue May 2 23:41:19 2006 From: rleon at insario.com (Ramon Leon) Date: Tue, 2 May 2006 14:41:19 -0700 Subject: Pier Environment Changes Message-ID: <24C40DFA333DC44882F9FB0115F33D8F49A598@ARGON.insario.local> > > I tried to change as a first step the environment (adding my > own layers and removing the ugly tables) using the following > statement: >
+commands+
id="divLeft">
+tree+
id="divContents">+contents+
> > But it seems, that this code gets escaped. Inspecting the > kernel and its root structure I see my HTML code as part of a > paragraph which seems to escape all the HTML characters... > > Help is welcome! ;-) > > Cheers, Chris Are you sure that is one single string with no carrige returns anywhere? From renggli at iam.unibe.ch Wed May 3 08:02:15 2006 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 3 May 2006 08:02:15 +0200 Subject: Pier Environment Changes In-Reply-To: <24C40DFA333DC44882F9FB0115F33D8F49A598@ARGON.insario.local> References: <24C40DFA333DC44882F9FB0115F33D8F49A598@ARGON.insario.local> Message-ID: <7975AF79-F182-4140-B8B8-40AB7064B182@iam.unibe.ch> >> I tried to change as a first step the environment (adding my >> own layers and removing the ugly tables) using the following >> statement: >>
+commands+
> id="divLeft">
+tree+
> id="divContents">+contents+
>> >> But it seems, that this code gets escaped. Inspecting the >> kernel and its root structure I see my HTML code as part of a >> paragraph which seems to escape all the HTML characters... >> >> Help is welcome! ;-) >> >> Cheers, Chris > > Are you sure that is one single string with no carrige returns > anywhere? And that you have a current version of Pier, older versions put

around paragraphs and sort of turned the resulting html invalid (

and

are not allowed to nest into other

). This is fixed in later versions by using

for paragraphs. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From cbeler at enit.fr Thu May 4 12:04:50 2006 From: cbeler at enit.fr (=?ISO-8859-1?Q?C=E9drick_B=E9ler?=) Date: Thu, 04 May 2006 12:04:50 +0200 Subject: [Magritte] Relation description with instances of a class Message-ID: <4459D1C2.1040601@enit.fr> Hi Is it possible to use existing descriptions to express a relation with object existing or not ? We could imagine choosing a responsible from an existing list of person defined by a class Person. If the person doens't exist, we can instanciate a new one. I will try to create an appropriate description but I don't really know where to subclass as it is a bit of a mix between a SingleOptionDescription with instances of a class as option and a ToOneRelation description with class Person. What do you think ? I ve tried with a MASingleOption description defining the reference as Person description and options as my repository of users but that hangs (due to the reference wich is a Caontainer Description I guess)... I also tried with MADynamicDescription without result... that makes me ask another question... Are all MADynamicObject used with classes or subclasses as it is in my image ? thanks C?drick From renggli at iam.unibe.ch Thu May 4 12:25:36 2006 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 4 May 2006 12:25:36 +0200 Subject: [Magritte] Relation description with instances of a class In-Reply-To: <4459D1C2.1040601@enit.fr> References: <4459D1C2.1040601@enit.fr> Message-ID: > I will try to create an appropriate description but I don't really > know > where to subclass as it is a bit of a mix between a > SingleOptionDescription with instances of a class as option and a > ToOneRelation description with class Person. What do you think ? Yes, those two already duplicate some code, traits would be of a big help here ;-) Anyway, I would subclass the ToOneRelation and try to copy the things you need from the SingleOptionDescription (probably only #options) over into your new class. The same for the views. > that makes me ask another question... Are all MADynamicObject used > with > classes or subclasses as it is in my image ? No, that should work with any block of code. However MADynamicObject does not work together with the Smalltalk Debugger, as the debugger tries to evaluate the block again when displaying the object in its inspector causing yet another error and debugger ... So one thing you have to make sure beforehand is that the code in MADynamicObject works as expected by copying the contents of the block to a workspace and testing it there. I tend to discourage the use of MADynamicObject because it usually causes more troubles than it solves. It is much a better approach to create your descriptions dynamically on the instance side, if you need to build them depending on the state of your model. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From cbeler at enit.fr Thu May 4 14:07:40 2006 From: cbeler at enit.fr (=?ISO-8859-1?Q?C=E9drick_B=E9ler?=) Date: Thu, 04 May 2006 14:07:40 +0200 Subject: [Magritte] Relation description with instances of a class In-Reply-To: References: <4459D1C2.1040601@enit.fr> Message-ID: <4459EE8C.9050005@enit.fr> >Yes, those two already duplicate some code, traits would be of a big >help here ;-) > > was wondering if they could could be grouped... an option description is a kind of relationDesc except the reference is not a container but a single description... >Anyway, I would subclass the ToOneRelation and try to copy the things >you need from the SingleOptionDescription (probably only #options) >over into your new class. The same for the views. > > > I'll try that and let you know if I get something working >So one thing you have to make sure beforehand is that the code in >MADynamicObject works as expected by copying the contents of the >block to a workspace and testing it there. > > ok I see :) >I tend to discourage the use of MADynamicObject because it usually >causes more troubles than it solves. It is much a better approach to >create your descriptions dynamically on the instance side, if you >need to build them depending on the state of your model. > > > Isn't MADynamicObject used because of the cached description ? Thanks Lukas ;) C?drick From damien.cassou at laposte.net Fri May 5 16:28:37 2006 From: damien.cassou at laposte.net (Damien Cassou) Date: Fri, 05 May 2006 16:28:37 +0200 Subject: [Magritte] LaTeX builder bugs Message-ID: <445B6115.9090104@laposte.net> Hi, when trying: PRLatexBuilder build the first error comes because there is no 'docs' directory in the default directory. the second one arrives because there is no #methodsInCategory:ofClass: method in PackageInfo (used in PRLatexBuilder>>buildClass:category:on:) Bye -- Damien Cassou From stephane.ducasse at univ-savoie.fr Fri May 5 15:12:12 2006 From: stephane.ducasse at univ-savoie.fr (=?ISO-8859-1?Q?St=E9phane_Ducasse?=) Date: Fri, 5 May 2006 15:12:12 +0200 Subject: About Modern Access-Control Policies Message-ID: Hi Shriram Krisnarmurthi (DR Scheme) presented a nice model to identify problem in complex modern access-control at dagsthul. What is interesting is that they offer a tool (margrave) to see if there is no strange configuration, especially in the sense of evolution of the access control. Apparently now there are languages to express access control: XACML seems the most important. Stef From hnbeck at t-online.de Fri May 5 17:42:41 2006 From: hnbeck at t-online.de (Hans N Beck) Date: Fri, 5 May 2006 17:42:41 +0200 Subject: About Modern Access-Control Policies In-Reply-To: References: Message-ID: <34C60C64-BFFC-48FE-B5F0-62C5B4F454AB@t-online.de> Hi, interesting 8-) Thanks for the pointer. It seems to be this: http:// www.cs.brown.edu/research/plt/software/margrave/ ? Regards Hans Am 05.05.2006 um 15:12 schrieb St?phane Ducasse: > Hi > > Shriram Krisnarmurthi (DR Scheme) presented a nice model to identify > problem in complex modern access-control > at dagsthul. > > What is interesting is that they offer a tool (margrave) to see if > there is no strange configuration, especially in the sense > of evolution of the access control. > > Apparently now there are languages to express access control: XACML > seems the most important. > > Stef > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From renggli at iam.unibe.ch Fri May 5 17:53:08 2006 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 5 May 2006 17:53:08 +0200 Subject: [Magritte] LaTeX builder bugs In-Reply-To: <445B6115.9090104@laposte.net> References: <445B6115.9090104@laposte.net> Message-ID: <32002C73-BBEB-4AE1-9881-627C9D1F4607@iam.unibe.ch> > PRLatexBuilder build The PRLatexBuilder is not really an official package, it is just used to put the documentation of my master together ;-) If anybody is interested to build latex documentation from class comments this could be probably easily fixed. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.cassou at laposte.net Fri May 5 18:03:40 2006 From: damien.cassou at laposte.net (Damien Cassou) Date: Fri, 05 May 2006 18:03:40 +0200 Subject: [Magritte] LaTeX builder bugs In-Reply-To: <32002C73-BBEB-4AE1-9881-627C9D1F4607@iam.unibe.ch> References: <445B6115.9090104@laposte.net> <32002C73-BBEB-4AE1-9881-627C9D1F4607@iam.unibe.ch> Message-ID: <445B775C.4070401@laposte.net> > The PRLatexBuilder is not really an official package, it is just used > to put the documentation of my master together ;-) > > If anybody is interested to build latex documentation from class > comments this could be probably easily fixed. Can you fix the minimum to make things work ? -- Damien Cassou From renggli at iam.unibe.ch Fri May 5 18:35:57 2006 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 5 May 2006 18:35:57 +0200 Subject: [Magritte] LaTeX builder bugs In-Reply-To: <445B775C.4070401@laposte.net> References: <445B6115.9090104@laposte.net> <32002C73-BBEB-4AE1-9881-627C9D1F4607@iam.unibe.ch> <445B775C.4070401@laposte.net> Message-ID: <4F4F05E6-5783-4CAE-9C27-D6968B121D75@iam.unibe.ch> > Can you fix the minimum to make things work ? As I said it works for me. I changed the code to automatically create the directory if missing. For the other problem you probably need to load the latest PackageInfo. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From cbeler at enit.fr Sun May 7 00:21:13 2006 From: cbeler at enit.fr (=?ISO-8859-1?Q?C=E9drick_B=E9ler?=) Date: Sun, 07 May 2006 00:21:13 +0200 Subject: scriptaculous and magritte Message-ID: <445D2159.2060309@enit.fr> Hi I was triing to use scriptaculous with component generated by Magritte... and it's not working. I used the same code as the select-list example in a subclass of MASelectListComponent. When used alone, it works fine (registeredAsApplication + SUScriptLibrary)... but if I use it as the componentClass of a MASingleOptionDescription in renderEditorOn: it doesn't work... (I added the SUScriptLibrary in the main component that call it ). Do you have an idea ? Thanks C?drick From dominiqued at versateladsl.be Mon May 8 16:01:08 2006 From: dominiqued at versateladsl.be (Dominique Dutoit) Date: Mon, 8 May 2006 16:01:08 +0200 Subject: PRPersistency status Message-ID: Hi, It seems that the log feature works for both PRFilePersistency and PRImagePersistency, but the History and Change reports always generate a backtrace. I have tried to figure out what is happening, but it looks like that the history feature is just not there. Any idea when it will be available? Dominique From renggli at iam.unibe.ch Mon May 8 22:03:05 2006 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 8 May 2006 22:03:05 +0200 Subject: PRPersistency status In-Reply-To: References: Message-ID: <876F25CD-63D4-48A1-8237-EF534B16F6BA@iam.unibe.ch> Hi, > I have tried to figure out what is happening, but it looks like that > the history feature is just not there. > > Any idea when it will be available? yes, you are right: persistency, history and logging is basically missing. As I presented at Smalltalk Solutions there is some experimental code available that can be made to work with some tweaks, but that approach doesn't seem to work well and scale good enough for the future. I spent some time to rethink the whole concept, and I am definitely planning to spend time to come up with something reliable, but I am simply too busy writing my Master and giving Seaside, Magritte and Pier presentations (almost) all over the world. Again this is more a problem of having the necessary time to do it, than to do the actual implementation. Of course anybody is free to write its own persistency framework, as far as I know some guys at Impara did that and wrote an XML back-end? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Mon May 8 22:04:44 2006 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 8 May 2006 22:04:44 +0200 Subject: scriptaculous and magritte In-Reply-To: <445D2159.2060309@enit.fr> References: <445D2159.2060309@enit.fr> Message-ID: <7EFD7482-BC78-4388-8334-BFCA6AD2A0BC@iam.unibe.ch> > When used alone, it works fine (registeredAsApplication + > SUScriptLibrary)... but if I use it as the componentClass of a > MASingleOptionDescription in renderEditorOn: it doesn't work... (I > added the SUScriptLibrary in the main component that call it ). What exactly does not work? The serialization of the drop-down? > Do you have an idea ? Can you provide some code? I don't have any idea ;-) Lukas -- Lukas Renggli http://www.lukas-renggli.ch From cbeler at enit.fr Tue May 9 11:47:28 2006 From: cbeler at enit.fr (=?ISO-8859-15?Q?C=E9drick_B=E9ler?=) Date: Tue, 09 May 2006 11:47:28 +0200 Subject: [Seaside] Project Flux RSS In-Reply-To: <20060509094114.27570.24733@www8.univ-savoie.fr> References: <20060509094114.27570.24733@www8.univ-savoie.fr> Message-ID: <44606530.7020906@enit.fr> Hi >So, I need a documentation of the meta-model 'Magritte'. > > you should post on this list for Magritte related questions ;) smallwiki at iam.unibe.ch and go to: www.lukas-renggli.ch and then Magritte for documentation and exercices ;) See you C?drick From cbeler at enit.fr Tue May 9 11:48:18 2006 From: cbeler at enit.fr (=?ISO-8859-15?Q?C=E9drick_B=E9ler?=) Date: Tue, 09 May 2006 11:48:18 +0200 Subject: [Seaside] Project Flux RSS In-Reply-To: <20060509094114.27570.24733@www8.univ-savoie.fr> References: <20060509094114.27570.24733@www8.univ-savoie.fr> Message-ID: <44606562.5020800@enit.fr> Hi >So, I need a documentation of the meta-model 'Magritte'. > > you should post on this list for Magritte related questions ;) smallwiki at iam.unibe.ch and go to: www.lukas-renggli.ch and then Magritte for documentation and exercices ;) See you C?drick ps: Steph, are all questions valid for the + one point ? ;) From cbeler at enit.fr Tue May 9 19:18:47 2006 From: cbeler at enit.fr (=?ISO-8859-1?Q?C=E9drick_B=E9ler?=) Date: Tue, 09 May 2006 19:18:47 +0200 Subject: scriptaculous and magritte In-Reply-To: <7EFD7482-BC78-4388-8334-BFCA6AD2A0BC@iam.unibe.ch> References: <445D2159.2060309@enit.fr> <7EFD7482-BC78-4388-8334-BFCA6AD2A0BC@iam.unibe.ch> Message-ID: <4460CEF7.1010808@enit.fr> > >What exactly does not work? The serialization of the drop-down? > > euh... the dynamic rendering... serialization ? in the div control As soon as I registered a component with the code that was in renderEditorOn: in renderContentOn: (of the new one). It worked ! > >Can you provide some code? I don't have any idea ;-) > > > oups, I think I deleted it... I'll give another try soon and let you know... Oh also, are there any ajax stuff that easyly work with magritte component ? as there is ajaxId in MAComponent and hasScriptaculous but no senders in my image ;) Thanks C?drick From renggli at iam.unibe.ch Tue May 9 21:36:20 2006 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 9 May 2006 21:36:20 +0200 Subject: scriptaculous and magritte In-Reply-To: <4460CEF7.1010808@enit.fr> References: <445D2159.2060309@enit.fr> <7EFD7482-BC78-4388-8334-BFCA6AD2A0BC@iam.unibe.ch> <4460CEF7.1010808@enit.fr> Message-ID: > Oh also, are there any ajax stuff that easyly work with magritte > component ? as there is ajaxId in MAComponent and hasScriptaculous but > no senders in my image ;) Currently I have no open-source code that combines Magritte and script.aculo.us. At netstyle.ch we are combining both frameworks in some proprietary code, but I guess it wouldn't be easily useable within a different context. It would definitely require a lot of additional time to extract the interesting code and this is something I don't have (master) at all right now :-( Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From ramonleon at cox.net Wed May 10 09:38:12 2006 From: ramonleon at cox.net (Ramon Leon) Date: Wed, 10 May 2006 00:38:12 -0700 Subject: scriptaculous and magritte In-Reply-To: <4460CEF7.1010808@enit.fr> References: <445D2159.2060309@enit.fr> <7EFD7482-BC78-4388-8334-BFCA6AD2A0BC@iam.unibe.ch> <4460CEF7.1010808@enit.fr> Message-ID: <44619864.1030401@cox.net> > Oh also, are there any ajax stuff that easyly work with magritte > component ? as there is ajaxId in MAComponent and hasScriptaculous but > no senders in my image ;) > > Thanks > > C?drick Look for MAStringDescription autoCompleteWith: which takes a list, and will be used by the MATextInputComponent's renderEditorOn: to hook up autocomplete if hasScriptaculous returns true. From ramonleon at cox.net Wed May 10 09:39:07 2006 From: ramonleon at cox.net (Ramon Leon) Date: Wed, 10 May 2006 00:39:07 -0700 Subject: scriptaculous and magritte In-Reply-To: <4460CEF7.1010808@enit.fr> References: <445D2159.2060309@enit.fr> <7EFD7482-BC78-4388-8334-BFCA6AD2A0BC@iam.unibe.ch> <4460CEF7.1010808@enit.fr> Message-ID: <4461989B.8040102@cox.net> > oups, I think I deleted it... > I'll give another try soon and let you know... > > Oh also, are there any ajax stuff that easyly work with magritte > component ? as there is ajaxId in MAComponent and hasScriptaculous but > no senders in my image ;) > > Thanks > > C?drick Oh, my last was assuming you're using the latest code. From ramonleon at cox.net Thu May 11 06:04:47 2006 From: ramonleon at cox.net (Ramon Leon) Date: Wed, 10 May 2006 21:04:47 -0700 Subject: encoding problems and vm crashing Message-ID: <4462B7DF.2070202@cox.net> Hi, so I was playing around with the wiki a bit, started to paste in some text from another web page, which contained the following... ?Head Start? When I save it, the squeak VM blow chunks and dies, I think on the illegal characters. I'm not sure how to tackle this, I'm assuming it's really a seaside problem accepting the form upload without properly forcing some encoding on it or something. Anyone have any ideas here, someone's had to ran into this already, pasting text into Pier being fatal. Suggestions? From renggli at iam.unibe.ch Fri May 12 18:28:33 2006 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 12 May 2006 18:28:33 +0200 Subject: encoding problems and vm crashing In-Reply-To: <4462B7DF.2070202@cox.net> References: <4462B7DF.2070202@cox.net> Message-ID: <202AE63A-9870-4860-B558-E5C4C07C391C@iam.unibe.ch> > ?Head Start? > > When I save it, the squeak VM blow chunks and dies, I think on the > illegal characters. I'm not sure how to tackle this, I'm assuming > it's > really a seaside problem accepting the form upload without properly > forcing some encoding on it or something. Anyone have any ideas here, > someone's had to ran into this already, pasting text into Pier being > fatal. Suggestions? Mhh, it works in my 3.8 image and vm. Can you reproduce this with a simpler application? Maybe even without the web? Do you get a stack- trace in the console? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From rleon at insario.com Fri May 12 19:21:07 2006 From: rleon at insario.com (Ramon Leon) Date: Fri, 12 May 2006 10:21:07 -0700 Subject: encoding problems and vm crashing Message-ID: <24C40DFA333DC44882F9FB0115F33D8F49A624@ARGON.insario.local> > > > "Head Start" > > > > When I save it, the squeak VM blow chunks and dies, I think on the > > illegal characters. I'm not sure how to tackle this, I'm assuming > > it's really a seaside problem accepting the form upload without > > properly forcing some encoding on it or something. Anyone have any > > ideas here, someone's had to ran into this already, pasting > text into > > Pier being fatal. Suggestions? > > Mhh, it works in my 3.8 image and vm. Can you reproduce this > with a simpler application? Maybe even without the web? Do > you get a stack- trace in the console? > > Cheers, > Lukas > Hmm.. I don't have it handy at the moment, but I do recall seeing something in the stack trace about fonts, I have Win32 fonts installed, let me try it tonight when I get home on a clean VM and see. BTW, can you review my notes on the latest Pier check in, I was working on PRFilePersistency and could use a little input. From ramonleon at cox.net Fri May 12 21:07:06 2006 From: ramonleon at cox.net (Ramon Leon) Date: Fri, 12 May 2006 12:07:06 -0700 Subject: encoding problems and vm crashing In-Reply-To: <202AE63A-9870-4860-B558-E5C4C07C391C@iam.unibe.ch> References: <4462B7DF.2070202@cox.net> <202AE63A-9870-4860-B558-E5C4C07C391C@iam.unibe.ch> Message-ID: <4464DCDA.6090409@cox.net> Lukas Renggli wrote: >> ?Head Start? >> >>When I save it, the squeak VM blow chunks and dies, I think on the >>illegal characters. I'm not sure how to tackle this, I'm assuming >>it's >>really a seaside problem accepting the form upload without properly >>forcing some encoding on it or something. Anyone have any ideas here, >>someone's had to ran into this already, pasting text into Pier being >>fatal. Suggestions? > > > Mhh, it works in my 3.8 image and vm. Can you reproduce this with a > simpler application? Maybe even without the web? Do you get a stack- > trace in the console? > > Cheers, > Lukas > Found it... I'd forgotten that I had used some sample code you threw up for compressing the response to the clients. convertResponse: aResponse | response gzip stream | response := super convertResponse: aResponse. response fieldAt: 'Content-Encoding' put: 'gzip'. gzip := GZipWriteStream on: (stream := RWBinaryOrTextStream on: ''). gzip nextPutAll: aResponse contents contents; close. ^response contents: stream reset Pier works great without that, guess it has some issues with some characters or something. From ssastre at seaswork.com.ar Mon May 15 18:45:52 2006 From: ssastre at seaswork.com.ar (=?iso-8859-1?Q?Sebasti=E1n_Sastre?=) Date: Mon, 15 May 2006 13:45:52 -0300 Subject: There is no space for this set! Message-ID: Hi folks, I have this ugly walback a pair of times in a Pier wiki. I've quit saving, then restarted the wiki, and after a couple of times of doing this it not happen again. I'm using the default persistent mechanism. I supouse it's image based because no files are added to the base path of that squeak image and I have to save the image to persist changes. Is the persistent mechanism envolved with this scenario or not? if so, wich alternative do you recomend? how can I make it file based? thanks, Sebastian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20060515/cb62cbeb/attachment.html From keith_hodges at yahoo.co.uk Sun May 21 05:45:42 2006 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Sun, 21 May 2006 04:45:42 +0100 Subject: [Smallwiki] Re: Installation of Pier In-Reply-To: <67628d690602180854j6bd64fcfk47eecb8c49e08c2f@mail.gmail.com> References: <1609391017-1140262260-cardhu_blackberry.rim.net-24462-@engine21-cell01.bwc.produk.on.blackberry> <67628d690602180854j6bd64fcfk47eecb8c49e08c2f@mail.gmail.com> Message-ID: <446FE266.4030901@yahoo.co.uk> I cant find Pier on SqueakMap can you help? Keith Send instant messages to your online friends http://uk.messenger.yahoo.com From keith_hodges at yahoo.co.uk Sun May 21 05:57:36 2006 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Sun, 21 May 2006 04:57:36 +0100 Subject: [Smallwiki] Re: Installation of Pier In-Reply-To: <67628d690602180854j6bd64fcfk47eecb8c49e08c2f@mail.gmail.com> References: <1609391017-1140262260-cardhu_blackberry.rim.net-24462-@engine21-cell01.bwc.produk.on.blackberry> <67628d690602180854j6bd64fcfk47eecb8c49e08c2f@mail.gmail.com> Message-ID: <446FE530.8060902@yahoo.co.uk> Dont woorry, I sussed it, it owuld be helpful to mention that Squeakmap needs refreshing/updating before attempting to do anything. I cant find Pier on SqueakMap can you help? Keith Send instant messages to your online friends http://uk.messenger.yahoo.com From damien.pollet at gmail.com Sun May 21 22:18:33 2006 From: damien.pollet at gmail.com (Damien Pollet) Date: Sun, 21 May 2006 22:18:33 +0200 Subject: Finding my way in Pier's code Message-ID: <34b4844b0605211318t58fb5cc4i68d52fe3a8345102@mail.gmail.com> Hi, I'm trying to tweak Pier to use
elements instead of tables; Ieasily located the code generating the header in PRHeaderWidget, but Ican't find where the is generated... is this aPRXHtmlWidget ? -- Damien Pollet type less, do more From renggli at iam.unibe.ch Mon May 22 10:34:13 2006 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 22 May 2006 10:34:13 +0200 Subject: Finding my way in Pier's code In-Reply-To: <34b4844b0605211318t58fb5cc4i68d52fe3a8345102@mail.gmail.com> References: <34b4844b0605211318t58fb5cc4i68d52fe3a8345102@mail.gmail.com> Message-ID: <3D229E12-3555-4B10-83F8-48283ADEFFF6@iam.unibe.ch> > I'm trying to tweak Pier to use
elements instead of tables; > Ieasily located the code generating the header in PRHeaderWidget, > but Ican't find where the
is generated... is > this aPRXHtmlWidget ? This is not hardcoded, this is part of the Pier model itself. There are two possibilities to change it: 1. Point your browser to '/environment' and edit this hidden page. If you are using the latest version of Pier, you don't need to type this path manually, but instead just log-in as admin and point to the location. 2. Change the code that creates the default environment in PRStructure>>environmentStructure and reset your existing kernel: PRKernel reset. PRPierFrame initialize. If you have a solution (not necessarily with the same design, but at least with the same functionality) that works in IE, Firefox and Safari I am very interested to include it into the main distribution. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.pollet at gmail.com Mon May 22 12:39:55 2006 From: damien.pollet at gmail.com (Damien Pollet) Date: Mon, 22 May 2006 12:39:55 +0200 Subject: Finding my way in Pier's code In-Reply-To: <3D229E12-3555-4B10-83F8-48283ADEFFF6@iam.unibe.ch> References: <34b4844b0605211318t58fb5cc4i68d52fe3a8345102@mail.gmail.com> <3D229E12-3555-4B10-83F8-48283ADEFFF6@iam.unibe.ch> Message-ID: <34b4844b0605220339h1845cbd4g5440096c27b608e6@mail.gmail.com> On 5/22/06, Lukas Renggli wrote:> This is not hardcoded, this is part of the Pier model itself. There> are two possibilities to change it: OK thanks! > If you have a solution (not necessarily with the same design, but at> least with the same functionality) that works in IE, Firefox and> Safari I am very interested to include it into the main distribution. Well if it works in IE that'll be by chance, I can't check myself :-) -- Damien Pollet type less, do more From viktor.svub at seznam.cz Mon May 22 14:35:03 2006 From: viktor.svub at seznam.cz (Viktor Svub) Date: Mon, 22 May 2006 14:35:03 +0200 Subject: Pier & OB complications Message-ID: <4471AFF7.7000602@seznam.cz> I've loaded OmniBrowser and Pier 1.0.4a via SqueakMap and the web part is working, but i get several errors if trying to use the 'PierBrowser': 1. the browser can view the kernel, but the menus for the upper (selection) panes are broken -> either the right-button click, or click on the scrollbar-icon throws "MessageNotUnderstood: MenuIcons class>>inspectIcon". 2. I'm not able to accept the edited page content (in the "OBPluggable Text" pane - i'm not sure if it's a bug or a not-yet-implemented feature). There are also issues with the Seaside part using UTF-8 encoding (WAKomEncoded), but they seem to be at least partially based in the Seaside itself and i can't test them any further without the possibility to edit the page content from within the image. Viktor Svub From renggli at iam.unibe.ch Mon May 22 15:23:10 2006 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 22 May 2006 15:23:10 +0200 Subject: Pier & OB complications In-Reply-To: <4471AFF7.7000602@seznam.cz> References: <4471AFF7.7000602@seznam.cz> Message-ID: <2BA8B15F-4BB2-4485-8114-C2364526D1AD@iam.unibe.ch> > I've loaded OmniBrowser and Pier 1.0.4a via SqueakMap and the web part > is working, but i get several errors if trying to use the > 'PierBrowser': > 1. the browser can view the kernel, but the menus for the upper > (selection) panes are broken -> either the right-button click, or > click > on the scrollbar-icon throws "MessageNotUnderstood: MenuIcons > class>>inspectIcon". > 2. I'm not able to accept the edited page content (in the "OBPluggable > Text" pane - i'm not sure if it's a bug or a not-yet-implemented > feature). You need the very latest version of OmniBrowser, not the one from SqueakMap. There were some changes in the way the meta-model is created that breaks the compatibility. > There are also issues with the Seaside part using UTF-8 encoding > (WAKomEncoded), but they seem to be at least partially based in the > Seaside itself and i can't test them any further without the > possibility > to edit the page content from within the image. Well, this is probably a question to ask in the Seaside mailing list. I never used WAKomEncoded, I never encountered problems with WAKom and I do have funny/non-standard characters in my mother language. Make sure you have the right encoding set in the resulting XHTML. I think Squeak 3.8 and later uses UTF-8 for its strings, so everything should be fine with . For Squeak 3.7 you need to change the XML declaration to the ISO Mac encoding. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.pollet at gmail.com Thu May 25 23:58:40 2006 From: damien.pollet at gmail.com (Damien Pollet) Date: Thu, 25 May 2006 23:58:40 +0200 Subject: Finding my way in Pier's code In-Reply-To: <34b4844b0605220339h1845cbd4g5440096c27b608e6@mail.gmail.com> References: <34b4844b0605211318t58fb5cc4i68d52fe3a8345102@mail.gmail.com> <3D229E12-3555-4B10-83F8-48283ADEFFF6@iam.unibe.ch> <34b4844b0605220339h1845cbd4g5440096c27b608e6@mail.gmail.com> Message-ID: <34b4844b0605251458u6ba13295h476dddd75e4dd7c7@mail.gmail.com> > > If you have a solution (not necessarily with the same design, but at > > least with the same functionality) that works in IE, Firefox and > > Safari I am very interested to include it into the main distribution. I have this, only tested in FF linux... 1) change /environment to: +header+
+views+ +commands+ +tree+
+contents+
Pier — Empowered by Seaside
2) change this method: PRHeaderWidget>>renderTitleOn: html html div class: 'banner'; with: [ html div class: 'start'. html div class: 'middle'; with: [ html div class: 'title'; with: (self expand: self title). html div class: 'tabs'; with: [ self renderTabsOn: html ]. ]. html div class: 'end']. 3) apply attached patch to the CSS (sorry about the different spacing...) -- Damien Pollet type less, do more -------------- next part -------------- A non-text attachment was scrubbed... Name: css.diff Type: text/x-patch Size: 2848 bytes Desc: not available Url : http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20060525/8939945b/css.bin From chapbr+pier at sciencegeeks.org Fri May 26 00:25:04 2006 From: chapbr+pier at sciencegeeks.org (Brian Chapados) Date: Thu, 25 May 2006 15:25:04 -0700 (PDT) Subject: Pier design with css Message-ID: <53076.137.131.108.94.1148595904.squirrel@webmail.tuffmail.net> I've also been working on some design issues related to Pier, including removing the use of tables. I ultimately decided to start with a minimal existing css framework (scribbish), and modify both Pier and scribbish into something useful. I wrote up a tutorial about the process: http://chapados.org/articles/pier-design-tutorial Links to download the image/changes file and the css files are at the end. I learned quite a bit in doing this, but I still have a quite a ways to go. I hope it makes sense. Enjoy! Brian From philippe.marschall at gmail.com Sun May 28 13:20:20 2006 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Sun, 28 May 2006 13:20:20 +0200 Subject: [Seaside] Pier backup + Calendar question In-Reply-To: <44771AF3.5070306@yasp.com> References: <4475B9D9.4050004@yasp.com> <30849.71.136.255.172.1148568893.squirrel@webmail.tuffmail.net> <4476C255.2040001@yasp.com> <20060526134529.GA83157@shell.msen.com> <44771AF3.5070306@yasp.com> Message-ID: <66666f210605280420g1b327d4fic80b1333f1c51a08@mail.gmail.com> Hi You are absolutely right about StellDichEin it has no good way of dealing with multiple events. For searching I think the Pier search engine should work because the way I understood it is that it works on any kind of (Magritte described) structure, not only pages. Note that you can link to events the same way you can link to pages. A sorted list of events should be quite simple with the help of an MAReport. Either by creating a new kind of structure or adding a new ViewCommand. The calendar view is actually the biggest problem (and the nicest to have). I see several ways to do this. One is to port the rendering code of SW2Calendar (http://www.squeaksource.com/SW2Calendar/) done by David R?thlisberger and Vera Fischer. This code actually worked some time ago (about a year) when Pier was called SmallWiki 2. A second would be to nag Avi into making his calendar rendering code public ;) An other option would be to write a magrittefied interface to the Google Calendar (http://code.google.com/apis/gdata/calendar.html) and embed it into Pier. This should not be so hard, because the protocol is REST + POX (Well there is of course the problem with HTTP clients in Squeak) (makes you wonder why they didn't use iCal for that, but oh well). But then events would no longer be structures and Google would be responsible for the storage. You would probably still want to use the iCal package for the creation and editing of objects and the Magritte UI before you convert them to XML. There is actually some kind of Documentation about Magritte and Pier http://smallwiki.unibe.ch/smallwiki/pier http://lukas-renggli.ch/smalltalk/magritte http://lukas-renggli.ch/smalltalk/pier The last thing I heard is that Lukas should/must/... be finished with his master thesis pretty damn soon. ;) This - although it probably will be a bit lengthy - should also help. About StellDichEin: The SDE* classes are basically wrappers about the iCal classes (mostly ICEvent and ICTodo modeled very close to the iCal spec http://www.ietf.org/rfc/rfc2445.txt). Form within Squeak you can talk to them using normal messages. The user interface is built with Magritte (descriptions are provided with the ICalMagritte package). Export to iCal is done by creating an ICCalendar add what you need and pass it to an ICCalendarExporter. More specific questions would help me to give more specific answers ;) Cheers Philippe 2006/5/26, Dmitry Dorofeev : > Hi all, > > Thanks for information. It sounds positive. So I feel I can use it and have my backups done. > > My goal is to have an application to store a list of events > for public view and search. While I have Pier-Forms and StellDichEin installed, > still can not see how to have a list of events sorted by date, or a nice > calendar view with my events. Creating events as separate pages would be ok, > but overall navigation become a complete mess after a month. > > I am very new to Magritte and Pier and was unable to find any good docs > about it. I would program my own interface to event calendar (if such does not exist), > but need some intro or good hints where to look and how to start. Quite impressed > that I can have (in theory) an iCal compatible output for offline processing. > > Please help, > > -Dmitry. > > David T. Lewis wrote: > > Dmitry, > > > > I mentioned in another reply in this thread that (for a unix based system) > > you can back up your entire image with "UnixProcess saveImageInBackgroundNicely". > > > > You could probably do something very similar to implement Brian's ReferenceStream > > approach in the background so that you would not need to show 'Sorry, Pier > > back up in action, please wait ...". > > > > The approach would be: > > > > - Fork a headless Squeak (exact copy of your running Pier application) > > using #forkHeadlessSqueakAndDoThenQuit. > > - In the child Squeak image (the headless copy of your real server), > > do whatever is necessary to stop serving, so your child Squeak does > > not try to compete with the real one that is serving your users. > > - In the child Squeak, do the ReferenceStream save as described by > > Brian. > > > > You can think of the #forkSqueak as producing an instantanious copy > > of your running image (using the Unix fork() system call). You can > > use this copy (the headless child Squeak image) to do all of your > > backup work without impacting the real Pier server image. > > This should permit you to guarantee that Pier is not being changed > > while you do backup, and it also should prevent the backup from > > having any noticeable effect on your users. > > > > If you want to try this, I suggest as a starting point to use > > UnixProcess class >>saveImageInBackground:nice: as an example. > > Change it to use #forkHeadlessSqueakAndDoThenQuit: instead of > > #forkHeadlessSqueakAndDo:, and replace the code that does the > > image save with whatever you need to pause the Pier server and > > do the save with ReferenceStream. > > > > HTH, > > Dave > > > > > > On Fri, May 26, 2006 at 12:54:45PM +0400, Dmitry Dorofeev wrote: > > > >>Nice and easy, thanks. > >> > >>The only question left unresolved is to how ensure that nobody > >>change Pier pages while I do backup. It is not quite necessary for > >>me personally. But would be nice to have a backup/restore functionality > >>embedded into Pier. That may show nice message like 'Sorry, Pier back up is > >>action, > >>please wait and try to edit this page later.' to the user who updates the > >>page. > >> > >>Just an idea. > >> > >>-Dmitry. > >> > >>Brian Chapados wrote: > >> > >>>This topic has come up before on the Pier (smallwiki) mailing list. Check > >>>these links: > >>> > >>># save/restore all data from a pier instance > >>>http://www.iam.unibe.ch/pipermail/smallwiki/2006-March/001773.html > >>>http://www.iam.unibe.ch/pipermail/smallwiki/2004-May/000615.html > >>>http://minnow.cc.gatech.edu/squeak/2318 > >>> > >>>I use ReferenceStreams as follows: > >>> > >>>" save Pier kernel instance " > >>>stream := ReferenceStream fileNamed: 'pier-export.obj'. > >>>stream nextPut: (PRKernel instanceNamed: 'mykernelname') root. > >>>stream close. > >>> > >>>" load Pier kernel from stored objects " > >>>stream := ReferenceStream fileNamed: 'pier-export.obj'. > >>>(PRKernel instanceNamed: 'mykernelname') root: stream next. > >>>stream close. > >>> > >>>Brian > >>> > >>> > >>> > >>>>Hi all, > >>>> > >>>>The only thing which stops me to run personal wiki on Pier is the > >>> > >>>chances > >>> > >>> > >>>>that I > >>>>can have my image corrupted. Is there any way to make a backup of Pier > >>> > >>>content > >>> > >>> > >>>>and full restore ? If I can run it daily would be nice. > >>>> > >>>>Thanks. > >>>>-Dmitry. > >>> > >>> > >>> > >>> > >>> > >>> > >>>_______________________________________________ > >>>Seaside mailing list > >>>Seaside at lists.squeakfoundation.org > >>>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > >> > >>_______________________________________________ > >>Seaside mailing list > >>Seaside at lists.squeakfoundation.org > >>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > _______________________________________________ > Seaside mailing list > Seaside at lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > From ducasse at iam.unibe.ch Sun May 28 16:09:27 2006 From: ducasse at iam.unibe.ch (=?ISO-8859-1?Q?st=E9phane_ducasse?=) Date: Sun, 28 May 2006 16:09:27 +0200 Subject: [Newbies] [Magritte] default value again In-Reply-To: <4478F40D.8050109@gmail.com> References: <4478F40D.8050109@gmail.com> Message-ID: Mathieu you should register to the maggrite smallwiki pier mailing-list this way lukas will reply to you. looks for Smallwiki at iam.unibe.ch Stef On 28 mai 06, at 02:51, math wrote: > Hello, > > I have folllowing the exercises of Magritte > (http://www.lukas-renggli.ch/smalltalk/magritte) but I can't set the > default value of nationality field. > Here my code: > > descriptionNationality > ^ (MASingleOptionDescription auto: 'nationality' label: > 'Nationality' priority: 55) > options: #( 'France' 'England' 'Switzerland' 'Span' ); > default: 'Switzerland'; > beSorted; > yourself > > Somthing strange is that I have 2 selected option blanck. > I have try to do this with Title option and it work.: > > descriptionTitle > ^ (MASingleOptionDescription auto: 'title' label: 'Title' > priority: 10) > options: #( 'Mr.' 'Mrs.' 'Ms.' 'Miss.' ); > default: 'Mrs'; > yourself. > > If somone know what is going wrong :-\ ... > > Thanks. > _______________________________________________ > Beginners mailing list > Beginners at lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners From renggli at iam.unibe.ch Sun May 28 16:47:33 2006 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 28 May 2006 16:47:33 +0200 Subject: [Newbies] [Magritte] default value again In-Reply-To: References: <4478F40D.8050109@gmail.com> Message-ID: <94813C24-2164-41F0-9EA2-B26B091A982A@iam.unibe.ch> > you should register to the maggrite smallwiki pier mailing-list this > way lukas will reply to you. looks for Smallwiki at iam.unibe.ch Yes, this would be easier ;-) >> I have folllowing the exercises of Magritte >> (http://www.lukas-renggli.ch/smalltalk/magritte) but I can't set the >> default value of nationality field. >> Here my code: >> >> descriptionNationality >> ^ (MASingleOptionDescription auto: 'nationality' label: >> 'Nationality' priority: 55) >> options: #( 'France' 'England' 'Switzerland' 'Span' ); >> default: 'Switzerland'; >> beSorted; >> yourself >> >> Somthing strange is that I have 2 selected option blanck. >> I have try to do this with Title option and it work.: >> >> descriptionTitle >> ^ (MASingleOptionDescription auto: 'title' label: 'Title' >> priority: 10) >> options: #( 'Mr.' 'Mrs.' 'Ms.' 'Miss.' ); >> default: 'Mrs'; >> yourself. This works for me. I create a new class Tester with those two descriptions on the class side and tried in Seaside: TesterTask>>go | t | t := Tester new. [ self call: (t asComponent addValidatedForm; yourself) ] repeat 1. For the 'title' nothing is selected, because the default value is not in the list of options. 2. For the 'nationality' Switzerland is selected. How does your model code looks like? Is it already initialized with something other than nil? Maybe you should give a little more context (a file-out) so that your problem can be tackled ;-) Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From mathk.sue at gmail.com Sun May 28 20:12:35 2006 From: mathk.sue at gmail.com (math) Date: Sun, 28 May 2006 20:12:35 +0200 Subject: [Newbies] [Magritte] default value again In-Reply-To: <4479E1EB.4090007@gmail.com> References: <4478F40D.8050109@gmail.com> <4479E1EB.4090007@gmail.com> Message-ID: <4479E813.4000000@gmail.com> >>> Hello, >>> >>> I have folllowing the exercises of Magritte >>> (http://www.lukas-renggli.ch/smalltalk/magritte) but I can't set the >>> default value of nationality field. >>> Here my code: >>> >>> descriptionNationality >>> ^ (MASingleOptionDescription auto: 'nationality' label: >>> 'Nationality' priority: 55) >>> options: #( 'France' 'England' 'Switzerland' 'Span' ); >>> default: 'Switzerland'; >>> beSorted; >>> yourself >>> >>> Somthing strange is that I have 2 selected option blanck. >>> I have try to do this with Title option and it work.: >>> >>> descriptionTitle >>> ^ (MASingleOptionDescription auto: 'title' label: 'Title' >>> priority: 10) >>> options: #( 'Mr.' 'Mrs.' 'Ms.' 'Miss.' ); >>> default: 'Mrs'; >>> yourself. >>> >>> If somone know what is going wrong :-\ ... >>> >>> Thanks. > This works for me. I create a new class Tester with those two > descriptions on the class side and tried in Seaside: > > TesterTask>>go > | t | > t := Tester new. > [ self call: (t asComponent addValidatedForm; yourself) ] repeat > > 1. For the 'title' nothing is selected, because the default value is > not in the list of options. > > 2. For the 'nationality' Switzerland is selected. > > How does your model code looks like? Is it already initialized with > something other than nil? Maybe you should give a little more context > In fact I use the tutorial package peek up from http://mc.lukas-renggli.ch/tutorial/. I have just saw the mistake with 'Mrs' what is strange is that I have a new option 'Mrs' with out the dot in my list. Correcting this, nothing change for Nationality but he work for Title. (I use Magritte 1.0.7 and Seaside 2.6) ___________________________________________________________________________ Yahoo! Mail r?invente le mail ! D?couvrez le nouveau Yahoo! Mail et son interface r?volutionnaire. http://fr.mail.yahoo.com From mathk.sue at gmail.com Mon May 29 17:02:19 2006 From: mathk.sue at gmail.com (math) Date: Mon, 29 May 2006 17:02:19 +0200 Subject: [Newbies] [Magritte] default value again In-Reply-To: <4479E813.4000000@gmail.com> References: <4478F40D.8050109@gmail.com> <4479E1EB.4090007@gmail.com> <4479E813.4000000@gmail.com> Message-ID: <447B0CFB.9060208@gmail.com> Hi, >> This works for me. I create a new class Tester with those two >> descriptions on the class side and tried in Seaside: >> >> TesterTask>>go >> | t | >> t := Tester new. >> [ self call: (t asComponent addValidatedForm; yourself) ] repeat >> >> 1. For the 'title' nothing is selected, because the default value is >> not in the list of options. >> >> 2. For the 'nationality' Switzerland is selected. >> >> How does your model code looks like? Is it already initialized with >> something other than nil? Maybe you should give a little more context >> >> > In fact I use the tutorial package peek up from > http://mc.lukas-renggli.ch/tutorial/. > > I have just saw the mistake with 'Mrs' what is strange is that I have > a new option 'Mrs' with out the dot in my list. > Correcting this, nothing change for Nationality but he work for Title. > > (I use Magritte 1.0.7 and Seaside 2.6) > Sorry. I have found it out. I have been modifing the accessor for nationality to provide a default Object. + I have make a stupide things: MAPersonModel>>nationality ^ nationality isNil ifTrue: [ ^'' ] ifFalse: [ ^nationality ]. Those the problem could appear if I do sothing like this (suppose that nationality is a String): MAPersonModel>>nationality ^ nationality isNil ifTrue: [ nationality :='' ] And why.. Thanks ___________________________________________________________________________ Yahoo! Mail r?invente le mail ! D?couvrez le nouveau Yahoo! Mail et son interface r?volutionnaire. http://fr.mail.yahoo.com From ramonleon at cox.net Mon May 29 18:07:22 2006 From: ramonleon at cox.net (Ramon Leon) Date: Mon, 29 May 2006 09:07:22 -0700 Subject: [Newbies] [Magritte] default value again In-Reply-To: <447B0CFB.9060208@gmail.com> References: <4478F40D.8050109@gmail.com> <4479E1EB.4090007@gmail.com> <4479E813.4000000@gmail.com> <447B0CFB.9060208@gmail.com> Message-ID: <447B1C3A.30604@cox.net> > > MAPersonModel>>nationality > ^ nationality isNil ifTrue: [ nationality :='' ] > > And why.. > > Thanks Just a tip, try this pattern if you "need" to set the inst var... nationality ^nationality ifNil:[nationality := ''] and this if you don't and always use the accessor regardless nationality ^nationality ifNil:[''] From ramonleon at cox.net Mon May 29 18:11:43 2006 From: ramonleon at cox.net (Ramon Leon) Date: Mon, 29 May 2006 09:11:43 -0700 Subject: [Newbies] [Magritte] default value again In-Reply-To: <447B0CFB.9060208@gmail.com> References: <4478F40D.8050109@gmail.com> <4479E1EB.4090007@gmail.com> <4479E813.4000000@gmail.com> <447B0CFB.9060208@gmail.com> Message-ID: <447B1D3F.60501@cox.net> > > MAPersonModel>>nationality > ^ nationality isNil ifTrue: [ ^'' ] ifFalse: [ ^nationality ]. > > Those the problem could appear if I do sothing like this (suppose that > nationality is a String): > > MAPersonModel>>nationality > ^ nationality isNil ifTrue: [ nationality :='' ] > > And why.. > > Thanks By the way, setting the default value via Magritte, only sets that value "if" you actually hit an edit form and press save, otherwise Magritte has not yet been invoked and the accessor will return null from your biz object. Setting the default value in the accessor will ensure the default value is always returned regardless of whether the object has been edited via a Magritte generated form. From keith_hodges at yahoo.co.uk Tue May 30 14:45:58 2006 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Tue, 30 May 2006 13:45:58 +0100 Subject: Latest KomHttpServer missing HttpService Message-ID: <447C3E86.5020304@yahoo.co.uk> Is it just me or does the latest KomHttpServer from squeaksource PRM11, sam10, have HttpService missing? Keith ___________________________________________________________ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html