Back to index

plone3  3.1.7
Classes | Functions | Variables
wicked.at.link Namespace Reference

Classes

class  ATWickedAdd
class  ATPortalFactoryAdd
class  BasicFiveLink

Functions

def handle_at_newcontent
def test_suite

Variables

tuple _marker = object()

Function Documentation

def wicked.at.link.handle_at_newcontent (   context,
  event 
)

Definition at line 69 of file link.py.

00069 
00070 def handle_at_newcontent(context, event):
00071     field = context.Schema()[event.section]
00072     wicked = getWicked(field, context, event)
00073     wicked.manageLink(context, event.title)
00074     portal_status_message=quote('"%s" has been created' % event.title)
00075     url = event.newcontent.absolute_url()
00076     restr = "%s/edit?title=%s&portal_status_message=%s" %(url,
00077                                                           quote(event.title),
00078                                                           portal_status_message)
00079     event.request.RESPONSE.redirect(restr)
00080 
    

Here is the call graph for this function:

Definition at line 89 of file link.py.

00089 
00090 def test_suite():
00091     import unittest
00092     from zope.testing import doctest
00093     optionflags = doctest.ELLIPSIS
00094     from Products.PloneTestCase.layer import PloneSite, ZCMLLayer
00095     from wicked.plone.tests import ZCMLLayer as PloneWickedZCMLLayer
00096     from Testing.ZopeTestCase import ZopeDocFileSuite, FunctionalDocFileSuite
00097     from Products.PloneTestCase import ptc
00098     ptc.setupPloneSite()
00099     renderer = ZopeDocFileSuite('renderer.txt',
00100                                 package='wicked.at',
00101                                 optionflags=optionflags)
00102     renderer.layer = ZCMLLayer
00103     add = FunctionalDocFileSuite('add.txt',
00104                            package='wicked.at',
00105                            test_class=ptc.FunctionalTestCase,
00106                            optionflags=optionflags)
00107     add.layer = PloneWickedZCMLLayer
00108     return unittest.TestSuite((add, renderer))
00109 
00110 

Variable Documentation

tuple wicked.at.link._marker = object()

Definition at line 26 of file link.py.