Name: Pier-PersistencyManager-kph.11
Author: kph
Time: 12 December 2007, 10:02:59 pm
UUID: 0129ad29-a8fe-11dc-abc2-000a95edb42a
Ancestors: Pier-PersistencyManager-kph.10
- Fixed the "Manage Users" and "Manage Groups"
Finally worked out how to call a PRWidget and make sure it is wrapped in
the current PRContext when NOT in a pier application. (i.e. the
seaside/config app)
I made a PRCurrentContextDecoration to wrap widgets in when you want to
use PRWidgets in a different content.
cheers
Keith
Hi all,
I've got a problem witch Pier.
I created an application with Seaside. And I want to add
the application in Pier.
I wrote in Edit mode +application+, than I clicked on it
and select type: Component. Exactly like on this video: http://www.lukas-renggli.ch/smalltalk/pier/videos/sushi.mov
But in combobox Component class
i don't see my seaside application. What is the way to put my application in this list and then
in Pier?
Thank You very much!!
Best regards.
Marek Fiala
I was wondering if anyone tried to do any kind of XML mapping using
Magritte. I have the requirement to generate RDF from my business
objects, so I was thinking of ways to simplify this. My idea was to
add something in the Magritte descriptions for each object that
pointed to the appropriate URI and schema.
This may be more trouble than its worth. I suppose anyone who has done
anything with generating XML from Magritte could maybe provide some
insight on any hurdles they faced, design ideas, etc.
I also am looking at Magritte for simplifying XML serialization in
general. My problem overall is that I have to generate all these
formats (XML for web service, RSS, ATOM, RDF) and I do not want to
have to write a complex parser to even do this 1/2 way dynamically.
Are there any other libraries out there that do this already? For
instance, I did notice that there is that library (name escapes me)
that lets you port your objects between Smalltalk versions by dumping
to XML files, so that is somewhat close to what I need to do.
I am thinking since I already have a large number of Magritte
descriptions, I might as well expand upon that. This will also let me
do things like change a schema dynamically and provide easy access
memento objects to do things like create a preview of whatever format
I am trying to produce. Thoughts?
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
Haven't tried anything with 3.10. I'm using SIXX 0.2c with 2.9.
> On 03/12/2007, Adriaan van Os <avanos(a)xs4all.nl> wrote:
>> I'm using SIXX to move a site from one image to another.
>
> Thanks for the suggestion. Are you doing something particular?
> SIXX (latest from squeakmap) doesn't load in my 3.10 image...
>
>
>>
>> HTH,
>> Adriaan.
>>
>> > On 25/02/2007, Philippe Marschall <philippe.marschall(a)gmail.com>
>> wrote:
>> >> 2007/2/25, Damien Cassou <damien.cassou(a)gmail.com>:
>> >> > what is the best solution to extract a pier website from an image
>> and
>> >> > put the extracted root into another image ?
>> >>
>> >> Assuming you don't use magma:
>> >> I'd say grab the kernel, file it out with ReferenceStream and file it
>> >> in the other image (you'll have to add it to the instances). Maybe
>> >> you'll have to nil out the mutex in the persistency instance, you'll
>> >> find out if filing out will give an error.
>> >
>> > I'm trying to do the same... ReferenceStream doesn't work because it
>> > encounters a BlockContext in the process (eg. some Magritte condition
>> > on the number of posts the blog should show).
>> >
>> > I'm trying to go the Magma way but it won't install' either via
>> > Universes or MC. Magma seaside says it needs WADispatcherControlPanel
>> > (I'm following the load order from http://wiki.squeak.org/squeak/5902
>> > )
>> >
>> > Any suggestion ?
>> >
>> > --
>> > 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
>> >
>>
>>
>> --
>> http://www.a3aan.st
>>
>>
>> _______________________________________________
>> 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
>
--
http://www.a3aan.st
I'm using SIXX to move a site from one image to another.
HTH,
Adriaan.
> On 25/02/2007, Philippe Marschall <philippe.marschall(a)gmail.com> wrote:
>> 2007/2/25, Damien Cassou <damien.cassou(a)gmail.com>:
>> > what is the best solution to extract a pier website from an image and
>> > put the extracted root into another image ?
>>
>> Assuming you don't use magma:
>> I'd say grab the kernel, file it out with ReferenceStream and file it
>> in the other image (you'll have to add it to the instances). Maybe
>> you'll have to nil out the mutex in the persistency instance, you'll
>> find out if filing out will give an error.
>
> I'm trying to do the same... ReferenceStream doesn't work because it
> encounters a BlockContext in the process (eg. some Magritte condition
> on the number of posts the blog should show).
>
> I'm trying to go the Magma way but it won't install' either via
> Universes or MC. Magma seaside says it needs WADispatcherControlPanel
> (I'm following the load order from http://wiki.squeak.org/squeak/5902
> )
>
> Any suggestion ?
>
> --
> 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
>
--
http://www.a3aan.st
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 "<<<does not work" ];
yourself.
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.
Thanks in advance for any ideas
Keith
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.
Doru
--
www.tudorgirba.comwww.tudorgirba.com/blog
"From an abstract enough point of view, any two things are similar."
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 <div class="post">
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