From: Vincenzo Di S. <vin...@re...> - 2004-11-29 17:31:51
|
You have to create in your portal a Repository instance from the ZMI and call it repository. vds PS: perhaps we need a demo customization policy in bundle with the product, at least for versioning, what do you guys think about that ? On Mon, 2004-11-29 at 17:22 +0000, Laurence Rowe wrote: > Thanks for the quick response. I have tried accessing=20 > document/version_history_page, but keep getting an AttributeError on=20 > repository. This is on a fresh plone site, no archetypes, unchanged cvs=20 > checkout of CMFEditions from today and collective CMFUid and=20 > ZopeVersionControl. All I have done is install CMFEditions from the=20 > portal control panel. >=20 > Traceback follows. >=20 > thanks, >=20 > Laurence >=20 > 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 Shared.DC.Scripts.Bindings, line 306, in __call__ > Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec > Module Products.CMFCore.FSPageTemplate, line 191, in _exec > Module Products.CMFCore.FSPageTemplate, line 124, in pt_render > Module Products.PageTemplates.PageTemplate, line 96, in pt_render > - <FSPageTemplate at /plone/versions_history_form used for=20 > /plone/index_html> > Module TAL.TALInterpreter, line 189, in __call__ > Module TAL.TALInterpreter, line 233, in interpret > Module TAL.TALInterpreter, line 670, in do_useMacro > Module TAL.TALInterpreter, line 233, in interpret > Module TAL.TALInterpreter, line 408, in do_optTag_tal > Module TAL.TALInterpreter, line 393, in do_optTag > Module TAL.TALInterpreter, line 388, in no_tag > Module TAL.TALInterpreter, line 233, in interpret > Module TAL.TALInterpreter, line 701, in do_defineSlot > Module TAL.TALInterpreter, line 233, in interpret > Module TAL.TALInterpreter, line 408, in do_optTag_tal > Module TAL.TALInterpreter, line 393, in do_optTag > Module TAL.TALInterpreter, line 388, in no_tag > Module TAL.TALInterpreter, line 233, in interpret > Module TAL.TALInterpreter, line 649, in do_defineMacro > Module TAL.TALInterpreter, line 233, in interpret > Module TAL.TALInterpreter, line 693, in do_defineSlot > Module TAL.TALInterpreter, line 233, in interpret > Module TAL.TALInterpreter, line 721, in do_onError_tal > Module TAL.TALInterpreter, line 233, in interpret > Module TAL.TALInterpreter, line 408, in do_optTag_tal > Module TAL.TALInterpreter, line 393, in do_optTag > Module TAL.TALInterpreter, line 388, in no_tag > Module TAL.TALInterpreter, line 233, in interpret > Module TAL.TALInterpreter, line 483, in do_insertText_tal > Module Products.PageTemplates.TALES, line 227, in evaluateText > Module Products.PageTemplates.TALES, line 221, in evaluate > - Line 10, Column 4 > - Expression: <PythonExpr here.portal_versions.saveAsNewVersion(here)= > > - Names: > {'container': <PloneSite instance at 4172fef0>, > 'context': <Document at /plone/index_html>, > 'default': <Products.PageTemplates.TALES.Default instance at=20 > 0x40b25f0c>, > 'here': <Document at /plone/index_html>, > 'loop': <SafeMapping instance at 41945310>, > 'modules':=20 > <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at=20 > 0x40b0edac>, > 'nothing': None, > 'options': {'args': ()}, > 'repeat': <SafeMapping instance at 41945310>, > 'request': <HTTPRequest,=20 > URL=3Dhttp://idea13:4080/plone/index_html/versions_history_form>, > 'root': <Application instance at 414d1e60>, > 'template': <FSPageTemplate at /plone/versions_history_form used=20 > for /plone/index_html>, > 'traverse_subpath': [], > 'user': manager} > Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ > - __traceback_info__: here.portal_versions.saveAsNewVersion(here) > Module Python expression=20 > "here.portal_versions.saveAsNewVersion(here)", line 1, in <expression> > Module Products.CMFEditions.VersionTool, line 351, in saveAsNewVersion > Module Products.CMFEditions.VersionTool, line 101, in=20 > _getVersionRepository > AttributeError: repository >=20 >=20 >=20 > Vincenzo Di Somma wrote: > > Hi, > > it should work fine out of the box, the only thing you have to configur= e > > is a new action that shows the versions page on the portal types you > > like more. > >=20 > > vds > >=20 > >=20 > > On Mon, 2004-11-29 at 16:31 +0000, Laurence Rowe wrote: > >=20 > >>Hi, > >> > >>I've downloaded CMFEditions and it's dependencies, but now I'm stuck.=20 > >>How do you actually use the thing? I want to build a simple document=20 > >>management system, where previous versions of documents are always=20 > >>available. Is this possible? > >> > >>regards, > >> > >>Laurence > >> >=20 >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now.=20 > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Collective-versioning mailing list > Col...@li... > https://lists.sourceforge.net/lists/listinfo/collective-versioning |