Reports in Pier

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Reports in Pier

Mariano Martinez Peck
Hi!

I want to make a report with Pier in Seaside that shows all the blogs that satisfy certain condition. Perhaps something more, but not right now.

Which is the easy way to do this with Pier/Magritte ? I thought to subclass PUReportWidget. Should this be a good idea ?

Thanks for the tips!

Mariano

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Reports in Pier

Lukas Renggli
> Which is the easy way to do this with Pier/Magritte ? I thought to subclass
> PUReportWidget. Should this be a good idea ?

Yeah, or even PUStructuresWidget a subclass of PUReportWidget, then
you already get the basic functionality to report on structures.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Reports in Pier

Mariano Martinez Peck


On Thu, Apr 30, 2009 at 5:36 AM, Lukas Renggli <[hidden email]> wrote:
> Which is the easy way to do this with Pier/Magritte ? I thought to subclass
> PUReportWidget. Should this be a good idea ?

Yeah, or even PUStructuresWidget a subclass of PUReportWidget, then
you already get the basic functionality to report on structures.

Nice. It worked perfect. I just subclass and redefine rows like this:

rows
    ^ (self context enumeratorFor: self context root)
        everything contents select: [ :each | (each class = PBPostWithAuthorization) and: [ each notPublished ]   ]

I would like to put isPostWithAuthorization in PBStructure instead of using class comparisson as there is also isPost but this will requiere a method extension with *-package   :(
 
Thanks for the help!
 

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
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