Package OFS :: Module SimpleItem :: Class Item
[show private | hide private]
[frames | no frames]

Type Item

         object --+    
                  |    
               Base --+
                      |
     object --+       |
              |       |
           Base --+   |
                  |   |
         CopySource --+
                      |
           Node --+   |
                  |   |
            Element --+
                      |
     object --+       |
              |       |
           Base --+   |
                  |   |
              Owned --+
                      |
     object --+       |
              |       |
           Base --+   |
                  |   |
EtagSupport --+   |   |
              |   |   |
   LockableItem --+   |
                  |   |
           Resource --+
                      |
     object --+       |
              |       |
           Base --+   |
                  |   |
               Tabs --+
                      |
        Traversable --+
                      |
     object --+       |
              |       |
           Base --+   |
                  |   |
        UndoSupport --+
                      |
                     Item

Known Subclasses:
AbstractCriterion, BaseQuery, BasicUserFolder, DA, DummyContent, DummyContent, DummyFSDV, Folder, FSObject, Item_w__name__, MimeTypeItem, MimeTypeItem, SimpleItem, Transform, TransformsChain

A common base class for simple, non-container objects.
Method Summary
  __len__(self)
  _cps_old_manage_afterAdd(self, item, container)
  _cps_old_manage_beforeDelete(self, item, container)
  getContent(self, lang)
Return the object itself.
  getDefaultLanguage(self)
Get the default language.
  getDocid(self)
No Docid.
  getEditableContent(self, lang)
Return the object itself.
  getFromLanguageRevisions(self)
No mapping.
  getId(self)
Return the id of the object as a string.
  getLanguage(self, lang)
Get the selected language.
  getLanguageRevisions(self)
No mapping.
  getProxyLanguages(self)
return all available languages.
  getRevision(self, lang)
Get the best revision.
  isProxyArchived(self)
Is the proxy archived.
  manage(self, URL1)
  manage_afterAdd(self, *args, **kw)
manage_afterAdd patched for event service notification.
  manage_afterClone(self, item)
  manage_beforeDelete(self, *args, **kw)
manage_beforeDelete patched for event service notification.
  manage_editedDialog(self, REQUEST, **args)
  manage_FTPlist(self, REQUEST)
Directory listing for FTP.
  manage_FTPstat(self, REQUEST)
Psuedo stat, used by FTP for directory listings.
  objectIds(self, spec)
  objectItems(self, spec)
  objectValues(self, spec)
  raise_standardErrorMessage(self, client, REQUEST, error_type, error_value, tb, error_tb, error_message, tagSearch, error_log_url)
  this(self)
  title_and_id(self)
Return the title if it is not blank and the id otherwise.
  title_or_id(self)
Return the title if it is not blank and the id otherwise.
  tpURL(self)
  tpValues(self)
    Inherited from Resource
  COPY(self, REQUEST, RESPONSE)
Create a duplicate of the source resource whose state and behavior match that of the source resource as closely as possible.
  dav__init(self, request, response)
  dav__simpleifhandler(self, request, response, method, col, url, refresh)
  dav__validate(self, object, methodname, REQUEST)
  DELETE(self, REQUEST, RESPONSE)
Delete a resource.
  HEAD(self, REQUEST, RESPONSE)
Retrieve resource information without a response body.
  listDAVObjects(self)
  LOCK(self, REQUEST, RESPONSE)
Lock a resource
  manage_DAVget(self)
Gets the document source
  MKCOL(self, REQUEST, RESPONSE)
Create a new collection resource.
  MOVE(self, REQUEST, RESPONSE)
Move a resource to a new location.
  OPTIONS(self, REQUEST, RESPONSE)
Retrieve communication options.
  PROPFIND(self, REQUEST, RESPONSE)
Retrieve properties defined on the resource.
  PROPPATCH(self, REQUEST, RESPONSE)
Set and/or remove properties defined on the resource.
  PUT(self, REQUEST, RESPONSE)
Replace the GET response entity of an existing resource.
  TRACE(self, REQUEST, RESPONSE)
Return the HTTP message received back to the client as the entity-body of a 200 (OK) response.
  UNLOCK(self, REQUEST, RESPONSE)
Remove an existing lock on a resource.
    Inherited from LockableItem
  wl_clearLocks(self)
  wl_delLock(self, locktoken)
  wl_getLock(self, locktoken)
  wl_hasLock(self, token, killinvalids)
  wl_isLocked(self)
  wl_lockItems(self, killinvalids)
  wl_lockmapping(self, killinvalids, create)
if 'killinvalids' is 1, locks who are no longer valid will be deleted
  wl_lockTokens(self, killinvalids)
  wl_lockValues(self, killinvalids)
  wl_setLock(self, locktoken, lock)
    Inherited from EtagSupport
  http__etag(self, readonly)
  http__parseMatchList(self, REQUEST, header)
  http__processMatchHeaders(self, REQUEST)
  http__refreshEtag(self)
    Inherited from CopySource
  cb_isCopyable(self)
  cb_isMoveable(self)
  cb_userHasCopyOrMovePermission(self)
    Inherited from Tabs
  class_manage_path(self)
  filtered_manage_options(self, REQUEST)
  manage_workspace(self, REQUEST)
Dispatch to first interface in manage_options
  tabs_path_default(self, REQUEST, unquote)
  tabs_path_info(self, script, path, quote)
    Inherited from Traversable
  absolute_url(self, relative)
Return the absolute URL of the object.
  absolute_url_path(self)
Return the path portion of the absolute URL of the object.
  getPhysicalPath(self)
Get the physical path of the object.
  restrictedTraverse(self, path, default)
  unrestrictedTraverse(self, path, default, restricted)
Lookup an object by path.
  virtual_url_path(self)
Return a URL for the object, relative to the site root.
    Inherited from Element
  getAttribute(self, name)
Retrieves an attribute value by name.
  getAttributeNode(self, name)
Retrieves an Attr node by name or None if there is no such attribute.
  getChildNodes(self)
Returns a NodeList that contains all children of this node.
  getElementsByTagName(self, tagname)
Returns a NodeList of all the Elements with a given tag name in the order in which they would be encountered in a preorder traversal of the Document tree.
  getFirstChild(self)
The first child of this node.
  getLastChild(self)
The last child of this node.
  getNextSibling(self)
The node immediately preceding this node.
  getNodeName(self)
The name of this node, depending on its type
  getNodeType(self)
A code representing the type of the node.
  getParentNode(self)
The parent of this node.
  getPreviousSibling(self)
The node immediately preceding this node.
  getTagName(self)
The name of the element
    Inherited from Node
  getAttributes(self)
Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise.
  getNodeValue(self)
The value of this node, depending on its type
  getOwnerDocument(self)
The Document object associated with this node.
  hasChildNodes(self)
Returns true if the node has any children, false if it doesn't.
    Inherited from Owned
  changeOwnership(self, user, recursive)
Change the ownership to the given user.
  getOwner(self, info, aq_get, UnownableOwner, getSecurityManager)
Get the owner
  getOwnerTuple(self)
Return a tuple, (userdb_path, user_id) for the owner.
  getWrappedOwner(self)
Get the owner, modestly wrapped in the user folder.
  manage_changeOwnershipType(self, explicit, RESPONSE, REQUEST)
Change the type (implicit or explicit) of ownership.
  manage_fixupOwnershipAfterAdd(self)
  manage_takeOwnership(self, REQUEST, RESPONSE, recursive)
Take ownership (responsibility) for an object.
  owner_info(self)
Get ownership info for display
  userCanTakeOwnership(self)
    Inherited from UndoSupport
  get_request_var_or_attr(self, name, default)
  manage_undo_transactions(self, transaction_info, REQUEST)
  undoable_transactions(self, first_transaction, last_transaction, PrincipiaUndoBatchSize)
    Inherited from Base
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __getnewargs__(...)
Get arguments to be passed to __new__
  __getstate__(...)
Get the object serialization state
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
Reduce an object to contituent parts for serialization
  __setstate__(...)
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
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
int __allow_access_to_unprotected_subobjects__ = 1                                                                     
Implements __implemented__ = <implementedBy OFS.SimpleItem.Item>
str __name__ = 'Item'
tuple __propsets__ = ()
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
PermissionRole getContent__roles__ = <PermissionRole object at 0xb5fdd3...
PermissionRole getDefaultLanguage__roles__ = <PermissionRole object at ...
PermissionRole getDocid__roles__ = <PermissionRole object at 0xb5fdd3b0...
PermissionRole getEditableContent__roles__ = <PermissionRole object at ...
PermissionRole getFromLanguageRevisions__roles__ = <PermissionRole obje...
NoneType getId__roles__ = None                                                                  
PermissionRole getLanguage__roles__ = <PermissionRole object at 0xb5fdd...
PermissionRole getLanguageRevisions__roles__ = <PermissionRole object a...
PermissionRole getProxyLanguages__roles__ = <PermissionRole object at 0...
PermissionRole getRevision__roles__ = <PermissionRole object at 0xb5fdd...
str icon = ''
str id = ''
int isPrincipiaFolderish = 0                                                                     
NoneType isProxyArchived__roles__ = None                                                                  
int isTopLevelPrincipiaApplicationObject = 0                                                                     
tuple manage__roles__ = ('Manager',)
tuple manage_afterAdd__roles__ = ('Manager',)
tuple manage_afterClone__roles__ = ('Manager',)
tuple manage_beforeDelete__roles__ = ('Manager',)
tuple manage_editedDialog__roles__ = ('Manager',)
tuple manage_FTPlist__roles__ = ('Manager',)
tuple manage_FTPstat__roles__ = ('Manager',)
tuple manage_options = ({'action': 'manage_UndoForm', 'help': ...
str meta_type = 'simple item'
str REQUEST = '<Special Object Used to Force Acquisition>'
str title = ''
    Inherited from Resource
tuple __ac_permissions__ = (('View', ('HEAD',)), ('WebDAV acce...
int __dav_resource__ = 1                                                                     
tuple __http_methods__ = ('GET', 'HEAD', 'POST', 'PUT', 'DELET...
tuple COPY__roles__ = ('Anonymous',)
PermissionRole DELETE__roles__ = <PermissionRole object at 0xb75f1680>
PermissionRole HEAD__roles__ = <PermissionRole object at 0xb75f15c0>
PermissionRole listDAVObjects__roles__ = <PermissionRole object at 0xb7...
PermissionRole LOCK__roles__ = <PermissionRole object at 0xb75f1548>
PermissionRole manage_DAVget__roles__ = <PermissionRole object at 0xb75...
tuple MOVE__roles__ = ('Anonymous',)
NoneType OPTIONS__roles__ = None                                                                  
PermissionRole PROPFIND__roles__ = <PermissionRole object at 0xb75f15f0...
PermissionRole PROPPATCH__roles__ = <PermissionRole object at 0xb75f165...
NoneType TRACE__roles__ = None                                                                  
PermissionRole UNLOCK__roles__ = <PermissionRole object at 0xb75f1578>
    Inherited from LockableItem
PermissionRole wl_clearLocks__roles__ = <PermissionRole object at 0xb75...
PermissionRole wl_delLock__roles__ = <PermissionRole object at 0xb75f10...
NoneType wl_getLock__roles__ = None                                                                  
PermissionRole wl_grantLockToUser__roles__ = <PermissionRole object at ...
NoneType wl_isLocked__roles__ = None                                                                  
NoneType wl_isLockedByUser__roles__ = None                                                                  
NoneType wl_lockItems__roles__ = None                                                                  
tuple wl_lockmapping__roles__ = ()
NoneType wl_lockTokens__roles__ = None                                                                  
NoneType wl_lockValues__roles__ = None                                                                  
PermissionRole wl_setLock__roles__ = <PermissionRole object at 0xb75f11...
    Inherited from EtagSupport
tuple __implements__ = (<Interface webdav.EtagSupport.EtagBase...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
    Inherited from Tabs
NoneType class_manage_path__roles__ = None                                                                  
NoneType filtered_manage_options__roles__ = None                                                                  
DTMLFile manage_tabs = <App.special_dtml.DTMLFile object at 0xb75...
tuple manage_tabs__roles__ = ('Anonymous',)
tuple manage_workspace__roles__ = ('Authenticated',)
    Inherited from Traversable
NoneType absolute_url__roles__ = None                                                                  
NoneType absolute_url_path__roles__ = None                                                                  
NoneType getPhysicalPath__roles__ = None                                                                  
str getPhysicalRoot = '<Special Object Used to Force Acquisi...
tuple getPhysicalRoot__roles__ = ()
NoneType restrictedTraverse__roles__ = None                                                                  
tuple unrestrictedTraverse__roles__ = ()
NoneType virtual_url_path__roles__ = None                                                                  
    Inherited from Owned
tuple changeOwnership__roles__ = ()
tuple getOwner__roles__ = ()
tuple getOwnerTuple__roles__ = ()
tuple getWrappedOwner__roles__ = ()
PermissionRole manage_changeOwnershipType__roles__ = <PermissionRole ob...
tuple manage_fixupOwnershipAfterAdd__roles__ = ('Manager',)
DTMLFile manage_owner = <App.special_dtml.DTMLFile object at 0xb7...
PermissionRole manage_owner__roles__ = <PermissionRole object at 0xb768...
PermissionRole manage_takeOwnership__roles__ = <PermissionRole object a...
PermissionRole owner_info__roles__ = <PermissionRole object at 0xb7686f...
    Inherited from UndoSupport
PermissionRole manage_undo_transactions__roles__ = <PermissionRole obje...
DTMLFile manage_UndoForm = <App.special_dtml.DTMLFile object at 0...
PermissionRole manage_UndoForm__roles__ = <PermissionRole object at 0xb...
PermissionRole undoable_transactions__roles__ = <PermissionRole object ...

Method Details

getContent(self, lang=None)

Return the object itself.

getDefaultLanguage(self)

Get the default language.

getDocid(self)

No Docid.

getEditableContent(self, lang=None)

Return the object itself.

getFromLanguageRevisions(self)

No mapping.

getId(self)

Return the id of the object as a string.

This method should be used in preference to accessing an id attribute of an object directly. The getId method is public.

getLanguage(self, lang=None)

Get the selected language.

getLanguageRevisions(self)

No mapping.

getProxyLanguages(self)

return all available languages.

getRevision(self, lang=None)

Get the best revision.

isProxyArchived(self)

Is the proxy archived.

manage_afterAdd(self, *args, **kw)

manage_afterAdd patched for event service notification.

manage_beforeDelete(self, *args, **kw)

manage_beforeDelete patched for event service notification.

manage_FTPlist(self, REQUEST)

Directory listing for FTP.

In the case of non-Foldoid objects, the listing should contain one object, the object itself.

manage_FTPstat(self, REQUEST)

Psuedo stat, used by FTP for directory listings.

title_and_id(self)

Return the title if it is not blank and the id otherwise.

If the title is not blank, then the id is included in parens.

title_or_id(self)

Return the title if it is not blank and the id otherwise.

Class Variable Details

__allow_access_to_unprotected_subobjects__

Type:
int
Value:
1                                                                     

__implemented__

Type:
Implements
Value:
<implementedBy OFS.SimpleItem.Item>                                    

__name__

Type:
str
Value:
'Item'                                                                 

__propsets__

Type:
tuple
Value:
()                                                                     

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0xb617b42c>       

getContent__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb5fdd3b0>                                  

getDefaultLanguage__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb5fdd3b0>                                  

getDocid__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb5fdd3b0>                                  

getEditableContent__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb5fdd290>                                  

getFromLanguageRevisions__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb5fdd3b0>                                  

getId__roles__

Type:
NoneType
Value:
None                                                                  

getLanguage__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb5fdd3b0>                                  

getLanguageRevisions__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb5fdd3b0>                                  

getProxyLanguages__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb5fdd3b0>                                  

getRevision__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0xb5fdd3b0>                                  

icon

Type:
str
Value:
''                                                                     

id

Type:
str
Value:
''                                                                     

isPrincipiaFolderish

Type:
int
Value:
0                                                                     

isProxyArchived__roles__

Type:
NoneType
Value:
None                                                                  

isTopLevelPrincipiaApplicationObject

Type:
int
Value:
0                                                                     

manage__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_afterAdd__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_afterClone__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_beforeDelete__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_editedDialog__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_FTPlist__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_FTPstat__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_options

Type:
tuple
Value:
({'action': 'manage_UndoForm', 'help': ('OFSP', 'Undo.stx'), 'label': \
'Undo'},
 {'action': 'manage_owner',
  'filter': <function ownableFilter at 0xb75ed17c>,
  'help': ('OFSP', 'Ownership.stx'),
  'label': 'Ownership'})                                               

meta_type

Type:
str
Value:
'simple item'                                                          

REQUEST

Type:
str
Value:
'<Special Object Used to Force Acquisition>'                           

title

Type:
str
Value:
''                                                                     

Generated by Epydoc 2.1 on Mon Jun 27 12:47:43 2005 http://epydoc.sf.net