[Silva-general] silva-2.2.1 -> silva-2.3

Marc Petitmermet petitmermet at mat.ethz.ch
Tue Feb 8 09:38:54 CET 2011


On 07. Feb 2011, at 07. Feb 2011|17:30 Uhr, Antonin Amand wrote:

>> thanks antonin. that did more or less the trick. i had to change some things in my buildout.cfg and add the "templates" folder (deploy.ini: Input file '/path/to/silva/instance/templates/deploy.ini' does not exist.).
> 
> The silva documentation assumes that you checked out a silva buildout. Good that you understood you needed the templates folder.

well, this comes from a silva instance created with buildout and there is just no templates folder there. i guess this templates folder is new with silva-2.3?

anyway. nothing seems to work. i run the zodbupdate [1] and silvaupdate [2] but i think that none of those run through to the end. can it be that these scripts "destroy" data when run more than once? after the first run i could get into the silva root in the zmi but i could not reach into the silva services. now, i cannot even get into the silva root from the zmi [3] and i cannot create a new silva root folder as well.

regards,
marc


------------------------------
[1]
# ./bin/zodbupdate -p Python -f var/filestorage/Data.fs
Loaded 9 rules from Products.SilvaNews:renames
Loaded 1 rules from silva.pas.base:renames
Loaded 3 rules from Products.SilvaOAI:renames
Loaded 13 rules from silva.core.upgrade:renames
Warning: Missing factory for Products.PluginIndexes.TextIndex.TextIndex TextIndex
Warning: Missing factory for Products.PluginIndexes.TextIndex.Lexicon Lexicon
Warning: Missing factory for Products.PluginIndexes.TextIndex.Splitter.ZopeSplitter.ZopeSplitter ZopeSplitter
Warning: Missing factory for Products.SilvaLayout.formulator_extension SilvaLayoutListField
Warning: Missing factory for silva.app.oaiprovider IOAIProviderExtension
Warning: Missing factory for Products.SilvaExtETHLDAP.LDAPMembership LDAPMemberService
Warning: Missing factory for Products.SilvaExtETHLDAP.LDAPGroupsService LDAPGroupsService
Warning: Missing factory for Products.SilvaExtETHLDAP.LDAPMembership LDAPMember
Warning: Missing factory for Products.SilvaExtETHLDAP.LDAPMembership CachedLDAPMember
Warning: Missing factory for Products.Groups.ZGroupsMapping ZGroupsMapping
Warning: Missing factory for Products.Silva.VersionedContent CachedData
Warning: Missing factory for Products.XMLWidgets.EditorService EditorService
Warning: Missing factory for Products.SilvaDocument.EditorSupportNested EditorSupport
Warning: Missing factory for Products.SilvaDocument.ServiceCodeSourceCharset CodeSourceCharsetService
Warning: Missing factory for Products.SilvaExtETHLDAP.interfaces IGroupService
Warning: Missing factory for Products.SilvaExtETHLDAP.interfaces IMemberService
Class Products.LDAPUserFolder.LDAPUserFolder.LDAPUserFolder has a security declaration for nonexistent method 'getEncryptedPassword'
Dry run selected or no changes, aborting transaction.

------------------------------
[2]
# ./bin/silvaupdate -c parts/instance/etc/zope.conf /silva
/data/wcms/zopesites/Silva-2.3/parts/distros-extra/ETHPersonSearch/PersonSearch.py:11: DeprecationWarning: InitializeClass is deprecated. import from App.class_init instead
  from Globals import InitializeClass, package_home
/data/wcms/zopesites/Silva-2.3/parts/distros-extra/ETHPersonSearch/PersonSearch.py:11: DeprecationWarning: package_home is deprecated. import from App.Common instead
  from Globals import InitializeClass, package_home
/data/wcms/zopesites/Silva-2.3/eggs/Products.ZMySQLDA-3.1.1-py2.6.egg/Products/ZMySQLDA/DABase.py:91: DeprecationWarning: HTMLFile is deprecated. import from App.special_dtml instead
  from Globals import HTMLFile
No handlers could be found for logger "Init"
/data/wcms/zopesites/Silva-2.3/parts/distros-extra/SilvaExtCSCollection/code_source/InlineViewer.py:33: DeprecationWarning: translate is deprecated. Please import from silva.translations instead, this import location will be removed in Silva 2.3.
  from Products.Silva.i18n import translate as _
/data/wcms/zopesites/Silva-2.3/parts/distros-extra/SilvaExtETHLDAP/install.py:3: DeprecationWarning: IMember is deprecated. Please import from silva.core.interface instead, this import location will be removed in Silva 2.3.
  from Products.Silva.interfaces import IMember
/data/wcms/zopesites/Silva-2.3/eggs/grokcore.view-1.12.2-py2.6.egg/grokcore/view/templatereg.py:91: UserWarning: Found the following unassociated template(s) when grokking 'silva.core.smi.navigation': sminavigationlistingforcontainer.tmp.  Define view classes inheriting from grok.View to enable the template(s).
  warnings.warn(msg, UserWarning, 1)
/data/wcms/zopesites/Silva-2.3/eggs/grokcore.view-1.12.2-py2.6.egg/grokcore/view/templatereg.py:91: UserWarning: Found the following unassociated template(s) when grokking 'silva.core.smi.smi': smitopmenu, smiremotebutton, smitopmenuitem, smibutton.  Define view classes inheriting from grok.View to enable the template(s).
  warnings.warn(msg, UserWarning, 1)
upgrade from version 2.2 to version 2.3
upgrading from 2.2 to 2.3.
upgrading root to version 2.3b1.
upgrading root to version 2.3b2.
/data/wcms/zopesites/Silva-2.3/eggs/Products.FileSystemSite-2.3-py2.6.egg/Products/FileSystemSite/DirectoryView.py:418: UserWarning: DirectoryView SilvaFind refers to a non-existing path SilvaFind/views
  % (self.id, dirpath), UserWarning)
/data/wcms/zopesites/Silva-2.3/eggs/Products.FileSystemSite-2.3-py2.6.egg/Products/FileSystemSite/DirectoryView.py:418: UserWarning: DirectoryView SilvaForum refers to a non-existing path SilvaForum/views
  % (self.id, dirpath), UserWarning)
Traceback (most recent call last):
  File "./bin/silvaupdate", line 222, in <module>
    silva.core.upgrade.script.upgrade()
  File "/data/wcms/zopesites/Silva-2.3/eggs/silva.core.upgrade-2.3-py2.6.egg/silva/core/upgrade/script.py", line 104, in upgrade
    raise error
TypeError: ("'ExtensionClass.ExtensionClass' object is not iterable", <function Provides at 0x2b349a01aed8>, (<class 'Products.Silva.ExtensionService.ExtensionService'>, <class 'silva.app.oaiprovider.IOAIProviderExtension'>, <InterfaceClass silva.app.redirectlink.IExtension>, <InterfaceClass Products.SilvaNews.interfaces.ISilvaNewsExtension>))
Closing database.

------------------------------
[3]
# tail -f var/log/error.log 
Traceback (most recent call last):
  File "/data/wcms/zopesites/Silva-2.3/eggs/Zope2-2.12.12-py2.6-linux-x86_64.egg/OFS/Application.py", line 646, in install_product
    global_dict, global_dict, silly)
  File "/data/wcms/zopesites/Silva-2.3/parts/distros-extra/SilvaExtIMAPCalendar/__init__.py", line 4, in <module>
    import install
  File "/data/wcms/zopesites/Silva-2.3/parts/distros-extra/SilvaExtIMAPCalendar/install.py", line 11, in <module>
    from Products.SilvaExtETHAppLayout.install import deleteObjectsHelper, set_to_addables, get_widget_path, \
  File "/data/wcms/zopesites/Silva-2.3/parts/distros-extra/SilvaExtETHAppLayout/install.py", line 12, in <module>
    from Products.Silva.adapters.addables import getAddablesAdapter
ImportError: No module named addables

2011-02-08 09:23:30,354 WARNING [OFS.Uninstalled] Could not import class 'LDAPGroupsService' from module 'Products.SilvaExtETHLDAP.LDAPGroupsService'
2011-02-08 09:23:30,356 WARNING [OFS.Uninstalled] Could not import class 'LDAPMemberService' from module 'Products.SilvaExtETHLDAP.LDAPMembership'
2011-02-08 09:23:30,358 WARNING [OFS.Uninstalled] Could not import class 'EditorService' from module 'Products.XMLWidgets.EditorService'
2011-02-08 09:23:30,359 WARNING [OFS.Uninstalled] Could not import class 'EditorSupport' from module 'Products.SilvaDocument.EditorSupportNested'
2011-02-08 09:23:30,360 WARNING [OFS.Uninstalled] Could not import class 'CachedLDAPMember' from module 'Products.SilvaExtETHLDAP.LDAPMembership'
2011-02-08 09:23:30,361 WARNING [OFS.Uninstalled] Could not import class 'CodeSourceCharsetService' from module 'Products.SilvaDocument.ServiceCodeSourceCharset'

2011-02-08 09:23:54,673 ERROR [infrae.wsgi] 
Object class: __builtin__.instancemethod
Object path: n/a
Request URL: http://foo:8080/silva/manage_workspace
Request method: GET
User: admin
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Refer: http://foo:8080/manage_main
Traceback (innermost last):
  Module infrae.wsgi.publisher, line 243, in publish
   - Published class: __builtin__.instancemethod
   - Object path: n/a
   - Object type: n/a
  Module ZPublisher.mapply, line 77, in mapply
  Module infrae.wsgi.publisher, line 45, in call_object
  Module App.Management, line 80, in manage_workspace
  Module App.Management, line 55, in filtered_manage_options
  Module Products.Silva.Publication, line 72, in manage_options
TypeError: ('Could not adapt', <Root at silva>, <InterfaceClass silva.core.interfaces.adapters.ISiteManager>)

2011-02-08 09:23:54,674 ERROR [infrae.wsgi] No action defined for last exception

------------------------------
[4]
2011-02-08 09:33:15,742 ERROR [infrae.wsgi] 
Object class: Products.PageTemplates.PageTemplateFile.PageTemplateFile
Object path: /manage_addRootForm
Request URL: http://foo:8080/manage_addProduct/Silva/manage_addRootForm
Request method: GET
User: admin
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Refer: http://foo:8080/manage_main
Traceback (innermost last):
  Module infrae.wsgi.publisher, line 243, in publish
   - Published class: Products.PageTemplates.PageTemplateFile.PageTemplateFile
   - Object path: /manage_addRootForm
   - Object type: Page Template (File)
  Module ZPublisher.mapply, line 77, in mapply
  Module infrae.wsgi.publisher, line 45, in call_object
  Module Shared.DC.Scripts.Bindings, line 324, in __call__
  Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
  Module Products.PageTemplates.PageTemplateFile, line 130, in _exec
  Module Products.PageTemplates.PageTemplate, line 80, in pt_render
  Module zope.pagetemplate.pagetemplate, line 113, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 531, in do_optTag_tal
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
  Module Products.PageTemplates.Expressions, line 220, in evaluateStructure
  Module zope.tales.tales, line 696, in evaluate
   - URL: manage_addRootForm
   - Line 6, Column 0
   - Expression: <PathExpr standard:'here/manage_page_header'>
   - Names:
      {'container': <silva.core.conf.utils.__FactoryDispatcher__ object at 0x11dd94d0>,
       'context': <silva.core.conf.utils.__FactoryDispatcher__ object at 0x11dd94d0>,
       'default': <object object at 0x2b6f45b14a40>,
       'here': <silva.core.conf.utils.__FactoryDispatcher__ object at 0x11dd94d0>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x128f82b8>,
       'request': <WSGIRequest, URL=http://foo:8080/manage_addProduct/Silva/manage_addRootForm>,
       'root': <Application at >,
       'template': <PageTemplateFile at /manage_addRootForm>,
       'user': <User 'admin'>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 149, in _eval
  Module zope.tales.expressions, line 124, in _eval
  Module Products.PageTemplates.Expressions, line 79, in boboAwareZopeTraverse
  Module zope.traversing.adapters, line 136, in traversePathElement
   - __traceback_info__: (<silva.core.conf.utils.__FactoryDispatcher__ object at 0x11dd94d0>, 'manage_page_header')
LocationError: ('No traversable adapter found', <silva.core.conf.utils.__FactoryDispatcher__ object at 0x11dd94d0>)

2011-02-08 09:33:15,742 ERROR [infrae.wsgi] No action defined for last exception



More information about the silva-general mailing list