From renggli at iam.unibe.ch Sun Mar 2 11:12:10 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 2 Mar 2008 11:12:10 +0100 Subject: strange behavior for edit design? In-Reply-To: <7B3291EB-A123-44E4-BE59-5FC45B8F755E@iam.unibe.ch> References: <7B3291EB-A123-44E4-BE59-5FC45B8F755E@iam.unibe.ch> Message-ID: <3E5DD00C-1E7D-40FD-AF84-8CFABB96CF5C@iam.unibe.ch> Hi Doru, thanks for reporting. I extracted to command into a separate extension package and fixed the bug: Name: Pier-Design-lr.1 Author: lr Time: 2 March 2008, 11:10:25 am UUID: 3a55fa21-1f7a-47c8-bbf7-dfb1d56d2543 - extracted design command > I figured this out because if you sy Edit Design from the Environment > page, the links are resolved correctly :). Editing the design using this special command now does properly lookup the path relative to the environment (not the current page). Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Mon Mar 10 14:32:59 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 10 Mar 2008 14:32:59 +0100 Subject: Questions about Seaside/Pier In-Reply-To: <6ac749c10803100626i4935611bucc68439f5b7109f5@mail.gmail.com> References: <6ac749c10803100626i4935611bucc68439f5b7109f5@mail.gmail.com> Message-ID: <31D9A467-7A0C-4D8B-87A3-812FA6C8C17A@iam.unibe.ch> Hi Damien, > I have some questions: > > - why do you use random numbers in PRMailLink>>urlEntry? The class comment of PRMailLink says it all: "I am an external link pointing to a mail address. I encode my URL to prevent spam bots collecting the address." > - why is it not possible to use #mailto: in WAAnchorTag in Seaside > anymore (it's deprecacted)? It is useless, isn't it? The attribute and the body of the tag require different encoding anyway and this is only possible when using a propre URL object. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Fri Mar 14 21:31:08 2008 From: renggli at gmail.com (Lukas Renggli) Date: Fri, 14 Mar 2008 21:31:08 +0100 Subject: Fwd: [squeak-dev] I'm stepping down as WebTeam Leader Mars 31 In-Reply-To: <1205524514.3138.185.camel@12-222-173-196.client.insightbb.com> References: <1205524514.3138.185.camel@12-222-173-196.client.insightbb.com> Message-ID: <67628d690803141331t35db62fbj3583bef9838cc42a@mail.gmail.com> Anybody interested to step up for a new (or revised) web-site for squeak.org based on Seaside (and maybe Pier)? > In the back of my mind (well maybe more in the foreground than that) I > wondered why no one from the Seaside community had stepped up and it > occurred to me that Janko stepping up might spur one of them to also do > so. That has yet to happen. See: http://lists.squeakfoundation.org/pipermail/squeak-dev/2008-March/126523.html http://lists.squeakfoundation.org/pipermail/squeak-dev/2008-March/126535.html Lukas -- Lukas Renggli http://www.lukas-renggli.ch -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: signature.asc Url: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080314/64688c4f/signature.ksh From estebanlm at gmail.com Sun Mar 16 16:26:59 2008 From: estebanlm at gmail.com (Esteban Lorenzano) Date: Sun, 16 Mar 2008 12:26:59 -0300 Subject: hiding sidebar for general users Message-ID: Hi All, I'm a complete newbie on pier, although I have some experience on general seaside, so, excuse me if I ask siple questions... I didn't find them on the list, so, maybe there are too easy. I'm trying to make the website for may company, and of course, I don't want it looks like a wiki, I want it looks professional, like lukas page (http://www.lukas-renggli.ch/) or "kamikaze" page (http:// kamikaze.seasidehosting.st) After this long introduction, here is my first question: How do I hide sidebar for general users, and allow it for "admin" users? I can took off +sidebar+ div from "environment " template... but then I don't have the commands for admins neither. And here is another dumb question: Is there a way to have "childrens" (from a children component) in a specific order? Thanks in advance, Esteban "Querer es suscitar las paradojas" Camus - El mito de S?sifo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080316/3d7198ce/attachment.html From renggli at iam.unibe.ch Sun Mar 16 16:39:44 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 16 Mar 2008 16:39:44 +0100 Subject: hiding sidebar for general users In-Reply-To: References: Message-ID: <1B9E7DC0-1EAC-4AB4-8985-3BC8B87194F3@iam.unibe.ch> Hi Esteban, > How do I hide sidebar for general users, and allow it for "admin" > users? > I can took off +sidebar+ div from "environment " template... but > then I don't have the commands for admins neither. If you have loaded Pier-Security you can set the view permissions of the side-bar to the admin only. This means you remove all the permissions from Group and Others of the side-bar page. In this case it won't be displayed. > And here is another dumb question: Is there a way to have > "childrens" (from a children component) in a specific order? I don't exactly understand what you mean by order. When you embed the children using links they are always inserted in a specific order. +first-component+ +second-component+ +third-component+ Lukas > > Thanks in advance, > Esteban > > "Querer es suscitar las paradojas" > Camus - El mito de S?sifo > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- Lukas Renggli http://www.lukas-renggli.ch From estebanlm at gmail.com Sun Mar 16 17:25:51 2008 From: estebanlm at gmail.com (Esteban Lorenzano) Date: Sun, 16 Mar 2008 13:25:51 -0300 Subject: hiding sidebar for general users In-Reply-To: <1B9E7DC0-1EAC-4AB4-8985-3BC8B87194F3@iam.unibe.ch> References: <1B9E7DC0-1EAC-4AB4-8985-3BC8B87194F3@iam.unibe.ch> Message-ID: Hi, Lukas, I'm doing something wrong, because I have the package and tryed to use it and nothing happened. Here is a more detailed explanation: First, I'm using latest versions of Seaside 2.8, Scriptaculous and Magritte and Pier (magritte and pier installed through "Magrite- All" (260) and pier through "Pier-All" (279) In the browser, I select "Change Other", picking "remove", "recursive" and "view" in the list, then apply... and nothing happens. If I select "Environment" and then repeat the operation I describe... and again, nothing. Trying the same operation with Pier-OB and I have the same result. El 16/03/2008, a las 12:39PM, Lukas Renggli escribi?: > Hi Esteban, > >> How do I hide sidebar for general users, and allow it for "admin" >> users? >> I can took off +sidebar+ div from "environment " template... but >> then I don't have the commands for admins neither. > > If you have loaded Pier-Security you can set the view permissions of > the side-bar to the admin only. This means you remove all the > permissions from Group and Others of the side-bar page. In this case > it won't be displayed. > >> And here is another dumb question: Is there a way to have >> "childrens" (from a children component) in a specific order? > > I don't exactly understand what you mean by order. When you embed the > children using links they are always inserted in a specific order. > > +first-component+ > +second-component+ > +third-component+ > > Lukas > > >> >> Thanks in advance, >> Esteban >> >> "Querer es suscitar las paradojas" >> Camus - El mito de S?sifo >> >> >> _______________________________________________ >> 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 "Querer es suscitar las paradojas" Camus - El mito de S?sifo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080316/bdb28583/attachment-0001.html From renggli at iam.unibe.ch Sun Mar 16 17:37:17 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 16 Mar 2008 17:37:17 +0100 Subject: hiding sidebar for general users In-Reply-To: References: <1B9E7DC0-1EAC-4AB4-8985-3BC8B87194F3@iam.unibe.ch> Message-ID: <46531912-4217-478E-8631-9C810B274E82@iam.unibe.ch> > First, I'm using latest versions of Seaside 2.8, Scriptaculous and > Magritte and Pier (magritte and pier installed through "Magrite- > All" (260) and pier through "Pier-All" (279) That sounds perfect. > In the browser, I select "Change Other", picking "remove", > "recursive" and "view" in the list, then apply... and nothing happens. > If I select "Environment" and then repeat the operation I > describe... and again, nothing. > Trying the same operation with Pier-OB and I have the same result. From a default installation you have to make sure that all structure have an owner and a group. You can do this from the root (default settings not shown): Change Owner Recursive: true Owner: Admin -> Apply Then you need to log-in, as a lot of functionality disappeared due to missing authentication. Login Username: admin Password: pier -> Login Next set the group. Again in the root (default settings not shown): Change Group Recursive: true Owner: Admin -> Apply Now you can go to a page that should not be visible for non administrators and apply the following: Change Other Recrusive: true Operator: Remove Permissions: View -> Apply When you log-out the page is not visible or accessible anymore. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From cdrick65 at gmail.com Sun Mar 16 17:39:38 2008 From: cdrick65 at gmail.com (cdrick) Date: Sun, 16 Mar 2008 17:39:38 +0100 Subject: hiding sidebar for general users In-Reply-To: References: <1B9E7DC0-1EAC-4AB4-8985-3BC8B87194F3@iam.unibe.ch> Message-ID: Hi > I'm doing something wrong, because I have the package and tryed to use it > and nothing happened. Here is a more detailed explanation: > > First, I'm using latest versions of Seaside 2.8, Scriptaculous and Magritte > and Pier (magritte and pier installed through "Magrite-All" (260) and pier > through "Pier-All" (279) > > In the browser, I select "Change Other", picking "remove", "recursive" and > "view" in the list, then apply... and nothing happens. not sure but maybe you need to log as admin... then change other and so on... + logout C?drick From estebanlm at gmail.com Sun Mar 16 20:37:11 2008 From: estebanlm at gmail.com (Esteban Lorenzano) Date: Sun, 16 Mar 2008 16:37:11 -0300 Subject: hiding sidebar for general users In-Reply-To: <46531912-4217-478E-8631-9C810B274E82@iam.unibe.ch> References: <1B9E7DC0-1EAC-4AB4-8985-3BC8B87194F3@iam.unibe.ch> <46531912-4217-478E-8631-9C810B274E82@iam.unibe.ch> Message-ID: <6805402D-ACED-45B6-B90C-0B8B57BE1370@gmail.com> Thanks Lukas, that do the trick... :) For the other problem, I'm talking about PRChildrenWidget, lets say I add tree pages, pageA, pageX and pageB, in that order... i want to see the components as I added, I mean "pageA pageX pageB", but the component orders the links alphabeticaly, and I get "pageA pageB pageX" Thanks again, Esteban El 16/03/2008, a las 1:37PM, Lukas Renggli escribi?: >> First, I'm using latest versions of Seaside 2.8, Scriptaculous and >> Magritte and Pier (magritte and pier installed through "Magrite- >> All" (260) and pier through "Pier-All" (279) > > That sounds perfect. > >> In the browser, I select "Change Other", picking "remove", >> "recursive" and "view" in the list, then apply... and nothing >> happens. >> If I select "Environment" and then repeat the operation I >> describe... and again, nothing. >> Trying the same operation with Pier-OB and I have the same result. > > From a default installation you have to make sure that all structure > have an owner and a group. You can do this from the root (default > settings not shown): > > Change Owner > > Recursive: true > Owner: Admin > > -> Apply > > Then you need to log-in, as a lot of functionality disappeared due to > missing authentication. > > Login > > Username: admin > Password: pier > > -> Login > > Next set the group. Again in the root (default settings not shown): > > Change Group > > Recursive: true > Owner: Admin > > -> Apply > > Now you can go to a page that should not be visible for non > administrators and apply the following: > > Change Other > > Recrusive: true > Operator: Remove > Permissions: View > > -> Apply > > When you log-out the page is not visible or accessible anymore. > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki "Querer es suscitar las paradojas" Camus - El mito de S?sifo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080316/1ff0c5d8/attachment.html From renggli at iam.unibe.ch Mon Mar 17 16:46:55 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 17 Mar 2008 16:46:55 +0100 Subject: hiding sidebar for general users In-Reply-To: <6805402D-ACED-45B6-B90C-0B8B57BE1370@gmail.com> References: <1B9E7DC0-1EAC-4AB4-8985-3BC8B87194F3@iam.unibe.ch> <46531912-4217-478E-8631-9C810B274E82@iam.unibe.ch> <6805402D-ACED-45B6-B90C-0B8B57BE1370@gmail.com> Message-ID: <5A3C071F-142C-4B4F-83CB-97FBA2966F6D@iam.unibe.ch> > Thanks Lukas, that do the trick... :) Good. > For the other problem, I'm talking about PRChildrenWidget, lets say > I add tree pages, pageA, pageX and pageB, in that order... i want to > see the components as I added, I mean "pageA pageX pageB", but the > component orders the links alphabeticaly, and I get "pageA pageB > pageX" That was currently not possible. I fixed it in Pier-Model-lr.215, where the children are stored in a OrderedCollection. There is a migration script included that makes this migration automatically. By default the new version still sorts the items alphabetically according to the title. However you can open an inspector on the kernel and change the #childrenSortBlock: property to nil, to get the children listened unordered. There is no UI to change the order of the children, but that can be done later on. For now, you have to stick with the inspector. HTH, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From estebanlm at gmail.com Mon Mar 17 19:29:07 2008 From: estebanlm at gmail.com (Esteban Lorenzano) Date: Mon, 17 Mar 2008 15:29:07 -0300 Subject: hiding sidebar for general users In-Reply-To: <5A3C071F-142C-4B4F-83CB-97FBA2966F6D@iam.unibe.ch> References: <1B9E7DC0-1EAC-4AB4-8985-3BC8B87194F3@iam.unibe.ch> <46531912-4217-478E-8631-9C810B274E82@iam.unibe.ch> <6805402D-ACED-45B6-B90C-0B8B57BE1370@gmail.com> <5A3C071F-142C-4B4F-83CB-97FBA2966F6D@iam.unibe.ch> Message-ID: Thanks lukas, I'll do it Esteban El 17/03/2008, a las 12:46PM, Lukas Renggli escribi?: >> Thanks Lukas, that do the trick... :) > > Good. > >> For the other problem, I'm talking about PRChildrenWidget, lets say >> I add tree pages, pageA, pageX and pageB, in that order... i want to >> see the components as I added, I mean "pageA pageX pageB", but the >> component orders the links alphabeticaly, and I get "pageA pageB >> pageX" > > That was currently not possible. I fixed it in Pier-Model-lr.215, > where the children are stored in a OrderedCollection. There is a > migration script included that makes this migration automatically. > > By default the new version still sorts the items alphabetically > according to the title. However you can open an inspector on the > kernel and change the #childrenSortBlock: property to nil, to get the > children listened unordered. There is no UI to change the order of the > children, but that can be done later on. For now, you have to stick > with the inspector. > > HTH, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki "Querer es suscitar las paradojas" Camus - El mito de S?sifo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080317/f0336ee7/attachment-0001.html From dtrussardi at tiscali.it Wed Mar 19 18:02:11 2008 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Wed, 19 Mar 2008 18:02:11 +0100 Subject: Use Magritte to define object web interface into OODB Message-ID: <019c01c889e2$fee2a6a0$0301a8c0@istcamuno> Hi, i work with visualworks 7.5 / Squeak 3.9-7067\gemtools-7067dev07.10.1 and Gemstone OODB 2.2.4. I'm interested do create web interface to some object into Gemstone ( GLASS Framework ) I think to do it with Magritte ( it's a right solution ? ). For any object create the specific descriptionA.... , descriptionB..., ecc. ecc. class methods and use asComponent to open web interface. I port Magritte tutorial into Glass and work fine. But, for example, i'm interested to create Title options from other TitleInstances , ( not from Array of string, but from Array of TitleInstance ) and save in MAPersonModel title the link to one specific titleInstance descriptionTitle ^ MASingleOptionDescription new options: #( 'Mr.' 'Mrs.' 'Ms.' 'Miss.' ); autoAccessor: 'title'; label: 'Title'; priority: 10; yourself descriptionTitle ^ MASingleOptionDescription new options: TitleDatabase asArrayOfInstances; autoAccessor: 'title'; label: 'Title'; priority: 10; yourself Questio A) What i need to define to do it ? I 'can find example relative to Magritte in Gemstone? Question B) When change the description about one class what do i do to update the relative web interface? In vw i use MADescriptioBuilder default flash . Question C) When i need to use [ ....] asDynamicObject? If i use options: TitleDatabase asArrayOfInstances it's enough to have options update to last version or ....? Any pointers would be greatly appreciated! Thanks Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080319/004577db/attachment.html From renggli at iam.unibe.ch Wed Mar 19 18:11:15 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 19 Mar 2008 18:11:15 +0100 Subject: Use Magritte to define object web interface into OODB In-Reply-To: <019c01c889e2$fee2a6a0$0301a8c0@istcamuno> References: <019c01c889e2$fee2a6a0$0301a8c0@istcamuno> Message-ID: <1F29996F-54E5-459F-A0C3-74A4B0C331A0@iam.unibe.ch> > Questio A) > What i need to define to do it ? > I 'can find example relative to Magritte in Gemstone? Pier uses Magritte heavily and it has been ported to GemStone. > Question B) > When change the description about one class what do i do to update > the relative web interface? > In vw i use MADescriptioBuilder default flash . Not #flash, #flush ;-) > Question C) > When i need to use [ ....] asDynamicObject? If the the value within ... changes dynamically. See: http://www.lukas-renggli.ch/smalltalk/magritte/faq Lukas -- Lukas Renggli http://www.lukas-renggli.ch From gulamf at gmail.com Thu Mar 20 12:36:40 2008 From: gulamf at gmail.com (Gulam Faruque) Date: Thu, 20 Mar 2008 11:36:40 +0000 Subject: Newbie question on Forms Message-ID: Hi, Can someone please let me know what I have to do to add forms to Pier pages. Please bear in mind im new to squeak, so a step by step guide would be much appreciated. I have a fresh image for seaside on squeak. I can see and use the pier application from my browser. I use squeak/pier on windows XP. My Squeak version is sq3.9-7067web07.08.1 Thanks in advance Faruque -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080320/53de5864/attachment.html From estebanlm at gmail.com Thu Mar 20 21:41:44 2008 From: estebanlm at gmail.com (Esteban Lorenzano) Date: Thu, 20 Mar 2008 17:41:44 -0300 Subject: exporting kernel? Message-ID: <9E765CB0-713F-460F-A49C-0C7589F086EF@gmail.com> Hi all, Is there a easy way to export a structure? I finished my page and now I want to export the structure to another (production) image... Thanks, Esteban "Querer es suscitar las paradojas" Camus - El mito de S?sifo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080320/3563c7c7/attachment.html From renggli at iam.unibe.ch Thu Mar 20 21:46:31 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 20 Mar 2008 21:46:31 +0100 Subject: exporting kernel? In-Reply-To: <9E765CB0-713F-460F-A49C-0C7589F086EF@gmail.com> References: <9E765CB0-713F-460F-A49C-0C7589F086EF@gmail.com> Message-ID: > Is there a easy way to export a structure? Not really, because unfortunately there might be blocks at some places in the model. If you get rid of them you can use reference streams or SIXX. Image segments do not have that problem, but they are pretty tricky to use. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Fri Mar 21 01:43:07 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 21 Mar 2008 00:43:07 +0000 Subject: exporting kernel? In-Reply-To: <9E765CB0-713F-460F-A49C-0C7589F086EF@gmail.com> References: <9E765CB0-713F-460F-A49C-0C7589F086EF@gmail.com> Message-ID: <47E3049B.5040709@yahoo.co.uk> Esteban Lorenzano wrote: > Hi all, > Is there a easy way to export a structure? > I finished my page and now I want to export the structure to another > (production) image... > > Thanks, > Esteban > Thats why I wrote the pier-magma integration in the first place, except I use it the other way around... to upgrade the production image without loosing data. Keith From gulamf at gmail.com Fri Mar 21 01:56:52 2008 From: gulamf at gmail.com (Gulam Faruque) Date: Fri, 21 Mar 2008 00:56:52 +0000 Subject: Newbie question on Forms In-Reply-To: References: Message-ID: OK sorted, here are the steps, just in case anyone is interested. 1) download http://source.lukas-renggli.ch/pier/Pier-Forms-lr.20.mcz 2) In World Menu > open > file list 3) Browse to Saved Pier-Forms-lr.20.mcz, select and load 3) Reload pier in browser 4) Add a new page, set type to Form. Faruque On 20/03/2008, Gulam Faruque wrote: > > Hi, > > Can someone please let me know what I have to do to add forms to Pier > pages. > > Please bear in mind im new to squeak, so a step by step guide would be > much appreciated. > > I have a fresh image for seaside on squeak. > I can see and use the pier application from my browser. > > I use squeak/pier on windows XP. > My Squeak version is sq3.9-7067web07.08.1 > > Thanks in advance > Faruque > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080321/aba66c47/attachment-0001.html From mbany at cincom.com Fri Mar 21 18:24:27 2008 From: mbany at cincom.com (Bany, Michel) Date: Fri, 21 Mar 2008 17:24:27 -0000 Subject: Instance based description in Magritte Message-ID: This is a question for Lukas. I need to display an object of class A that holds a collection of other objects of class B. The collection is described using a subclass of MAToManyRelationDescription. The description of the objects in class B needs to be instance based. All the objects in one collection have the same description, however class B is not able to provide a description. How can I do this? TIA Michel. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080321/1240d29c/attachment.html From renggli at iam.unibe.ch Fri Mar 21 18:33:12 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 21 Mar 2008 18:33:12 +0100 Subject: Instance based description in Magritte In-Reply-To: References: Message-ID: <60732737-37B2-414A-94E0-3FB0363B0958@iam.unibe.ch> > The description of the objects in class B needs to be instance > based. All the objects in one collection have the same description, > however class B is not able to provide a description. > You can override #description on the instance side to either build your descriptions on the fly or to modify the ones returned by the class. For example: B>>description ^ super description collect: [ :each | (each isKindOf: MAToManyDescription) ifTrue: [ each copy classes: self dynamicClasses ] ifFalse: [ each ] ] You find many other possible solutions in the mailing-list archive and some additional information in the FAQ: http://www.lukas-renggli.ch/smalltalk/magritte/faq Lukas -- Lukas Renggli http://www.lukas-renggli.ch From mbany at cincom.com Tue Mar 25 10:20:22 2008 From: mbany at cincom.com (Bany, Michel) Date: Tue, 25 Mar 2008 09:20:22 -0000 Subject: Instance based description in Magritte In-Reply-To: <60732737-37B2-414A-94E0-3FB0363B0958@iam.unibe.ch> References: <60732737-37B2-414A-94E0-3FB0363B0958@iam.unibe.ch> Message-ID: Yes, I knew about #description on the instance side, but my question was not precise enough. I wanted an on-the-fly description for the collection so that the MAReport is dynamically configured. I finally got the desired behavior simply by subclassing MAOneToManyComponent and re-implementing #reference. This also gave me the possibility to offer a UI on the description for hiding/showing columns in the report. Magritte is really cool. Thanks, Michel. > -----Original Message----- > From: smallwiki-bounces at iam.unibe.ch > [mailto:smallwiki-bounces at iam.unibe.ch] On Behalf Of Lukas Renggli > Sent: vendredi, 21. mars 2008 18:33 > To: Magritte, Pier and Related Tools ... > Subject: Re: Instance based description in Magritte > > > The description of the objects in class B needs to be > instance based. > > All the objects in one collection have the same > description, however > > class B is not able to provide a description. > > > You can override #description on the instance side to either > build your descriptions on the fly or to modify the ones > returned by the class. For example: > > B>>description > ^ super description collect: [ :each | > (each isKindOf: MAToManyDescription) > ifTrue: [ each copy classes: self dynamicClasses ] > ifFalse: [ each ] ] > > You find many other possible solutions in the mailing-list > archive and some additional information in the FAQ: > > http://www.lukas-renggli.ch/smalltalk/magritte/faq > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From dtrussardi at tiscali.it Tue Mar 25 12:26:32 2008 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Tue, 25 Mar 2008 12:26:32 +0100 Subject: Create form: from description Message-ID: <004d01c88e6b$1912b380$0301a8c0@istcamuno> Hi, i have some classes for define the data to store, with specific descriptions. All class have the method descriptionKey for define the key to store the instance. Now i'm interested to create a form with textinput based on one specific descriptionKey. It's possibol ? In WAComponent subclass i have the method: renderAddOn: html html form:[ html textInput callback:[ :value| self add: value]. html submitButtton text:'add']. Now i can render the textInput based on specific descriptionKey ? Any pointers would be greatly appreciated! Thanks Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080325/0332595c/attachment.html From renggli at iam.unibe.ch Tue Mar 25 13:03:26 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 25 Mar 2008 13:03:26 +0100 Subject: Create form: from description In-Reply-To: <004d01c88e6b$1912b380$0301a8c0@istcamuno> References: <004d01c88e6b$1912b380$0301a8c0@istcamuno> Message-ID: > In WAComponent subclass i have the method: > > renderAddOn: html > html form:[ > html textInput callback:[ :value| self add: value]. > html submitButtton text:'add']. > > Now i can render the textInput based on specific descriptionKey ? I don't quite understand what you intend to do with the textInput field. Do you want to read/write some described data? If so, use something like the following: object readUsing: description. object write: value using: description. Do you want to use different descriptions depending on some context? Use something like: self description select: [ :each | each isForContextX ] > Any pointers would be greatly appreciated! Lukas -- Lukas Renggli http://www.lukas-renggli.ch From dtrussardi at tiscali.it Tue Mar 25 14:15:19 2008 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Tue, 25 Mar 2008 14:15:19 +0100 Subject: Create form: from description Message-ID: <008301c88e7a$4c5a26b0$0301a8c0@istcamuno> Hi, Lukas >> In WAComponent subclass i have the method: >> >> renderAddOn: html >> html form:[ >> html textInput callback:[ :value| self add: value]. >> html submitButtton text:'add']. >> >> Now i can render the textInput based on specific descriptionKey ? > > I don't quite understand what you intend to do with the textInput field. In other words: renderAddOn: html html form:[ anMAReferenceModel descriptionKey ....................as ???? changeAccesor ??? html submitButtton text:'add']. where anMAReferenceModel is one specific classModel for example: MANazionalityModel with specific descriptionKey -> MAStringDescription new ........ label: 'Nazionaliry name'; .......... or MAPhoneModel with specific descriptionKey -> MANumberDescription new ............label: 'Phone number'; ..... beInteger............ or MA ..... Model with specific descriptionKey -> ........ With this reference i think to have the input set to relative descriptionKey. I'm clear ? It's possibol ? Ciao, Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080325/26e63df0/attachment.html From renggli at iam.unibe.ch Tue Mar 25 14:42:45 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 25 Mar 2008 14:42:45 +0100 Subject: Create form: from description In-Reply-To: <008301c88e7a$4c5a26b0$0301a8c0@istcamuno> References: <008301c88e7a$4c5a26b0$0301a8c0@istcamuno> Message-ID: On Mar 25, 2008, at 14:15 , Dario Trussardi wrote: > Hi, Lukas > > > >> In WAComponent subclass i have the method: > >> > >> renderAddOn: html > >> html form:[ > >> html textInput callback:[ :value| self add: value]. > >> html submitButtton text:'add']. > >> > >> Now i can render the textInput based on specific descriptionKey ? > > > > I don't quite understand what you intend to do with the textInput > field. > > In other words: > > renderAddOn: html > html form:[ > anMAReferenceModel > descriptionKey ....................as ???? changeAccesor ??? > > html submitButtton text:'add']. > where anMAReferenceModel is one specific classModel for example: > MANazionalityModel with specific descriptionKey -> > MAStringDescription new ........ label: 'Nazionaliry name'; .......... > or MAPhoneModel with specific descriptionKey -> MANumberDescription > new ............label: 'Phone number'; ..... beInteger............ > or MA ..... Model with specific descriptionKey -> ........ > > > With this reference i think to have the input set to relative > descriptionKey. > > I'm clear ? No, I don't understand. I can only guess: html textInput value: (aDescription toString: (object readUsing: aDescription)); callback: [ :value | object write: (aDescription fromString: value) using: aDescription ]. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From estebanlm at gmail.com Tue Mar 25 15:01:01 2008 From: estebanlm at gmail.com (Esteban Lorenzano) Date: Tue, 25 Mar 2008 11:01:01 -0300 Subject: PRPage without title? Message-ID: Hi, I need to show a PRPage (or similar) whithout showing his caption ('cause I want to make an internal structure with divs and embeded components)... is there a way to do this (besides setting "H1.display: none")? Thanks, Esteban "Querer es suscitar las paradojas" Camus - El mito de S?sifo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080325/551419ed/attachment.html From renggli at iam.unibe.ch Tue Mar 25 15:06:58 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 25 Mar 2008 15:06:58 +0100 Subject: PRPage without title? In-Reply-To: References: Message-ID: <9A503F89-9584-4B07-8FD6-6230DE45DCCE@iam.unibe.ch> > I need to show a PRPage (or similar) whithout showing his caption > ('cause I want to make an internal structure with divs and embeded > components)... is there a way to do this (besides setting > "H1.display: none")? This is the PRContentsWidget that displays the heading. In the settings of the widget you can set it to an empty string to avoid the generation of the h1 tag. Other than that, similar to what you suggested, "h1.heading { visibility: hidden }" would just hide that particular heading. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From dtrussardi at tiscali.it Tue Mar 25 16:52:58 2008 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Tue, 25 Mar 2008 16:52:58 +0100 Subject: Create form: from description Message-ID: <013f01c88e90$51b6abe0$0301a8c0@istcamuno> Hi, excuse for my bad english. > With this reference i think to have the input set to relative > descriptionKey. > >I can only guess: > >html textInput > value: (aDescription toString: (object readUsing: aDescription)); > callback: [ :value | object write: (aDescription fromString: > value) using: aDescription ]. i work with your guess, and some thing go other no. I'have problem with description define using MANumberDescription new .... When, in the textInput digit an char the method visitNumberDescription: aDescription go in error. . And if description is define with addCondition, this are not tested at callback:.. Another problem about MANumberDescription : in description based on it, if i define beInteger or min: or max: when digit an chart in the UI the method visitNumberDescription: aDescription go in error. Thank, Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080325/96f75781/attachment.html