[Zope] Doing Date Based Publishing of documents

Joachim Werner joe@iuveno-net.de
Thu, 24 Jan 2002 16:23:17 +0100


Hi!

I don't really know why invoking those hooks doesn't work for you, but I'
suggest using a "less-advanced" technique to control the publishing dates:
Just check for them in the render methods of the objects instead of trying
to control the view permissions (though that might be the most correct way
of doing things).

Controlling the view/access contents information permissions seems only
necessary to me if you have to make absolutely sure that nobody without
proper rights can see the objects before or after the publication period.
Joachim


----- Original Message -----
From: "Sidnei da Silva" <sidnei@x3ng.com.br>
To: <zope@zope.org>
Sent: Thursday, January 24, 2002 3:45 PM
Subject: [Zope] Doing Date Based Publishing of documents


> Hello,
>
> Again I`m posting, cause no one seems to have read my previous email.
>
> Im trying to do, as the subject says, date based publishing. That is, i
have
> a property that says that a document is to be public just after some date,
> and im having problem on doing the check.
>
> What im trying to do is to remove the view permission from anonymous user
if
> date its outside range. Im doing this on the
__before_publishing_traverse__
> and i tried too the __bobo_traverse__. Apparently, the view permission
works
> fine, but when i remove the Access contents information permission, it
keeps
> showing on my menu, even if i just show it if the Access contents
information
> is valid por the current user.
>
> The strange thing, is that if i click on the security tab, logged as
admin,
> suddenly it disappears from the menu, like if the changes were committed
only
> when i click the security tab.
>
> So, HELP! PLEASE!
>
> --
> Sidnei da Silva
> X3ng Web Technology
> sidnei@x3ng.com.br
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>