Skip to content.

Etria Lists

 

[quills-dev] Problems with workflows in QuillsEnabled 1.7.0b1

Victor Sanchez vsanchez at promed.com.pa
Mon Jul 7 01:29:03 UTC 2008


Hi Tim, 

The problem is not with  permision check but with the check for the 
BasePortletRenderer.available. 

        if user.has_permission(AddPortalContent, self.context.aq_inner):
            # XXX Before returning True, we should also check the
            # BasePortletRenderer.available implementation. Not sure how to do
            # that as it's been property-ized on the base class.
            #return True
            return super(Renderer, self).available

bypassing that check (return True) makes the portlet show up.

          Victor


On Sunday 06 July 2008 18:04:36 Tim Hicks wrote:
> Hi Victor,
>
> Victor Sanchez wrote:
> > I am trying to use QuillsEnabled in a Plone 3.1.2 site, using a
> > Intranet/Extranet workflow.
>
> Fyi, I haven't tried that workflow.
>
> > The problem with workflows persists because
> > the "Weblog Admin" portlet (which includes the configure option) only
> > appears when a blog page is "published", since that state is no longer
> > availble.
>
> I'm not sure that is the problem.  The 'available' method on the weblog
> admin portlet renderer
> <http://dev.plone.org/collective/browser/quills.app/trunk/quills/app/portle
>ts/weblogadmin.py> checks to see if the user has permission to add content
> to the context:
>
>    user.has_permission(AddPortalContent, self.context.aq_inner)
>
> If this test passes, then it defers to the default 'available'
> implementation from the base class
> <http://dev.plone.org/collective/browser/quills.app/trunk/quills/app/portle
>ts/base.py> which checks to see if it the portlet is being rendered from
> within the hierarchy of an object acting as a weblog:
>
>    return self.getWeblog() and True or False
>
> You seem to have uncovered a bug, but I'm not sure where it is.  Can you
> think of a reason why either of these two checks given above would fail
> in your case?
>
>
> Tim




More information about the quills-dev mailing list