[Moin-user] Parameterizable link to a different page in theactions toolbar

Brancovici, George-Sava Dr. George-Sava.Brancovici at eads.com
Wed Sep 9 05:35:17 EDT 2009


What I did was to put the pragma on the page, extend the 
editbar with a new item "ParentPage" which is connected to a 
new action called Parent, defined in Parent.py. It does get called.

The problem is that the "restaurant" parameter defined with 
the pragma seems wo be empty within the execute function in Parent.py.

How do I properly access the "restaurant" parameter in the 
Parent.py action?
 
Thanks!

PS: Sorry for the previous two messages sent to your personal address.

> 
> > -----Original Message-----
> > From: R.Bauer [mailto:rb.proj at gmail.com]
> > Sent: Wednesday, September 09, 2009 10:08 AM
> > To: moin-user at lists.sourceforge.net
> > Subject: Re: [Moin-user] Parameterizable link to a 
> different page in 
> > theactions toolbar
> > 
> > Brancovici, George-Sava Dr. schrieb:
> > > Hi,
> > > 
> > > I'm trying to use the space and extend the actions toolbar to the 
> > > right of the "More actions" combo box with something like a
> > link (or
> > > button,
> > > etc) to a certain target page. The linked page should differ, 
> > > depending on the page on which the user currently is. E.g.
> > if the user
> > > is on the "McDonalds" wiki page, the link will target the
> > "FastFoodRestaurants"
> > > wiki page.
> > > 
> > > There are two catches:
> > > - the linked page is not necessarily the "parent" page, it
> > should be
> > > parameterizable e.g. through a variable defined by the
> > editor on each
> > > page.
> > 
> > can be done by a pragma defintition on the page
> > 
> > #pragma restaurant "McDonalds"
> > 
> > wikiutil.escape(self.request.getPragma('restaurant', defval=''))
> > 
> > > - the link should be on the actions toolbar or somwehere in
> > the upper
> > > part of each page, in order to optimize space usage.
> > 
> > look at theme.__init__.editbarItems search for Discussion for an 
> > example.
> > 
> > 
> > cheers
> > Reimar
> > 
> > > 
> > > Do you have any ideas about how to accomplish this?
> > > 
> > > Thanks!
> > > George
> > > 
> > > 
> > > 
> > > 
> > 
> ----------------------------------------------------------------------
> > > --
> > > 
> > > 
> > 
> ----------------------------------------------------------------------
> > > -------- Let Crystal Reports handle the reporting - Free Crystal 
> > > Reports 2008 30-Day trial. Simplify your report design, 
> integration 
> > > and deployment - and focus on what you do best, core application 
> > > coding. Discover what's new with Crystal Reports now.
> > > http://p.sf.net/sfu/bobj-july
> > > 
> > > 
> > > 
> > 
> ----------------------------------------------------------------------
> > > --
> > > 
> > > _______________________________________________
> > > Moin-user mailing list
> > > Moin-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/moin-user
> > 
> > 
> > --------------------------------------------------------------
> > ----------------
> > Let Crystal Reports handle the reporting - Free Crystal 
> Reports 2008 
> > 30-Day trial. Simplify your report design, integration and 
> deployment 
> > - and focus on what you do best, core application coding. Discover 
> > what's new with Crystal Reports now.  http://p.sf.net/sfu/bobj-july 
> > _______________________________________________
> > Moin-user mailing list
> > Moin-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/moin-user
> > 




More information about the Moin-user mailing list