If I have domain objects listed in a MASingleOptionDescription, how do I more
finely control their representation. Instead of their print string, I'd like
to specify something like spec's #displayBlock: [ :e | ... ]. From the
seaside book, I got the idea to subclass MAStringWriter, but that seems kind
of heavyweight for what would seem like a fairly common task.
What's the best way to do this?
Thanks.
-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/MASingleOptionDescription-Custom-Printing-tp4710335.h…
Sent from the Magritte, Pier and Related Tools mailing list archive at Nabble.com.
I've seen a lot of code like:
MyAbstractSuperclass>>subclassInstanceAppropriateFor: anObject
Which returns an instance of a subclass specialized for anObject. I don't
see how I would integrate this type of code with magritte. Am I missing
something obvious?
Thanks!
-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Instance-Creation-Pattern-tp4709470.html
Sent from the Magritte, Pier and Related Tools mailing list archive at Nabble.com.
This afternoon at ESUG we showed the things we have been doing to eliminate duplication
and add functionalitywhen building Magritte-based applications.
You can use the code by doing in a Pharo 2.0 image:
Gofer new
url: 'http://smalltalkhub.com/mc/DiegoLont/QCMagritte/main';
package: 'ConfigurationOfQCMagritte';
load.
(Smalltalk at: #ConfigurationOfQCMagritte) project development load: #( 'Demo' ).
We have not tested Squeak, Pharo 1.4 and Gemstone, but don't expect any
problems. Squeak needs Announcements for the code to work.
What we showed is an expanded version of the TwitterBootstrap demo.
Diego & Stephan
Tobias,
Yes, I agree. We should have Magritte working for Squeak as well. Thanks for letting me know this is a problem. I know what I thought when I made this change: it is in a pharo specific package, so it should be no problem. Your configuration will fix this, so I uploaded this to smalltalkhub
But I wonder if we better save version 26 of Magritte-Pharo-Model as Magritte-Squeak-Model, so it will be clear in the future what version to use. Of course, when the idea is to incorporate FileModel into squeak in the future, then this configuration is fine.
Best,
Diego
PS: I have added you to the Magritte team on smalltalkhub.
Op 11 sep. 2013, om 01:07 heeft Tobias Pape het volgende geschreven:
> Hi diego,
>
> I am currently trying to load Magritte3 in Squeak.
> In the last years, pharo and squeak shared the platform
> code. However, In july you changed the backend
> for Magritte-Pharo-Model to FileSystem, which is normally
> great, however, it does not currently work in Squeak anymore.
>
> would it be possible, until a matching version for squeak is found
> or until we find a common solution, to use the configuration
> I attached?
>
> Best
> -Tobias
>
>
> <ConfigurationOfMagritte3-topa.48.mcz>
Hi all,
We want to use twitter bootstrap for our presentation "dry-ing" magritte on ESUG. And we would like the configuration to be updated, so it references the updated Seaside3 configuration and Magritte3 configuration on Smalltalk hub. Can someone give me rights or update this configuration?
Thanks in advance. My login at ss3 is diegolont (all small letters).
Regards,
Diego
All,
I'm currently hitting some roadblocks where I think I'm missing some
general understanding of Magritte/Seaside.
My current goal is to make Magritte using Twitter Bootstrap. However the
ability to provide #cssClass and custom renderers seems to only achieve
mixed results. Mostly because some MA* Classes implicitly use other MA*
classes (i.e. MATable depends on MAColumn ...).
I feel like to create a comprehensive Bootstrap usage I have to
duplicate most of the MA* renderers (hierarchy).
So I'm wondering whether I missed some functionality to plugin custom
behavior into the hierarchy or whether the provided hierarchies are
"just" an example which only can be customized to a certain point.
Everything beyond has to be done "manually".
Best Regards,
Udo
I committed a new Metacello config, and copied it to sqs/Meta...Repo, and
ss3...MetaRepoForPharo20 with the following changes:
* Bless 3.0 as stable (it was already declared as such by the symbolic
version)
* Create new 3.1 development version, using semantic enhancement minor
version bump, to incorporate Morphic enhancements
* Declare 3.1 as the symbolic development version
The Morphic enhancements are:
* Implement basic working One-to-many relationship in Morphic with edit and
remove features
* Refactor Morph building
* Initial implementation of Morphic One-to-one relationships
* Use DateModel (from Spec) for Dates in Morphic
-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Magritte3-3-1-tp4693017.html
Sent from the Magritte, Pier and Related Tools mailing list archive at Nabble.com.
All,
is there a Framework for Magritte somewhere allowing you to build custom
queries during run time? Maybe even with a component based interface on
top of it?
Best Regards,
Udo+
I set up a Jenkins matrix job for Magritte3:
https://ci.inria.fr/pharo-contribution/job/Magritte3
The only failing build is magritte #development version on Pharo 3. I
think this is due to a problem in ConfigurationOfGrease. I sent a fix
to the seaside mailing list and I'm waiting for them to accept the mcz
(as I don't have write access on smalltalkhub).
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without
losing enthusiasm."
Winston Churchill