| Trees | Index | Help |
|---|
| Package CMFDynamicViewFTI :: Module browserdefault :: Class BrowserDefaultMixin |
|
object--+ |Base--+ | BrowserDefaultMixin
Mixin class for content types using the dynamic view FTI Allow the user to select a layout template (in the same way as TemplateMixin in Archetypes does), and/or to set a contained object's id as a default_page (acting in the same way as index_html) Note: folderish content types should overwrite HEAD like ATContentTypes
| Method Summary | |
|---|---|
Resolve and return the selected view template applied to the object. | |
Check if the user has permission to select a default page on this (folderish) item, and the item is folderish. | |
Check if the current authenticated user is permitted to select a layout. | |
Get the actual view to use. | |
Get the layouts registered for this object from its FTI. | |
Get the default layout method. | |
Return the id of the default page, or None if none is set. | |
Get the selected view method. | |
Set the default page to display in this (folderish) object. | |
Set the layout as the current view. | |
| Inherited from Base | |
x.__getattribute__('name') <==> x.name | |
Get arguments to be passed to __new__ | |
Get the object serialization state | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
Reduce an object to contituent parts for serialization | |
Set the object serialization state The state should be in one of 3 forms: - None Ignored - A dictionary In this case, the object's instance dictionary will be cleared and updated with the new state. | |
| Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Class Variable Summary | |
|---|---|
tuple |
__ac_permissions__ = (('Modify view template', ('setDefa...
|
PermissionRole |
__call____roles__ = <PermissionRole object at 0xb47af530...
|
tuple |
__implements__ = (<Interface Products.CMFDynamicViewFTI....
|
dict |
aliases = {'sharing': 'folder_localrole_form', 'gethtml'...
|
NoneType |
canSetDefaultPage__roles__ = None |
NoneType |
canSetLayout__roles__ = None |
str |
default_view = 'base_view'
|
PermissionRole |
defaultView__roles__ = <PermissionRole object at 0xb47af...
|
PermissionRole |
getAvailableLayouts__roles__ = <PermissionRole object at...
|
PermissionRole |
getDefaultLayout__roles__ = <PermissionRole object at 0x...
|
PermissionRole |
getDefaultPage__roles__ = <PermissionRole object at 0xb4...
|
PermissionRole |
getLayout__roles__ = <PermissionRole object at 0xb47af53...
|
PermissionRole |
setDefaultPage__roles__ = <PermissionRole object at 0xb4...
|
PermissionRole |
setLayout__roles__ = <PermissionRole object at 0xb47af4a...
|
tuple |
suppl_views = ()
|
str |
_at_fti_meta_type = 'Factory-based Type Information with...
|
| Method Details |
|---|
__call__(self)
|
canSetDefaultPage(self)Check if the user has permission to select a default page on this (folderish) item, and the item is folderish. |
canSetLayout(self)Check if the current authenticated user is permitted to select a layout. |
defaultView(self, request=None)Get the actual view to use. If a default page is set, its id will be returned. Else, the current layout's page template id is returned. |
getAvailableLayouts(self)Get the layouts registered for this object from its FTI. |
getDefaultLayout(self)Get the default layout method. |
getDefaultPage(self)Return the id of the default page, or None if none is set. The default page must be contained within this (folderish) item. |
getLayout(self, **kw)Get the selected view method. Note that a selected default page will override the view method. |
setDefaultPage(self, objectId)Set the default page to display in this (folderish) object. The objectId must be a value found in self.objectIds() (i.e. a contained object). This object will be displayed as the default_page/index_html object of this (folderish) object. This will override the current layout template returned by getLayout(). Pass None for objectId to turn off the default page and return to using the selected layout template. |
setLayout(self, layout)Set the layout as the current view. 'layout' should be one of the list returned by getAvailableLayouts(), but it is not enforced. If a default page has been set with setDefaultPage(), it is turned off by calling setDefaultPage(None). |
| Class Variable Details |
|---|
__call____roles__
|
__implements__
|
aliases
|
canSetDefaultPage__roles__
|
canSetLayout__roles__
|
default_view
|
defaultView__roles__
|
getAvailableLayouts__roles__
|
getDefaultLayout__roles__
|
getDefaultPage__roles__
|
getLayout__roles__
|
setDefaultPage__roles__
|
setLayout__roles__
|
suppl_views
|
_at_fti_meta_type
|
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Wed Nov 30 03:58:29 2005 | http://epydoc.sf.net |