Skip to content.

Etria Lists

 

[quills-dev] Fwd: [Quills Issue Tracker] New issue: #127 - does not play nicely with Intranet/Extranet Workflow

Tim Hicks tim at sitefusion.co.uk
Mon Jan 7 20:53:48 UTC 2008


Derek Richardson wrote:

>> As things stand, IWeblog.getEntries should return all entries that are
>> viewable by anonymous.  As a first step to resolve the issue report
>> (#127) that started this thread, it probably makes sense to adjust the
>> relevant catalog queries so that they search for content that is
>> anonymously viewable.  Off the top of my head, I can't think how to do
>> that.  Any ideas?
>>
>> Once we've got this issue sorted, then perhaps we could conceive of a
>> changed/additional API that returns weblog entries based on the
>> permissions of the caller/user.  I have no particular need for this
>> myself (and so no need to scatch that itch), but if others do, then it
>> sounds reasonable.
> 
> I thought, perhaps incorrectly, that catalogs would only return
> content the current user can see. Security is built-in?

Ah, good point.  I hadn't realised that, but looking at the 
searchResults method in 
<http://dev.plone.org/plone/browser/Products.CMFPlone/trunk/Products/CMFPlone/CatalogTool.py> 
suggests that you are correct.

> So, if you
> simply query for content that fits the other criteria, it will
> automagically give you the content appropriate for the user.
> 
>>> BTW, this problem is why blogs are borken on my site, but, since all
>>> my workflows are custom, none of the variations on 'hardcode a
>>> workflow name' will work for me.
>> Before your message arrived, I was thinking of adding a (ttw) config
>> option for a list of workflow states that should be deemed as
>> 'published'.  If we can't craft a catalog query as described above,
>> perhaps this would help you and the original poster?
> 
> As long as it is states, and not a single state, that is fine by me.
> ;) I misread it as singular before.

Even though a catalog query seems to do what we're after, I suspect that 
we still want to have config option(s) for specifying which workflow 
states to treat as what.  This would seem to be necessary in order to 
(flexibly) implement IWeblog.getDrafts().

Further, if we don't specify workflow states, then draft/unpublished 
weblog entries will show up (by default) in the standard weblog views 
for weblog authors.  Although you have expressed a desire for such 
behaviour, I think that might be surprising for some users.  That said, 
perhaps a suitable way of marking it up - say, draft entries slightly 
greyed over in the weblog views - would make things clearer, as well as 
being a nice feature.  Like I said, though, this isn't my itch... ;-).


Tim


More information about the quills-dev mailing list