Logo Search packages:      
Sourcecode: zope-loginmanager version File versions

def ZPatterns::Rack::Rack::manage_setStorage (   self,
  zclass = None,
  storage = None,
  use_attrib = None,
  load_attrib = None,
  REQUEST = None 
)

Change class of returned items, and persistent storage used
to store them

Definition at line 374 of file Rack.py.

                                       :

        """
        Change class of returned items, and persistent storage used
        to store them
        """

        if zclass is not None:
            if self._unifiedZClassRegistry().has_key(zclass):
                #if Products.meta_classes.has_key(zclass):
                    self._zclass = zclass
                #else:
                #    self._zclass = self._unifiedZClassRegistry()[zclass][1]
                    if self.__dict__.has_key('_v_itemConstructor'):
                         del self._v_itemConstructor
            else:
                raise NameError,("Invalid/nonexistent ZClass '%s'" % zclass)

        if storage is not None and storage != self.storageInfo:
            self._migrateStorage(storage)

        if use_attrib is not None and load_attrib is not None:
            self.loadAttrib = (use_attrib=="YES") and load_attrib or ""

        if REQUEST is not None:
            return self.manage_storageForm(self, REQUEST,
                manage_tabs_message='Updated storage settings.')









    def manage_pack(self,REQUEST=None):


Generated by  Doxygen 1.6.0   Back to index