[Plone-IT] configurazione zeoserver e clients

pepe pepe.bz a gmx.net
Mer 11 Mar 2009 13:16:39 UTC


adesso ho fatto qualche passo in avanti.
sn riuscito a far funzionare il zeoserver e ho connesso il zope1 al .fs
nuovo... il problema é che ho dovuto settare zope.conf manualmente
perche con buildout e zope-conf-additional non mi lascia configurare
zodb_main e non capisco esattamente perche. un altro problema adesso é
quello che avento un main separato i siti danno errore:


  Module zope.tales.tales, line 696, in evaluate
   - URL:
file:/opt/src/Plone/eggs/Plone-3.2.1-py2.4.egg/Products/CMFPlone/skins/plone_templates/global_defines.pt
   - Line 8, Column 0
   - Expression: <PathExpr standard:u'plone_view/globalize'>
   - Names:
      {'container': <PloneSite at /Costabiei/costabiei>,
       'context': <ATDocument at /Costabiei/costabiei/home-3>,
       'default': <object object at 0xb7dbb538>,
       'here': <ATDocument at /Costabiei/costabiei/home-3>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object
at 0xdbb9dac>,
       'request': <HTTPRequest,
URL=http://localhost:8081/Costabiei/costabiei/home-3/document_view>,
       'root': <Application at >,
       'template': <FSPageTemplate at /Costabiei/costabiei/document_view
used for /Costabiei/costabiei/home-3>,
       'traverse_subpath': [],
       'user': <User 'admin'>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 161, in _eval
  Module Products.PageTemplates.Expressions, line 123, in render
  Module Products.CMFPlone.browser.ploneview, line 74, in globalize
  Module Products.CMFPlone.browser.ploneview, line 139, in _initializeData
  Module Products.CMFPlone.browser.ploneview, line 532, in have_portlets
  Module plone.portlets.manager, line 49, in visible
  Module plone.portlets.manager, line 65, in portletsToShow
  Module plone.memoize.view, line 55, in memogetter
  Module plone.portlets.manager, line 102, in _lazyLoadPortlets
  Module plone.portlets.retriever, line 55, in getPortlets
  Module plone.app.portlets.portletcontext, line 45, in
globalPortletCategories
  Module plone.app.portlets.portletcontext, line 81, in _getGroupIds
AttributeError: getGroups


avete qualche idea?

pepe wrote:
> é quello che pensavo anch io... ma il risultato poi quando faccio
> partire sia zeo che zope é:
>
> Error: section names must not be re-used within the same container:'1'
>
> soluzioni?
>
> Riccardo Lemmi wrote:
>   
>> On Wednesday 11 March 2009, pepe wrote:
>>   
>>     
>>> ciao a tutti,
>>>
>>> io ho praticamente un zeoserver e 2 client ... i due client hanno
>>> diversi mount point configurati e funzionanti ma ho un solo main_db
>>> Data.fs per tutti e due i client?!
>>>
>>> non mi da veramente dei problemi ma se passo da un zope all altro mi da
>>> degli errori su mount point a cui non é configurato un .fs , perche
>>> ovviamente sta nell altro zope...
>>>
>>> come faccio a configurare il tutto in modo che i due client siano
>>> separati veramente?
>>>     
>>>       
>> Basta configurare Zeo in modo che serva due Data.fs
>> In particolare in <zeo>/etc/zeo.conf basta duplicare:
>>
>> <filestorage 1>
>>   path $INSTANCE/var/Data.fs
>> </filestorage>
>>
>> quindi
>>
>> <filestorage 2>
>>   path $INSTANCE/var/Data2.fs
>> </filestorage>
>>
>> Nei vari zope.cfg andranno poi configurati correttamente gli storage, quindi 
>> nel primo zope:
>>
>> <zodb_db main>
>>    mount-point /
>>    <zeoclient>
>>      server localhost:8100
>>      storage 1
>>      name zeostorage
>>      var $INSTANCE/var
>>    </zeoclient>
>> </zodb_db>
>>
>> e nel secondo zope
>>
>> <zodb_db main>
>>    mount-point /
>>    <zeoclient>
>>      server localhost:8100
>>      storage 2
>>      name zeostorage
>>      var $INSTANCE/var
>>    </zeoclient>
>> </zodb_db>
>>
>>   
>>     
>
> _______________________________________________
> Plone-IT mailing list
> Plone-IT a lists.plone.org
> http://lists.plone.org/mailman/listinfo/plone-it
> http://www.nabble.com/Plone---Italy-f21728.html
>
>   




Maggiori informazioni sulla lista Plone-IT