Re: SilvaNews-1.0 bugs/questions

Andy <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
> i've never added a silva object trough the zmi so i cannot comment on
> this one.
>
> > 2) I am unable to add "Silva Folders" or "Silva Publications"
> > underneath a news publication.  I get an error: AttributeError:
> > is_version_published (that end of email).  Using zope 2.7.2-0 and
> > silva-1.1
>
> this is a known bug. i've learned so far that silva folders and silva
> publications shouldn't be available at all as addables in a news
> publication (now the question arises: how should i structure my news?
> multiple news publications?).

About this bug:

On line 293 of 
Products/SilvaNews/views/edit/Container/NewsPublication/tab_edit.pt, I 
changed this:

<a style="float: right;" 
     title="content approved, or published..." 
     tal:attributes="href item/absolute_url" 
     tal:condition="python: item.is_version_published() or 
item.is_version_approved()">

to: 

<a style="float: right;" 
     title="content approved, or published..." 
     tal:attributes="href item/absolute_url" 
     tal:condition="python: item.implements_versioned_content() and 
(item.is_version_published() or item.is_version_approved())">

And it appears to have cleared up this bug.

Cheers,
Andy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.