[Zope] Problem With Installation
Hi; I'm trying to install the latest Plone in a Zope 2.10.5 instance and I get this error: Traceback (most recent call last): File "/usr/local/zope/210/lib/python/OFS/Application.py", line 709, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/usr/local/zope/Products210/ATContentTypes/__init__.py", line 64, in ? import Products.ATContentTypes.content File "/usr/local/zope/Products210/ATContentTypes/content/__init__.py", line 26, in ? import Products.ATContentTypes.content.link File "/usr/local/zope/Products210/ATContentTypes/content/link.py", line 39, in ? from Products.ATContentTypes.content.base import registerATCT File "/usr/local/zope/Products210/ATContentTypes/content/base.py", line 63, in ? from Products.CMFPlone.PloneFolder import ReplaceableWrapper File "/usr/local/zope/Products210/CMFPlone/__init__.py", line 215, in ? from browser import ploneview File "/usr/local/zope/Products210/CMFPlone/browser/ploneview.py", line 12, in ? from Products.CMFPlone import utils File "/usr/local/zope/Products210/CMFPlone/utils.py", line 7, in ? from plone.i18n.normalizer.interfaces import IIDNormalizer ImportError: No module named plone.i18n.normalizer.interfaces Traceback (most recent call last): File "/usr/local/zope/210/lib/python/Zope2/Startup/run.py", line 56, in ? run() File "/usr/local/zope/210/lib/python/Zope2/Startup/run.py", line 21, in run starter.prepare() File "/usr/local/zope/210/lib/python/Zope2/Startup/__init__.py", line 102, in prepare self.startZope() File "/usr/local/zope/210/lib/python/Zope2/Startup/__init__.py", line 278, in startZope Zope2.startup() File "/usr/local/zope/210/lib/python/Zope2/__init__.py", line 47, in startup _startup() File "/usr/local/zope/210/lib/python/Zope2/App/startup.py", line 45, in startup OFS.Application.import_products() File "/usr/local/zope/210/lib/python/OFS/Application.py", line 686, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File "/usr/local/zope/210/lib/python/OFS/Application.py", line 709, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/usr/local/zope/Products210/ATContentTypes/__init__.py", line 64, in ? import Products.ATContentTypes.content File "/usr/local/zope/Products210/ATContentTypes/content/__init__.py", line 26, in ? import Products.ATContentTypes.content.link File "/usr/local/zope/Products210/ATContentTypes/content/link.py", line 39, in ? from Products.ATContentTypes.content.base import registerATCT File "/usr/local/zope/Products210/ATContentTypes/content/base.py", line 63, in ? from Products.CMFPlone.PloneFolder import ReplaceableWrapper File "/usr/local/zope/Products210/CMFPlone/__init__.py", line 215, in ? from browser import ploneview File "/usr/local/zope/Products210/CMFPlone/browser/ploneview.py", line 12, in ? from Products.CMFPlone import utils File "/usr/local/zope/Products210/CMFPlone/utils.py", line 7, in ? from plone.i18n.normalizer.interfaces import IIDNormalizer ImportError: No module named plone.i18n.normalizer.interfaces So I run this from the base of where all my Zope and Plone stuff lives: find . -name normalizer Nothing. So I try this: find . -type f|xargs grep normalizer and get back a bunch of stuff that has nothing to do with what I'm looking for. What do? TIA, Victor ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Problem With Installation
Wrong list, please ask on plone-users. Bette check the plone-users list archive.. as far as I remember this issue has been asked a bunch of times over the last days. -aj --On 26. Dezember 2007 09:43:15 -0400 Victor Subervi <[EMAIL PROTECTED]> wrote: Hi; I'm trying to install the latest Plone in a Zope 2.10.5 instance and I get this error: Traceback (most recent call last): File "/usr/local/zope/210/lib/python/OFS/Application.py", line 709, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/usr/local/zope/Products210/ATContentTypes/__init__.py", line 64, in ? import Products.ATContentTypes.content File "/usr/local/zope/Products210/ATContentTypes/content/__init__.py", line 26, in ? import Products.ATContentTypes.content.link File "/usr/local/zope/Products210/ATContentTypes/content/link.py", line 39, in ? from Products.ATContentTypes.content.base import registerATCT File "/usr/local/zope/Products210/ATContentTypes/content/base.py", line 63, in ? from Products.CMFPlone.PloneFolder import ReplaceableWrapper File "/usr/local/zope/Products210/CMFPlone/__init__.py", line 215, in ? from browser import ploneview File "/usr/local/zope/Products210/CMFPlone/browser/ploneview.py", line 12, in ? from Products.CMFPlone import utils File "/usr/local/zope/Products210/CMFPlone/utils.py", line 7, in ? from plone.i18n.normalizer.interfaces import IIDNormalizer ImportError: No module named plone.i18n.normalizer.interfaces Traceback (most recent call last): File "/usr/local/zope/210/lib/python/Zope2/Startup/run.py", line 56, in ? run() File "/usr/local/zope/210/lib/python/Zope2/Startup/run.py", line 21, in run starter.prepare() File "/usr/local/zope/210/lib/python/Zope2/Startup/__init__.py", line 102, in prepare self.startZope() File "/usr/local/zope/210/lib/python/Zope2/Startup/__init__.py", line 278, in startZope Zope2.startup() File "/usr/local/zope/210/lib/python/Zope2/__init__.py", line 47, in startup _startup() File "/usr/local/zope/210/lib/python/Zope2/App/startup.py", line 45, in startup OFS.Application.import_products() File "/usr/local/zope/210/lib/python/OFS/Application.py", line 686, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File "/usr/local/zope/210/lib/python/OFS/Application.py", line 709, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/usr/local/zope/Products210/ATContentTypes/__init__.py", line 64, in ? import Products.ATContentTypes.content File "/usr/local/zope/Products210/ATContentTypes/content/__init__.py", line 26, in ? import Products.ATContentTypes.content.link File "/usr/local/zope/Products210/ATContentTypes/content/link.py", line 39, in ? from Products.ATContentTypes.content.base import registerATCT File "/usr/local/zope/Products210/ATContentTypes/content/base.py", line 63, in ? from Products.CMFPlone.PloneFolder import ReplaceableWrapper File "/usr/local/zope/Products210/CMFPlone/__init__.py", line 215, in ? from browser import ploneview File "/usr/local/zope/Products210/CMFPlone/browser/ploneview.py", line 12, in ? from Products.CMFPlone import utils File "/usr/local/zope/Products210/CMFPlone/utils.py", line 7, in ? from plone.i18n.normalizer.interfaces import IIDNormalizer ImportError: No module named plone.i18n.normalizer.interfaces So I run this from the base of where all my Zope and Plone stuff lives: find . -name normalizer Nothing. So I try this: find . -type f|xargs grep normalizer and get back a bunch of stuff that has nothing to do with what I'm looking for. What do? TIA, Victor -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376 Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535 Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK E-Publishing, Python, Zope & Plone development, Consulting pgpVVvCzZllGs.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Problem With Installation
Right...wrong list...but I asked the right list 3 days ago and got no response. As far as checking the archives, I tried googling this and came up with nothing at all! I tried googling: "ImportError: No module named plone.i18n.normalizer.interfaces". Maybe you have a better idea? I decided to post to this "father" list because no response from the "child". TIA, Victor On Dec 26, 2007 9:49 AM, Andreas Jung <[EMAIL PROTECTED]> wrote: > Wrong list, please ask on plone-users. Bette check the plone-users list > archive.. as far as I remember this issue has been asked a bunch of times > over the last days. > > -aj > > --On 26. Dezember 2007 09:43:15 -0400 Victor Subervi > <[EMAIL PROTECTED]> wrote: > > > Hi; > > I'm trying to install the latest Plone in a Zope 2.10.5 instance and I > get > > this error: > > > > Traceback (most recent call last): > > File "/usr/local/zope/210/lib/python/OFS/Application.py", line 709, in > > import_product > > product=__import__(pname, global_dict, global_dict, silly) > > File "/usr/local/zope/Products210/ATContentTypes/__init__.py", line 64, > > in ? import Products.ATContentTypes.content > > File "/usr/local/zope/Products210/ATContentTypes/content/__init__.py", > > line 26, in ? > > import Products.ATContentTypes.content.link > > File "/usr/local/zope/Products210/ATContentTypes/content/link.py", line > > 39, in ? > > from Products.ATContentTypes.content.base import registerATCT > > File "/usr/local/zope/Products210/ATContentTypes/content/base.py", line > > 63, in ? > > from Products.CMFPlone.PloneFolder import ReplaceableWrapper > > File "/usr/local/zope/Products210/CMFPlone/__init__.py", line 215, in ? > > from browser import ploneview > > File "/usr/local/zope/Products210/CMFPlone/browser/ploneview.py", line > 12, > > in ? > > from Products.CMFPlone import utils > > File "/usr/local/zope/Products210/CMFPlone/utils.py", line 7, in ? > > from plone.i18n.normalizer.interfaces import IIDNormalizer > > ImportError: No module named plone.i18n.normalizer.interfaces > > Traceback (most recent call last): > > File "/usr/local/zope/210/lib/python/Zope2/Startup/run.py", line 56, in > ? > > run() > > File "/usr/local/zope/210/lib/python/Zope2/Startup/run.py", line 21, in > > run starter.prepare() > > File "/usr/local/zope/210/lib/python/Zope2/Startup/__init__.py", line > 102, > > in prepare > > self.startZope() > > File "/usr/local/zope/210/lib/python/Zope2/Startup/__init__.py", line > 278, > > in startZope > > Zope2.startup() > > File "/usr/local/zope/210/lib/python/Zope2/__init__.py", line 47, in > > startup _startup() > > File "/usr/local/zope/210/lib/python/Zope2/App/startup.py", line 45, in > > startup > > OFS.Application.import_products() > > File "/usr/local/zope/210/lib/python/OFS/Application.py", line 686, in > > import_products > > import_product(product_dir, product_name, raise_exc=debug_mode) > > File "/usr/local/zope/210/lib/python/OFS/Application.py", line 709, in > > import_product > > product=__import__(pname, global_dict, global_dict, silly) > > File "/usr/local/zope/Products210/ATContentTypes/__init__.py", line 64, > > in ? import Products.ATContentTypes.content > > File "/usr/local/zope/Products210/ATContentTypes/content/__init__.py", > > line 26, in ? > > import Products.ATContentTypes.content.link > > File "/usr/local/zope/Products210/ATContentTypes/content/link.py", line > > 39, in ? > > from Products.ATContentTypes.content.base import registerATCT > > File "/usr/local/zope/Products210/ATContentTypes/content/base.py", line > > 63, in ? > > from Products.CMFPlone.PloneFolder import ReplaceableWrapper > > File "/usr/local/zope/Products210/CMFPlone/__init__.py", line 215, in ? > > from browser import ploneview > > File "/usr/local/zope/Products210/CMFPlone/browser/ploneview.py", line > 12, > > in ? > > from Products.CMFPlone import utils > > File "/usr/local/zope/Products210/CMFPlone/utils.py", line 7, in ? > > from plone.i18n.normalizer.interfaces import IIDNormalizer > > ImportError: No module named plone.i18n.normalizer.interfaces > > > > So I run this from the base of where all my Zope and Plone stuff lives: > > find . -name normalizer > > Nothing. So I try this: > > find . -type f|xargs grep normalizer > > and get back a bunch of stuff that has nothing to do with what I'm > looking > > for. What do? > > TIA, > > Victor > > > > -- > ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany > Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376 > Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535 > Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK > > E-Publishing, Python, Zope & Plone development, Consulting > ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-a
[Zope] import ZGadflyDA.gadfly: Ext Method or Python Script?
Hi, I would like to learn about using Gadfly, on a very little application. I put this in a "Python Script": from Products.ZGadflyDA import gadfly connection = gadfly.gadfly("rktmb_db", "demo") cursor = connection.cursor() cursor.execute("select * from pointage") for x in cursor.fetchall(): print x return printed In a page template, I call that script. I try to view the page template, then I am prompted for login and password (zope HTTP prompt), and my Zope manager login/pass is refused (re-prompted). If I cancel logging in, I get "unauthorized" because I am "not authorized to use ZGadflyDA in this context". So, must I only use external methods (duh!)? Or should I release some permission to make it OK? I am running Zope 2.9. Thank you. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ZPL and GPL: What should one consider when choosing a license?
Ross Patterson <[EMAIL PROTECTED]> writes: > Chris McDonough <[EMAIL PROTECTED]> > writes: > >> On Dec 21, 2007, at 3:53 PM, Ross Patterson wrote: > >> Now I've gotta run out of here before a licensing discussion breaks >> out. ;-) > > I suppose this topic is just too volatile, but it would be great to > have some documentation somewhere for developers like myself who don't > really have strongly formed opinions or practices on licensing. I'd > love to have a page I can go to, read the facts, a sampling of the > opinions, all provided just for the purposes of giving developers a > resource for making their own decision. I'm really a bit embarrassed that I started this thread. All I really wanted was to find or maybe instigate the creation of resources for developers such as myself who want to learn enough about the licenses available to make a choice. I don't want to participate in or instigate a licensing debate. This is not to say I don't think it's worth debating. I think impassioned opinions and debates about licensing are necessary and healthy. It's just not why I started this thread. The amusing thing is much of the most useful information I've gotten has been off list. :) It seems as though a creating an informative resource on licensing in the Zope and/or Plone communities is not possible due to these impassioned opinions. As such, I'd like to to consider that conclusion to be the resolution of this thread. :) Ross ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: ZPL and GPL: What should one consider when choosing a license?
--On 26. Dezember 2007 18:56:43 -0800 Ross Patterson <[EMAIL PROTECTED]> wrote: The amusing thing is much of the most useful information I've gotten has been off list. :) It seems as though a creating an informative resource on licensing in the Zope and/or Plone communities is not possible due to these impassioned opinions. As such, I'd like to to consider that conclusion to be the resolution of this thread. :) You'll can solve the gap between the followers of the purity of the GPL and people just trying to their job and money. My-last-2-cents-on-this-topic, Andreas pgpHjpAApMhdW.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] import ZGadflyDA.gadfly: Ext Method or Python Script?
--On 27. Dezember 2007 01:59:10 +0100 Rakotomandimby Mihamina <[EMAIL PROTECTED]> wrote: Hi, I would like to learn about using Gadfly, on a very little application. Consider using a *real* database. Gadfly is a toy and it will be removed in Zope 2.11. And of course you're right: it is a well known fact that PythonScript are restricted on imports and doing other stuff. That's why we have *trusted codde* in form of external methods, Zope products and browser views. In addition: your code does not make much sense from the architectural point of view. Zope has a DB abstraction layer with ZSQL methods. If you do execute SQL code directly this way, be doomed. Please read the RDBMS of "The Zope Book 2.7 edition" (use Google). Andreas pgpKRNvzLmGYq.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] import ZGadflyDA.gadfly: Ext Method or Python Script?
Andreas Jung wrote: I would like to learn about using Gadfly, on a very little application. Consider using a *real* database. Gadfly is a toy and it will be removed in Zope 2.11. Okay. And of course you're right: it is a well known fact that PythonScript are restricted on imports and doing other stuff. That's why we have *trusted code* in form of external methods, Zope products Okay. I tried on Gadfly in order to test my SQL statements. But are Product's *.py files (those in the "Products" FS directory) also restricted that way? In addition: your code does not make much sense from the architectural point of view. Zope has a DB abstraction layer with ZSQL methods. I really want to use ZPT+Python on the thing I am developping. Is there any hint to have: "ZQSL Methods" -> "Python Sscript" -> "ZPT" Thank you for all. I am going to have a look at the ZOpe book, as you said. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )