Back to index

plone3  3.1.7
Classes | Functions
five.customerize.zpt Namespace Reference

Classes

class  TTWViewTemplate
class  TTWViewTemplateRenderer
class  TTWViewletRenderer
class  TTWPortletRenderer

Functions

def unregisterViewWhenZPTIsDeleted

Function Documentation

Definition at line 228 of file zpt.py.

00228 
00229 def unregisterViewWhenZPTIsDeleted(zpt, event):
00230     components = getSiteManager(zpt)
00231     for reg in components.registeredAdapters():
00232         if reg.factory == zpt:
00233             components.unregisterAdapter(reg.factory, reg.required,
00234                                          reg.provided, reg.name)
00235             break
00236