Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: CMF
[dev] newstyle content creation
 

Index | Next | Previous | View Flat


y.2008 at wcm-solutions

Apr 22, 2008, 5:27 AM


Views: 2434
Permalink
[dev] newstyle content creation

Hi!


Implementing newstyle content factories[1] and using events for content
creation[2] made it much easier to create content without using
invokeFactory and friends.

These steps are still necessary:

- check portal_type exists (*)
- check allowType(portal_type) for the container (*)
- get factory name for portal_type (*)
- get IFactory utility for the factory name
- use factory for creating an object
- set object's portal_type (*)
- set other object attributes if necessary
- send ObjectCreatedEvent
- add the object to the container using _setObject

The steps marked with (*) are CMF specific.


Today I checked in a formlib based add view for File objects[3]. There
is a new "Add File" action available if you use the "Experimental
CMFDefault Browser Views" extension profile.

Any feedback is welcome. Not sure if this makes Bug #161664[4] obsolete.


Cheers,

Yuppie



[1] http://mail.zope.org/pipermail/zope-cmf/2006-May/024464.html
[2] http://mail.zope.org/pipermail/zope-cmf/2007-December/027000.html
[3] http://svn.zope.org/?rev=85591&view=rev
[4] https://bugs.launchpad.net/zope-cmf/+bug/161664

_______________________________________________
Zope-CMF maillist - Zope-CMF[at]lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Subject User Time
[dev] newstyle content creation y.2008 at wcm-solutions Apr 22, 2008, 5:27 AM
    Re: [dev] newstyle content creation charlie at begeistert Apr 22, 2008, 6:54 AM
        Re: Re: [dev] newstyle content creation wichert at wiggy Apr 23, 2008, 2:27 AM
            Re: Re: [dev] newstyle content creation charlie at begeistert Apr 25, 2008, 9:55 AM
        Re: Re: [dev] newstyle content creation jens at dataflake Apr 23, 2008, 8:57 AM
        Re: Re: [dev] newstyle content creation charlie at begeistert Apr 28, 2008, 5:12 AM
        Re: Re: [dev] newstyle content creation charlie at begeistert May 20, 2008, 1:50 AM
    Re: [dev] newstyle content creation y.2008 at wcm-solutions Apr 22, 2008, 8:24 AM
        Re: Re: [dev] newstyle content creation charlie at begeistert Apr 23, 2008, 1:18 AM
    Re: [dev] newstyle content creation optilude at gmx Apr 22, 2008, 2:54 PM
        Re: [dev] newstyle content creation y.2008 at wcm-solutions Apr 23, 2008, 12:41 AM
        Re: Re: [dev] newstyle content creation charlie at begeistert Apr 23, 2008, 1:11 AM
    Re: [dev] newstyle content creation y.2008 at wcm-solutions Apr 23, 2008, 2:12 AM
        Re: Re: [dev] newstyle content creation charlie at begeistert Apr 23, 2008, 2:22 AM
    Re: [dev] newstyle content creation y.2008 at wcm-solutions Apr 23, 2008, 6:10 AM
        Re: Re: [dev] newstyle content creation charlie at begeistert Apr 23, 2008, 6:36 AM
        Re: Re: [dev] newstyle content creation charlie at begeistert Apr 23, 2008, 8:46 AM
    Re: [dev] newstyle content creation y.2008 at wcm-solutions Apr 25, 2008, 12:23 AM
        Re: Re: [dev] newstyle content creation charlie at begeistert Apr 25, 2008, 10:23 AM
    Re: [dev] newstyle content creation y.2008 at wcm-solutions May 2, 2008, 4:50 AM
        Re: [dev] newstyle content creation l at lrowe May 10, 2008, 7:00 AM
            Re: [dev] newstyle content creation y.2008 at wcm-solutions May 13, 2008, 2:39 PM
                Re: Re: [dev] newstyle content creation charlie at begeistert Jun 30, 2008, 8:35 AM
        Re: Re: [dev] newstyle content creation charlie at begeistert May 19, 2008, 9:51 AM
        Re: Re: [dev] newstyle content creation charlie at begeistert Jun 22, 2008, 9:28 AM
    Re: [dev] newstyle content creation r.ritz at biologie May 20, 2008, 4:22 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.