plonewars.com

June 9th, 2007

3 open source e-Government projects merge and launch PloneGov.org

Open source experts from the public sector, community and SME’s participated in the first Plone e-government international workshop. After two days of intense work the group decided to merge into 1 common project 3 e-government initiatives: CommunesPlone

3 open source e-Government projects merge and launch PloneGov.org

Originally from del.icio.us/tag/plone by nbossut


from Yoda http://plonewars.com/2007/06/09/3-open-source-e-government-projects-merge-and-launch-plonegovorg-2/







June 9th, 2007

Download — Plomino

Download — Plomino

Originally from del.icio.us/tag/plone by simbot


from Yoda http://plonewars.com/2007/06/09/download-%e2%80%94-plomino/







June 9th, 2007

Plone Content – SWiK

Plone Content – SWiK

Originally from del.icio.us/tag/plone by knolly42


from Yoda http://plonewars.com/2007/06/09/plone-content-swik/







June 9th, 2007

Index of /~ben/funkload

Index of /~ben/funkload

Originally from del.icio.us/tag/plone by jladage


from Yoda http://plonewars.com/2007/06/09/index-of-benfunkload/







June 9th, 2007

Maurits van Rees: Minimally overwriting a content type

Maurits van Rees: Minimally overwriting a content type

Originally from del.icio.us/tag/plone by wsfulmer


from Yoda http://plonewars.com/2007/06/09/maurits-van-rees-minimally-overwriting-a-content-type-2/







June 9th, 2007

Maurits van Rees: Minimally overwriting a content type

Sometimes you want to use an existing content type, but with slightly different settings.  You might have a client who is technically happy to add a Document to a Folder, but who would rather add Eggs to Baskets.  In other words: he wants to use the Document and Folder content types, but with a different name.  Also, he might want to put only Eggs in his basket, and not Images and Files. You might be able to do this with zero lines of python code! The trick is that you can use GenericSetup to do your tweaking.
You make a new product: basket. You put that in your Products directory. You add an empty __init__.py. You add a profiles/default directory and register it in configure.zcml:

<configure
    xmlns="http://namespaces.zope.org/genericsetup"
    i18n_domain="genericsetup">
  <registerProfile
      name="default"
      title="Basket profile"
      description="Basket"
      provides="Products.GenericSetup.interfaces.EXTENSION"
      for="Products.CMFPlone.interfaces.IPloneSiteRoot"
      />
</configure>

You add types.xml in profile/default:

<?xml version="1.0"?>
<object name="portal_types" meta_type="Plone Types Tool">
 <object name="Basket"
    meta_type="Factory-based Type Information with dynamic views"/>
</object>

After this, you copy CMFPlone/profiles/default/types/Folder.xml to profiles/default/types/Basket.xml. Then you change a few lines there . The diff is here:

< <object name="Folder"---> <object name="Basket"5c5<  <property name="title">Folder</property>--->  <property name="title">Basket</property>7c7<     name="description">A folder which can contain other items.</property>--->     name="description">Basket for Eggs</property>9c9<  <property name="content_meta_type">ATFolder</property>--->  <property name="content_meta_type">Basket</property>14,15c14,22<  <property name="filter_content_types">False</property><  <property name="allowed_content_types"/>--->  <property name="filter_content_types">True</property>>  <property name="allowed_content_types">>   <element value="Egg"/>>  </property>20,21d26<   <element value="folder_tabular_view"/><   <element value="atct_album_view"/>

Then you restart Zope, go to portal_Setup, in the Properties tab select your profile, in the Import tab select
“Types Tool”, press “Import selected steps” and you are done. Well, we have not looked at how to do this for normal Documents too, adding a content type Eggs based on them, but that should be the same technique, really.

Now create a Basket, add an Egg and enjoy!

Maurits van Rees: Minimally overwriting a content type

Originally from Planet Plone by Maurits van Rees


from Yoda http://plonewars.com/2007/06/09/maurits-van-rees-minimally-overwriting-a-content-type/