Lukas, not quite certain what you meant by: "However, I doubt that it
is possible to write it in a platform independent way ..."? The
platform is the browser; so are you saying it would be browser
specific? In what way? (The beginning of this thread was started on
seaside(a)lists.squeakfoundation.org.)
BTW, I made some mods to some classes to support pictures:
MAFileUploadComponent subclass: #MMAPicFileUploadComponent
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'MMAApp'!
!MMAPicFileUploadComponent methodsFor: 'rendering' stamp: 'jtc 6/8/2009 17:44'!
renderEditorOn: html
self value isNil
ifFalse: [
html table: [
html tableRow: [
html image
id: 'XXX';
document: self value contents mimeType: self value mimetype].
html tableRow: []]].
self isMultipart
ifTrue: [ self renderUploadOn: html ]
ifFalse: [ self renderRemoveOn: html ]! !
<<<<<<<<<<<<<<<<<<This will put the picture in the
editor>>>>>>>>>>>>>>>>>>>>>>>>>
MAFileDescription subclass: #MMAImageFileDescription
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'MMAApp'!
"-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- "!
MMAImageFileDescription class
instanceVariableNames: ''!
!MMAImageFileDescription class methodsFor: 'as yet unclassified'
stamp: 'jtc 6/8/2009 16:29'!
defaultReportColumnClasses
^ Array with: MMADescribedImageColumn! !
MADescribedColumn subclass: #MMADescribedImageColumn
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'MMAApp'!
!MMADescribedImageColumn methodsFor: 'as yet unclassified' stamp: 'jtc
6/8/2009 18:21'!
renderCellContent: anObject on: html
| myValue |
myValue _ (self valueFor: anObject).
"myValue contents class asString displayAt: 0@40."
(myValue isNil or: [myValue contents isEmpty]) ifTrue: [
^html render: (self formatter value: myValue)].
html image
id: 'XXX';
document: myValue contents mimeType: myValue mimetype
! !
<<<<<<<<<<<<<<<<<<This will put the picture in the
report>>>>>>>>>>>>>>>>>>>>>>>>>
---John
On Fri, Jun 5, 2009 at 6:17 PM, John Chludzinski
<john.chludzinski(a)gmail.com> wrote:
>
> After searching about I've come to the conclusion that Magritte is missing MAPictureDescription + MAPictureComponent classes. I would like to have a passport ilk pictures appear in Magritte generated reports and editors for users of a system by defining a #descriptionPicture class-side method for a system-user class. Not that easy!
>
> I assume I'll need to add these classes (MAPictureDescription + MAPictureComponent) to Magritte? ----John
Hi folks. I am creating a website where I have countries, states, places,
cities and so on. I have several pages talking about that. And I want to put
internal links everywhere they are called in a Pier page.
Example. Suppose I have this piece of text in a Pier page:
"I hope Brest to be a nice city. It is situated in France, far away from
Paris."
In my website I have another page called "France" and another called
"Paris". So, I would like the text above to be:
"I hope Brest to be a nice city. It is situated in *France*, far away from
*Paris*."
But I have a lot of pages and places. Is there a way this to be detected
easier? I ask because in some wiki I saw this behaviour.
Thanks in advance,
Mariano
Hi,
I just found that Pier-Blog seems to be very vulnerable to XSS
attacks...
Try to post the following in a comment:
<script>
alert('hello world!');
</script>
Cheers!
Nico
Hi folks, I have two simple questions:
1) I am putting in a Pier page a text I am copying from a .doc (I am copy
pasting it). The main problem I have is with the "Point and beyond". Suppose
I have this text when I am editing the page:
"This is a paragraph that talks about something.
This is another paragraph."
Pier render me this:
This is a paragraph that talks about something. This is another paragraph.
The only way I found to render what I want is using a <br>, like this:
"This is a paragraph that talks about something.<br></br>
This is another paragraph."
Is there an easier way to do this ?
2) In a Pier page, I have text and an image embebed. Suppose something like
this:
"Buceo en Madryn y Península de Valdés.
+/LugaresDestino/Provincia - Chubut/Puerto Madryn/Foto - Buceo - Puerto
Madryn+
Otras actividades, se puede realizar Mountain bike, trekking, sandboard,
cabalgatas, paseos náuticos, windsurf pueden ser comunes a otros sitios,
pero pocas veces se unen a un escenario atractivo."
In this case +/LugaresDestino/Provincia - Chubut/Puerto Madryn/Foto - Buceo
- Puerto Madryn+ is a picture but the width of this picure is less than
the area of the text. So, the text "Otras actividades, se puede......"
estar to render at the right of the picture. Suppose I don't want this and
want this text to start below the picture. how can I do this ?
If I wasn't clear enough I can attach an screenshot.
Thanks in advance,
Mariano
Mariano,
I haven't had a chance to look at the details of exporter/importer, but I assume that it is based on squeak-based serialization. At the moment SIXX is probably a better option for moving data to GemStone.
Dale
----- "Mariano Martinez Peck" <marianopeck(a)gmail.com> wrote:
| Pier (in 1.1.1 I think) has it's own Importer/Exporter. I don't know
| if it
| works on Gemstone, but if this is the case is really easy. I do this
| when
| move a pier site from one image to another.
|
| Cheers,
|
| Mariano
|
| On Sat, May 23, 2009 at 1:01 PM, Sean Allen
| <sean(a)monkeysnatchbanana.com>wrote:
|
| > I'll add SIXX on to my ever growing list of things to learn and if I
| have
| > issues, will be in touch.
| >
| >
| > On May 23, 2009, at 11:02 AM, Dale Henrichs wrote:
| >
| > SSean,
| >>
| >> Use SIXX. During SIXX testing I was able to move a Pier kernel from
| Squeak
| >> to GemStone.
| >>
| >> If you run into issues, I will be very interested to fix them,
| since at
| >> the moment I think SIXX is the best alternative.
| >>
| >> Dale
| >>
| >> ----- "Sean Allen" <sean(a)monkeysnatchbanana.com> wrote:
| >>
| >> | i want to start playing around with putting together a site in
| pharo
| >> |
| >> | on my laptop and then when i have it mostly completed, moving it
| over
| >> |
| >> | to a GLASS installation.
| >> | i've scanned back through the list since i first signed up last
| year
| >> |
| >> | ( and found numerous interesting tidbits i had missed ), but i
| can't
| >> |
| >> | find anything on this:
| >> |
| >> | if i want to move an existing pier site out of a pharo/squeak
| image
| >> | and into glass, how do i do that? i assume it would be using
| >> | monticello. i'm not sure though, how much i need to move. i'm
| sure
| >> | there is a simple answer to this, but i still haven't really
| used
| >> | monticello much as i have been able to get by without using it
| yet.
| >> |
| >> |
| >> | _______________________________________________
| >> | Magritte, Pier and Related Tools ...
| >> | https://www.iam.unibe.ch/mailman/listinfo/smallwiki
| >> _______________________________________________
| >> Magritte, Pier and Related Tools ...
| >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
| >>
| >
| > _______________________________________________
| > Magritte, Pier and Related Tools ...
| > https://www.iam.unibe.ch/mailman/listinfo/smallwiki
| >