[Erp5-dev] All selection deleter for Managers

Łukasz Nowak lukasz.nowak at ventis.com.pl
Thu Aug 28 14:57:38 CEST 2008


Hello,

On Thu, 2008-08-28 at 14:49 +0200, Łukasz Nowak wrote:
> Hello,
> 
> Very often while playing with developer site, and some times after
> upgrades I'd like to be able to delete all portal selections. I did it
> often by scripts, etc, but it is much easier for me to navigate into
> portal_selections/manage_viewSelections and do something there.
> 
> So I added method to remove all selections and update management screen.
> 
> Patch attached, what is your opinion?

There is a problem - getSelectionNameList returns selections for current
user, not every selection in system. And there is no
getGlobalSelectionNameList.

AFAIK getSelectionNameList is used in same management screen, so is
currently logged manager did not use selection, used by normal user, he
is not able to operate on it from management screen - same applies for
methods provided by me...

As I'd like such selection preview functionality, user-mapped, global,
etc, I'd like to work more on it. Is it acceptable to merge it with
current management screen - so I would try to do it generic enough.

Regards,
Luke

-- 
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.





More information about the Erp5-dev mailing list