[Product-Developers] to which extent zcml (and/or other zope 3 tech) applies in plone2.5.x (zope2.9)

Yu Huang yuhuang at usc.edu
Wed Apr 2 07:14:46 UTC 2008


Hi

I'm writing a product to import/export stuff out of an external
mysql/postgresql db.

One simple portal type is a phenotype type which reads data from db
(customize edit/factory), take them as its attributes and display them
(view).

my machine is ubuntu 7.10. plone2.5.2-1, zope2.9 (2.9.7-1). Five
1.4.2.pythonproducts (
http://plone.org/products/pythonproducts)


What i read:

I read "Professional Plone development" (too new, plone 3), "The Definitive
Guide to Plone" (too old, plone 2.1)

also i read borg http://plone.org/documentation/tutorial/borg, which claims
to apply to plone2.5.x.

also "Using zope.formlib With Plone" from
http://plone.org/documentation/tutorial/using-zope-formlib-with-plone, which
claims to apply to plone 2.5.x


My policy:

I wanna use more zope 3 technology (interface, zcml, utility, adaptor, view,
event), and avoid archetype, but it seems very hard to identify which zope 3
bit applies to plone 2.5.x.

Do you guys have a clear list of such things?
like could i replace Extensions/Install.py entirely with zcml (profiles/...,
)?  the example product in "Using zope.formlib With Plone" doesn't have
Extensions/install.py. but it didn't show up in "Add/Remove Products" panel
(i installed pythonproducts, and ZCML slug in etc/package-includes).


What i did:

i started my project using paster.

paster create -t plone2.5_theme Variation
Then i built all kinds of stuff modelled mainly after "Professional Plone
Development"'s chapter 12 code, sometimes the example product in "Using
zope.formlib With Plone". Test every python code in Clouseau and change them
if they appear too advanced in my plone 2.5.2 environment.

but i can't test zcml stuff. After i put my product into Products/ or
lib/python/, and thru some initial apparent bugs. The product gets
installed. Install log shows Types , Skins installed. but when i go to any
directory, it's NOT in the dropdown "add to folder" menu. and when i do
listTypes(PROJECTNAME) for my product in clousseau, it returns empty list.

i have the default paster 'Extensions/Install.py' +
'profiles/default/types/xxx.xml', 'browser'/'content' directory.

it's very confusing/frustrating so far. Any enlightening points?

Yu

-- 
http://www-scf.usc.edu/~yuhuang/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20080402/685d4590/attachment-0001.html>


More information about the Product-Developers mailing list