Extension profile does not change any properties
Martin Aspeli
optilude at gmx.net
Mon Nov 19 00:19:52 UTC 2007
Jinshi wrote:
> Hello,
>
> I am reading Martin Aspeli's new book and I find it is very helpful even
> for plone-newbie like me. Finally I have the feeling of "that makes sense"!
I'm glad. :)
By the way - plone-user would probably be am ore appropriate mailing
list for this type of question, but don't worry.
> Not surprisingly, I still have plenty questions. Here is one of them. I
> created profiles/default/properties.xml and I am trying to change the
> site title and description. I also updated the configure.zcml file in my
> product to use extension profile. If you read that book, I just did what
> is described in Chapter 5. Then I run a test to see if I changed the
> title: self.portal.getProperty('title'). But it is still "Plone site".
Does it work if you start up Plone and install it through portal_setup?
If so, it's a problem with your test setup (in tests/base.py, if you're
following the conventions int he book). If not, then you'll need to
paste your code (configure.zcml, properties.xml at a minimum).
> The plone test site started fine with just a couple deprecation warning.
> Does anyone have any idea how I can figure the problem out? And in
> general how do I debug profile and zcml? Here, say how do I check if my
> extension profile is used? What commands can I use in the pdb?
If it shows up in portal_setup, then at least your product registers
(you didn't forget the ZCML slug, did you?) and portal_setup finds it.
Martin
--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book
More information about the Product-Developers
mailing list