Random ...
 
December 2017
S M T W T F S
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Tags ...
Links



python+zope++:: Dive into Plone 3
Posted at 12.Jan,2008 09:56  Comments 0 / Trackbacks 0 / Like this post!
Technorati tag(s):

Well, it's actually a plunge. Been a while since I dabbled with plone. The last time was with plone 2.1

I chose the unified installer, and installed standalone. Thought it fits my requirements for now.

The first few hours was spent on customizing the look and feel. I thought of jumping into skinning plone with the DIY howto and product, but took a step back and did TTW skinning; i.e putting anything in portal_skins to custom.

Yeah, I know that's not the way to go now, but I needed to put the site online ASAP.

Installed zwiki into zope and plone. Installed Epoz in zope, not plone since I enabled HTML editing for zwiki pages. I had to go to ZMI > Security, and let Member be able to add, delete, etc ZWiki.

After a while, I played around with portlets. Now this really has changed. Didn't want to use Classic portlet just yet, so I installed plone.portlet.static to see how things work nowadays.

It was a hair pulling, head banging moment. The howto looked simple enough.

Get the plone.portal.static via wasy_setup, add -configure.zcml into etc/package/ and we should be running.

However, I was greeted by:

  2008-01-12 08:59:34 ERROR PortalTransforms Problem importing module web_intelligent_plain_text_to_html : No module named intelligenttext.transforms
  2008-01-12 08:59:34 ERROR PortalTransforms Problem importing  module html_to_web_intelligent_plain_text : No module named  intelligenttext.transforms
  2008-01-12 08:59:35 ERROR Application Could not import  Products.ATContentTypes
  Traceback (most recent call last):
  File "/opt/Plone-3.0.5/lib/python/OFS/Application.py", line 709, in  import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "/opt/Plone-3.0.5/zinstance/Products/ATContentTypes/__init__.py", line 64, in ?
    import Products.ATContentTypes.content
  File "/opt/Plone-3.0.5/zinstance/Products/ATContentTypes/content/__init__.py", line 26, in ?
    import Products.ATContentTypes.content.link
  File "/opt/Plone-3.0.5/zinstance/Products/ATContentTypes/content/link.py", line 39, in ?
    from Products.ATContentTypes.content.base import registerATCT
  File "/opt/Plone-3.0.5/zinstance/Products/ATContentTypes/content/base.py", line 63, in ?
    from Products.CMFPlone.PloneFolder import ReplaceableWrapper
  File "/opt/Plone-3.0.5/zinstance/Products/CMFPlone/__init__.py", line 215, in ?
    from browser import ploneview
   File "/opt/Plone-3.0.5/zinstance/Products/CMFPlone/browser/ploneview.py", line 12, in ?
    from Products.CMFPlone import utils
  File "/opt/Plone-3.0.5/zinstance/Products/CMFPlone/utils.py", line 7, in ?
    from plone.i18n.normalizer.interfaces import IIDNormalizer
  ImportError: No module named i18n.normalizer.interfaces
  Traceback (most recent call last):
  File "/opt/Plone-3.0.5/lib/python/Zope2/Startup/run.py", line 56, in ?
    run()
  File "/opt/Plone-3.0.5/lib/python/Zope2/Startup/run.py", line 21, in run
    starter.prepare()
  File "/opt/Plone-3.0.5/lib/python/Zope2/Startup/__init__.py", line 102, in prepare
     self.startZope()
  File "/opt/Plone-3.0.5/lib/python/Zope2/Startup/__init__.py", line  278, in startZope
    Zope2.startup()
  File "/opt/Plone-3.0.5/lib/python/Zope2/__init__.py", line 47, in  startup
    _startup()
  File "/opt/Plone-3.0.5/lib/python/Zope2/App/startup.py", line 45, in  startup
    OFS.Application.import_products()
  File "/opt/Plone-3.0.5/lib/python/OFS/Application.py", line 686, in  import_products
    import_product(product_dir, product_name, raise_exc=debug_mode)
  File "/opt/Plone-3.0.5/lib/python/OFS/Application.py", line 709, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
   File "/opt/Plone-3.0.5/zinstance/Products/ATContentTypes/__init__.py", line 64, in ?
    import Products.ATContentTypes.content
   File "/opt/Plone-3.0.5/zinstance/Products/ATContentTypes/content/__init__.py", line 26, in ?
    import Products.ATContentTypes.content.link
   File "/opt/Plone-3.0.5/zinstance/Products/ATContentTypes/content/link.py", line 39, in ?
    from Products.ATContentTypes.content.base import registerATCT
   File "/opt/Plone-3.0.5/zinstance/Products/ATContentTypes/content/base.py", line 63, in ?
    from Products.CMFPlone.PloneFolder import ReplaceableWrapper
   File "/opt/Plone-3.0.5/zinstance/Products/CMFPlone/__init__.py", line 215, in ?
    from browser import ploneview
    File "/opt/Plone-3.0.5/zinstance/Products/CMFPlone/browser/ploneview.py",  line 12, in ?
    from Products.CMFPlone import utils
  File "/opt/Plone-3.0.5/zinstance/Products/CMFPlone/utils.py", line 7, in ?
    from plone.i18n.normalizer.interfaces import IIDNormalizer
  ImportError: No module named i18n.normalizer.interfaces

Turned out I got the plone namespace mixed. easy_setup puts plone.portal.static into /opt/Plone-3.0.5/Python-2.4.4/lib/python2.4/site-packages and something mucked with PYTHONPATH, swallowing the plone in /opt/Plone-3.0.5/zinstance/lib/python.

Adding the path to PYTHONPATH cured the problem. I changed my zopectl to include /opt/Plone-3.0.5/zinstance/lib/python

I am not done yet. Will be looking at products such as galleries, other type of portlets, etc.


Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/170/tbping 

Comments
Post a comment