From renggli at iam.unibe.ch Thu Nov 1 09:21:59 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 1 Nov 2007 09:21:59 +0100 Subject: Adding link types In-Reply-To: <47267839.6060905@yahoo.co.uk> References: <472672B8.3080708@yahoo.co.uk> <47267839.6060905@yahoo.co.uk> Message-ID: <014AD3EB-9BFF-4608-AC54-A2D4F691EEA2@iam.unibe.ch> >> I was wondering if it might be worth dispatching the calls >> visitBrokenInternalLink: visitEmbeddedInternalLink: etc back to the >> Link >> instance... Indeed, that would make the code easier to extend. I keep a note on that and we can try to refactor that in the near future. Right now, I have to be a bit careful. I did all kinds of experiments in the latest commits, that very likely will not all make it into the next release. I am also waiting for feedback for that matters (see my next mail). Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Thu Nov 1 09:29:56 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 1 Nov 2007 09:29:56 +0100 Subject: Pier Refactorings Message-ID: <35701D97-4DD3-4976-ADB7-1E3F5E12B920@iam.unibe.ch> Hi, the latest version of Pier includes a few experimental features. I would like to hear your opinion on these: 1. Environments Before environments were a reference to a different page anywhere on your page. One idea was to replace this reference with a document (like the page has one). This allows then to edit the meta-page using the settings and have it close to the page it is applied to. As before, keeping it empty would inherit the environment from the parent. Do you think that improves the usability? 2. Custom Documents Another idea was that an environment (that is independent of the proposal above) can add any number of document (formerly called content widget) widgets. These widgets could then be put for example into a side-bar or the heading to allow customization of these parts of the page as part of the edit process of a structure. Again these 'extra' documents can have default documents and/or be inherited from parent structures. Do you think that would be useful? Do you think 1 is still useful if we have 2? I appreciate any thoughts on this. Of course I already made my own opinion (that you might read between the lines) ... Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From jason.johnson.081 at gmail.com Thu Nov 1 18:51:22 2007 From: jason.johnson.081 at gmail.com (Jason Johnson) Date: Thu, 1 Nov 2007 18:51:22 +0100 Subject: Pier Refactorings In-Reply-To: <35701D97-4DD3-4976-ADB7-1E3F5E12B920@iam.unibe.ch> References: <35701D97-4DD3-4976-ADB7-1E3F5E12B920@iam.unibe.ch> Message-ID: It sounds interesting. Is there a code example anywhere to help me visualize some good use cases for this? I understand what you're saying about the side bar, but my pier site already had it in the old design, so I'm interested to see how this improves it. On 11/1/07, Lukas Renggli wrote: > Hi, > > the latest version of Pier includes a few experimental features. I > would like to hear your opinion on these: > > 1. Environments > > Before environments were a reference to a different page anywhere on > your page. One idea was to replace this reference with a document > (like the page has one). This allows then to edit the meta-page using > the settings and have it close to the page it is applied to. As > before, keeping it empty would inherit the environment from the > parent. Do you think that improves the usability? > > 2. Custom Documents > > Another idea was that an environment (that is independent of the > proposal above) can add any number of document (formerly called > content widget) widgets. These widgets could then be put for example > into a side-bar or the heading to allow customization of these parts > of the page as part of the edit process of a structure. Again these > 'extra' documents can have default documents and/or be inherited from > parent structures. Do you think that would be useful? > > Do you think 1 is still useful if we have 2? > > I appreciate any thoughts on this. Of course I already made my own > opinion (that you might read between the lines) ... > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From renggli at iam.unibe.ch Thu Nov 1 19:08:12 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 1 Nov 2007 19:08:12 +0100 Subject: Pier Refactorings In-Reply-To: References: <35701D97-4DD3-4976-ADB7-1E3F5E12B920@iam.unibe.ch> Message-ID: <5738696D-728E-4525-B40F-AC0C77600A8B@iam.unibe.ch> > It sounds interesting. Is there a code example anywhere to help me > visualize some good use cases for this? Ahh, indeed I didn't commit point 2 yet, because it is not quite working yet :-/ > I understand what you're saying about the side bar, but my pier site > already had it in the old > design, so I'm interested to see how this improves it. How did you do it? The problem I am facing right now is that I want to change the side-bar independent of the currently used environment? Similar to the way I am changing the contents area. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From jason.johnson.081 at gmail.com Thu Nov 1 20:05:36 2007 From: jason.johnson.081 at gmail.com (Jason Johnson) Date: Thu, 1 Nov 2007 20:05:36 +0100 Subject: Pier Refactorings In-Reply-To: <5738696D-728E-4525-B40F-AC0C77600A8B@iam.unibe.ch> References: <35701D97-4DD3-4976-ADB7-1E3F5E12B920@iam.unibe.ch> <5738696D-728E-4525-B40F-AC0C77600A8B@iam.unibe.ch> Message-ID: On 11/1/07, Lukas Renggli wrote: > > How did you do it? The problem I am facing right now is that I want to > change the side-bar independent of the currently used environment? > Similar to the way I am changing the contents area. I haven't looked at it for a while, but I believe I just had it in the main contents area like the default Pier. I just switched out that default side bar with a custom one that had specific navigations and a login button. If you log in as administrator you finally see the Pier buttons (comment, environment etc.). And CSS was used to move it around. I'll try to have a look when I get a chance. From keith_hodges at yahoo.co.uk Thu Nov 1 22:01:55 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 01 Nov 2007 21:01:55 +0000 Subject: Pier Refactorings In-Reply-To: <35701D97-4DD3-4976-ADB7-1E3F5E12B920@iam.unibe.ch> References: <35701D97-4DD3-4976-ADB7-1E3F5E12B920@iam.unibe.ch> Message-ID: <472A3EC3.8010105@yahoo.co.uk> Lukas Renggli wrote: > Hi, > > the latest version of Pier includes a few experimental features. I > would like to hear your opinion on these: > > 1. Environments > > Before environments were a reference to a different page anywhere on > your page. I didn't like this at first, but I find it to be quite flexible. > One idea was to replace this reference with a document > (like the page has one). This allows then to edit the meta-page using > the settings and have it close to the page it is applied to. As > before, keeping it empty would inherit the environment from the > parent. Do you think that improves the usability? > Currently the the process is not that explicit, any page can be the environment. The designer of the site can/has to establish their own conventions as to where the environments are stored in the hierarchy and who has permissions to edit them. It is easier in the sense that you are making the environment a special document in a special place and so providing a special button with which to edit it. This makes the process explicit and perhaps clearer. However I prefer the flexibility to establish my own conventions, but I need the space/a place in which to explain these conventions to my users. So if I am forced to have the environment in the vicinity of the root page, where is the space for me to put the explanation? I don't want to put it on my home page. The existing model allows me to set up a "site editing help and advice" area and have the environment local to the instructions, without cluttering up the main site. The root page can nominate the environment which itself resides in the context of the user instructions which explain to how to use it. This also makes it easier to manage permissions. If I want my site to be globally editable, except for the environments, I can set my permissions recursively from the root to give open access. But then each environment becomes an exception to this rule and I have to go and fix the permissions for each environment. Putting the environments in a separate branch, means that changing the permissions recursively for the main public site branch does not effect the environments which have admin-only privileges. Another problem I foresee here is that I would want this document-in-settings document to have contents. How would I manage the contents of this document in a document-setting in terms of moving copying and setting permissions of its component parts? > 2. Custom Documents > > Another idea was that an environment (that is independent of the > proposal above) can add any number of document (formerly called > content widget) widgets. These widgets could then be put for example > To me the environment represents the "management interface" for a portion of the site. I do not think that the environment should be limited to the layout. I got around this restriction using the scheme above and having the "site editing and advice" area where I can put my management interfaces, the environment layout being only one part of the administration. My site is a shop so the administration includes user account management, product data management, product grouping definitions and shop pages generation and front page generation, amongst other things. If your site is only a website or a wiki then there may not be much else to manage. However if you want to build a complex site whose main focus is not changing the look, then you need somewhere to put all of your management interfaces. For me the environment is "a" the logical place to put it, together with contextual instructions as to how to use all of these things. This is a significant limitation of the current model, the page "environment" exists but when you go in there there is no contextual help to tell you what it is you are looking at and what you can do in there. So... a long time ago I implemented environment as a hierarchy in which you could put contextual "here is how you use this " documentation. The layout itself is in /environment/layout. This allows you to pick a layout by making its contents +layoutA+ or +layoutB+ . The same approach worked for picking css options. environment layout layoutA layoutB scripts css cssA cssB color-schemes The current scheme allows me to do this because I just point my root page's environment to /environment/layout. If I was doing a side bar I would add environment/side-bar to this list and the layout includes +../sidebar+ I already do this so I am really not sure what the extra functionality you are providing. Do you want a sidebar with an edit button in it? If you want the sidebar to contain user editable content, then you could introduce the idea of a component who finds its content via a search strategy... e.g. PRContents-findPage: aPagePath ^ (self context structure / aPagePath) ifNil: [ context structure parent findPage: aPagePath ] This would enable your side-bar documents to be managed in the existing tree. > into a side-bar or the heading to allow customization of these parts > of the page as part of the edit process of a structure. Again these > 'extra' documents can have default documents and/or be inherited from > parent structures. Do you think that would be useful? > > So you put extra contents widgets in the layout.... where is the content obtained from/stored in your model? Is the existing model preserved or do we have an extra document(s) attribute in a PRPage, and each contents widget edits a different one? > Do you think 1 is still useful if we have 2? > > I appreciate any thoughts on this. Of course I already made my own > opinion (that you might read between the lines) ... > > Cheers, > Lukas I am sure that you know what you are doing, I am not convinced that I am fully understanding your intentions in order to make a valued judgement best regards Keith From renggli at iam.unibe.ch Fri Nov 2 11:01:23 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 2 Nov 2007 11:01:23 +0100 Subject: Pier Refactorings In-Reply-To: <472A3EC3.8010105@yahoo.co.uk> References: <35701D97-4DD3-4976-ADB7-1E3F5E12B920@iam.unibe.ch> <472A3EC3.8010105@yahoo.co.uk> Message-ID: > environment > layout > layoutA > layoutB > scripts > css > cssA > cssB > color-schemes > > The current scheme allows me to do this because I just point my root > page's environment to /environment/layout. Indeed, I use the same approach. Maybe it would help, if we had such a setup by default, with some explanatory text. Like this we would get a decent default configuration, but you would be still free to reorganize it however you like. One problem I see with having the environment in the structure itself (as opposed to having it on a separate page) is that it is virtually impossible to use relative links. And you need those links because you don't want your components in the same hierarchy as the page. > If I was doing a side bar I would add environment/side-bar to this > list > and the layout includes +../sidebar+ The problem I face is that I need a different side-bar text for every page. And having a new layout for every page is not what I want. > I already do this so I am really not sure what the extra functionality > you are providing. Do you want a sidebar with an edit button in it? The thing with the Sidebar is just an example. When I edit a page I would not only like to be able to edit the document in the contents (as it is now) but also in some other areas, that are not necessarily connected to the main contents, e.g. the side-bar, some small printed text, some additional links in a box somewhere, etc. > If you want the sidebar to contain user editable content, then you > could > introduce the idea of a component who finds its content via a search > strategy... e.g. > > PRContents-findPage: aPagePath > > ^ (self context structure / aPagePath) ifNil: [ context structure > parent > findPage: aPagePath ] > > This would enable your side-bar documents to be managed in the > existing > tree. Well that was my idea (sort of). However I want it to be editable as part of the normal editing process. And keep the contents close to its page, as they closely belong together. >> into a side-bar or the heading to allow customization of these parts >> of the page as part of the edit process of a structure. Again these >> 'extra' documents can have default documents and/or be inherited from >> parent structures. Do you think that would be useful? > > So you put extra contents widgets in the layout.... where is the > content > obtained from/stored in your model? > > Is the existing model preserved or do we have an extra document(s) > attribute in a PRPage, and each contents widget edits a different one? The existing model with the default document is preserved, this is also where the Magritte editor (login, permissions, etc) are managed. Additionally we would get other parts that can be edited the same way. All structures would get an extra document for every PRDocumentWidget defined in its environment. These documents (depending on the settings) can then be inherited (if left blank) from the parent or include a default text. > I am sure that you know what you are doing, I am not convinced that > I am > fully understanding your intentions in order to make a valued > judgement Thank you for sharing your thoughts. I hope I could make it clearer now. Regards, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.pollet at gmail.com Sun Nov 4 16:59:57 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Sun, 4 Nov 2007 16:59:57 +0100 Subject: bug? Partial html output Message-ID: <34b4844b0711040759w79b58054odee6d9dac3a7e7f6@mail.gmail.com> Hi, I have two Pier images that give partial HTML an a particular page in Pier. Safari just displays a few lines of uninterpreted, unfinished HTML. The HTML ends repetedly at the same place: - in one image it's in the middle of a string (html text: 'in the middle of this string') - in the second image it's just after the first occurence of a continuation argument in a URL (this image is squeak-dev 7145 + latest pier-blog from universes) I tried debugging, but the HTML generation goes further than what Safari gets, so the bug must be later when seaside sends the page to the browser? any idea how to proceed ? -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From jason.johnson.081 at gmail.com Sun Nov 4 17:40:31 2007 From: jason.johnson.081 at gmail.com (Jason Johnson) Date: Sun, 4 Nov 2007 17:40:31 +0100 Subject: PRDistribution and PUDistribution Message-ID: Hi all, I just upgraded to the newest Pier, Magritte, Seaside and Kom. I notice I can't get the server started for some reason, and in the course of tracking this down I noticed that PR/PUDistribution both inherit from the now non-existant MADistribuation. What should they be inheriting from? Thanks, Jason From renggli at iam.unibe.ch Sun Nov 4 18:28:26 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 4 Nov 2007 18:28:26 +0100 Subject: PRDistribution and PUDistribution In-Reply-To: References: Message-ID: > I just upgraded to the newest Pier, Magritte, Seaside and Kom. I > notice I can't get the server started for some reason, and in the > course of tracking this down I noticed that PR/PUDistribution both > inherit from the now non-existant MADistribuation. What should they > be inheriting from? PR/PUDistribution both inherited from MADistribution in Magritte-Core. All these classes are gone in the latest versions. It looks like you have the latest version of Magritte, but not the one of Pier and friends. The MA/PR/PUDistribution classes are not needed to run Pier, they are solely there for me to create installers for SqueakMap and Package Universes with one click. In the process of making it easier to port these frameworks to VisualWorks and GemStone I removed them from the core packages. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Sun Nov 4 18:48:15 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 4 Nov 2007 18:48:15 +0100 Subject: bug? Partial html output In-Reply-To: <34b4844b0711040759w79b58054odee6d9dac3a7e7f6@mail.gmail.com> References: <34b4844b0711040759w79b58054odee6d9dac3a7e7f6@mail.gmail.com> Message-ID: <21B39AD9-7C6D-4A99-B923-0699BFC9F7DF@iam.unibe.ch> Looks very strange. Can you provide additional information about the package versions being used? Is this Seaside 2.8? Do the interactive Seaside Tests pass? Do the Magritte/Pier SUnit Tests pass? Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.pollet at gmail.com Sun Nov 4 18:49:42 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Sun, 4 Nov 2007 18:49:42 +0100 Subject: bug? Partial html output In-Reply-To: <34b4844b0711040759w79b58054odee6d9dac3a7e7f6@mail.gmail.com> References: <34b4844b0711040759w79b58054odee6d9dac3a7e7f6@mail.gmail.com> Message-ID: <34b4844b0711040949n217378e8jf6b9aec621d1c319@mail.gmail.com> Seems the solution is: WAKom stop. WAKomEncoded startOn: 8080 So maybe all the Pier packages don't use the same UTF/WideStrings default ? On 04/11/2007, Damien Pollet wrote: > Hi, > > I have two Pier images that give partial HTML an a particular page in > Pier. Safari just displays a few lines of uninterpreted, unfinished > HTML. The HTML ends repetedly at the same place: > - in one image it's in the middle of a string (html text: 'in the > middle of this string') > - in the second image it's just after the first occurence of a > continuation argument in a URL (this image is squeak-dev 7145 + latest > pier-blog from universes) > > I tried debugging, but the HTML generation goes further than what > Safari gets, so the bug must be later when seaside sends the page to > the browser? any idea how to proceed ? > > -- > Damien Pollet > type less, do more [ | ] http://typo.cdlm.fasmz.org > -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From renggli at iam.unibe.ch Sun Nov 4 19:16:15 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 4 Nov 2007 19:16:15 +0100 Subject: bug? Partial html output In-Reply-To: <34b4844b0711040949n217378e8jf6b9aec621d1c319@mail.gmail.com> References: <34b4844b0711040759w79b58054odee6d9dac3a7e7f6@mail.gmail.com> <34b4844b0711040949n217378e8jf6b9aec621d1c319@mail.gmail.com> Message-ID: > WAKom stop. > WAKomEncoded startOn: 8080 > > So maybe all the Pier packages don't use the same UTF/WideStrings > default ? I am always using WAKom, this means the model will contain UTF-8 Strings only. If you use one of the other Kom servers your model will contain strings with a different encoding. Pier does not care how the strings are encoded in its model, it only has to be consistent. Also some web servers have (well known) problems when the encoding is incompatible. Cheers, Lukas > On 04/11/2007, Damien Pollet wrote: >> Hi, >> >> I have two Pier images that give partial HTML an a particular page in >> Pier. Safari just displays a few lines of uninterpreted, unfinished >> HTML. The HTML ends repetedly at the same place: >> - in one image it's in the middle of a string (html text: 'in the >> middle of this string') >> - in the second image it's just after the first occurence of a >> continuation argument in a URL (this image is squeak-dev 7145 + >> latest >> pier-blog from universes) >> >> I tried debugging, but the HTML generation goes further than what >> Safari gets, so the bug must be later when seaside sends the page to >> the browser? any idea how to proceed ? >> >> -- >> Damien Pollet >> type less, do more [ | ] http://typo.cdlm.fasmz.org >> > > > -- > Damien Pollet > type less, do more [ | ] http://typo.cdlm.fasmz.org > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From damien.pollet at gmail.com Sun Nov 4 20:15:14 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Sun, 4 Nov 2007 20:15:14 +0100 Subject: bug? Partial html output In-Reply-To: References: <34b4844b0711040759w79b58054odee6d9dac3a7e7f6@mail.gmail.com> <34b4844b0711040949n217378e8jf6b9aec621d1c319@mail.gmail.com> Message-ID: <34b4844b0711041115o5e780e9bhe90a326c980e52f5@mail.gmail.com> On 04/11/2007, Lukas Renggli wrote: > > WAKom stop. > > WAKomEncoded startOn: 8080 > > > > So maybe all the Pier packages don't use the same UTF/WideStrings > > default ? > > I am always using WAKom, this means the model will contain UTF-8 > Strings only. If you use one of the other Kom servers your model will > contain strings with a different encoding. Well, with WAKom (or whichever is automatically launched from the universes package), it wasn't working. I had just created a pier-blog with an ellipsis (? alt-semicolumn on a Mac qwerty) in its description. After stopping WAKom and starting WaKomEncoded, I could see the blog page. Since then I replaced the ellipsis with three periods and I can see the page with WAKom too. Still with WAKom, I can type accented characters in a blog entry and pier will accept them but they display as "unknown characters" in Safari and question marks in Firefox. If I type an ellipsis I get the partial output (seems reliable). Back in WAKomEncoded, if I type accented characters, I get an internal server error, with either "subscript out of bounds", or "Invalid UTF-8 input" as an explanation, depending on which and haw many accented characters I input. But wait, if I add an ellipsis with the accented characters, all works perfectly! /me scratches head Note that in all cases the page is marked as UTF 8 in the xml header, so I suppose Safari sends UTF 8 in the form? Do the WAKom* variants do the recoding to whatever UTF or WideStrings they try to use internally? > Pier does not care how the strings are encoded in its model, it only > has to be consistent. Also some web servers have (well known) problems > when the encoding is incompatible. I'm connecting directly to Squeak for the moment, no proxy or anything. -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From jason.johnson.081 at gmail.com Sun Nov 4 21:43:03 2007 From: jason.johnson.081 at gmail.com (Jason Johnson) Date: Sun, 4 Nov 2007 21:43:03 +0100 Subject: PRDistribution and PUDistribution In-Reply-To: References: Message-ID: That's odd, I pulled the newest of everything. I guess the unload didn't work, I hope that's all that failed. Thanks for the info. On 11/4/07, Lukas Renggli wrote: > > I just upgraded to the newest Pier, Magritte, Seaside and Kom. I > > notice I can't get the server started for some reason, and in the > > course of tracking this down I noticed that PR/PUDistribution both > > inherit from the now non-existant MADistribuation. What should they > > be inheriting from? > > PR/PUDistribution both inherited from MADistribution in Magritte-Core. > All these classes are gone in the latest versions. > > It looks like you have the latest version of Magritte, but not the one > of Pier and friends. > > The MA/PR/PUDistribution classes are not needed to run Pier, they are > solely there for me to create installers for SqueakMap and Package > Universes with one click. In the process of making it easier to port > these frameworks to VisualWorks and GemStone I removed them from the > core packages. > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From renggli at iam.unibe.ch Sun Nov 4 22:41:35 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 4 Nov 2007 22:41:35 +0100 Subject: bug? Partial html output In-Reply-To: <34b4844b0711041115o5e780e9bhe90a326c980e52f5@mail.gmail.com> References: <34b4844b0711040759w79b58054odee6d9dac3a7e7f6@mail.gmail.com> <34b4844b0711040949n217378e8jf6b9aec621d1c319@mail.gmail.com> <34b4844b0711041115o5e780e9bhe90a326c980e52f5@mail.gmail.com> Message-ID: > Well, with WAKom (or whichever is automatically launched from the > universes package), it wasn't working. WAKom, I guess. > I had just created a pier-blog > with an ellipsis (? alt-semicolumn on a Mac qwerty) in its > description. After stopping WAKom and starting WaKomEncoded, I could > see the blog page. Since then I replaced the ellipsis with three > periods and I can see the page with WAKom too. I guess Kom from Package Universe is not compatible with Seaside. Update to the latest one from SqueakSource. > Note that in all cases the page is marked as UTF 8 in the xml header, > so I suppose Safari sends UTF 8 in the form? Do the WAKom* variants do > the recoding to whatever UTF or WideStrings they try to use > internally? UTF-8 is pretty standard in the web. Seaside uses it as a standard declaration in its headers. This means that data the browsers expect are UTF-8 and they also send UTF-8 back to the Server. Depending on what WAKom adapter your are using the input is converted to Squeak encoding or not. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.pollet at gmail.com Mon Nov 5 00:25:07 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Mon, 5 Nov 2007 00:25:07 +0100 Subject: bug? Partial html output In-Reply-To: References: <34b4844b0711040759w79b58054odee6d9dac3a7e7f6@mail.gmail.com> <34b4844b0711040949n217378e8jf6b9aec621d1c319@mail.gmail.com> <34b4844b0711041115o5e780e9bhe90a326c980e52f5@mail.gmail.com> Message-ID: <34b4844b0711041525i2c1b5e17s21ff5bc4b03d76c4@mail.gmail.com> OK. with the latest Kom, it seems to work nicely with both WAKoms. it displayed garbage or failed gracefully (red validation message over the editor in Pier) when I edited text that had been entered with the other WAKom but that was predictible and OK. PS. Lex, can you update KomHttpServer and related in the universe? Thanks! On 04/11/2007, Lukas Renggli wrote: > > Well, with WAKom (or whichever is automatically launched from the > > universes package), it wasn't working. > > WAKom, I guess. > > > I had just created a pier-blog > > with an ellipsis (? alt-semicolumn on a Mac qwerty) in its > > description. After stopping WAKom and starting WaKomEncoded, I could > > see the blog page. Since then I replaced the ellipsis with three > > periods and I can see the page with WAKom too. > > I guess Kom from Package Universe is not compatible with Seaside. > Update to the latest one from SqueakSource. > > > Note that in all cases the page is marked as UTF 8 in the xml header, > > so I suppose Safari sends UTF 8 in the form? Do the WAKom* variants do > > the recoding to whatever UTF or WideStrings they try to use > > internally? > > UTF-8 is pretty standard in the web. Seaside uses it as a standard > declaration in its headers. This means that data the browsers expect > are UTF-8 and they also send UTF-8 back to the Server. Depending on > what WAKom adapter your are using the input is converted to Squeak > encoding or not. > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From damien.pollet at gmail.com Mon Nov 5 23:27:50 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Mon, 5 Nov 2007 23:27:50 +0100 Subject: bug? Partial html output In-Reply-To: <200711051223.45468.lex@lexspoon.org> References: <34b4844b0711040759w79b58054odee6d9dac3a7e7f6@mail.gmail.com> <34b4844b0711041525i2c1b5e17s21ff5bc4b03d76c4@mail.gmail.com> <200711051223.45468.lex@lexspoon.org> Message-ID: <34b4844b0711051427h61398920gc80af0b5d40c7339@mail.gmail.com> On 05/11/2007, Lex Spoon wrote: > On Sunday 04 November 2007 18:25:07 Damien Pollet wrote: > > PS. Lex, can you update KomHttpServer and related in the universe? > > Sure, but can you be more precise? What update would you like? upgrade to the latest version from SqueakSource, it includes a bunch of fixes. > Alternatively, would you or someone you know like to maintain the Kom* entries > in the development universe? I could do it but I'm only doing web development on a hobby basis, so I'm not the best person to maintain the package... I asked Giovanni on IRC since he's the author of the most recent changes. -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From sebaspe at gmail.com Wed Nov 7 17:31:18 2007 From: sebaspe at gmail.com (=?ISO-8859-1?Q?Sebasti=E1n_Perez_Escribano?=) Date: Wed, 07 Nov 2007 13:31:18 -0300 Subject: Configuration query Message-ID: <4731E856.7080304@gmail.com> Hi list, I?m using seaside on VisualWorks. I need to configure the page on http://myURL:8008 to be the main of my page, and the configuration page (VisualWorks Web Toolkit) be private. How I do that?. Greetings in advance! Sebasti?n From keith_hodges at yahoo.co.uk Fri Nov 9 05:59:37 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 09 Nov 2007 04:59:37 +0000 Subject: [Ann] Ajaxified Tree Widget Message-ID: <4733E939.2000405@yahoo.co.uk> Name: Pier-Scriptaculous-kph.1 Author: kph Time: 9 November 2007, 4:58:01 am UUID: 59635ab0-8e80-11dc-a9ef-000a95edb42a Ancestors: - Tree widget with scriptaculous update on expand/collapse of tree item From keith_hodges at yahoo.co.uk Sat Nov 10 04:01:56 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Sat, 10 Nov 2007 03:01:56 +0000 Subject: PRContentsWidget Settings-Title Message-ID: <47351F24.5040400@yahoo.co.uk> There appears to be some crosstalk between the Contents widget Title and and the settings Title. On editing the settings for the Contents widget I was expecting to see "'%k: %t'" but instead found "Main". regards Keith p.s. hows the new environment stuff going? From keith_hodges at yahoo.co.uk Sat Nov 10 06:00:00 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Sat, 10 Nov 2007 05:00:00 +0000 Subject: [bug] MASingleOptionDescription beExtensible not working? Message-ID: <47353AD0.3020408@yahoo.co.uk> Dear Lukas, I found this little walkback when setting beExtensible. oh and btw, SUTabbedPanel breaks if you dont add any elements best regards Keith =========== Subject: [BUG]WASelectTag(Object)>>doesNotUnderstand: #otherLabel:otherCallback:promptString: WASelectTag(Object)>>doesNotUnderstand: #otherLabel:otherCallback:promptString: Receiver: a WASelectTag Arguments and temporary variables: aMessage: otherLabel: '(other)' otherCallback: [] in MASelectListComponent>>ren...etc... Receiver's instance variables: canvas: a WARenderCanvas parent: nil closed: false attributes: a WAHtmlAttributes list: an OrderedCollection(nil 'click-page' 'shelf' 'shelf-template' 'side-bar'...etc... selected: nil callbackBlock: [] in MASelectListComponent>>renderEditorOn: {[:value | self val...etc... labelBlock: [] in MASelectListComponent>>renderEditorOn: {[:value | self labelF...etc... enabledBlock: nil isOptional: false optionalLabel: nil [] in MASelectListComponent>>renderEditorOn: {[:tag | self description isExtensible ifTrue: [tag otherLabel: '(other...]} Arguments and temporary variables: html: a WARenderCanvas value: nil tag: a WASelectTag WASelectTag(Object)>>in: Receiver: a WASelectTag Arguments and temporary variables: aBlock: [] in MASelectListComponent>>renderEditorOn: {[:tag | self description ...etc... Receiver's instance variables: canvas: a WARenderCanvas parent: nil closed: false attributes: a WAHtmlAttributes list: an OrderedCollection(nil 'click-page' 'shelf' 'shelf-template' 'side-bar'...etc... selected: nil callbackBlock: [] in MASelectListComponent>>renderEditorOn: {[:value | self val...etc... labelBlock: [] in MASelectListComponent>>renderEditorOn: {[:value | self labelF...etc... enabledBlock: nil isOptional: false optionalLabel: nil MASelectListComponent>>renderEditorOn: Receiver: a MASelectListComponent Arguments and temporary variables: html: a WARenderCanvas value: nil tag: a WASelectTag Receiver's instance variables: smParent: nil decoration: a WAValueHolder contents: a MASelectListComponent memento: a MACheckedMemento model: a PRSettingsCommand(a PRComponent name: 'Tabbed Pages Test'...etc... description: a MASingleOptionDescription label: 'Tag' comment: 'Show items with...etc... parent: a MAContainerComponent --- The full stack --- WASelectTag(Object)>>doesNotUnderstand: #otherLabel:otherCallback:promptString: [] in MASelectListComponent>>renderEditorOn: {[:tag | self description isExtensible ifTrue: [tag otherLabel: '(other...]} WASelectTag(Object)>>in: MASelectListComponent>>renderEditorOn: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MASelectListComponent(MAElementComponent)>>renderContentOn: MASelectListComponent(WAPresenter)>>renderWithContext: [] in MASelectListComponent(WAComponent)>>renderOn: {[:each | each renderWithContext: aRenderer context]} MASelectListComponent(WAComponent)>>decorationChainDo: MASelectListComponent(WAComponent)>>renderOn: WARenderCanvas(WACanvas)>>render: MATableRenderer(MAComponentRenderer)>>renderControl: [] in MATableRenderer>>renderControl: {[super renderControl: aDescription]} BlockContext>>renderOn: [] in WATableDataTag(WATagBrush)>>with: {[self before. anObject renderOn: canvas. self after]} BlockContext>>renderOn: WARenderCanvas(WACanvas)>>nest: WATableDataTag(WABrush)>>with: WATableDataTag(WATagBrush)>>with: MATableRenderer>>renderControl: MATableRenderer(MAComponentRenderer)>>renderElement: [] in MATableRenderer>>renderElement: {[super renderElement: aDescription]} BlockContext>>renderOn: [] in WAGenericTag(WATagBrush)>>with: {[self before. anObject renderOn: canvas. self after]} BlockContext>>renderOn: WARenderCanvas(WACanvas)>>nest: WAGenericTag(WABrush)>>with: WAGenericTag(WATagBrush)>>with: WARenderCanvas(WAHtmlCanvas)>>tableRow: MATableRenderer>>renderElement: MATableRenderer(MAComponentRenderer)>>visitElementDescription: MATableRenderer(MAVisitor)>>visitReferenceDescription: MATableRenderer(MAVisitor)>>visitOptionDescription: MATableRenderer(MAVisitor)>>visitSingleOptionDescription: MASingleOptionDescription>>acceptMagritte: MATableRenderer(MAVisitor)>>visit: [] in MATableRenderer(MAVisitor)>>visitAll: {[:each | self visit: each]} ...etc... From manuel.blanc at gmail.com Sun Nov 11 18:57:18 2007 From: manuel.blanc at gmail.com (M. Blanc) Date: Sun, 11 Nov 2007 18:57:18 +0100 Subject: One Click Experience Message-ID: <91F3C20B-3693-4FC6-AADC-809336EC3683@gmail.com> Philippe, I can't upload files to Pier using the out-of-the-box One Click Exerience. Safari says: > Internal Server Error > > ConnectionTimedOut: Data receive timed out. > > Comanche/6.2 (Mac OS) Server at 'localhost' Port 8080 I don't know if this is the best solution but I've [up | down]graded my image to KomHttpServer-gc.30 and uploads are working fine now. More difficult for me to solve is that since the application always uses Seaside.image, switching to ImagePersistency doesn't produce the expected results. Cheers --manuel From keith_hodges at yahoo.co.uk Sun Nov 11 20:07:02 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Sun, 11 Nov 2007 19:07:02 +0000 Subject: [ANN] Tabbed and Tagged Pages Widgets Message-ID: <473752D6.3060503@yahoo.co.uk> Hello All, I have just posted an initial release to the pieraddons repository which provides a Tabbed and Tagged pages widget. The "Tagged" pages widget lists those pages with a given "Tag" (or children if no tag is specified) below either the current page or a specific target page/structure. The "Tabbed" pages widget presents the above list as a set of tabs, with the selected tab rendered. This uses the kalsey css that is part of the standard seaside style library. To load the package: (Installer http: 'mc.lukas-renggli.ch') project: 'pieraddons'; install: 'Pier-TabbedPagesWidgets'. best regards Keith From jason.johnson.081 at gmail.com Sun Nov 11 20:22:00 2007 From: jason.johnson.081 at gmail.com (Jason Johnson) Date: Sun, 11 Nov 2007 20:22:00 +0100 Subject: State of the latest pier release Message-ID: Hello all, I just set up an image with the latest and greatest of all the packages, Kom, Seaside, Magritte, Pier. And now when I look at the pier site I just see the grey boxes for View, Commands and History, nothing else shows up. I browsed the PRKernel and everything seems to be there, it just wont render. Could this be due to the environment changes, or should the latest version work? Thanks, Jason From philippe.marschall at gmail.com Sun Nov 11 21:23:24 2007 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Sun, 11 Nov 2007 21:23:24 +0100 Subject: One Click Experience In-Reply-To: <91F3C20B-3693-4FC6-AADC-809336EC3683@gmail.com> References: <91F3C20B-3693-4FC6-AADC-809336EC3683@gmail.com> Message-ID: <66666f210711111223j77d8b6d2jfe6946ac56f0d60d@mail.gmail.com> Confirmed: http://bugs.squeak.org/bug_view_advanced_page.php?bug_id=6762 Cheers Philippe 2007/11/11, M. Blanc : > Philippe, > > I can't upload files to Pier using the out-of-the-box One Click > Exerience. Safari says: > > > Internal Server Error > > > > ConnectionTimedOut: Data receive timed out. > > > > Comanche/6.2 (Mac OS) Server at 'localhost' Port 8080 > > I don't know if this is the best solution but I've [up | down]graded > my image to KomHttpServer-gc.30 and uploads are working fine now. > > More difficult for me to solve is that since the application always > uses Seaside.image, switching to ImagePersistency doesn't produce the > expected results. > > Cheers > > --manuel > > > > > > > > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From keith_hodges at yahoo.co.uk Sun Nov 11 21:37:19 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Sun, 11 Nov 2007 20:37:19 +0000 Subject: [ANN] Tabbed and Tagged Pages Widgets In-Reply-To: <473752D6.3060503@yahoo.co.uk> References: <473752D6.3060503@yahoo.co.uk> Message-ID: <473767FF.2030901@yahoo.co.uk> > > The "Tabbed" pages widget presents the above list as a set of tabs, with > the selected tab rendered. This uses the kalsey css that is part of the > standard seaside style library. > A dropdown list variant is also implemented Keith From Herath at hq.unu.edu Mon Nov 12 04:28:45 2007 From: Herath at hq.unu.edu (Herath, Srikantha) Date: Mon, 12 Nov 2007 12:28:45 +0900 Subject: smallwiki Digest, Vol 22, Issue 4 References: Message-ID: <0B90CAABF47B8E4691C4F6ED7AD0D77BE561@hq-tky-exbe.hq.unu.local> -----Original Message----- From: smallwiki-bounces at iam.unibe.ch on behalf of smallwiki-request at iam.unibe.ch Sent: Mon 11/12/2007 4:07 To: smallwiki at iam.unibe.ch Subject: smallwiki Digest, Vol 22, Issue 4 Send smallwiki mailing list submissions to smallwiki at 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 at iam.unibe.ch You can reach the person managing the list at smallwiki-owner at iam.unibe.ch When replying, please edit your Subject line so it is more specific than "Re: Contents of smallwiki digest..." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20071112/19f2ef8d/attachment.html From renggli at iam.unibe.ch Mon Nov 12 10:11:48 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 12 Nov 2007 10:11:48 +0100 Subject: [bug] MASingleOptionDescription beExtensible not working? In-Reply-To: <47353AD0.3020408@yahoo.co.uk> References: <47353AD0.3020408@yahoo.co.uk> Message-ID: <11684C5D-D181-47DD-8B7C-E2E80F69AB82@iam.unibe.ch> Hi Keith, > I found this little walkback when setting beExtensible. thanks for reporting. I removed this feature for now, as it is no longer supported by Seaside. The old implementation was a verbose JavaScript hack into the WASelectTag. > oh and btw, SUTabbedPanel breaks if you dont add any elements Thank you for discovering and fixing this issue. I had to change it slightly, to make it work in other Smalltalk dialects too (#ifEmpty:ifNotEmpty: is very Squeak specific). Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Mon Nov 12 10:18:01 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 12 Nov 2007 10:18:01 +0100 Subject: PRContentsWidget Settings-Title In-Reply-To: <47351F24.5040400@yahoo.co.uk> References: <47351F24.5040400@yahoo.co.uk> Message-ID: > There appears to be some crosstalk between the Contents widget Title > and and the settings Title. Again? This is not the first time this bug occurs. I will have a look. Time to write a test. > p.s. hows the new environment stuff going? Have a look. - The environment is still a link to a different page (therefor no migration is needed). Environment are inherited, as they were before. - A similar link has been added for CSS. The CSS is currently rendered as a text view of the wiki page. This does not properly work yet. CSS is not inherited, but all styles from the parents are automatically included. - A new command 'Edit Design' has been added to allow editing the currently applied design (environment and css) from within the current context. - Multiple documents do not work yet. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Mon Nov 12 10:19:20 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 12 Nov 2007 10:19:20 +0100 Subject: State of the latest pier release In-Reply-To: References: Message-ID: <2AE9A1D0-F973-490B-AC14-39CFA4848F6E@iam.unibe.ch> Hi Jason > I just set up an image with the latest and greatest of all the > packages, Kom, Seaside, Magritte, Pier. And now when I look at the > pier site I just see the grey boxes for View, Commands and History, > nothing else shows up. I browsed the PRKernel and everything seems > to be there, it just wont render. Could this be due to the > environment changes, or should the latest version work? it should theoretically work. What versions did you load? Where did you load it from? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From manuel.blanc at gmail.com Mon Nov 12 10:58:16 2007 From: manuel.blanc at gmail.com (M. Blanc) Date: Mon, 12 Nov 2007 10:58:16 +0100 Subject: One Click Experience In-Reply-To: <66666f210711111223j77d8b6d2jfe6946ac56f0d60d@mail.gmail.com> References: <91F3C20B-3693-4FC6-AADC-809336EC3683@gmail.com> <66666f210711111223j77d8b6d2jfe6946ac56f0d60d@mail.gmail.com> Message-ID: <5034D0BD-38AB-4C53-A230-A2F180447063@gmail.com> Lukas, Since this One Click setup is intended for first-timers, I'd suggest activating by default the PRImagePersistency and modifying its method saveImageAs: by changing (or adding) two messages : saveChangesInFileNamed: (image fullNameForChangesNamed: 'seaside.changes'); saveImageInFileNamed: (image fullNameForImageNamed: 'seaside.image') ...may be even calling those methods only when the running image is already named 'seaside'? Cheers --manuel On 11 Nov 2007, at 21:23, Philippe Marschall wrote: > Confirmed: > http://bugs.squeak.org/bug_view_advanced_page.php?bug_id=6762 > > Cheers > Philippe > > 2007/11/11, M. Blanc : >> Philippe, >> >> I can't upload files to Pier using the out-of-the-box One Click >> Exerience. Safari says: >> >>> Internal Server Error >>> >>> ConnectionTimedOut: Data receive timed out. >>> >>> Comanche/6.2 (Mac OS) Server at 'localhost' Port 8080 >> >> I don't know if this is the best solution but I've [up | down]graded >> my image to KomHttpServer-gc.30 and uploads are working fine now. >> >> More difficult for me to solve is that since the application always >> uses Seaside.image, switching to ImagePersistency doesn't produce the >> expected results. From renggli at iam.unibe.ch Mon Nov 12 11:14:44 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 12 Nov 2007 11:14:44 +0100 Subject: One Click Experience In-Reply-To: <5034D0BD-38AB-4C53-A230-A2F180447063@gmail.com> References: <91F3C20B-3693-4FC6-AADC-809336EC3683@gmail.com> <66666f210711111223j77d8b6d2jfe6946ac56f0d60d@mail.gmail.com> <5034D0BD-38AB-4C53-A230-A2F180447063@gmail.com> Message-ID: <4BE2D0F9-50AB-40ED-9D12-97AB59AB0C4C@iam.unibe.ch> > Since this One Click setup is intended for first-timers, I'd suggest > activating by default the PRImagePersistency and modifying its method > saveImageAs: by changing (or adding) two messages : The One-Click Experience does not target to provide an image for production. It is more like a ready-made image to experiment (I am using for lectures and tutorials) and to develop. Having the PRImagePersistency enabled in a development environment can cause serious troubles, therefor it is off by default. > saveChangesInFileNamed: (image fullNameForChangesNamed: > 'seaside.changes'); > saveImageInFileNamed: (image fullNameForImageNamed: 'seaside.image') > > ...may be even calling those methods only when the running image is > already named 'seaside'? What does this do different to what we have now? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Mon Nov 12 11:40:28 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 12 Nov 2007 10:40:28 +0000 Subject: PRContentsWidget Settings-Title In-Reply-To: References: <47351F24.5040400@yahoo.co.uk> Message-ID: <47382D9C.20207@yahoo.co.uk> > - A similar link has been added for CSS. The CSS is currently rendered > as a text view of the wiki page. This does not properly work yet. CSS > is not inherited, but all styles from the parents are automatically > included. > > I dont know if you remember that I did a visitor for rendering css as a page... cant remember where I put it though. Keith From manuel.blanc at gmail.com Mon Nov 12 12:00:20 2007 From: manuel.blanc at gmail.com (M. Blanc) Date: Mon, 12 Nov 2007 12:00:20 +0100 Subject: One Click Experience In-Reply-To: <4BE2D0F9-50AB-40ED-9D12-97AB59AB0C4C@iam.unibe.ch> References: <91F3C20B-3693-4FC6-AADC-809336EC3683@gmail.com> <66666f210711111223j77d8b6d2jfe6946ac56f0d60d@mail.gmail.com> <5034D0BD-38AB-4C53-A230-A2F180447063@gmail.com> <4BE2D0F9-50AB-40ED-9D12-97AB59AB0C4C@iam.unibe.ch> Message-ID: On 12 Nov 2007, at 11:14, Lukas Renggli wrote: >> Since this One Click setup is intended for first-timers, I'd suggest >> activating by default the PRImagePersistency and modifying its method >> saveImageAs: by changing (or adding) two messages : > > The One-Click Experience does not target to provide an image for > production. Agreed. My proposal was so that newbies don't need to learn the hard way they have to save their work on Pier... mainly because saving is important for them but it is not obvious (can be done from http:// localhost:8080/seaside/tools/versionuploader or from the Squeak world menu... but, in this case, only with 'save', since the image seaside. 1.image produced by 'save as a new version' will be ignored by the One-Click setup). > It is more like a ready-made image to experiment (I am > using for lectures and tutorials) and to develop. It is great. I plan to use to my web designers to experiment and learn. > Having the > PRImagePersistency enabled in a development environment can cause > serious troubles, therefor it is off by default. I beg to disagree. As PRImagePersistency is currently implemented, the only risk I can see is that it eventually fill up the disk, which is actually a very minor trouble. Moreover, with my my proposed change for newbies, PRPersistency would would save always with the same filename (seaside.image instead of 2007-11-12 11-05-38.image or whatever), so no fill up of the disk would happen. If the newbee messes up and needs to start from a blank slate, he would do fine decompressing the distribution zip again. Instead, with the current setup, he would be always starting from a blank slate, want it or not, until he discovers he can save his work. My fear is that most newbies won't discover http://localhost:8080/ seaside/tools/versionuploader before they give up. > >> saveChangesInFileNamed: (image fullNameForChangesNamed: >> 'seaside.changes'); >> saveImageInFileNamed: (image fullNameForImageNamed: >> 'seaside.image') >> >> ...may be even calling those methods only when the running image is >> already named 'seaside'? > > What does this do different to what we have now? At start up, One-Click Experience currently ignores any image not named 'seaside.image' at start-up. If you detect that the image is named 'seaside.image', you know that you are running under a One- Click setup, so you can act in a more newbee friendly way as suggested above. Cheers --manuel From renggli at iam.unibe.ch Mon Nov 12 13:35:53 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 12 Nov 2007 13:35:53 +0100 Subject: One Click Experience In-Reply-To: References: <91F3C20B-3693-4FC6-AADC-809336EC3683@gmail.com> <66666f210711111223j77d8b6d2jfe6946ac56f0d60d@mail.gmail.com> <5034D0BD-38AB-4C53-A230-A2F180447063@gmail.com> <4BE2D0F9-50AB-40ED-9D12-97AB59AB0C4C@iam.unibe.ch> Message-ID: <55874856-3023-41F6-BA8B-993B8306B37B@iam.unibe.ch> > I beg to disagree. As PRImagePersistency is currently implemented, > the only risk I can see is that it eventually fill up the disk, which > is actually a very minor trouble. This is the standard implementation as I use it on all my web servers. Propre persistency is something currently lackin in Pier, but the issue will be tackled soon. > Instead, with the current setup, he would be always starting from a > blank slate, want it or not, until he discovers he can save his work. > My fear is that most newbies won't discover http://localhost:8080/ > seaside/tools/versionuploader before they give up. The 'Seaside One-Click Experience' is not supposed to be a Magritte, Pier, Scriptaculous, RSRSS, Comet, ... distribution, even though these packages are all included. Its goal is to provide an easy start into Seaside, for people that want to quickly take a look at it. I originally created this package for a newbie tutorial I was giving at the CHOOSE Forum 2007, Languages for the Web [1]. If people discover Pier, that's fine, but this is not the goal. Cheers, Lukas [1] http://www.choose.s-i.ch/Events/forum2007.html -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Mon Nov 12 14:53:25 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 12 Nov 2007 13:53:25 +0000 Subject: One Click Experience In-Reply-To: <55874856-3023-41F6-BA8B-993B8306B37B@iam.unibe.ch> References: <91F3C20B-3693-4FC6-AADC-809336EC3683@gmail.com> <66666f210711111223j77d8b6d2jfe6946ac56f0d60d@mail.gmail.com> <5034D0BD-38AB-4C53-A230-A2F180447063@gmail.com> <4BE2D0F9-50AB-40ED-9D12-97AB59AB0C4C@iam.unibe.ch> <55874856-3023-41F6-BA8B-993B8306B37B@iam.unibe.ch> Message-ID: <47385AD5.6050501@yahoo.co.uk> Lukas Renggli wrote: >> I beg to disagree. As PRImagePersistency is currently implemented, >> the only risk I can see is that it eventually fill up the disk, which >> is actually a very minor trouble. >> > > This is the standard implementation as I use it on all my web servers. > Propre persistency is something currently lackin in Pier, but the > issue will be tackled soon. > > ahem, I think Magma persistency counts as proper don't you. I mean how much more proper do you want? Keith From renggli at iam.unibe.ch Mon Nov 12 15:05:27 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 12 Nov 2007 15:05:27 +0100 Subject: One Click Experience In-Reply-To: <47385AD5.6050501@yahoo.co.uk> References: <91F3C20B-3693-4FC6-AADC-809336EC3683@gmail.com> <66666f210711111223j77d8b6d2jfe6946ac56f0d60d@mail.gmail.com> <5034D0BD-38AB-4C53-A230-A2F180447063@gmail.com> <4BE2D0F9-50AB-40ED-9D12-97AB59AB0C4C@iam.unibe.ch> <55874856-3023-41F6-BA8B-993B8306B37B@iam.unibe.ch> <47385AD5.6050501@yahoo.co.uk> Message-ID: <91E3542C-74A9-4AC3-8F7F-B24E254F775B@iam.unibe.ch> >>> I beg to disagree. As PRImagePersistency is currently implemented, >>> the only risk I can see is that it eventually fill up the disk, >>> which >>> is actually a very minor trouble. >>> >> >> This is the standard implementation as I use it on all my web >> servers. >> Propre persistency is something currently lackin in Pier, but the >> issue will be tackled soon. > > ahem, I think Magma persistency counts as proper don't you. I mean how > much more proper do you want? Sorry, I didn't want to offend you. I was only thinking about what is included with the core package, not available as an extension. Frankly I must say that I neither tried Magma nor the XML storage. I don't know if any of these are maintained? What is your experience with the Magma storage? Do you have productive instances successfully running with Maga? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From jason.johnson.081 at gmail.com Mon Nov 12 18:10:15 2007 From: jason.johnson.081 at gmail.com (Jason Johnson) Date: Mon, 12 Nov 2007 18:10:15 +0100 Subject: State of the latest pier release In-Reply-To: <2AE9A1D0-F973-490B-AC14-39CFA4848F6E@iam.unibe.ch> References: <2AE9A1D0-F973-490B-AC14-39CFA4848F6E@iam.unibe.ch> Message-ID: I got the latest web-dev image and then used Monticello to upgrade everything to the latest possible version. I just wanted to check with you all first before I get too deep into troubleshooting. In cleaning up obsolete references and so on I may have broken a few too many links. And while on this subject, has anyone ever noticed a memory leak with the Pier/Magritte/Seaside combo? I deleted the PRKernel instance "pier" (the only PRKernel there was), hit "clear caches" on the seaside web page 10 times and then did a Smalltalk garbageCollect about 10 times and still there are all kinds of Pier, Magritte and Seaside rendering objects all over the place. I suppose it's not a big deal, but if clearing the caches doesn't unreferenced this stuff that should have to references connecting back to the core image, then I wonder what happens after running a web site for a year. On Nov 12, 2007 10:19 AM, Lukas Renggli wrote: > Hi Jason > > > > I just set up an image with the latest and greatest of all the > > packages, Kom, Seaside, Magritte, Pier. And now when I look at the > > pier site I just see the grey boxes for View, Commands and History, > > nothing else shows up. I browsed the PRKernel and everything seems > > to be there, it just wont render. Could this be due to the > > environment changes, or should the latest version work? > > it should theoretically work. What versions did you load? Where did > you load it from? > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From jason.johnson.081 at gmail.com Mon Nov 12 18:15:52 2007 From: jason.johnson.081 at gmail.com (Jason Johnson) Date: Mon, 12 Nov 2007 18:15:52 +0100 Subject: One Click Experience In-Reply-To: <47385AD5.6050501@yahoo.co.uk> References: <91F3C20B-3693-4FC6-AADC-809336EC3683@gmail.com> <66666f210711111223j77d8b6d2jfe6946ac56f0d60d@mail.gmail.com> <5034D0BD-38AB-4C53-A230-A2F180447063@gmail.com> <4BE2D0F9-50AB-40ED-9D12-97AB59AB0C4C@iam.unibe.ch> <55874856-3023-41F6-BA8B-993B8306B37B@iam.unibe.ch> <47385AD5.6050501@yahoo.co.uk> Message-ID: Is there a universe somewhere I can load magma and it's Pier interface to experiment? On Nov 12, 2007 2:53 PM, Keith Hodges wrote: > Lukas Renggli wrote: > >> I beg to disagree. As PRImagePersistency is currently implemented, > >> the only risk I can see is that it eventually fill up the disk, which > >> is actually a very minor trouble. > >> > > > > This is the standard implementation as I use it on all my web servers. > > Propre persistency is something currently lackin in Pier, but the > > issue will be tackled soon. > > > > > ahem, I think Magma persistency counts as proper don't you. I mean how > much more proper do you want? > > Keith > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From renggli at iam.unibe.ch Mon Nov 12 18:23:16 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 12 Nov 2007 18:23:16 +0100 Subject: State of the latest pier release In-Reply-To: References: <2AE9A1D0-F973-490B-AC14-39CFA4848F6E@iam.unibe.ch> Message-ID: <1D339504-FEAE-4137-822A-C5947E144AD9@iam.unibe.ch> > I got the latest web-dev image and then used Monticello to upgrade > everything to the latest possible version. I just wanted to check > with you all first before I get too deep into troubleshooting. In > cleaning up obsolete references and so on I may have broken a few too > many links. The web-dev images are broken. They include incompatible versions of different packages. > And while on this subject, has anyone ever noticed a memory leak with > the Pier/Magritte/Seaside combo? I deleted the PRKernel instance > "pier" (the only PRKernel there was), hit "clear caches" on the > seaside web page 10 times and then did a Smalltalk garbageCollect > about 10 times and still there are all kinds of Pier, Magritte and > Seaside rendering objects all over the place. I suppose it's not a > big deal, but if clearing the caches doesn't unreferenced this stuff > that should have to references connecting back to the core image, then > I wonder what happens after running a web site for a year. Only recently Philippe discovered a memory leak with the Seaside Halos. This might be related. Try evaluating "WAHalo initialize" and check if this solves the problem? Cheers, Lukas > On Nov 12, 2007 10:19 AM, Lukas Renggli wrote: >> Hi Jason >> >> >>> I just set up an image with the latest and greatest of all the >>> packages, Kom, Seaside, Magritte, Pier. And now when I look at the >>> pier site I just see the grey boxes for View, Commands and History, >>> nothing else shows up. I browsed the PRKernel and everything seems >>> to be there, it just wont render. Could this be due to the >>> environment changes, or should the latest version work? >> >> it should theoretically work. What versions did you load? Where did >> you load it from? >> >> Cheers, >> Lukas >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Tue Nov 13 04:01:03 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Tue, 13 Nov 2007 03:01:03 +0000 Subject: State of the latest pier release In-Reply-To: <1D339504-FEAE-4137-822A-C5947E144AD9@iam.unibe.ch> References: <2AE9A1D0-F973-490B-AC14-39CFA4848F6E@iam.unibe.ch> <1D339504-FEAE-4137-822A-C5947E144AD9@iam.unibe.ch> Message-ID: <4739136F.10606@yahoo.co.uk> > Only recently Philippe discovered a memory leak with the Seaside > Halos. This might be related. Try evaluating "WAHalo initialize" and > check if this solves the problem? > > Cheers, > Lukas > oops, didnt realize you guys didnt know about that one... the Gjallar team had spotted that one. best regards Keith p.s. about persistency no offence taken really, I was just in a bit of a hurry to go out and pick up my new car, so perhaps I was a little abrupt and unsubtle in my communication. It was just good to have an opportunity to remind the world the magma support is out there. I was very pleased with magma's ability to persist pier structures. The site on which I was planning to use magma persistency was postponed for a year or perhaps two. I expect to use the Backup scheme on a site this week. This scheme is the same as Image Persistency except that changes are committed to the database as a backup. From keith_hodges at yahoo.co.uk Wed Nov 14 19:19:47 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Wed, 14 Nov 2007 18:19:47 +0000 Subject: MAValidationError Message-ID: <473B3C43.1010105@yahoo.co.uk> I came accross a situation in which an MAValidationError was raised having a tag = nil. Exception returns messageText from #tag in this case which being a string does not respond to #label. MAValidationError-#label ^ self tag label ifNil: [ self tag asString ] Keith From girba at iam.unibe.ch Thu Nov 15 07:37:51 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Thu, 15 Nov 2007 07:37:51 +0100 Subject: [ANN] Tabbed and Tagged Pages Widgets In-Reply-To: <473767FF.2030901@yahoo.co.uk> References: <473752D6.3060503@yahoo.co.uk> <473767FF.2030901@yahoo.co.uk> Message-ID: Hi, I gave the TabbedPages a try, but I get all sorts of errors due to missing methods when using it with the latest Pier. Am I doing something wrong? Cheers, Doru On Nov 11, 2007, at 9:37 PM, Keith Hodges wrote: >> >> The "Tabbed" pages widget presents the above list as a set of >> tabs, with >> the selected tab rendered. This uses the kalsey css that is part >> of the >> standard seaside style library. >> > A dropdown list variant is also implemented > > Keith > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com www.tudorgirba.com/blog "We cannot reach the flow of things unless we let go." From keith_hodges at yahoo.co.uk Thu Nov 15 15:01:49 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 15 Nov 2007 14:01:49 +0000 Subject: [ANN] Tabbed and Tagged Pages Widgets In-Reply-To: References: <473752D6.3060503@yahoo.co.uk> <473767FF.2030901@yahoo.co.uk> Message-ID: <473C514D.20907@yahoo.co.uk> Tudor Girba wrote: > Hi, > > I gave the TabbedPages a try, but I get all sorts of errors due to > missing methods when using it with the latest Pier. > > Am I doing something wrong? > > Cheers > > Doru > Hi Doru, I thought I mentioned this in the package history, sorry if I didn't. Due to the number of small add-ons that I have been making I have had to move extensions to Seaside and the base image to somewhere else. There is a package in http://www.squeaksource.com/311 called 'Kernel-Extensions' this provides 1. split/join 2. SmalltalkImage current cleanUpAll. 3. #firstOrNil. The Jetsam package available from http://www.squeaksource.com/Jetsam has a number of extensions to Seaside. (I dont think Tabbed pages depends upon these) best regards Keith p.s. if there are any methods missing other than #firstOrNil I would have to know specifics From girba at iam.unibe.ch Thu Nov 15 23:11:34 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Thu, 15 Nov 2007 23:11:34 +0100 Subject: lost files Message-ID: Hi, I am using the latest version of Pier, and I noticed that the files get lost after playing with them. The worst part was when I wanted to replace a picture, the complete files folder got removed (the only thing that is left is a folder named: files/25/wdenhhtcc8zn82to8vs8lbh4iijkxt). I would say this is a bug. Or did I get something wronng? Doru -- www.tudorgirba.com www.tudorgirba.com/blog "To lead is not to demand things, it is to make them happen." From girba at iam.unibe.ch Sat Nov 17 09:43:01 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Sat, 17 Nov 2007 09:43:01 +0100 Subject: including contents Message-ID: Hi, I have a special structure and everything looks just fine, except that when I include (+/linktomystructure+) it in another page nothing gets rendered. What can be the possible causes for that? Doru -- www.tudorgirba.com www.tudorgirba.com/blog "It's not what we do that matters most, it's how we do it." From keith_hodges at yahoo.co.uk Sat Nov 17 11:57:55 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Sat, 17 Nov 2007 10:57:55 +0000 Subject: including contents In-Reply-To: References: Message-ID: <473EC933.4020609@yahoo.co.uk> Tudor Girba wrote: > Hi, > > I have a special structure and everything looks just fine, except > that when I include (+/linktomystructure+) it in another page nothing > gets rendered. > > What can be the possible causes for that? > > Doru > > If the destination does not exist then it should render "/linktomystructure" in red. If you do not have permission to view that structure then it will not render at all. Try */linktomystructure*, if that renders as a disabled (greyed out) link then it would be a permissions problem. Keith From girba at iam.unibe.ch Sat Nov 17 12:07:43 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Sat, 17 Nov 2007 12:07:43 +0100 Subject: including contents In-Reply-To: <473EC933.4020609@yahoo.co.uk> References: <473EC933.4020609@yahoo.co.uk> Message-ID: Hi, There are no problems with the rights. If I link to it with */ linktomystructure* it works, but if I embed it nothing gets displayed. Also, if I just view mystructure it works. I thought that when I am embedding it, it should use the same code as when I am viewing it. That is what puzzles me. Cheers, Dory On Nov 17, 2007, at 11:57 AM, Keith Hodges wrote: > Tudor Girba wrote: >> Hi, >> >> I have a special structure and everything looks just fine, except >> that when I include (+/linktomystructure+) it in another page nothing >> gets rendered. >> >> What can be the possible causes for that? >> >> Doru >> >> > If the destination does not exist then it should render > "/linktomystructure" in red. > > If you do not have permission to view that structure then it will not > render at all. > > Try */linktomystructure*, if that renders as a disabled (greyed out) > link then it would be a permissions problem. > > Keith > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com www.tudorgirba.com/blog "Every successful trip needs a suitable vehicle." From keith_hodges at yahoo.co.uk Sat Nov 17 18:34:49 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Sat, 17 Nov 2007 17:34:49 +0000 Subject: including contents In-Reply-To: References: <473EC933.4020609@yahoo.co.uk> Message-ID: <473F2639.3020005@yahoo.co.uk> Tudor Girba wrote: > Hi, > > There are no problems with the rights. If I link to it with */ > linktomystructure* it works, but if I embed it nothing gets displayed. > > Also, if I just view mystructure it works. I thought that when I am > embedding it, it should use the same code as when I am viewing it. > > That is what puzzles me. > > Cheers, > Dory > > On Nov 17, 2007, at 11:57 AM, Keith Hodges wrote: > > I guess that it depends upon what the structure is. If it is a children widget, it displays the children of the top level strucure that is being displayed, rather than its own children. Some of my widgets have a 'target' setting to make it explicit exactly whose children you want. we are getting into wild guessing here.... Keith From girba at iam.unibe.ch Sat Nov 17 18:36:41 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Sat, 17 Nov 2007 18:36:41 +0100 Subject: including contents In-Reply-To: References: <473EC933.4020609@yahoo.co.uk> Message-ID: <4976FC2F-45D8-424C-8049-F442EFB617A3@iam.unibe.ch> Hi, Philippe helped me to find the problem, which was that I did not write the visitor method to render it. So, now I have a PRViewRenderer>>visitMyStructure: that renders it. I do not know if this is the right way, but if it is then I would say we could by default, in visitStructure:, just forward the rendering to the HtmlView. The problem there is that the View needs the context, and I do not know how to get it from the Visitor. Cheers, Doru On Nov 17, 2007, at 12:07 PM, Tudor Girba wrote: > Hi, > > There are no problems with the rights. If I link to it with */ > linktomystructure* it works, but if I embed it nothing gets displayed. > > Also, if I just view mystructure it works. I thought that when I am > embedding it, it should use the same code as when I am viewing it. > > That is what puzzles me. > > Cheers, > Dory > > On Nov 17, 2007, at 11:57 AM, Keith Hodges wrote: > >> Tudor Girba wrote: >>> Hi, >>> >>> I have a special structure and everything looks just fine, except >>> that when I include (+/linktomystructure+) it in another page >>> nothing >>> gets rendered. >>> >>> What can be the possible causes for that? >>> >>> Doru >>> >>> >> If the destination does not exist then it should render >> "/linktomystructure" in red. >> >> If you do not have permission to view that structure then it will not >> render at all. >> >> Try */linktomystructure*, if that renders as a disabled (greyed out) >> link then it would be a permissions problem. >> >> Keith >> >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > -- > www.tudorgirba.com > www.tudorgirba.com/blog > > "Every successful trip needs a suitable vehicle." > > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com www.tudorgirba.com/blog "Value is always contextual." From keith_hodges at yahoo.co.uk Sat Nov 17 19:03:35 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Sat, 17 Nov 2007 18:03:35 +0000 Subject: including contents In-Reply-To: <4976FC2F-45D8-424C-8049-F442EFB617A3@iam.unibe.ch> References: <473EC933.4020609@yahoo.co.uk> <4976FC2F-45D8-424C-8049-F442EFB617A3@iam.unibe.ch> Message-ID: <473F2CF7.8020400@yahoo.co.uk> Context... You can usually obtain the current context via PRCurrentContext value Keith From damien.pollet at gmail.com Sun Nov 18 01:11:27 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Sun, 18 Nov 2007 01:11:27 +0100 Subject: Autofill in login form? Message-ID: <34b4844b0711171611g2772dd6egca6371c59d31305f@mail.gmail.com> Safari doesn't seem to want to remember and fill the login and password fields of the login form for me? Does it work for you? -- Damien Pollet From keith_hodges at yahoo.co.uk Sun Nov 18 01:18:11 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Sun, 18 Nov 2007 00:18:11 +0000 Subject: [ANN] Prioritizing Description Builder Message-ID: <473F84C3.1090000@yahoo.co.uk> Greetings! One of the things I find particularly cumbersome when using magritte is knowing the order in which my components will appear and managing their priorities effectively. I know I am just being lazy, but I have wished for a better way. The new improved MACustomPrioritizedDescriptionBuilder! If you define your description like so... description010FirstName description020LastName description030Address Then the given digits (if present) are used as the priority for that item. enjoy Keith ============================= (Installer http: 'mc.lukas-renggli.ch') project:'magritteaddons'; install: 'Magriite-CustomBuilder'. ============================= Name: Magritte-CustomBuilder-kph.6 Author: kph Time: 18 November 2007, 12:06:52 am UUID: 2ae04c2a-956a-11dc-9bf8-000a95edb42a Ancestors: Magritte-CustomBuilder-kph.5 - MACustomPrioritizedDescriptionBuilder From renggli at iam.unibe.ch Sun Nov 18 08:58:29 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 18 Nov 2007 08:58:29 +0100 Subject: Autofill in login form? In-Reply-To: <34b4844b0711171611g2772dd6egca6371c59d31305f@mail.gmail.com> References: <34b4844b0711171611g2772dd6egca6371c59d31305f@mail.gmail.com> Message-ID: > Safari doesn't seem to want to remember and fill the login and > password fields of the login form for me? Does it work for you? As far as I know Safari only remembers form fields if the whole URLs matches exactly. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Sun Nov 18 09:49:30 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 18 Nov 2007 09:49:30 +0100 Subject: including contents In-Reply-To: <4976FC2F-45D8-424C-8049-F442EFB617A3@iam.unibe.ch> References: <473EC933.4020609@yahoo.co.uk> <4976FC2F-45D8-424C-8049-F442EFB617A3@iam.unibe.ch> Message-ID: > Philippe helped me to find the problem, which was that I did not > write the visitor method to render it. So, now I have a > PRViewRenderer>>visitMyStructure: that renders it. That's it. By default the PRRenderVisitor is used to generate the output. This visitor is also aware of circularities and is able to avoid them. Other views can currently not be embedded, but we could allow a syntax like the following one in the future: +RSS>/blog|view=PBRssView+ > I do not know if this is the right way, but if it is then I would say > we could by default, in visitStructure:, just forward the rendering > to the HtmlView. The problem there is that the View needs the > context, and I do not know how to get it from the Visitor. Just ask the visitor for the current context, he knows how to get it: self context Cheers, Lukas > > > Cheers, > Doru > > > > On Nov 17, 2007, at 12:07 PM, Tudor Girba wrote: > >> Hi, >> >> There are no problems with the rights. If I link to it with */ >> linktomystructure* it works, but if I embed it nothing gets >> displayed. >> >> Also, if I just view mystructure it works. I thought that when I am >> embedding it, it should use the same code as when I am viewing it. >> >> That is what puzzles me. >> >> Cheers, >> Dory >> >> On Nov 17, 2007, at 11:57 AM, Keith Hodges wrote: >> >>> Tudor Girba wrote: >>>> Hi, >>>> >>>> I have a special structure and everything looks just fine, except >>>> that when I include (+/linktomystructure+) it in another page >>>> nothing >>>> gets rendered. >>>> >>>> What can be the possible causes for that? >>>> >>>> Doru >>>> >>>> >>> If the destination does not exist then it should render >>> "/linktomystructure" in red. >>> >>> If you do not have permission to view that structure then it will >>> not >>> render at all. >>> >>> Try */linktomystructure*, if that renders as a disabled (greyed out) >>> link then it would be a permissions problem. >>> >>> Keith >>> >>> >>> >>> _______________________________________________ >>> SmallWiki, Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> >> -- >> www.tudorgirba.com >> www.tudorgirba.com/blog >> >> "Every successful trip needs a suitable vehicle." >> >> >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > -- > www.tudorgirba.com > www.tudorgirba.com/blog > > "Value is always contextual." > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Sun Nov 18 10:39:54 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 18 Nov 2007 10:39:54 +0100 Subject: lost files In-Reply-To: References: Message-ID: <48AF1AAB-9911-417A-A749-A522E907F5F8@iam.unibe.ch> > I am using the latest version of Pier, and I noticed that the files > get lost after playing with them. The worst part was when I wanted > to replace a picture, the complete files folder got removed (the > only thing that is left is a folder named: > files/25/wdenhhtcc8zn82to8vs8lbh4iijkxt). > > I would say this is a bug. Or did I get something wronng? Deleting old uploads from the filesystem was a suggested patch a few months ago. I fixed a bug causing Magritte to clean up a little bit too much: Name: Magritte-Model-lr.301 Author: lr Time: 18 November 2007, 10:36:47 am UUID: fe3ed783-e756-499b-a137-ab733ae13dbf Ancestors: Magritte-Model-lr.300 - fixed a bug when finalizing file-model I observed several other problems with the cleanup procedure. I suggest that we remove it from Magritte, I guess it is not worth the trouble. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From manuel.blanc at gmail.com Sun Nov 18 12:36:08 2007 From: manuel.blanc at gmail.com (M. Blanc) Date: Sun, 18 Nov 2007 12:36:08 +0100 Subject: Autofill in login form? In-Reply-To: References: <34b4844b0711171611g2772dd6egca6371c59d31305f@mail.gmail.com> Message-ID: <577067E8-4B23-43FC-B78B-019703C48275@gmail.com> On 18 Nov 2007, at 08:58, Lukas Renggli wrote: >> Safari doesn't seem to want to remember and fill the login and >> password fields of the login form for me? Does it work for you? > > As far as I know Safari only remembers form fields if the whole URLs > matches exactly. If that were the case, http://localhost:8080/seaside/pier?command=PULogin should work, but it doesn't. (And the '?command=PULogin' in the URL above is not the culprit either, as you can check by switching the main class to 'PUPierMain', disabling view for others in the root page and going to http:// localhost:8080/seaside/pier). Cheers --mbj From damien.pollet at gmail.com Sun Nov 18 14:35:10 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Sun, 18 Nov 2007 14:35:10 +0100 Subject: [ANN] Prioritizing Description Builder In-Reply-To: <473F84C3.1090000@yahoo.co.uk> References: <473F84C3.1090000@yahoo.co.uk> Message-ID: <34b4844b0711180535x7f642c01ke630276ad24213a4@mail.gmail.com> On 18/11/2007, Keith Hodges wrote: > One of the things I find particularly cumbersome when using magritte is > knowing the order in which my components will appear and managing their > priorities effectively. I know I am just being lazy, but I have wished > for a better way. I tried (lazy mode, ie. without putting too much effort nor getting real success) to group several descriptions in a nested MAContainer, hoping that I could get a group of checkboxes and give a label to the group instead of to the first checkbok (see the PRBatcheWidget for instance). Often what's important is a partial order, where order inside groups doesn't really matter. (my .2chf) -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From damien.pollet at gmail.com Sun Nov 18 15:45:33 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Sun, 18 Nov 2007 15:45:33 +0100 Subject: Pier Refactorings In-Reply-To: References: <35701D97-4DD3-4976-ADB7-1E3F5E12B920@iam.unibe.ch> <472A3EC3.8010105@yahoo.co.uk> Message-ID: <34b4844b0711180645w52a3c969o3e9a2bb99b75340b@mail.gmail.com> I just loaded and tried the PRDocumentWidget in my own Pier image. At first I had tried to add "relative links" (like +./sidebar+) in the environment, hoping they would be relative to the current structure, not the environment: foo sidebar (displayed besides foo) bar sidebar (displayed besides bar) environment (contains +./sidebar+) Indeed this didn't work and the PRDocumentWidget is more practical :) There is an annoying behavior though: when I edit the document widget's contents, it's only saved if I click in another textarea (the one for the structure's contents) before hitting ctrl-s or clicking the Save button. (this is in Safari, in Firefox it works as expected) On 02/11/2007, Lukas Renggli wrote: > > environment > > layout > > layoutA > > layoutB > > scripts > > css > > cssA > > cssB > > color-schemes > > > > The current scheme allows me to do this because I just point my root > > page's environment to /environment/layout. > > Indeed, I use the same approach. Maybe it would help, if we had such a > setup by default, with some explanatory text. Like this we would get a > decent default configuration, but you would be still free to > reorganize it however you like. > > One problem I see with having the environment in the structure itself > (as opposed to having it on a separate page) is that it is virtually > impossible to use relative links. And you need those links because you > don't want your components in the same hierarchy as the page. > > > If I was doing a side bar I would add environment/side-bar to this > > list > > and the layout includes +../sidebar+ > > The problem I face is that I need a different side-bar text for every > page. And having a new layout for every page is not what I want. > > > I already do this so I am really not sure what the extra functionality > > you are providing. Do you want a sidebar with an edit button in it? > > The thing with the Sidebar is just an example. When I edit a page I > would not only like to be able to edit the document in the contents > (as it is now) but also in some other areas, that are not necessarily > connected to the main contents, e.g. the side-bar, some small printed > text, some additional links in a box somewhere, etc. > > > If you want the sidebar to contain user editable content, then you > > could > > introduce the idea of a component who finds its content via a search > > strategy... e.g. > > > > PRContents-findPage: aPagePath > > > > ^ (self context structure / aPagePath) ifNil: [ context structure > > parent > > findPage: aPagePath ] > > > > This would enable your side-bar documents to be managed in the > > existing > > tree. > > Well that was my idea (sort of). However I want it to be editable as > part of the normal editing process. And keep the contents close to its > page, as they closely belong together. > > >> into a side-bar or the heading to allow customization of these parts > >> of the page as part of the edit process of a structure. Again these > >> 'extra' documents can have default documents and/or be inherited from > >> parent structures. Do you think that would be useful? > > > > So you put extra contents widgets in the layout.... where is the > > content > > obtained from/stored in your model? > > > > Is the existing model preserved or do we have an extra document(s) > > attribute in a PRPage, and each contents widget edits a different one? > > The existing model with the default document is preserved, this is > also where the Magritte editor (login, permissions, etc) are managed. > Additionally we would get other parts that can be edited the same way. > All structures would get an extra document for every PRDocumentWidget > defined in its environment. These documents (depending on the > settings) can then be inherited (if left blank) from the parent or > include a default text. > > > I am sure that you know what you are doing, I am not convinced that > > I am > > fully understanding your intentions in order to make a valued > > judgement > > Thank you for sharing your thoughts. I hope I could make it clearer now. > > Regards, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From renggli at iam.unibe.ch Sun Nov 18 15:56:50 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 18 Nov 2007 15:56:50 +0100 Subject: Pier Refactorings In-Reply-To: <34b4844b0711180645w52a3c969o3e9a2bb99b75340b@mail.gmail.com> References: <35701D97-4DD3-4976-ADB7-1E3F5E12B920@iam.unibe.ch> <472A3EC3.8010105@yahoo.co.uk> <34b4844b0711180645w52a3c969o3e9a2bb99b75340b@mail.gmail.com> Message-ID: <07E45645-B319-40FA-A0A5-5864C161ACAB@iam.unibe.ch> > There is an annoying behavior though: when I edit the document > widget's contents, it's only saved if I click in another textarea (the > one for the structure's contents) before hitting ctrl-s or clicking > the Save button. (this is in Safari, in Firefox it works as expected) Yes, the issue is a nasty bug in Safari. I only observed it when hitting Ctrl-S, not when hitting the save button, though. I don't have a solution ready for that bug right now. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From manuel.blanc at gmail.com Sun Nov 18 17:59:10 2007 From: manuel.blanc at gmail.com (M. Blanc) Date: Sun, 18 Nov 2007 17:59:10 +0100 Subject: [SOLVED] Re: Autofill in login form? In-Reply-To: <34b4844b0711171611g2772dd6egca6371c59d31305f@mail.gmail.com> References: <34b4844b0711171611g2772dd6egca6371c59d31305f@mail.gmail.com> Message-ID: <0B58263B-A052-4984-A5A3-70DD90D1187D@gmail.com> On 18 Nov 2007, at 01:11, Damien Pollet wrote: > Safari doesn't seem to want to remember and fill the login and > password fields of the login form for me? Does it work for you? If you look at the html of http://localhost:8080/seaside/pier? command=PULogin the line: (that is, the second input tag in the first div inside the login form) is the culprit. Just change its type to "hidden" and Safari will ask you if you want to store the login data, or will fill it in if you've already saved it. Cheers --mbj From damien.pollet at gmail.com Sun Nov 18 18:01:54 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Sun, 18 Nov 2007 18:01:54 +0100 Subject: Encoding of CSS loaded in FileLibrary Message-ID: <34b4844b0711180901wa8a5a3dyf08cc3a1161eb4c2@mail.gmail.com> yes, encodings once again :) My CSS has UTF8 content that gets displayed: I'm using foo:after { contents: '?'; } (that's a french closing guillemot in there, looks like >> ) I'm loading it in a subclass of WAFileLibrary using #addAllFilesIn: When I use WAKom, the guillemot becomes an error character. With WAKomEncoded it's displayed correctly. but then I can't use some characters when editing pages. My understanding was that WAKomEncoded converts to the squeak internal representation, and WAKom does nothing, so WAKom should work (as long as I have UTF in my files, which is the case), and WAKomEncoded could fail if it tries to convert what's in the FileLibrary from squeak to utf before serving? Why is it the reverse in practice? -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From damien.pollet at gmail.com Sun Nov 18 18:10:41 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Sun, 18 Nov 2007 18:10:41 +0100 Subject: [SOLVED] Re: Autofill in login form? In-Reply-To: <0B58263B-A052-4984-A5A3-70DD90D1187D@gmail.com> References: <34b4844b0711171611g2772dd6egca6371c59d31305f@mail.gmail.com> <0B58263B-A052-4984-A5A3-70DD90D1187D@gmail.com> Message-ID: <34b4844b0711180910h3ca47285n2b23c2108a898e28@mail.gmail.com> On 18/11/2007, M. Blanc wrote: > class="text"/> > > (that is, the second input tag in the first div inside the login > form) is the culprit. > > Just change its type to "hidden" and Safari will ask you if you want > to store the login data, or will fill it in if you've already saved it. Just being curious? What are those fields for? They positioned out of the screen, couldn't the div have style="display: none"? I also guess the input names are numbers because they need to be unique within the page... would it make sense to name them from their magritte description? -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From philippe.marschall at gmail.com Sun Nov 18 18:13:55 2007 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Sun, 18 Nov 2007 18:13:55 +0100 Subject: Encoding of CSS loaded in FileLibrary In-Reply-To: <34b4844b0711180901wa8a5a3dyf08cc3a1161eb4c2@mail.gmail.com> References: <34b4844b0711180901wa8a5a3dyf08cc3a1161eb4c2@mail.gmail.com> Message-ID: <66666f210711180913k4678f1fbjdd2d44d67a325473@mail.gmail.com> 2007/11/18, Damien Pollet : > yes, encodings once again :) > > My CSS has UTF8 content that gets displayed: I'm using foo:after { > contents: '?'; } (that's a french closing guillemot in there, looks > like >> ) > > I'm loading it in a subclass of WAFileLibrary using #addAllFilesIn: > > When I use WAKom, the guillemot becomes an error character. With > WAKomEncoded it's displayed correctly. but then I can't use some > characters when editing pages. > > My understanding was that WAKomEncoded converts to the squeak internal > representation, and WAKom does nothing, so WAKom should work no, not at all > (as long > as I have UTF in my files yes > which is the case), Which might be the case of the file on your file system. Which is probably not the case of the literal string in your file library class. This string very likely has Squeak encoding. > and WAKomEncoded could > fail if it tries to convert what's in the FileLibrary from squeak to > utf before serving? The contents are likely Squeak. Cheers Philippe > Why is it the reverse in practice? > > > -- > Damien Pollet > type less, do more [ | ] http://typo.cdlm.fasmz.org > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From renggli at iam.unibe.ch Sun Nov 18 18:45:21 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 18 Nov 2007 18:45:21 +0100 Subject: [SOLVED] Re: Autofill in login form? In-Reply-To: <34b4844b0711180910h3ca47285n2b23c2108a898e28@mail.gmail.com> References: <34b4844b0711171611g2772dd6egca6371c59d31305f@mail.gmail.com> <0B58263B-A052-4984-A5A3-70DD90D1187D@gmail.com> <34b4844b0711180910h3ca47285n2b23c2108a898e28@mail.gmail.com> Message-ID: <980C325A-73DA-4B1C-8CE4-E1D591E2E12A@iam.unibe.ch> > On 18/11/2007, M. Blanc wrote: >> > class="text"/> >> >> (that is, the second input tag in the first div inside the login >> form) is the culprit. >> >> Just change its type to "hidden" and Safari will ask you if you want >> to store the login data, or will fill it in if you've already saved >> it. The suggestion will break the behavior of #defaultAction: in any Seaside form. > What are those fields for? These fields are there to define the default action of the form, e.g. the callback to be triggered when ENTER is pressed while having the focus on a text field. If anybody finds a better non-javascript and cross browser portable solution to this problem, we would be glad to include it with Seaside? Maybe it would be time to replace this very old hack with something better? > They positioned out of the screen, couldn't the div have > style="display: none"? Changing or removing these fields will break the desired behavior. > I also guess the input names are numbers because they need to be > unique within the page... would it make sense to name them from > their magritte description? This is Seaside that assigns the names. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From manuel.blanc at gmail.com Sun Nov 18 18:59:19 2007 From: manuel.blanc at gmail.com (M. Blanc) Date: Sun, 18 Nov 2007 18:59:19 +0100 Subject: [SOLVED] Re: Autofill in login form? In-Reply-To: <980C325A-73DA-4B1C-8CE4-E1D591E2E12A@iam.unibe.ch> References: <34b4844b0711171611g2772dd6egca6371c59d31305f@mail.gmail.com> <0B58263B-A052-4984-A5A3-70DD90D1187D@gmail.com> <34b4844b0711180910h3ca47285n2b23c2108a898e28@mail.gmail.com> <980C325A-73DA-4B1C-8CE4-E1D591E2E12A@iam.unibe.ch> Message-ID: <7AABCC3D-4E75-41E8-9F5F-E02EC4DA4E6B@gmail.com> On 18 Nov 2007, at 18:45, Lukas Renggli wrote: >> On 18/11/2007, M. Blanc wrote: >>> >> class="text"/> >>> >>> (that is, the second input tag in the first div inside the login >>> form) is the culprit. >>> >>> Just change its type to "hidden" and Safari will ask you if you want >>> to store the login data, or will fill it in if you've already saved >>> it. > > The suggestion will break the behavior of #defaultAction: in any > Seaside form. Could you give an example of what gets broken in the login form by the suggestion? Thanks. --mbj From renggli at iam.unibe.ch Sun Nov 18 19:06:44 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 18 Nov 2007 19:06:44 +0100 Subject: [SOLVED] Re: Autofill in login form? In-Reply-To: <7AABCC3D-4E75-41E8-9F5F-E02EC4DA4E6B@gmail.com> References: <34b4844b0711171611g2772dd6egca6371c59d31305f@mail.gmail.com> <0B58263B-A052-4984-A5A3-70DD90D1187D@gmail.com> <34b4844b0711180910h3ca47285n2b23c2108a898e28@mail.gmail.com> <980C325A-73DA-4B1C-8CE4-E1D591E2E12A@iam.unibe.ch> <7AABCC3D-4E75-41E8-9F5F-E02EC4DA4E6B@gmail.com> Message-ID: >>>> >>> type="text" >>>> class="text"/> >>>> >>>> (that is, the second input tag in the first div inside the login >>>> form) is the culprit. >>>> >>>> Just change its type to "hidden" and Safari will ask you if you >>>> want >>>> to store the login data, or will fill it in if you've already saved >>>> it. >> >> The suggestion will break the behavior of #defaultAction: in any >> Seaside form. > > Could you give an example of what gets broken in the login form by > the suggestion? Probably nothing in the login form. The change you suggest is not related to Pier or Magritte, but to Seaside. Have a look at the functional Seaside Test Suite at http://localhost/seaside/tests/alltests -> Default Form. I doubt that after your change this test still pases in Safari, FireFox, Opera and IE. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.pollet at gmail.com Sun Nov 18 19:53:46 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Sun, 18 Nov 2007 19:53:46 +0100 Subject: Encoding of CSS loaded in FileLibrary In-Reply-To: <66666f210711180913k4678f1fbjdd2d44d67a325473@mail.gmail.com> References: <34b4844b0711180901wa8a5a3dyf08cc3a1161eb4c2@mail.gmail.com> <66666f210711180913k4678f1fbjdd2d44d67a325473@mail.gmail.com> Message-ID: <34b4844b0711181053g1bd6e86asaf3c0c6d3f2fbc65@mail.gmail.com> On 18/11/2007, Philippe Marschall wrote: > Which might be the case of the file on your file system. Which is > probably not the case of the literal string in your file library > class. This string very likely has Squeak encoding. Ah indeed it is. I assumed the loading didn't try to convert. -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From damien.pollet at gmail.com Sun Nov 18 20:11:23 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Sun, 18 Nov 2007 20:11:23 +0100 Subject: Committed changes to Pier-Math and Pier-TagCloud Message-ID: <34b4844b0711181111x65d82c6ak6c624150b9921e5d@mail.gmail.com> In Pier-Math it's just fixes mainly because it hardcoded the paths to latex and dvipng. I added a new subclass of PRTagCloudWidget with a different formula for scaling the tags: - it computes mean and standard deviation in occurences among the displayed tags, - tags in the mean get 100% size - the scaling tends towards a factor of +/- two for outliers - tags at standard deviation are visibly scaled (I don't remember exactly but twice the std dev would give 80-90% of maximum scaling) No commit comment because the Accept button threw itself under a click :) -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From renggli at iam.unibe.ch Sun Nov 18 20:24:15 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 18 Nov 2007 20:24:15 +0100 Subject: Committed changes to Pier-Math and Pier-TagCloud In-Reply-To: <34b4844b0711181111x65d82c6ak6c624150b9921e5d@mail.gmail.com> References: <34b4844b0711181111x65d82c6ak6c624150b9921e5d@mail.gmail.com> Message-ID: <146003AB-5FC7-45B6-91F1-EA523A136449@iam.unibe.ch> > In Pier-Math it's just fixes mainly because it hardcoded the paths to > latex and dvipng. Great. > I added a new subclass of PRTagCloudWidget with a different formula > for scaling the tags: > - it computes mean and standard deviation in occurences among the > displayed tags, > - tags in the mean get 100% size > - the scaling tends towards a factor of +/- two for outliers > - tags at standard deviation are visibly scaled (I don't remember > exactly but twice the std dev would give 80-90% of maximum scaling) Sounds complicated, I am eager to see how this looks like ;-) Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.pollet at gmail.com Sun Nov 18 20:32:37 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Sun, 18 Nov 2007 20:32:37 +0100 Subject: Committed changes to Pier-Math and Pier-TagCloud In-Reply-To: <146003AB-5FC7-45B6-91F1-EA523A136449@iam.unibe.ch> References: <34b4844b0711181111x65d82c6ak6c624150b9921e5d@mail.gmail.com> <146003AB-5FC7-45B6-91F1-EA523A136449@iam.unibe.ch> Message-ID: <34b4844b0711181132j54686764x713b14aaec986c7c@mail.gmail.com> On 18/11/2007, Lukas Renggli wrote: > > I added a new subclass of PRTagCloudWidget with a different formula > > for scaling the tags: > > Sounds complicated, I am eager to see how this looks like ;-) Like that: http://evo.inf.unisi.ch/~dpollet/files/web/pier3.png -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From girba at iam.unibe.ch Sun Nov 18 21:12:12 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Sun, 18 Nov 2007 21:12:12 +0100 Subject: Committed changes to Pier-Math and Pier-TagCloud In-Reply-To: <34b4844b0711181132j54686764x713b14aaec986c7c@mail.gmail.com> References: <34b4844b0711181111x65d82c6ak6c624150b9921e5d@mail.gmail.com> <146003AB-5FC7-45B6-91F1-EA523A136449@iam.unibe.ch> <34b4844b0711181132j54686764x713b14aaec986c7c@mail.gmail.com> Message-ID: <15D93FA0-A04C-4D1A-8E8C-7E6E4DE8F843@iam.unibe.ch> It looks cool. I will include it in the new Moose webpage :). Doru On Nov 18, 2007, at 8:32 PM, Damien Pollet wrote: > On 18/11/2007, Lukas Renggli wrote: >>> I added a new subclass of PRTagCloudWidget with a different formula >>> for scaling the tags: >> >> Sounds complicated, I am eager to see how this looks like ;-) > > Like that: > > http://evo.inf.unisi.ch/~dpollet/files/web/pier3.png > > -- > Damien Pollet > type less, do more [ | ] http://typo.cdlm.fasmz.org > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com www.tudorgirba.com/blog "No matter how many recipes we'll know, we'll still value a chef." From damien.pollet at gmail.com Sun Nov 18 21:47:56 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Sun, 18 Nov 2007 21:47:56 +0100 Subject: Committed changes to Pier-Math and Pier-TagCloud In-Reply-To: <15D93FA0-A04C-4D1A-8E8C-7E6E4DE8F843@iam.unibe.ch> References: <34b4844b0711181111x65d82c6ak6c624150b9921e5d@mail.gmail.com> <146003AB-5FC7-45B6-91F1-EA523A136449@iam.unibe.ch> <34b4844b0711181132j54686764x713b14aaec986c7c@mail.gmail.com> <15D93FA0-A04C-4D1A-8E8C-7E6E4DE8F843@iam.unibe.ch> Message-ID: <34b4844b0711181247s101d53cbrc9be15f95db02d7@mail.gmail.com> On 18/11/2007, Tudor Girba wrote: > It looks cool. I will include it in the new Moose webpage :). > > Doru Hmm, actually it looks less cool when I click on a tag? I have the whole bibliographic entries appear as tags :) > On Nov 18, 2007, at 8:32 PM, Damien Pollet wrote: > > > On 18/11/2007, Lukas Renggli wrote: > >>> I added a new subclass of PRTagCloudWidget with a different formula > >>> for scaling the tags: > >> > >> Sounds complicated, I am eager to see how this looks like ;-) > > > > Like that: > > > > http://evo.inf.unisi.ch/~dpollet/files/web/pier3.png > > > > -- > > Damien Pollet > > type less, do more [ | ] http://typo.cdlm.fasmz.org > > > > _______________________________________________ > > SmallWiki, Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > -- > www.tudorgirba.com > www.tudorgirba.com/blog > > "No matter how many recipes we'll know, we'll still value a chef." > > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From girba at iam.unibe.ch Sun Nov 18 23:50:55 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Sun, 18 Nov 2007 23:50:55 +0100 Subject: prdocumentwidget Message-ID: Hi, I am giving the new PRDocumentWidget a try on my webpage. With this occassion, I got rid of all environments and just use the documents instead of templates. It just took a while to figure out that I have to select the checkbox to make the documents inherited :). It's a very nice mechanism. Cheers, Doru -- www.tudorgirba.com www.tudorgirba.com/blog "Every thing has its own flow." From girba at iam.unibe.ch Sun Nov 18 23:54:25 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Sun, 18 Nov 2007 23:54:25 +0100 Subject: Committed changes to Pier-Math and Pier-TagCloud In-Reply-To: <34b4844b0711181247s101d53cbrc9be15f95db02d7@mail.gmail.com> References: <34b4844b0711181111x65d82c6ak6c624150b9921e5d@mail.gmail.com> <146003AB-5FC7-45B6-91F1-EA523A136449@iam.unibe.ch> <34b4844b0711181132j54686764x713b14aaec986c7c@mail.gmail.com> <15D93FA0-A04C-4D1A-8E8C-7E6E4DE8F843@iam.unibe.ch> <34b4844b0711181247s101d53cbrc9be15f95db02d7@mail.gmail.com> Message-ID: <0EFF0BEA-7B85-4F46-A7F3-1DA83EA166D0@iam.unibe.ch> I am not sure that I understand, but if you say that the entries appear as tags it probably means that you let the default setting of considering everything in the page. I only consider the tags. Was this the problem, or is it another one? Doru On Nov 18, 2007, at 9:47 PM, Damien Pollet wrote: > On 18/11/2007, Tudor Girba wrote: >> It looks cool. I will include it in the new Moose webpage :). >> >> Doru > > Hmm, actually it looks less cool when I click on a tag? I have the > whole bibliographic entries appear as tags :) > >> On Nov 18, 2007, at 8:32 PM, Damien Pollet wrote: >> >>> On 18/11/2007, Lukas Renggli wrote: >>>>> I added a new subclass of PRTagCloudWidget with a different >>>>> formula >>>>> for scaling the tags: >>>> >>>> Sounds complicated, I am eager to see how this looks like ;-) >>> >>> Like that: >>> >>> http://evo.inf.unisi.ch/~dpollet/files/web/pier3.png >>> >>> -- >>> Damien Pollet >>> type less, do more [ | ] http://typo.cdlm.fasmz.org >>> >>> _______________________________________________ >>> SmallWiki, Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> >> -- >> www.tudorgirba.com >> www.tudorgirba.com/blog >> >> "No matter how many recipes we'll know, we'll still value a chef." >> >> >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > > -- > Damien Pollet > type less, do more [ | ] http://typo.cdlm.fasmz.org > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- www.tudorgirba.com www.tudorgirba.com/blog "When people care, great things can happen." From damien.pollet at gmail.com Mon Nov 19 00:19:55 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Mon, 19 Nov 2007 00:19:55 +0100 Subject: Committed changes to Pier-Math and Pier-TagCloud In-Reply-To: <0EFF0BEA-7B85-4F46-A7F3-1DA83EA166D0@iam.unibe.ch> References: <34b4844b0711181111x65d82c6ak6c624150b9921e5d@mail.gmail.com> <146003AB-5FC7-45B6-91F1-EA523A136449@iam.unibe.ch> <34b4844b0711181132j54686764x713b14aaec986c7c@mail.gmail.com> <15D93FA0-A04C-4D1A-8E8C-7E6E4DE8F843@iam.unibe.ch> <34b4844b0711181247s101d53cbrc9be15f95db02d7@mail.gmail.com> <0EFF0BEA-7B85-4F46-A7F3-1DA83EA166D0@iam.unibe.ch> Message-ID: <34b4844b0711181519t656165b5te55cd10f09bfc1a3@mail.gmail.com> On 18/11/2007, Tudor Girba wrote: > I am not sure that I understand, but if you say that the entries > appear as tags it probably means that you let the default setting of > considering everything in the page. I only consider the tags. > > Was this the problem, or is it another one? No, I haven't done the CSS for that mode of the tag cloud, so I was confused by everything being centered and in visually random sizes :) > Doru > > On Nov 18, 2007, at 9:47 PM, Damien Pollet wrote: > > > On 18/11/2007, Tudor Girba wrote: > >> It looks cool. I will include it in the new Moose webpage :). > >> > >> Doru > > > > Hmm, actually it looks less cool when I click on a tag? I have the > > whole bibliographic entries appear as tags :) > > > >> On Nov 18, 2007, at 8:32 PM, Damien Pollet wrote: > >> > >>> On 18/11/2007, Lukas Renggli wrote: > >>>>> I added a new subclass of PRTagCloudWidget with a different > >>>>> formula > >>>>> for scaling the tags: > >>>> > >>>> Sounds complicated, I am eager to see how this looks like ;-) > >>> > >>> Like that: > >>> > >>> http://evo.inf.unisi.ch/~dpollet/files/web/pier3.png > >>> > >>> -- > >>> Damien Pollet > >>> type less, do more [ | ] http://typo.cdlm.fasmz.org > >>> > >>> _______________________________________________ > >>> SmallWiki, Magritte, Pier and Related Tools ... > >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > >> > >> -- > >> www.tudorgirba.com > >> www.tudorgirba.com/blog > >> > >> "No matter how many recipes we'll know, we'll still value a chef." > >> > >> > >> > >> > >> _______________________________________________ > >> SmallWiki, Magritte, Pier and Related Tools ... > >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > >> > > > > > > -- > > Damien Pollet > > type less, do more [ | ] http://typo.cdlm.fasmz.org > > > > > > _______________________________________________ > > SmallWiki, Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > -- > www.tudorgirba.com > www.tudorgirba.com/blog > > "When people care, great things can happen." > > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From manuel.blanc at gmail.com Mon Nov 19 02:44:02 2007 From: manuel.blanc at gmail.com (M. Blanc) Date: Mon, 19 Nov 2007 02:44:02 +0100 Subject: [SOLVED] Re: Autofill in login form? In-Reply-To: References: <34b4844b0711171611g2772dd6egca6371c59d31305f@mail.gmail.com> <0B58263B-A052-4984-A5A3-70DD90D1187D@gmail.com> <34b4844b0711180910h3ca47285n2b23c2108a898e28@mail.gmail.com> <980C325A-73DA-4B1C-8CE4-E1D591E2E12A@iam.unibe.ch> <7AABCC3D-4E75-41E8-9F5F-E02EC4DA4E6B@gmail.com> Message-ID: <42DF286C-9A7D-4AE5-88A9-35FD8E05BAF0@gmail.com> On 18 Nov 2007, at 19:06, Lukas Renggli wrote: >> Could you give an example of what gets broken in the login form by >> the suggestion? > > Probably nothing in the login form. Couldn't then Pier login form use a special subclass of WAFormTag with a different version of 'before' ? > The change you suggest is not related to Pier or Magritte, but to > Seaside. Have a look at the functional Seaside Test Suite at http:// > localhost/seaside/tests/alltests > -> Default Form. I doubt that after your change this test still > pases in Safari, FireFox, Opera and IE. Mmm, I remember reading a few weeks ago about an excellent browser- dependant automated testing tool, but cannot remember its name right now. Cheers --mbj From renggli at iam.unibe.ch Mon Nov 19 09:47:54 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 19 Nov 2007 09:47:54 +0100 Subject: [SOLVED] Re: Autofill in login form? In-Reply-To: <42DF286C-9A7D-4AE5-88A9-35FD8E05BAF0@gmail.com> References: <34b4844b0711171611g2772dd6egca6371c59d31305f@mail.gmail.com> <0B58263B-A052-4984-A5A3-70DD90D1187D@gmail.com> <34b4844b0711180910h3ca47285n2b23c2108a898e28@mail.gmail.com> <980C325A-73DA-4B1C-8CE4-E1D591E2E12A@iam.unibe.ch> <7AABCC3D-4E75-41E8-9F5F-E02EC4DA4E6B@gmail.com> <42DF286C-9A7D-4AE5-88A9-35FD8E05BAF0@gmail.com> Message-ID: <9E907E72-C6EF-4D21-8EBA-4864AD5846A7@iam.unibe.ch> >>> Could you give an example of what gets broken in the login form by >>> the suggestion? >> >> Probably nothing in the login form. > > Couldn't then Pier login form use a special subclass of WAFormTag > with a different version of 'before' ? All forms in Pier are automatically generated using Magritte. >> The change you suggest is not related to Pier or Magritte, but to >> Seaside. Have a look at the functional Seaside Test Suite at http:// >> localhost/seaside/tests/alltests >> -> Default Form. I doubt that after your change this test still >> pases in Safari, FireFox, Opera and IE. > > Mmm, I remember reading a few weeks ago about an excellent browser- > dependant automated testing tool, but cannot remember its name right > now. Try with this and tell me if it helps? Name: Seaside2.8a1-lr.530 Author: lr Time: 19 November 2007, 9:47:17 am UUID: c57f1bd2-bcb5-4d3a-8592-d3c7b814d178 Ancestors: Seaside2.8a1-lr.529 - trying to fix default action Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From girba at iam.unibe.ch Mon Nov 19 11:20:24 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Mon, 19 Nov 2007 11:20:24 +0100 Subject: image persistency Message-ID: Hi, I have troubles starting the ImagePersitency. I did the following: PRKernel instances anyOne persistency: PRImagePersistency new But, nothing seems to happen when I edit. What am I doing wrong? Doru -- www.tudorgirba.com www.tudorgirba.com/blog "Every thing has its own flow." From renggli at iam.unibe.ch Mon Nov 19 11:29:12 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 19 Nov 2007 11:29:12 +0100 Subject: image persistency In-Reply-To: References: Message-ID: <0449296A-0488-4BCF-A095-827141116A97@iam.unibe.ch> > I have troubles starting the ImagePersitency. I did the following: > PRKernel instances anyOne persistency: PRImagePersistency new > > But, nothing seems to happen when I edit. > > What am I doing wrong? It schedules a process that will eventually save the image. It does not immediately trigger a snapshot. Check the process browser. Cheers, Lukas > > > Doru > > -- > www.tudorgirba.com > www.tudorgirba.com/blog > > "Every thing has its own flow." > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- Lukas Renggli http://www.lukas-renggli.ch From girba at iam.unibe.ch Mon Nov 19 11:41:52 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Mon, 19 Nov 2007 11:41:52 +0100 Subject: image persistency In-Reply-To: <0449296A-0488-4BCF-A095-827141116A97@iam.unibe.ch> References: <0449296A-0488-4BCF-A095-827141116A97@iam.unibe.ch> Message-ID: <9FD2AD22-49AA-4AA6-90EC-7038BC1CF92B@iam.unibe.ch> Hi, Indeed, I just confused cause you told me that it's scheduled for 3 minutes, while in my image it's 1 hour :). Thanks. Doru On Nov 19, 2007, at 11:29 AM, Lukas Renggli wrote: >> I have troubles starting the ImagePersitency. I did the following: >> PRKernel instances anyOne persistency: PRImagePersistency new >> >> But, nothing seems to happen when I edit. >> >> What am I doing wrong? > > It schedules a process that will eventually save the image. It does > not immediately trigger a snapshot. Check the process browser. > > Cheers, > Lukas > > > >> >> >> Doru >> >> -- >> www.tudorgirba.com >> www.tudorgirba.com/blog >> >> "Every thing has its own flow." >> >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com www.tudorgirba.com/blog "What we can governs what we wish." From renggli at iam.unibe.ch Mon Nov 19 11:43:53 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 19 Nov 2007 11:43:53 +0100 Subject: image persistency In-Reply-To: <9FD2AD22-49AA-4AA6-90EC-7038BC1CF92B@iam.unibe.ch> References: <0449296A-0488-4BCF-A095-827141116A97@iam.unibe.ch> <9FD2AD22-49AA-4AA6-90EC-7038BC1CF92B@iam.unibe.ch> Message-ID: > Indeed, I just confused cause you told me that it's scheduled for 3 > minutes, while in my image it's 1 hour :). It depends on your settings of course ;-) I think probably had some wrong default number in my mind. Sorry about that. Cheers, Lukas > > > Thanks. > > Doru > > On Nov 19, 2007, at 11:29 AM, Lukas Renggli wrote: > >>> I have troubles starting the ImagePersitency. I did the following: >>> PRKernel instances anyOne persistency: PRImagePersistency new >>> >>> But, nothing seems to happen when I edit. >>> >>> What am I doing wrong? >> >> It schedules a process that will eventually save the image. It does >> not immediately trigger a snapshot. Check the process browser. >> >> Cheers, >> Lukas >> >> >> >>> >>> >>> Doru >>> >>> -- >>> www.tudorgirba.com >>> www.tudorgirba.com/blog >>> >>> "Every thing has its own flow." >>> >>> >>> >>> _______________________________________________ >>> SmallWiki, Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > -- > www.tudorgirba.com > www.tudorgirba.com/blog > > "What we can governs what we wish." > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- Lukas Renggli http://www.lukas-renggli.ch From manuel.blanc at gmail.com Mon Nov 19 11:48:21 2007 From: manuel.blanc at gmail.com (M. Blanc) Date: Mon, 19 Nov 2007 11:48:21 +0100 Subject: [SOLVED] Re: Autofill in login form? In-Reply-To: <9E907E72-C6EF-4D21-8EBA-4864AD5846A7@iam.unibe.ch> References: <34b4844b0711171611g2772dd6egca6371c59d31305f@mail.gmail.com> <0B58263B-A052-4984-A5A3-70DD90D1187D@gmail.com> <34b4844b0711180910h3ca47285n2b23c2108a898e28@mail.gmail.com> <980C325A-73DA-4B1C-8CE4-E1D591E2E12A@iam.unibe.ch> <7AABCC3D-4E75-41E8-9F5F-E02EC4DA4E6B@gmail.com> <42DF286C-9A7D-4AE5-88A9-35FD8E05BAF0@gmail.com> <9E907E72-C6EF-4D21-8EBA-4864AD5846A7@iam.unibe.ch> Message-ID: <97A66755-F832-4886-B744-AFE0C23C7ACB@gmail.com> On 19 Nov 2007, at 09:47, Lukas Renggli wrote: > Try with this and tell me if it helps? > > Name: Seaside2.8a1-lr.530 > Author: lr > Time: 19 November 2007, 9:47:17 am > UUID: c57f1bd2-bcb5-4d3a-8592-d3c7b814d178 > Ancestors: Seaside2.8a1-lr.529 > > - trying to fix default action I've found you probably meant Firefox when you said "... only remembers form fields if the whole URLs matches exactly". Regarding Safari (2 and 3) and Omniweb, the fix works great everytime. Thanks --mbj From mathk.sue at gmail.com Mon Nov 19 16:58:26 2007 From: mathk.sue at gmail.com (Mathieu Suen) Date: Mon, 19 Nov 2007 16:58:26 +0100 Subject: Security modele of pier Message-ID: <4BBB5918-6A43-4969-808F-433397CC2D88@gmail.com> Hi, I am looking to see how do you handle the security in Pier. I am trying to read the code but if you have a short explanation or some pointer the would help. Sorry if someone have already ask the question. I am to lazy to search throw the mailing-list :0. Thanks Mth From renggli at iam.unibe.ch Mon Nov 19 17:07:08 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 19 Nov 2007 17:07:08 +0100 Subject: Security modele of pier In-Reply-To: <4BBB5918-6A43-4969-808F-433397CC2D88@gmail.com> References: <4BBB5918-6A43-4969-808F-433397CC2D88@gmail.com> Message-ID: Hi Mathieu, read my master thesis. The part about Pier (Chapter 3) contains a section about its Security frameworks: http://www.iam.unibe.ch/~scg/Archive/Diploma/Reng06a.pdf Cheers, Lukas On Nov 19, 2007, at 16:58 , Mathieu Suen wrote: > Hi, > > I am looking to see how do you handle the security in Pier. > I am trying to read the code but if you have a short explanation or > some pointer the would help. > Sorry if someone have already ask the question. I am to lazy to search > throw the mailing-list :0. > > Thanks > Mth > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- Lukas Renggli http://www.lukas-renggli.ch From jason.johnson.081 at gmail.com Mon Nov 19 22:14:27 2007 From: jason.johnson.081 at gmail.com (Jason Johnson) Date: Mon, 19 Nov 2007 22:14:27 +0100 Subject: Dynamic descriptions Message-ID: Hi all, I'm using Magritte to model some objects of mine and basically if the user edits the object I want the description to be the same, just the "unique key" to become read only. If they add then of course all fields are modify-able. I have done this by overriding #description on instance side to do something like: MyObject>>description |result| result := self class description. ^ someField ifNil: [ result ] "new instance" ifNotNil: [ result collect: [e| e label = 'Name Im interested in' ifTrue: [ e beReadonly; yourself ] ifFalse: [ e ] ] ] Now of course what happens is, if I click edit first then the fields are always read only and vice versa if I click new first, due to caching. That is, it works perfectly.... the first use, and from then on #description is called. Before I fought with this anymore I thought I would check if there is a simpler way to do what I'm trying to do. Thanks in advance, Jason From renggli at iam.unibe.ch Mon Nov 19 22:24:16 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 19 Nov 2007 22:24:16 +0100 Subject: Dynamic descriptions In-Reply-To: References: Message-ID: > Now of course what happens is, if I click edit first then the fields > are always read only and vice versa if I click new first, due to > caching. That is, it works perfectly.... the first use, and from then > on #description is called. Before I fought with this anymore I > thought I would check if there is a simpler way to do what I'm trying > to do. No, that's the usual way to do. Since the description are cached, you have to make a copy before changing it: e copy beReadonly; yourself Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.pollet at gmail.com Tue Nov 20 00:45:17 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Tue, 20 Nov 2007 00:45:17 +0100 Subject: small changes to pier-blog, pier-math Message-ID: <34b4844b0711191545h3125be81pa2037eed63acfae0@mail.gmail.com> Two detail changes? - I made pier-math generate transparent PNGs (imperfectly but that's dvipng not doing what its man page says) - individual blog posts are now wrapped in the same
as in the blog view? but I suspect this design intentional, for the RSS feed? ? PS. NetNewsWire gets Doru's feed but not the one from my local image. Vienna seems to accept both, but an online validator wasn't too happy with the feed? -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From keith_hodges at yahoo.co.uk Tue Nov 20 01:14:53 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Tue, 20 Nov 2007 00:14:53 +0000 Subject: [ANN] MAAutoCompletingTextInputComponent Message-ID: <474226FD.30505@yahoo.co.uk> enjoy Keith ---------------- Name: Magritte-Scriptaculous-kph.4 Author: kph Time: 20 November 2007, 12:13:56 am UUID: 7bfbcf14-96fd-11dc-9bf8-000a95edb42a Ancestors: Magritte-Scriptaculous-kph.3 MAAutoCompletingTextInputComponent From jason.johnson.081 at gmail.com Tue Nov 20 07:41:27 2007 From: jason.johnson.081 at gmail.com (Jason Johnson) Date: Tue, 20 Nov 2007 07:41:27 +0100 Subject: Dynamic descriptions In-Reply-To: References: Message-ID: Ah, nice. I should have thought of that. :) Thanks for your help. On Nov 19, 2007 10:24 PM, Lukas Renggli wrote: > > Now of course what happens is, if I click edit first then the fields > > are always read only and vice versa if I click new first, due to > > caching. That is, it works perfectly.... the first use, and from then > > on #description is called. Before I fought with this anymore I > > thought I would check if there is a simpler way to do what I'm trying > > to do. > > No, that's the usual way to do. > > Since the description are cached, you have to make a copy before > changing it: > > e copy beReadonly; yourself > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From jason.johnson.081 at gmail.com Tue Nov 20 07:48:32 2007 From: jason.johnson.081 at gmail.com (Jason Johnson) Date: Tue, 20 Nov 2007 07:48:32 +0100 Subject: Strange behavior with MAToManyRelationDescription Message-ID: Hello all, I am building a form that consists of two components, e.g. House and Person. For each of these, when a new one is created I register it. I have a manager class that displays these using: MAToManyRelationDescription new classes: (Array with: House); label: 'Houses'; accessor: (MASelectorAccessor new readSelector: #houses; writeSelector: nil; yourself); default: Array new; priority: 20; yourself People is similar. The Manager class is a form, but with no buttons as it is only needed to let the add buttons work on these relation descriptions. The accessor shown here, houses just calls "House instances" to get currently registered houses. I subclass MACheckedMemento and create a custom memento that simply overrides the #push: method to see if the object is new (no members will be set) and if so, registers the object after called "super push:". Everything is fine except for Houses, after I create a new hause the main display always shows 2. If I leave the page and visit new I see only one. I have looked around but I dont see how this is happening. Any ideas? From renggli at iam.unibe.ch Tue Nov 20 21:36:46 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 20 Nov 2007 21:36:46 +0100 Subject: Strange behavior with MAToManyRelationDescription In-Reply-To: References: Message-ID: Hi, > I am building a form that consists of two components, e.g. House and > Person. For each of these, when a new one is created I register it. what do you register? And -- when you create new ones -- you have more than two components? I don't quite get it ... > I have a manager class that displays these using: That's the form? > MAToManyRelationDescription new > classes: (Array with: House); > label: 'Houses'; > accessor: (MASelectorAccessor new > readSelector: #houses; > writeSelector: nil; > yourself); > default: Array new; > priority: 20; > yourself > > People is similar. The Manager class is a form, but with no buttons > as it is only needed to let the add buttons work on these relation > descriptions. The accessor shown here, houses just calls "House > instances" to get currently registered houses. I subclass > MACheckedMemento and create a custom memento that simply overrides the > #push: method to see if the object is new (no members will be set) and > if so, registers the object after called "super push:". Why don't you write your manager class manually and display the editors for houses and persons as children? You can use the #onAnswer: handler of the Magritte components to get notified when the user hits add (save). I don't quite understand why you need MAToManyRelationDescription and a custom MACheckedMemento. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From jason.johnson.081 at gmail.com Tue Nov 20 22:14:25 2007 From: jason.johnson.081 at gmail.com (Jason Johnson) Date: Tue, 20 Nov 2007 22:14:25 +0100 Subject: Strange behavior with MAToManyRelationDescription In-Reply-To: References: Message-ID: Sorry, I was in a hurry because I had to get off the train. :) Ok, I have a Person class and a House class. Each of these has a class side method called #register: that stores the instance in an ordered collection of the class side. Person and House both have full descriptions and are capable of displaying themselves, so the "manager" class just allows one to make many of these. So the use case is, you see the first page, it has a list of Persons and a list of Houses, these are queried from the instances registered with the class (i.e. in the class side collection variable). The user clicks "add" on, say, Person. Now they get the Person page, as described by the Person class, they type in there information and click "Save". This is where I need the custom memento (and tell me if I'm doing this wrong): If you click save that winds up calling "commit" on the memento and actually writing the data to the object, but this new object wont be registered in the class side collection (and therefor will simply cease to exist when this session expires). So my custom memento simply lets everything work as normal and then calls "Person register: self model" to get the new object registered. The problem happens when "save" returns on Person and you go back to the manager page. You see your nice new Person in the report table as expected, but right below is the same Person again! And if you edit either one the changes reflect in both. And the really hairy thing is, even though House is almost exactly the same in every way (I can find no relevant difference) it doesn't have this behavior. (couple of comments below as well) On Nov 20, 2007 9:36 PM, Lukas Renggli wrote: > > That's the form? Below was the description that the manager uses to show the list of Houses. > > MAToManyRelationDescription new > > classes: (Array with: House); > > label: 'Houses'; > > accessor: (MASelectorAccessor new > > readSelector: #houses; > > writeSelector: nil; > > yourself); > > default: Array new; > > priority: 20; > > yourself > > > Why don't you write your manager class manually and display the > editors for houses and persons as children? You can use the #onAnswer: > handler of the Magritte components to get notified when the user hits > add (save). Hrm, I thought that's what I was doing. The above description is saved in the manager as a component under houseComponent and is returned from the children method of the manager. But I will go look up uses of onAnswer to try and figure out what you mean. From keith_hodges at yahoo.co.uk Wed Nov 21 01:20:11 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Wed, 21 Nov 2007 00:20:11 +0000 Subject: [Ann] Dependencies between form elements in the GUI Message-ID: <474379BB.3090704@yahoo.co.uk> Hello, At present magritte is a little limited when you have two form fields which are related in some way. I have come up with a scheme which works, suggestions are of course very welcome. Here is an example from the top.... description0020ServiceType ^ MASingleOptionDescription new accessor: ((#serviceType asAccessor) update: #serviceTypeChangedTo:); reference: MAClassDescription new; options: [ DTIServiceTypes allSubclasses ] asDynamicObject; default: DTIDeliveryWholesale; componentClass: MASelectListComponentSU ; beRequired; bePersisted; yourself Service type is select list which changes the values in other fields in the form, when the users switches it. 1. The first innovation is the setting of the priority in the method selector name. I have used this for 3 days and it works really well. (Enhancement available in Magritte-CustomBuilder package) 2. The second innovation is ((#serviceType asAccessor) update: #serviceTypeChangedTo:) This is shorthand for... (MASelectorAccessor read: #serviceType write: #serviceType:) propertyAt: #update put: (MASelectorAccessor write: #serviceTypeChangedFix:) So we have normal access to the datamodel via the reading and writing accessors, this is the sort of accessing that persisting (and mementos) would use, but GUI elements can use additional optional update accessor. #serviceTypeChangedTo: will modify other fields in the model. (Well actually the model's memento but we will come to that). Where GUI elements used to write to objects using the standard Object-#write:using: there is now an #Object-#update:using: which uses the update accessor if present. 3. RealMementos The problem with the way that the Gui does mementos now is that it operates on a dictionary of the models data. The mementos have no awareness of the model itself. Enter MARealMemento... This uses a dictionary checks as before BUT importantly read/writes from the GUI are performed upon a real copy of the model, which is returned upon commit/save. It also has methods (not yet used) #snapshot, and #hasChangedSinceSnapshot, which the gui can us in order to only up date items which have changed since the previous update. This means that the update methods can modify the values in other fields and the GUI will see these changes if it is re-rendered using Scriptaculous. Two caveats are that items being edited by an InternalEditor will will need to a) have an MAStraitMemento so that they operate directly on the same model (since they are in the same UI) and (b) the internally edited objects must be modified not replaced (since the InternalEditor currently has and is likely to keep a reference to the object itself) 4. MASelectListComponentSU The scriptaculous addition to the standard select list component, calls the #update: accessor when the users changes the selection, and it renders updateContentOn: of the containing MAContainerComponent. So the display of all fields is refreshed. I have one other refinement... (not yet implemented in this form) 5. Modifying readonly isVisible accessor: ((#check asAccessor) readonly: #isCheckDisabled); accessor: ((#check asAccessor) visible: #isCheckVisible); The code so far is available in Magritte-RealMemento , Magritte-Scriptaculous, Magritte-CustomBuilder I think that this potentially moves magritte up a level in user-interactivity enjoy Keith From girba at iam.unibe.ch Thu Nov 22 13:53:59 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Thu, 22 Nov 2007 13:53:59 +0100 Subject: css and firefox Message-ID: Hi, I have the following problem with CSS and Firefox On http://moose.unibe.ch I have a CSS file that is pointed to as stylesheet from the root page. On Safari 3.0 and on Internet Explorer it looks Ok, but on Firefox it looks as if the CSS cannot be found. What could the problem be? Cheers, Doru -- www.tudorgirba.com www.tudorgirba.com/blog "Next time you see your life passing by, say 'hi' and get to know her." From girba at iam.unibe.ch Thu Nov 22 13:55:36 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Thu, 22 Nov 2007 13:55:36 +0100 Subject: blog rss Message-ID: Hi again, I have a blog moose.unibe.ch/news, but the RSS link points to localhost. What could be the problem? I should say that there is an Apache rewrite rule that forwards moose.unibe.ch to localhost. Cheers, Doru -- www.tudorgirba.com www.tudorgirba.com/blog "One cannot do more than one can do." From damien.pollet at gmail.com Thu Nov 22 14:21:53 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Thu, 22 Nov 2007 14:21:53 +0100 Subject: css and firefox In-Reply-To: References: Message-ID: <34b4844b0711220521l2c995518rcc4b776e7a7111e0@mail.gmail.com> Nice design :) Using the Web Inspector from Safari, it seems all the CSS files are served with MIME type text/html, that might be the problem? On 22/11/2007, Tudor Girba wrote: > Hi, > > I have the following problem with CSS and Firefox > > On http://moose.unibe.ch I have a CSS file that is pointed to as > stylesheet from the root page. On Safari 3.0 and on Internet Explorer > it looks Ok, but on Firefox it looks as if the CSS cannot be found. > What could the problem be? > > Cheers, > Doru > > -- > www.tudorgirba.com > www.tudorgirba.com/blog > > "Next time you see your life passing by, say 'hi' and get to know her." > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From cbeler at enit.fr Thu Nov 22 14:45:13 2007 From: cbeler at enit.fr (cbeler@enit.fr) Date: Thu, 22 Nov 2007 14:45:13 +0100 (CET) Subject: css and firefox In-Reply-To: <34b4844b0711220521l2c995518rcc4b776e7a7111e0@mail.gmail.com> References: <34b4844b0711220521l2c995518rcc4b776e7a7111e0@mail.gmail.com> Message-ID: <55654.193.51.2.185.1195739113.squirrel@www.enit.fr> >> Hi, >> >> I have the following problem with CSS and Firefox true.. no css in my page... with firebug I see in the head where the css is linked an arror: 1

Error: "/seaside/moose/seaside/files/WAStandardFiles/halo.css" not found.

probably because in the address /seaside/moose/seaside/files/ there shouldn't be /seaside/moose/ I don't know if it's due to the apache conf or anything else... hth C?drick >> >> On http://moose.unibe.ch I have a CSS file that is pointed to as >> stylesheet from the root page. On Safari 3.0 and on Internet Explorer >> it looks Ok, but on Firefox it looks as if the CSS cannot be found. >> What could the problem be? >> >> Cheers, >> Doru >> >> -- >> www.tudorgirba.com >> www.tudorgirba.com/blog >> >> "Next time you see your life passing by, say 'hi' and get to know her." >> >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > > -- > Damien Pollet > type less, do more [ | ] http://typo.cdlm.fasmz.org > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From cbeler at enit.fr Thu Nov 22 14:47:03 2007 From: cbeler at enit.fr (cbeler@enit.fr) Date: Thu, 22 Nov 2007 14:47:03 +0100 (CET) Subject: css and firefox In-Reply-To: <55654.193.51.2.185.1195739113.squirrel@www.enit.fr> References: <34b4844b0711220521l2c995518rcc4b776e7a7111e0@mail.gmail.com> <55654.193.51.2.185.1195739113.squirrel@www.enit.fr> Message-ID: <55692.193.51.2.185.1195739223.squirrel@www.enit.fr> oh it works now.... it seems you fixed it ;) From girba at iam.unibe.ch Thu Nov 22 14:55:40 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Thu, 22 Nov 2007 14:55:40 +0100 Subject: css and firefox In-Reply-To: <55692.193.51.2.185.1195739223.squirrel@www.enit.fr> References: <34b4844b0711220521l2c995518rcc4b776e7a7111e0@mail.gmail.com> <55654.193.51.2.185.1195739113.squirrel@www.enit.fr> <55692.193.51.2.185.1195739223.squirrel@www.enit.fr> Message-ID: <7EF8CAE0-AA68-420E-98CE-2296992565B7@iam.unibe.ch> Indeed, it was due to an Apache setting: the /seaside/files were not passed on. Thanks for looking into it :). Doru On Nov 22, 2007, at 2:47 PM, cbeler at enit.fr wrote: > oh it works now.... it seems you fixed it ;) > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com www.tudorgirba.com/blog "One cannot do more than one can do." From girba at iam.unibe.ch Fri Nov 23 22:29:55 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Fri, 23 Nov 2007 22:29:55 +0100 Subject: image persistency Message-ID: Hi, I am trying to make ImagePersistency with seasidehosting, but it does not work, because the code seems to try to access '/' instead of the directory of the image. I know that at least seaside.st is on seasidehosting, and I was wondering how did you solve this issue. I attached here the debug log I got. -------------- next part -------------- A non-text attachment was scrubbed... Name: SqueakDebug.log Type: application/octet-stream Size: 1875 bytes Desc: not available Url : http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20071123/3fe7a250/SqueakDebug-0001.obj -------------- next part -------------- Doru -- www.tudorgirba.com www.tudorgirba.com/blog "From an abstract enough point of view, any two things are similar." From damien.pollet at gmail.com Wed Nov 28 23:42:55 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Wed, 28 Nov 2007 23:42:55 +0100 Subject: Notifying structures of editions Message-ID: <34b4844b0711281442i783348d7t7fc3b1e657df9289@mail.gmail.com> Hi, When editing a structure, accessors are called via Magritte but there is no way for the structure to reinitialize itself before any accessor is called, or to re-establish its invariant after all accessors have been called. I thought I'd wrap PRCommand>>doExecute with something like self structure willEdit and self structure didEdit, would that make sense? I also saw PRStructure>>validateCommand which shouldn't modify the structure, but in my case (Citezen) validating means parsing that takes time and I'd prefer not to repeat that work when committing the edition to the structure. I think writing this helped me see a solution: - validation does the heavy parsing and stores result in (an adhoc subclass of) the edit command - executing the command stores parsed data in the structure and resets the final data - a lazy accessor for the final data builds it and ditches the parsed data hopefully that was clear? if you have suggestions? -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From renggli at iam.unibe.ch Thu Nov 29 07:54:07 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 29 Nov 2007 07:54:07 +0100 Subject: small changes to pier-blog, pier-math In-Reply-To: <34b4844b0711191545h3125be81pa2037eed63acfae0@mail.gmail.com> References: <34b4844b0711191545h3125be81pa2037eed63acfae0@mail.gmail.com> Message-ID: > Two detail changes? > - I made pier-math generate transparent PNGs (imperfectly but that's > dvipng not doing what its man page says) That's cool. Thanks for the contribution. > - individual blog posts are now wrapped in the same
> as in the blog view? but I suspect this design intentional, for the > RSS feed? ? I don't see any change here, but it looks ok to me. > PS. NetNewsWire gets Doru's feed but not the one from my local image. > Vienna seems to accept both, but an online validator wasn't too happy > with the feed? Why is the validator unhappy? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Thu Nov 29 08:16:29 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 29 Nov 2007 08:16:29 +0100 Subject: Notifying structures of editions In-Reply-To: <34b4844b0711281442i783348d7t7fc3b1e657df9289@mail.gmail.com> References: <34b4844b0711281442i783348d7t7fc3b1e657df9289@mail.gmail.com> Message-ID: > When editing a structure, accessors are called via Magritte but there > is no way for the structure to reinitialize itself before any accessor > is called, or to re-establish its invariant after all accessors have > been called. It is possible to create a subclass of PREditCommand and override #doExecute to trigger some postprocessing. > I thought I'd wrap PRCommand>>doExecute with something like self > structure willEdit and self structure didEdit, would that make sense? Exactly. > I think writing this helped me see a solution: > - validation does the heavy parsing and stores result in (an adhoc > subclass of) the edit command > - executing the command stores parsed data in the structure and resets > the final data > - a lazy accessor for the final data builds it and ditches the > parsed data > > hopefully that was clear? if you have suggestions? Generally getting notified about events is a bit of a problem in Pier. Several things (such as creating new structures, persistency, etc) are quite, because this triggers events in rather clumsy ways. I once rewrote part of this mess using announcements, which provides a significant improvement over the current status but also breaks/ changes certain things. Unfortunately I lost the image, but if I have time I probably redo it. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Thu Nov 29 08:00:01 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 29 Nov 2007 08:00:01 +0100 Subject: Strange behavior with MAToManyRelationDescription In-Reply-To: References: Message-ID: <3FC3F4A7-B28E-4D7D-8E74-7E2252928729@iam.unibe.ch> > Ok, I have a Person class and a House class. Each of these has a > class side method called #register: that stores the instance in an > ordered collection of the class side. Person and House both have full > descriptions and are capable of displaying themselves, so the > "manager" class just allows one to make many of these. Ok, got it. > This is where I need the custom memento (and tell me if I'm doing this > wrong): If you click save that winds up calling "commit" on the > memento and actually writing the data to the object, but this new > object wont be registered in the class side collection (and therefor > will simply cease to exist when this session expires). So my custom > memento simply lets everything work as normal and then calls "Person > register: self model" to get the new object registered. Sure that's a possibility, but why not use the return value if you are using #call: or set an #onAnswer: handler if you are using composition? So in your manager you have something along: house := self call: House new asComponent. house ifNotNil: [ House register: house ]. or (in case of composition): editor := House new asComponent onAnswer: [ :house | house ifNotNil: [ House register: house ]. editor := nil ] > The problem happens when "save" returns on Person and you go back to > the manager page. You see your nice new Person in the report table as > expected, but right below is the same Person again! And if you edit > either one the changes reflect in both. And the really hairy thing > is, even though House is almost exactly the same in every way (I can > find no relevant difference) it doesn't have this behavior. Looks like your memento method gets called twice? Why not check if the object is already present? Why not use a Set then? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Thu Nov 29 08:08:36 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 29 Nov 2007 08:08:36 +0100 Subject: [Ann] Dependencies between form elements in the GUI In-Reply-To: <474379BB.3090704@yahoo.co.uk> References: <474379BB.3090704@yahoo.co.uk> Message-ID: <5131F470-1965-458E-918C-EC242B3584D4@iam.unibe.ch> > The problem with the way that the Gui does mementos now is that it > operates on a dictionary of the models data. The mementos have no > awareness of the model itself. Enter MARealMemento... This uses a > dictionary checks as before BUT importantly read/writes from the GUI > are > performed upon a real copy of the model, which is returned upon > commit/save. How do you edit existing objects then? How do you copy objects? How do you handle other parts of the model that reference these objects? > I think that this potentially moves magritte up a level in > user-interactivity It is certainly an interesting approach to a valid problem. I tried to add similar things a couple of years ago, but eventually gave up as it was introducing more problems than it solved. I found that it was much easier to achieve the same using multiple steps or manually composed Magritte components. Of course, especially with todays acceptance of AJAX, this becomes interesting again. I am very interested in your progress and interested to include it in the core, if it works well in a general setup. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Thu Nov 29 08:11:46 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 29 Nov 2007 08:11:46 +0100 Subject: image persistency In-Reply-To: References: Message-ID: Hi Doru, > I am trying to make ImagePersistency with seasidehosting, but it > does not work, because the code seems to try to access '/' instead > of the directory of the image. I know that at least seaside.st is on > seasidehosting, and I was wondering how did you solve this issue. I think this has come up before. Also in the context of using the Magma object database. The problem is that saving the image tries to iterate over the directory tree, what is restricted on seasidehosting.st. I thought this issue was resolved? Or is there a patch that needs to be loaded? I don't remember. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.pollet at gmail.com Thu Nov 29 09:46:41 2007 From: damien.pollet at gmail.com (Damien Pollet) Date: Thu, 29 Nov 2007 09:46:41 +0100 Subject: small changes to pier-blog, pier-math In-Reply-To: References: <34b4844b0711191545h3125be81pa2037eed63acfae0@mail.gmail.com> Message-ID: <34b4844b0711290046h361bc2bfo9b511289ed82a562@mail.gmail.com> > > - individual blog posts are now wrapped in the same
> > as in the blog view? but I suspect this design intentional, for the > > RSS feed? ? > > I don't see any change here, but it looks ok to me. you mean no code in the commit or no visible result ? that should render the exact same bolg view, add the
in the post view, and I think the method that rendered the inside of this div was also used for the RSS, so now unless it is ignered by RSRSS, there would be the div in the RSS too. > > PS. NetNewsWire gets Doru's feed but not the one from my local image. > > Vienna seems to accept both, but an online validator wasn't too happy > > with the feed? > > Why is the validator unhappy? I don't remember, I used http://feedvalidator.org/ -- Damien Pollet type less, do more [ | ] http://typo.cdlm.fasmz.org From girba at iam.unibe.ch Thu Nov 29 10:00:53 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Thu, 29 Nov 2007 10:00:53 +0100 Subject: image persistency In-Reply-To: References: Message-ID: <21961A4A-912F-4F43-B056-DBAA01F4BA58@iam.unibe.ch> Hi Lukas, >> I am trying to make ImagePersistency with seasidehosting, but it >> does not work, because the code seems to try to access '/' instead >> of the directory of the image. I know that at least seaside.st is on >> seasidehosting, and I was wondering how did you solve this issue. > > I think this has come up before. Also in the context of using the > Magma object database. The problem is that saving the image tries to > iterate over the directory tree, what is restricted on > seasidehosting.st. I thought this issue was resolved? Or is there a > patch that needs to be loaded? I don't remember. Do you have any idea of who should we ask? :) Doru -- www.tudorgirba.com www.tudorgirba.com/blog "Problem solving should be concentrated on describing the problem in a way that is relevant for the solution." From renggli at iam.unibe.ch Thu Nov 29 19:53:07 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 29 Nov 2007 19:53:07 +0100 Subject: image persistency In-Reply-To: <21961A4A-912F-4F43-B056-DBAA01F4BA58@iam.unibe.ch> References: <21961A4A-912F-4F43-B056-DBAA01F4BA58@iam.unibe.ch> Message-ID: <573F9E31-825A-4A15-8971-C2706A524048@iam.unibe.ch> >>> I am trying to make ImagePersistency with seasidehosting, but it >>> does not work, because the code seems to try to access '/' instead >>> of the directory of the image. I know that at least seaside.st is on >>> seasidehosting, and I was wondering how did you solve this issue. >> >> I think this has come up before. Also in the context of using the >> Magma object database. The problem is that saving the image tries to >> iterate over the directory tree, what is restricted on >> seasidehosting.st. I thought this issue was resolved? Or is there a >> patch that needs to be loaded? I don't remember. > > Do you have any idea of who should we ask? :) I was wrong, this wasn't discussed on the Magritte mailing-list, but on the internal one of seasidehosting.st. Maybe Keith Hodges knows more, how he solved the problem in the end. He wrote at that time: > Creating a repository worked for me once, but now it fails again. > > Still stuck on: aFileDirectory assureExistence Otherwise Adrian Lienhard might certainly be able to help. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Thu Nov 29 17:44:35 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 29 Nov 2007 16:44:35 +0000 Subject: image persistency In-Reply-To: <21961A4A-912F-4F43-B056-DBAA01F4BA58@iam.unibe.ch> References: <21961A4A-912F-4F43-B056-DBAA01F4BA58@iam.unibe.ch> Message-ID: <474EEC73.3030703@yahoo.co.uk> Tudor Girba wrote: > Hi Lukas, > > >>> I am trying to make ImagePersistency with seasidehosting, but it >>> does not work, because the code seems to try to access '/' instead >>> of the directory of the image. I know that at least seaside.st is on >>> seasidehosting, and I was wondering how did you solve this issue. >>> >> I think this has come up before. Also in the context of using the >> Magma object database. The problem is that saving the image tries to >> iterate over the directory tree, what is restricted on >> seasidehosting.st. I thought this issue was resolved? Or is there a >> patch that needs to be loaded? I don't remember. >> Magma should be happy being given a relative path. The problem reported seems to be when using Image Persistency Keith From keith_hodges at yahoo.co.uk Fri Nov 30 06:19:28 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 30 Nov 2007 05:19:28 +0000 Subject: Strugging with Commands Message-ID: <474F9D60.6010606@yahoo.co.uk> I am struggling to write a command which edits a model, rather than the command instance itself. I am trying to do it this way since the model class and description may change whereas the command class does not. PREditUser-asComponent | component | component := self model asComponent. ^ component addValidatedForm: (Array with: self saveButton with: self cancelButton); onAnswer: [ :value | [ self execute ] on: Error do: [:err | ^ component errors add: err. ]. value storeOnDB. self context: self answer "<< References: <474F9D60.6010606@yahoo.co.uk> Message-ID: > I am struggling to write a command which edits a model, rather than > the > command instance itself. I am trying to do it this way since the model > class and description may change whereas the command class does not. Why do you use a command then? As described in the GOF book, this design pattern is used to encapsulate an action and its parameters. > [code] > > The problem that I am having is that the standard onAnswer: for > commands > is implemented by the containing Contents Widget somewhere else and I > cant see any way of overriding it. I neither understand your code nor the sentence above ;-) Is the problem that Seaside doesn't allow to have multiple onAnswer: handlers? I guess this is something that should be fixed ... Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From girba at iam.unibe.ch Fri Nov 30 13:03:49 2007 From: girba at iam.unibe.ch (Tudor Girba) Date: Fri, 30 Nov 2007 13:03:49 +0100 Subject: image persistency In-Reply-To: <474EEC73.3030703@yahoo.co.uk> References: <21961A4A-912F-4F43-B056-DBAA01F4BA58@iam.unibe.ch> <474EEC73.3030703@yahoo.co.uk> Message-ID: <37B342BC-BC79-48FA-8F57-27823CD662A5@iam.unibe.ch> Hi, The problem is indeed when using ImagePersistency. As I understood, this is also the solution behind seaside.st which also stays on seasidehosting.st. So, I was just wondering how is it actually solved. Maybe seaside.st has a special treatment on seasidehosting? Cheers, Doru On Nov 29, 2007, at 5:44 PM, Keith Hodges wrote: > Tudor Girba wrote: >> Hi Lukas, >> >> >>>> I am trying to make ImagePersistency with seasidehosting, but it >>>> does not work, because the code seems to try to access '/' instead >>>> of the directory of the image. I know that at least seaside.st is >>>> on >>>> seasidehosting, and I was wondering how did you solve this issue. >>>> >>> I think this has come up before. Also in the context of using the >>> Magma object database. The problem is that saving the image tries to >>> iterate over the directory tree, what is restricted on >>> seasidehosting.st. I thought this issue was resolved? Or is there a >>> patch that needs to be loaded? I don't remember. >>> > Magma should be happy being given a relative path. > > The problem reported seems to be when using Image Persistency > > Keith > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com www.tudorgirba.com/blog "Obvious things are difficult to teach." From renggli at iam.unibe.ch Fri Nov 30 13:40:56 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 30 Nov 2007 13:40:56 +0100 Subject: image persistency In-Reply-To: <37B342BC-BC79-48FA-8F57-27823CD662A5@iam.unibe.ch> References: <21961A4A-912F-4F43-B056-DBAA01F4BA58@iam.unibe.ch> <474EEC73.3030703@yahoo.co.uk> <37B342BC-BC79-48FA-8F57-27823CD662A5@iam.unibe.ch> Message-ID: <585AB25D-67FA-4FBB-8E32-98B47B1517C1@iam.unibe.ch> > So, I was just wondering how is it actually solved. Maybe seaside.st > has a special treatment on seasidehosting? Indeed, www.seaside.st does not run on the restricted VM. Actually it uses the same setup as the management application www.seasidehosting.st. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Fri Nov 30 19:29:08 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 30 Nov 2007 18:29:08 +0000 Subject: Strugging with Commands In-Reply-To: References: <474F9D60.6010606@yahoo.co.uk> Message-ID: <47505674.2070407@yahoo.co.uk> Lukas Renggli wrote: >> I am struggling to write a command which edits a model, rather than >> the >> command instance itself. I am trying to do it this way since the model >> class and description may change whereas the command class does not. >> > > Why do you use a command then? As described in the GOF book, this > design pattern is used to encapsulate an action and its parameters. > > It does encapsulate an action. The problem being that commands as they are can only act upon themselves. Keith From renggli at iam.unibe.ch Fri Nov 30 19:35:45 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 30 Nov 2007 19:35:45 +0100 Subject: Strugging with Commands In-Reply-To: <47505674.2070407@yahoo.co.uk> References: <474F9D60.6010606@yahoo.co.uk> <47505674.2070407@yahoo.co.uk> Message-ID: <6D8C6F39-5B6F-42F0-BAE9-6585C44EE3C6@iam.unibe.ch> >>> I am struggling to write a command which edits a model, rather than >>> the >>> command instance itself. I am trying to do it this way since the >>> model >>> class and description may change whereas the command class does not. >>> >> >> Why do you use a command then? As described in the GOF book, this >> design pattern is used to encapsulate an action and its parameters. > > It does encapsulate an action. The problem being that commands as they > are can only act upon themselves. Why do you think that? All commands I know act on other objects, mostly on structures in Pier. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Fri Nov 30 20:08:58 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 30 Nov 2007 19:08:58 +0000 Subject: Strugging with Commands In-Reply-To: <6D8C6F39-5B6F-42F0-BAE9-6585C44EE3C6@iam.unibe.ch> References: <474F9D60.6010606@yahoo.co.uk> <47505674.2070407@yahoo.co.uk> <6D8C6F39-5B6F-42F0-BAE9-6585C44EE3C6@iam.unibe.ch> Message-ID: <47505FCA.8080002@yahoo.co.uk> A simpler solution: PRContentsWidget-buildComponent: aContext ^ aContext command asComponent onAnswer: [ :value | self onAnswerCommand: (aContext command onReturn: value) ]; yourself PRCommand-onReturn: value ^ value This gives commands an opportunity to handle the form's reply, returning a command for the PRContents widget to #execute. I think this is a better solution. Keith From keith_hodges at yahoo.co.uk Fri Nov 30 19:45:57 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 30 Nov 2007 18:45:57 +0000 Subject: Strugging with Commands In-Reply-To: <6D8C6F39-5B6F-42F0-BAE9-6585C44EE3C6@iam.unibe.ch> References: <474F9D60.6010606@yahoo.co.uk> <47505674.2070407@yahoo.co.uk> <6D8C6F39-5B6F-42F0-BAE9-6585C44EE3C6@iam.unibe.ch> Message-ID: <47505A65.4000307@yahoo.co.uk> Lukas Renggli wrote: >>>> I am struggling to write a command which edits a model, rather than >>>> the >>>> command instance itself. I am trying to do it this way since the >>>> model >>>> class and description may change whereas the command class does not. >>>> >>>> >>> Why do you use a command then? As described in the GOF book, this >>> design pattern is used to encapsulate an action and its parameters. >>> >> It does encapsulate an action. The problem being that commands as they >> are can only act upon themselves. >> > > Why do you think that? All commands I know act on other objects, > mostly on structures in Pier. > > Cheers, > Lukas > I must choose my words more carefully: they can only display themselves, since the value returned from the component must be a command or nil. Here is my solution.... PRContentsWidget-i-buildComponent: aContext ^ aContext command asComponent onAnswer: [ :value | aContext command onAnswerValue: value to: self ]; yourself PRCommand-i-onAnswerValue: componentReturnValue to: widget "componentReturnValue is typically but not necessarily a command" componentReturnValue isNil ifTrue: [ ^ widget context: (widget context structure: widget context structure) ]. [ componentReturnValue execute ] on: Error do: [ :err | Preferences debugPierFormErrors ifTrue: [ err pass ]. ^ widget component errors add: err. ]. widget context: componentReturnValue answer ========= what do you think? Keith From keith_hodges at yahoo.co.uk Fri Nov 30 23:34:15 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 30 Nov 2007 22:34:15 +0000 Subject: Pier-Jetsam and PRViewToEditCommand In-Reply-To: <47505FCA.8080002@yahoo.co.uk> References: <474F9D60.6010606@yahoo.co.uk> <47505674.2070407@yahoo.co.uk> <6D8C6F39-5B6F-42F0-BAE9-6585C44EE3C6@iam.unibe.ch> <47505FCA.8080002@yahoo.co.uk> Message-ID: <47508FE7.70508@yahoo.co.uk> Hello, PRViewToEditCommand displays a read only display of the supplied model, with Edit/Cancel buttons. Clicking Edit, goes to an editable version of the same form, with a Save/Cancel button. PRViewToEditCommand is a subclass of PRAction, a subclass of PRCommand, which expects to display an editor for a supplied model. This addition has been made available in a new "Pier-Jetsam" package for some pier/magritte base add ons, where some of the base pier extensions (i.e. from my previous email) can await potential inclusion in the main release. I have also moved Pier-Debugging over into Pier-Jetsam. Pier-Jetsam includes some logging of pier events, so it depends upon Logging which in turn depends upon Kernel-Extensions Installer ss project: '311'; install:'Kernel-Extensions'. Installer ss project: 'Logging'; install:'Logging'. best regards Keith