[Silva-general] Silva News Network - Future Publishing bug?
Andy Altepeter
aaltepet at bethel.edu
Thu Jan 26 14:21:35 CET 2006
Hi Jon,
I've noticed this already, and created an issue (as well as a patch) for it:
https://infrae.com/issue/silva/issue1469
As the SilvaDocument status does no longer has a publish_now_flag (did it
ever?) I just removed it from NewsItem's template.
Andy
On Thursday 26 January 2006 4:12 am, Jon Bowlas wrote:
> Hi All,
>
> I've just been trying to set a news article to publish in the future but
> when I set the content publish time in the status_tab on a news article and
> click publish now I get the following error:
>
> Error Type: KeyError
> Error Value: 'publish_now_flag'
>
> I've noticed that tab_status uses the template tab_status_macros which
> defines field as view/tab_status_form_change_settings/publish_now_flag. But
> in tab_status_form_change_settings there is no reference to a field
> publish_now_flag. So I'm assuming if this is the problem. But how would I
> resolve this? Any help would be appreciated.
>
> Heres my traceback:
>
> Traceback (innermost last):
> Module ZPublisher.Publish, line 101, in publish
> Module ZPublisher.mapply, line 88, in mapply
> Module ZPublisher.Publish, line 39, in call_object
> Module Products.FileSystemSite.FSPythonScript, line 104, in __call__
> Module Shared.DC.Scripts.Bindings, line 306, in __call__
> Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
> Module Products.FileSystemSite.FSPythonScript, line 160, in _exec
> Module None, line 66, in tab_status_approve
> - <FSPythonScript at
> /silva/service_views/SilvaNews/edit/VersionedContent/NewsItem/tab_status_ap
>prove used for
> /silva/service_views/SilvaNews/edit/VersionedContent/NewsItem/PlainArticle>
> - Line 66
> Module Shared.DC.Scripts.Bindings, line 306, in __call__
> Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
> Module Products.FileSystemSite.FSPageTemplate, line 191, in _exec
> Module Products.FileSystemSite.FSPageTemplate, line 124, in pt_render
> Module Products.PageTemplates.PageTemplate, line 96, in pt_render
> - <FSPageTemplate at
> /silva/service_views/Silva/edit/VersionedContent/tab_status used for
> /silva/service_views/SilvaNews/edit/VersionedContent/NewsItem/PlainArticle>
> Module TAL.TALInterpreter, line 190, in __call__
> Module TAL.TALInterpreter, line 234, in interpret
> Module TAL.TALInterpreter, line 407, in do_optTag_tal
> Module TAL.TALInterpreter, line 389, in no_tag
> Module TAL.TALInterpreter, line 234, in interpret
> Module TAL.TALInterpreter, line 671, in do_useMacro
> Module TAL.TALInterpreter, line 234, in interpret
> Module TAL.TALInterpreter, line 694, in do_defineSlot
> Module TAL.TALInterpreter, line 234, in interpret
> Module TAL.TALInterpreter, line 409, in do_optTag_tal
> Module TAL.TALInterpreter, line 394, in do_optTag
> Module TAL.TALInterpreter, line 389, in no_tag
> Module TAL.TALInterpreter, line 234, in interpret
> Module TAL.TALInterpreter, line 637, in do_condition
> Module TAL.TALInterpreter, line 234, in interpret
> Module TAL.TALInterpreter, line 407, in do_optTag_tal
> Module TAL.TALInterpreter, line 389, in no_tag
> Module TAL.TALInterpreter, line 234, in interpret
> Module TAL.TALInterpreter, line 671, in do_useMacro
> Module TAL.TALInterpreter, line 234, in interpret
> Module TAL.TALInterpreter, line 407, in do_optTag_tal
> Module TAL.TALInterpreter, line 389, in no_tag
> Module TAL.TALInterpreter, line 234, in interpret
> Module TAL.TALInterpreter, line 460, in do_setLocal_tal
> Module Products.PageTemplates.TALES, line 221, in evaluate
> - Line 251, Column 0
> - Expression:
> standard:'view/tab_status_form_change_settings/publish_now_flag'
> - Names:
> {'container': <DirectoryViewSurrogate instance at 03960CE0>,
> 'context': <DirectoryViewSurrogate instance at 03A38B90>,
> 'default': <Products.PageTemplates.TALES.Default instance at
> 0x0107BF08>, 'here': <DirectoryViewSurrogate instance at 03A38B90>,
> 'loop': <SafeMapping instance at 02C935B0>,
> 'modules':
> <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
> 0x01072238>,
> 'nothing': None,
> 'options': {'args': (),
> 'message':
> <Products.Silva.i18n.silvamessageid.SilvaMessageIDUnicode instance at
> 0x03979468>,
> 'message_type': 'feedback'},
> 'repeat': <SafeMapping instance at 02C935B0>,
> 'request': <HTTPRequest,
> URL=http://wu5.reg.ucl.ac.uk:8080/silva/test/test/edit/tab_status_approve>,
> 'root': <Application instance at 01F82AA0>,
> 'template': <FSPageTemplate at
> /silva/service_views/Silva/edit/VersionedContent/tab_status used for
> /silva/service_views/SilvaNews/edit/VersionedContent/NewsItem/PlainArticle>
>, 'traverse_subpath': [],
> 'user': admin}
> Module Products.PageTemplates.Expressions, line 174, in __call__
> Module Products.PageTemplates.Expressions, line 162, in _eval
> Module Products.PageTemplates.Expressions, line 116, in _eval
> - __traceback_info__: view
> Module Products.PageTemplates.Expressions, line 320, in
> restrictedTraverse - __traceback_info__: {'path':
> ['tab_status_form_change_settings', 'publish_now_flag'],
> 'TraversalRequestNameStack': []}
> Module OFS.ObjectManager, line 670, in __getitem__
> KeyError: 'publish_now_flag'
>
> Jon Bowlas
> UCL
> _______________________________________________
> Silva-general mailing list
> Silva-general at infrae.com
> https://infrae.com/mailman/listinfo/silva-general
More information about the Silva-general
mailing list