Hi Annick,
> I was able to launch a Descriptioneditor, and I got some report
> rendering, but how do you use your report inside an app ?
DescriptionEditor is just a component to serve as an example in demos
and for me to do some manual testing of the Seaside components.
Certainly it should be possible to subclass and to customize to your
needs, however in all of our web-applications at netstyle.ch where we
are using Magritte we wrote a bunch of highly customized and
simplified description-editors to make it easier for the customers to
build their own forms.
If you just want to use the report component this is slightly more
difficult, have a look at MAReport and its users. As the comment in
MAReport says I don't suggest to use MAReport since it is just the
skeleton of a component, it might work (as for DescriptionEditor) but
there are a lot of things still missing. WATableReport might be worth
to have a look at, however it does not provide an interface with
Magritte.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
Hi,
lots of documentation is now accessible through the wiki website of
SmallWiki 2 :
http://smallwiki.unibe.ch/smallwiki/smallwiki2/
Feel free to send emails to this list or directly to me if you have
any question/comment/problem...
I'm waiting for your comments.
Bye
--
Damien Cassou
pour le Software Composition Group a Berne
Hi all,
I'm creating a new picture gallery based on ideas of Christoph
Wysseier and Jan Rothen.
The package is available on Squeak Source under the name
SW2PictureGalleryV2.
Bye
--
Damien Cassou
pour le Software Composition Group a Berne
Hi,
I've just posted the latest release of SmallWiki 1 on squeakmap, with
various enhancements and bug fixes (Hierarchical Menu and a bug fix
suggested by Adrien, see log files from squeaksource and previous
posts). This release seems to work with Squeak 3.8, and with the new
version of smallwiki (SW2), this release will probably be the latest
release of SW1.
Regards,
Samir
--
Samir SAIDANI
PhD Student in CS / Doctorant en informatique web : http://www.info.unicaen.fr/~saidani
Universite de Caen - Laboratoire GREYC tel : 02-31-56-74-30
Equipe MAD - Campus II - 14032 Caen Cedex fax : 02-31-56-76-30
Hi,
I had troubles with the query visitor which was always returning
empty results. After some investigation, I found out that
MAAccessorRelation>>isSatifisfiedBy: was failing but the error was
eaten by #hasMatch.
MAAccessorRelation>>isSatisfiedBy: contains two typos:
- #descripition is misspelled
- #read: doesn't exist.
I fixed the method and it looks like this:
MAAccessorRelation>>isSatisfiedBy: anObject
| description |
description := anObject description
detect: [ :each | self accessor = each accessor ]
ifNone: [ ^ false ].
^ super isSatisfiedBy: (anObject readUsing: description).
Now the visitor works very nicely.
I have one question about the test case of the query visitor. Some
tests call a #matches: method that doesn't exist. I have tried to use
the methods of the String class but they are all rejected. How does
it work?
--
Dominique
> - What is SW2CurrentContextHolder ??
A dynamic variable. Have a look at WADynamicVariable its subclasses
and their users to understand how they are supposed to work.
> - Why does SW2AddCommand class>>descriptionType uses a Proxy
> to retrieve the list of the concrete subclasses of SW2Structure ??
Because an user might load other packages into the image that define
new subclasses of SW2Structure that should appear in the add dialog.
Therefor the list of possible types needs to be determined at runtime
without the need to flush the cached descriptions.
>> - What is 'Inplace Edit' for ?
>>
>
> It is for editing parts of a page independently.
Indeed, this should become a page editor for users not knowing about
the wiki syntax. It is very unfinished for now, but give it a try and
you will see.
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
> Syntax Page
> ...
> |_ a Header (Links, Level 1)
> |_ a Paragraph
> |_ a Header (Internal Links, Level 2)
> |_ a Paragraph
> |_ a Header (External Links, Level 2)
>
> I think it would be better to have :
>
> Syntax Page
> ...
> |_a Section (Links, Level 1)
> |__ a Paragraph
> |_a Section (Internal Links, level 2)
> |_a Paragraph
> |_a Section (External Links, level 2)
>
> Then the object structure displays clearly the page structure. It
> is logically better I think.
I don't think so, since your representation duplicates the
information such as the one of the level. What is more one might
write pages (see below) that are ambiguous using your representation:
!! aa
! bb
!!! cc
The power behind the object representation is that the original
string of the wiki-input can be precisely restored without the loss
of any character, I doubt that this would be possible with your
suggestion.
Using the level-information in the current implementation in
SmallWiki 2, something like the structure and the sections of the
page can be dynamically calculated, e.g. as seen in SW2TocRenderer.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
Since magritte has a bug with MAAccessorRelation>>isSatisfiedBy:, the
Query visitor does not work anymore.
See http://smallwiki.unibe.ch/bugsinmagritte/ for more informations.
--
Damien Cassou
pour le Software Composition Group a Berne
Hi, I'm sorry because I still write about the problem with unitTest for the action.
Could you tell me please why it's so hard to test with request response.
Could I make an object request and response in test and use parameter?
thanks a lot
Gianluca
> > Hi, could you explain me better what are the problem with actions
> > please? Is it hard to test because are html application or is hard
> > to do the assert?
>
> Yes, exactly it is hard to check the resulting html. Of course you
> could parse it and check for specific tags and contents, or you could
> write regular-expressions ...
>
> What is more, the actions in SmallWiki 1 are badly designed, since
> they heavily couple the business logic and the swazoo html
> generation. Sadly it is almost impossible to test the actions wihout
> dealing with request/response ...
>
> SmallWiki 2 takes a different approach to avoid this problem and thus
> the actions (actually these are commands following the design
> patterns book) can be easily tested.
____________________________________________________________
6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it