Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
plone.app.content.browser.adding.CMFAdding Class Reference
Inheritance diagram for plone.app.content.browser.adding.CMFAdding:
Inheritance graph
[legend]
Collaboration diagram for plone.app.content.browser.adding.CMFAdding:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def add
def nextURL

Static Public Attributes

string id = '+'

Detailed Description

An adding view with a less silly next-url

Definition at line 4 of file adding.py.


Member Function Documentation

def plone.app.content.browser.adding.CMFAdding.add (   self,
  content 
)

Definition at line 12 of file adding.py.

00012 
00013     def add(self, content):
00014         content = super(CMFAdding, self).add(content)
00015         
00016         # We need to ensure that we finish type construction, not at least
00017         # to set the correct permissions based on the workflow
00018         portal_types = getToolByName(content, 'portal_types')
00019         fti = portal_types.getTypeInfo(content)
00020         if fti is not None:
00021             fti._finishConstruction(content)
00022         
00023         return content
    

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 24 of file adding.py.

00024 
00025     def nextURL(self):
        return "%s/%s/view" % (self.context.absolute_url(), self.contentName)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 10 of file adding.py.


The documentation for this class was generated from the following file: