code: def getViewletByName(self, name):
  
          
          views = registration.getViews(IBrowserRequest)
  
          for v in views:
  
              if v.provided == IViewlet:
                  # Note that we might have conflicting BrowserView with the same
                  # name, thus we need to check for provided
                  if v.name == name:
                      return v
  
          return None
docs: Viewlets allow through-the-web customizations.
  
          Through-the-web customization magic is managed by five.customerize.
          We need to think of this when looking up viewlets.
  
          @return: Viewlet registration object