Site Map
Accessibility
Contact
Search Site
only in current section
Advanced Search…
Personal tools
Log in
Sections
Home
Builders
BastionLinux 6
BastionLinux
FC6
BastionLinux 10
BastionLinux 10
plone-3.3.5
zenoss-2.5.1
zope-2.12.6
BastionLinux 13
plone-4.1.3
zenoss
zope-2.13.10
ztk-1.0.4
bastionlinux
HelpDesk
Products
Services
Partners
Skip to content.
|
Skip to navigation
Log in
Login Name
Password
Cookies are not enabled. You must enable cookies before you can log in.
Forgot your password?
You are here:
Home
›
Zpydoc API Documentation
›
Products.RPMDistro.YumRepository
Info
Products.RPMDistro.YumRepository
Up one level
Products
→
RPMDistro
→
YumRepository
Classes
class
VolatileResources
( )
Frustratingly, Zope seems to be garbage collecting volatile storage on calls involving a large number of RPMPackages. We now have to *explicitly* pass one of these between instance methods...
checksum
(self)
the checksum of the gzip file
close
(self)
filename
(self)
open_checksum
(self)
the checksum of the opened file
open_size
(self)
the expanded gzip size
write
(self, text)
class
YumBaseMetaData
(
YumMetaDataFile
)
Yum primary meta data
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. Though we may later try to make a copy appear seamless across namespaces (e.g. from Zope to Apache), COPY is currently only supported within the Zope namespace.
DELETE
(self, REQUEST, RESPONSE)
Delete objects
Delete a resource. For non-collection resources, DELETE may return either 200 or 204 (No Content) to indicate success.
HEAD
(self, REQUEST, RESPONSE)
Retrieve resource information without a response body.
LOCK
(self, REQUEST, RESPONSE)
Lock a resource
MKCOL
(self, REQUEST, RESPONSE)
Create a new collection resource. If called on an existing resource, MKCOL must fail with 405 (Method Not Allowed).
MOVE
(self, REQUEST, RESPONSE)
Move a resource to a new location. Though we may later try to make a move appear seamless across namespaces (e.g. from Zope to Apache), MOVE is currently only supported within the Zope namespace.
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)
Change Images and Files
Handle HTTP PUT requests
PrincipiaSearchSource
(self)
RPMDistro: Download
Allow file objects to be searched.
TRACE
(self, REQUEST, RESPONSE)
Return the HTTP message received back to the client as the entity-body of a 200 (OK) response. This will often usually be intercepted by the web server in use. If not, the TRACE request will fail with a 405 (Method Not Allowed), since it is not often possible to reproduce the HTTP request verbatim from within the Zope environment.
Title
(self)
UNLOCK
(self, REQUEST, RESPONSE)
Remove an existing lock on a resource.
ZCacheable_configHTML
(self)
Override to provide configuration of caching behavior that can only be specific to the cacheable object.
ZCacheable_enabled
(self)
Returns true if caching is enabled for this object or method.
ZCacheable_get
(self, view_name
=''
, keywords
=None
, mtime_func
=None
, default
=None
)
Retrieves the cached view for the object under the conditions specified by keywords. If the value is not yet cached, returns the default.
ZCacheable_getCache
(self)
Gets the cache associated with this object.
ZCacheable_getManager
(self)
Returns the currently associated cache manager.
ZCacheable_getManagerId
(self)
Returns the id of the current ZCacheManager.
ZCacheable_getManagerIds
(self)
Returns a list of mappings containing the id and title of the available ZCacheManagers.
ZCacheable_getManagerURL
(self)
Returns the URL of the current ZCacheManager.
ZCacheable_getModTime
(self, mtime_func
=None
)
Returns the highest of the last mod times.
ZCacheable_getObAndView
(self, view_name)
Returns self and view_name unchanged.
ZCacheable_invalidate
(self, view_name
=''
, REQUEST
=None
)
Called after a cacheable object is edited. Causes all cache entries that apply to the view_name to be removed. Returns a status message.
ZCacheable_isCachingEnabled
(self)
Returns true only if associated with a cache manager and caching of this method is enabled.
ZCacheable_set
(self, data, view_name
=''
, keywords
=None
, mtime_func
=None
)
Cacheable views should call this method after generating cacheable results. The data argument can be of any Python type.
ZCacheable_setEnabled
(self, enabled
=0
, REQUEST
=None
)
Changes the enabled flag.
ZCacheable_setManagerId
(self, manager_id, REQUEST
=None
)
Changes the manager_id for this object.
InitializeClass
(self)
absolute_url
(self, relative
=0
)
Return the absolute URL of the object. This a canonical URL based on the object's physical containment path. It is affected by the virtual host configuration, if any, and can be used by external agents, such as a browser, to address the object. If the relative argument is provided, with a true value, then the value of virtual_url_path() is returned. Some Products incorrectly use '/'+absolute_url(1) as an absolute-path reference. This breaks in certain virtual hosting situations, and should be changed to use absolute_url_path() instead.
absolute_url_path
(self)
Return the path portion of the absolute URL of the object. This includes the leading slash, and can be used as an 'absolute-path reference' as defined in RFC 2396.
ac_inherited_permissions
(self, all
=0
)
access_debug_info
(self)
Return debug info.
acquiredRolesAreUsedBy
(self, permission)
bobobase_modification_time
(self)
cb_isCopyable
(self)
cb_isMoveable
(self)
cb_userHasCopyOrMovePermission
(self)
changeOwnership
(self, user, recursive
=0
)
Change the ownership to the given user. If 'recursive' is true then also take ownership of all sub-objects, otherwise sub-objects retain their ownership information.
check_sum
(self)
RPMDistro: Download
the checksum of the gzipped file
close
(self, vr)
dav__init
(self, request, response)
dav__simpleifhandler
(self, request, response, method
='PUT'
, col
=0
, url
=None
, refresh
=0
)
dav__validate
(self, object, methodname, REQUEST)
digest_algo
(self)
RPMDistro: Download
the checksum algorithm to use
filtered_manage_options
(self, REQUEST
=None
)
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.
getAttributes
(self)
Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise.
getChildNodes
(self)
Returns a NodeList that contains all children of this node. If there are no children, this is a empty NodeList
getContentType
(self)
RPMDistro: Download
Get the content type of a file or image. Returns the content type (MIME type) of a file or image.
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. Parameter: tagname The name of the tag to match (* = all tags). Return Value: A new NodeList object containing all the matched Elements.
getFirstChild
(self)
The first child of this node. If there is no such node this returns None
getId
(self)
Return the id of the object as a string.
getLastChild
(self)
The last child of this node. If there is no such node this returns None.
getNextSibling
(self)
The node immediately preceding this node. If there is no such node, this returns None.
getNodeName
(self)
The name of this node, depending on its type
getNodeType
(self)
A code representing the type of the node.
getNodeValue
(self)
The value of this node, depending on its type
getOwner
(self, info
=0
, aq_get
=
, UnownableOwner
=[]
, getSecurityManager
=
)
Get the owner If a true argument is provided, then only the owner path and id are returned. Otherwise, the owner object is returned.
getOwnerDocument
(self)
The Document object associated with this node. When this is a document this is None
getOwnerTuple
(self)
Return a tuple, (userdb_path, user_id) for the owner. o Ownership can be acquired, but only from the containment path. o If unowned, return None.
getParentNode
(self)
The parent of this node. All nodes except Document DocumentFragment and Attr may have a parent
getPhysicalPath
(self)
Get the physical path of the object. Returns a path (an immutable sequence of strings) that can be used to access this object again later, for example in a copy/paste operation. getPhysicalRoot() and getPhysicalPath() are designed to operate together.
getPreviousSibling
(self)
The node immediately preceding this node. If there is no such node, this returns None.
getProperty
(self, id, d
=None
)
Get the property 'id'. Returns the optional second argument or None if no such property is found.
getPropertyType
(self, id)
Get the type of property 'id'. Returns None if no such property exists.
get_size
(self)
Get the size of a file or image. Returns the size of the file or image.
getTagName
(self)
The name of the element
getWrappedOwner
(self)
Get the owner, modestly wrapped in the user folder. o If the object is not owned, return None. o If the owner's user database doesn't exist, return Nobody. o If the owner ID does not exist in the user database, return Nobody.
get_local_roles
(self)
get_local_roles_for_userid
(self, userid)
get_request_var_or_attr
(self, name, default)
get_size
(self)
RPMDistro: Download
Get the size of a file or image. Returns the size of the file or image.
get_valid_userids
(self)
hasChildNodes
(self)
Returns true if the node has any children, false if it doesn't.
hasProperty
(self, id)
Return true if object has a property 'id'.
has_local_roles
(self)
http__etag
(self, readonly
=0
)
http__parseMatchList
(self, REQUEST, header
='if-match'
)
http__processMatchHeaders
(self, REQUEST
=None
)
http__refreshEtag
(self)
id
(self)
RPMDistro: Download
indexObject
(self)
Index the object in the portal catalog.
index_html
(self, REQUEST, RESPONSE)
RPMDistro: Download
The default view of the contents of a File or Image. Returns the contents of the file or image. Also, sets the Content-Type HTTP header to the objects content type.
listDAVObjects
(self)
manage_DAVget
(self)
Gets the document source
manage_FTPget
(self)
FTP access
Return body for ftp.
manage_FTPlist
(self, REQUEST)
FTP access
Directory listing for FTP. In the case of non-Foldoid objects, the listing should contain one object, the object itself.
manage_FTPstat
(self, REQUEST)
FTP access
Psuedo stat, used by FTP for directory listings.
manage_access
(self, REQUEST, **kw)
Return an interface for making permissions settings.
manage_acquiredPermissions
(self, permissions
=[]
, REQUEST
=[]
)
Change the permissions that acquire.
manage_addLocalRoles
(self, userid, roles, REQUEST
=[]
)
Set local roles for a user.
manage_addProperty
(self, id, value, type, REQUEST
=None
)
Add a new property via the web. Sets a new property with the given id, type, and value.
manage_afterAdd
(self, item, container)
manage_afterClone
(self, item)
manage_beforeDelete
(self, item, container)
manage_changeOwnershipType
(self, explicit
=[]
, RESPONSE
=[]
, REQUEST
=[]
)
Change the type (implicit or explicit) of ownership.
manage_changePermissions
(self, REQUEST)
Change all permissions settings, called by management screen.
manage_changeProperties
(self, REQUEST
=None
, **kw)
Change existing object properties. Change object properties by passing either a REQUEST object or name=value parameters
manage_changePropertyTypes
(self, old_ids, props, REQUEST
=None
)
Replace one set of properties with another Delete all properties that have ids in old_ids, then add a property for each item in props. Each item has a new_id, new_value, and new_type. The type of new_value should match new_type.
manage_defined_roles
(self, submit
=None
, REQUEST
=None
)
Called by management screen.
manage_delLocalRoles
(self, userids, REQUEST
=[]
)
Remove all local roles for a user.
manage_delProperties
(self, ids
=None
, REQUEST
=None
)
Delete one or more properties specified by 'ids'.
manage_edit
(self, title, content_type, precondition
=''
, filedata
=None
, REQUEST
=None
)
Change Images and Files
Changes the title and content type attributes of the File or Image.
manage_editProperties
(self, REQUEST)
Edit object properties via the web. The purpose of this method is to change all property values, even those not listed in REQUEST; otherwise checkboxes that get turned off will be ignored. Use manage_changeProperties() instead for most situations.
manage_editRoles
(self, REQUEST, acl_type
='A'
, acl_roles
=[]
)
manage_editedDialog
(self, REQUEST, **args)
manage_fixupOwnershipAfterAdd
(self)
manage_getPermissionMapping
(self)
Return the permission mapping for the object This is a list of dictionaries with: permission_name -- The name of the native object permission class_permission -- The class permission the permission is mapped to.
manage_getUserRolesAndPermissions
(self, user_id)
Used for permission/role reporting for a given user_id. Returns a dict mapping 'user_defined_in' -> path where the user account is defined 'roles' -> global roles, 'roles_in_context' -> roles in context of the current object, 'allowed_permissions' -> permissions allowed for the user, 'disallowed_permissions' -> all other permissions
manage_permission
(self, permission_to_manage, roles
=[]
, acquire
=[]
, REQUEST
=[]
)
Change the settings for the given permission. If optional arg acquire is true, then the roles for the permission are acquired, in addition to the ones specified, otherwise the permissions are restricted to only the designated roles.
manage_recalculateChecksums
(self, REQUEST
=None
)
Change Images and Files
recompute the checksum, and openchecksum
manage_role
(self, role_to_manage, permissions
=[]
, REQUEST
=[]
)
Change the permissions given to the given role.
manage_setLocalRoles
(self, userid, roles, REQUEST
=[]
)
Set local roles for a user.
manage_setPermissionMapping
(self, permission_names
=[]
, class_permissions
=[]
, REQUEST
=[]
)
Change the permission mapping
manage_takeOwnership
(self, REQUEST, RESPONSE, recursive
=[]
)
Take ownership (responsibility) for an object. If 'recursive' is true, then also take ownership of all sub-objects.
manage_undo_transactions
(self, transaction_info
=()
, REQUEST
=None
)
manage_upload
(self, file
=''
, REQUEST
=None
)
Change Images and Files
Replaces the current contents of the File or Image object with file. The file or images contents are replaced with the contents of 'file'.
manage_workflowsTab
(self, REQUEST, manage_tabs_message
=None
)
Tab displaying the current workflows for the content object.
manage_workspace
(self, REQUEST)
Dispatch to first interface in manage_options
notifyWorkflowCreated
(self)
Notify the workflow that the object was just created.
objectValues
(self, spec
=None
)
objectValues
(self, spec
=None
)
objectValues
(self, spec
=None
)
opaqueIds
(self)
Return opaque ids (subelements that are contained using something that is not an ObjectManager).
opaqueItems
(self)
Return opaque items (subelements that are contained using something that is not an ObjectManager).
opaqueValues
(self)
Return opaque values (subelements that are contained using something that is not an ObjectManager).
open
(self, pkgcount)
open_check_sum
(self)
RPMDistro: Download
the checksum of the un-gzipped file
owner_info
(self)
Get ownership info for display
permission_settings
(self, permission
=None
)
Return user-role permission settings. If 'permission' is passed to the method then only the settings for 'permission' is returned.
permissionsOfRole
(self, role)
Returns a role to permission mapping.
possible_permissions
(self)
propdict
(self)
propertyDescription
(self, id)
Return a description for the given property id
propertyIds
(self)
Return a list of property ids.
propertyItems
(self)
Return a list of (id,property) tuples.
propertyLabel
(self, id)
Return a label for the given property id
propertyMap
(self)
Return a tuple of mappings, giving meta-data for properties. Return copies of the real definitions for security.
propertyValues
(self)
Return a list of actual property objects.
raise_standardErrorMessage
(self, client
=None
, REQUEST
={}
, error_type
=None
, error_value
=None
, tb
=None
, error_tb
=None
, error_message
=''
, tagSearch
=
, error_log_url
=''
)
read
(self)
IO API compatibility
reindexObject
(self, idxs
=[]
)
Reindex the object in the portal catalog.
reindexObjectSecurity
(self, skip_self
=False
)
Reindex security-related indexes on the object.
repo_type
(self)
RPMDistro: Download
return the repository type
restrictedTraverse
(self, path, default
=
)
rolesOfPermission
(self, permission)
Returns a permission to role mapping.
tabs_path_default
(self, REQUEST, unquote
=
)
tabs_path_info
(self, script, path, quote
=
)
this
(self)
time_stamp
(self)
RPMDistro: Download
return the last modification time of the data file
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.
tpURL
(self)
tpValues
(self)
undoable_transactions
(self, first_transaction
=None
, last_transaction
=None
, PrincipiaUndoBatchSize
=None
)
unindexObject
(self)
Unindex the object from the portal catalog.
unrestrictedTraverse
(self, path, default
=
, restricted
=False
)
Lookup an object by path. path -- The path to the object. May be a sequence of strings or a slash separated string. If the path begins with an empty path element (i.e., an empty string or a slash) then the lookup is performed from the application root. Otherwise, the lookup is relative to self. Two dots (..) as a path element indicates an upward traversal to the acquisition parent. default -- If provided, this is the value returned if the path cannot be traversed for any reason (i.e., no object exists at that path or the object is inaccessible). restricted -- If false (default) then no security checking is performed. If true, then all of the objects along the path are validated with the security machinery. Usually invoked using restrictedTraverse().
update_data
(self, data, content_type
=None
, size
=None
)
userCanTakeOwnership
(self)
userdefined_roles
(self)
Return list of user-defined roles.
users_with_local_role
(self, role)
valid_roles
(self)
Return list of valid roles.
valid_property_id
(self, id)
valid_roles
(self)
Return list of valid roles.
validate_roles
(self, roles)
Return true if all given roles are valid.
view_image_or_file
(self, URL1)
RPMDistro: Download
The default view of the contents of the File or Image.
virtual_url_path
(self)
Return a URL for the object, relative to the site root. If a virtual host is configured, the URL is a path relative to the virtual host's root object. Otherwise, it is the physical path. In either case, the URL does not begin with a slash.
wl_clearLocks
(self)
wl_delLock
(self, locktoken)
wl_getLock
(self, locktoken)
wl_hasLock
(self, token, killinvalids
=0
)
wl_isLocked
(self)
wl_lockItems
(self, killinvalids
=0
)
wl_lockTokens
(self, killinvalids
=0
)
wl_lockValues
(self, killinvalids
=0
)
wl_lockmapping
(self, killinvalids
=0
, create
=0
)
if 'killinvalids' is 1, locks who are no longer valid will be deleted
wl_setLock
(self, locktoken, lock)
write_xml
(self, text, vr)
class
YumFilesMetaData
(
YumMetaDataFile
)
Yum files meta data
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. Though we may later try to make a copy appear seamless across namespaces (e.g. from Zope to Apache), COPY is currently only supported within the Zope namespace.
DELETE
(self, REQUEST, RESPONSE)
Delete objects
Delete a resource. For non-collection resources, DELETE may return either 200 or 204 (No Content) to indicate success.
HEAD
(self, REQUEST, RESPONSE)
Retrieve resource information without a response body.
LOCK
(self, REQUEST, RESPONSE)
Lock a resource
MKCOL
(self, REQUEST, RESPONSE)
Create a new collection resource. If called on an existing resource, MKCOL must fail with 405 (Method Not Allowed).
MOVE
(self, REQUEST, RESPONSE)
Move a resource to a new location. Though we may later try to make a move appear seamless across namespaces (e.g. from Zope to Apache), MOVE is currently only supported within the Zope namespace.
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)
Change Images and Files
Handle HTTP PUT requests
PrincipiaSearchSource
(self)
RPMDistro: Download
Allow file objects to be searched.
TRACE
(self, REQUEST, RESPONSE)
Return the HTTP message received back to the client as the entity-body of a 200 (OK) response. This will often usually be intercepted by the web server in use. If not, the TRACE request will fail with a 405 (Method Not Allowed), since it is not often possible to reproduce the HTTP request verbatim from within the Zope environment.
Title
(self)
UNLOCK
(self, REQUEST, RESPONSE)
Remove an existing lock on a resource.
ZCacheable_configHTML
(self)
Override to provide configuration of caching behavior that can only be specific to the cacheable object.
ZCacheable_enabled
(self)
Returns true if caching is enabled for this object or method.
ZCacheable_get
(self, view_name
=''
, keywords
=None
, mtime_func
=None
, default
=None
)
Retrieves the cached view for the object under the conditions specified by keywords. If the value is not yet cached, returns the default.
ZCacheable_getCache
(self)
Gets the cache associated with this object.
ZCacheable_getManager
(self)
Returns the currently associated cache manager.
ZCacheable_getManagerId
(self)
Returns the id of the current ZCacheManager.
ZCacheable_getManagerIds
(self)
Returns a list of mappings containing the id and title of the available ZCacheManagers.
ZCacheable_getManagerURL
(self)
Returns the URL of the current ZCacheManager.
ZCacheable_getModTime
(self, mtime_func
=None
)
Returns the highest of the last mod times.
ZCacheable_getObAndView
(self, view_name)
Returns self and view_name unchanged.
ZCacheable_invalidate
(self, view_name
=''
, REQUEST
=None
)
Called after a cacheable object is edited. Causes all cache entries that apply to the view_name to be removed. Returns a status message.
ZCacheable_isCachingEnabled
(self)
Returns true only if associated with a cache manager and caching of this method is enabled.
ZCacheable_set
(self, data, view_name
=''
, keywords
=None
, mtime_func
=None
)
Cacheable views should call this method after generating cacheable results. The data argument can be of any Python type.
ZCacheable_setEnabled
(self, enabled
=0
, REQUEST
=None
)
Changes the enabled flag.
ZCacheable_setManagerId
(self, manager_id, REQUEST
=None
)
Changes the manager_id for this object.
InitializeClass
(self)
absolute_url
(self, relative
=0
)
Return the absolute URL of the object. This a canonical URL based on the object's physical containment path. It is affected by the virtual host configuration, if any, and can be used by external agents, such as a browser, to address the object. If the relative argument is provided, with a true value, then the value of virtual_url_path() is returned. Some Products incorrectly use '/'+absolute_url(1) as an absolute-path reference. This breaks in certain virtual hosting situations, and should be changed to use absolute_url_path() instead.
absolute_url_path
(self)
Return the path portion of the absolute URL of the object. This includes the leading slash, and can be used as an 'absolute-path reference' as defined in RFC 2396.
ac_inherited_permissions
(self, all
=0
)
access_debug_info
(self)
Return debug info.
acquiredRolesAreUsedBy
(self, permission)
bobobase_modification_time
(self)
cb_isCopyable
(self)
cb_isMoveable
(self)
cb_userHasCopyOrMovePermission
(self)
changeOwnership
(self, user, recursive
=0
)
Change the ownership to the given user. If 'recursive' is true then also take ownership of all sub-objects, otherwise sub-objects retain their ownership information.
check_sum
(self)
RPMDistro: Download
the checksum of the gzipped file
close
(self, vr)
dav__init
(self, request, response)
dav__simpleifhandler
(self, request, response, method
='PUT'
, col
=0
, url
=None
, refresh
=0
)
dav__validate
(self, object, methodname, REQUEST)
digest_algo
(self)
RPMDistro: Download
the checksum algorithm to use
filtered_manage_options
(self, REQUEST
=None
)
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.
getAttributes
(self)
Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise.
getChildNodes
(self)
Returns a NodeList that contains all children of this node. If there are no children, this is a empty NodeList
getContentType
(self)
RPMDistro: Download
Get the content type of a file or image. Returns the content type (MIME type) of a file or image.
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. Parameter: tagname The name of the tag to match (* = all tags). Return Value: A new NodeList object containing all the matched Elements.
getFirstChild
(self)
The first child of this node. If there is no such node this returns None
getId
(self)
Return the id of the object as a string.
getLastChild
(self)
The last child of this node. If there is no such node this returns None.
getNextSibling
(self)
The node immediately preceding this node. If there is no such node, this returns None.
getNodeName
(self)
The name of this node, depending on its type
getNodeType
(self)
A code representing the type of the node.
getNodeValue
(self)
The value of this node, depending on its type
getOwner
(self, info
=0
, aq_get
=
, UnownableOwner
=[]
, getSecurityManager
=
)
Get the owner If a true argument is provided, then only the owner path and id are returned. Otherwise, the owner object is returned.
getOwnerDocument
(self)
The Document object associated with this node. When this is a document this is None
getOwnerTuple
(self)
Return a tuple, (userdb_path, user_id) for the owner. o Ownership can be acquired, but only from the containment path. o If unowned, return None.
getParentNode
(self)
The parent of this node. All nodes except Document DocumentFragment and Attr may have a parent
getPhysicalPath
(self)
Get the physical path of the object. Returns a path (an immutable sequence of strings) that can be used to access this object again later, for example in a copy/paste operation. getPhysicalRoot() and getPhysicalPath() are designed to operate together.
getPreviousSibling
(self)
The node immediately preceding this node. If there is no such node, this returns None.
getProperty
(self, id, d
=None
)
Get the property 'id'. Returns the optional second argument or None if no such property is found.
getPropertyType
(self, id)
Get the type of property 'id'. Returns None if no such property exists.
get_size
(self)
Get the size of a file or image. Returns the size of the file or image.
getTagName
(self)
The name of the element
getWrappedOwner
(self)
Get the owner, modestly wrapped in the user folder. o If the object is not owned, return None. o If the owner's user database doesn't exist, return Nobody. o If the owner ID does not exist in the user database, return Nobody.
get_local_roles
(self)
get_local_roles_for_userid
(self, userid)
get_request_var_or_attr
(self, name, default)
get_size
(self)
RPMDistro: Download
Get the size of a file or image. Returns the size of the file or image.
get_valid_userids
(self)
hasChildNodes
(self)
Returns true if the node has any children, false if it doesn't.
hasProperty
(self, id)
Return true if object has a property 'id'.
has_local_roles
(self)
http__etag
(self, readonly
=0
)
http__parseMatchList
(self, REQUEST, header
='if-match'
)
http__processMatchHeaders
(self, REQUEST
=None
)
http__refreshEtag
(self)
id
(self)
RPMDistro: Download
indexObject
(self)
Index the object in the portal catalog.
index_html
(self, REQUEST, RESPONSE)
RPMDistro: Download
The default view of the contents of a File or Image. Returns the contents of the file or image. Also, sets the Content-Type HTTP header to the objects content type.
listDAVObjects
(self)
manage_DAVget
(self)
Gets the document source
manage_FTPget
(self)
FTP access
Return body for ftp.
manage_FTPlist
(self, REQUEST)
FTP access
Directory listing for FTP. In the case of non-Foldoid objects, the listing should contain one object, the object itself.
manage_FTPstat
(self, REQUEST)
FTP access
Psuedo stat, used by FTP for directory listings.
manage_access
(self, REQUEST, **kw)
Return an interface for making permissions settings.
manage_acquiredPermissions
(self, permissions
=[]
, REQUEST
=[]
)
Change the permissions that acquire.
manage_addLocalRoles
(self, userid, roles, REQUEST
=[]
)
Set local roles for a user.
manage_addProperty
(self, id, value, type, REQUEST
=None
)
Add a new property via the web. Sets a new property with the given id, type, and value.
manage_afterAdd
(self, item, container)
manage_afterClone
(self, item)
manage_beforeDelete
(self, item, container)
manage_changeOwnershipType
(self, explicit
=[]
, RESPONSE
=[]
, REQUEST
=[]
)
Change the type (implicit or explicit) of ownership.
manage_changePermissions
(self, REQUEST)
Change all permissions settings, called by management screen.
manage_changeProperties
(self, REQUEST
=None
, **kw)
Change existing object properties. Change object properties by passing either a REQUEST object or name=value parameters
manage_changePropertyTypes
(self, old_ids, props, REQUEST
=None
)
Replace one set of properties with another Delete all properties that have ids in old_ids, then add a property for each item in props. Each item has a new_id, new_value, and new_type. The type of new_value should match new_type.
manage_defined_roles
(self, submit
=None
, REQUEST
=None
)
Called by management screen.
manage_delLocalRoles
(self, userids, REQUEST
=[]
)
Remove all local roles for a user.
manage_delProperties
(self, ids
=None
, REQUEST
=None
)
Delete one or more properties specified by 'ids'.
manage_edit
(self, title, content_type, precondition
=''
, filedata
=None
, REQUEST
=None
)
Change Images and Files
Changes the title and content type attributes of the File or Image.
manage_editProperties
(self, REQUEST)
Edit object properties via the web. The purpose of this method is to change all property values, even those not listed in REQUEST; otherwise checkboxes that get turned off will be ignored. Use manage_changeProperties() instead for most situations.
manage_editRoles
(self, REQUEST, acl_type
='A'
, acl_roles
=[]
)
manage_editedDialog
(self, REQUEST, **args)
manage_fixupOwnershipAfterAdd
(self)
manage_getPermissionMapping
(self)
Return the permission mapping for the object This is a list of dictionaries with: permission_name -- The name of the native object permission class_permission -- The class permission the permission is mapped to.
manage_getUserRolesAndPermissions
(self, user_id)
Used for permission/role reporting for a given user_id. Returns a dict mapping 'user_defined_in' -> path where the user account is defined 'roles' -> global roles, 'roles_in_context' -> roles in context of the current object, 'allowed_permissions' -> permissions allowed for the user, 'disallowed_permissions' -> all other permissions
manage_permission
(self, permission_to_manage, roles
=[]
, acquire
=[]
, REQUEST
=[]
)
Change the settings for the given permission. If optional arg acquire is true, then the roles for the permission are acquired, in addition to the ones specified, otherwise the permissions are restricted to only the designated roles.
manage_recalculateChecksums
(self, REQUEST
=None
)
Change Images and Files
recompute the checksum, and openchecksum
manage_role
(self, role_to_manage, permissions
=[]
, REQUEST
=[]
)
Change the permissions given to the given role.
manage_setLocalRoles
(self, userid, roles, REQUEST
=[]
)
Set local roles for a user.
manage_setPermissionMapping
(self, permission_names
=[]
, class_permissions
=[]
, REQUEST
=[]
)
Change the permission mapping
manage_takeOwnership
(self, REQUEST, RESPONSE, recursive
=[]
)
Take ownership (responsibility) for an object. If 'recursive' is true, then also take ownership of all sub-objects.
manage_undo_transactions
(self, transaction_info
=()
, REQUEST
=None
)
manage_upload
(self, file
=''
, REQUEST
=None
)
Change Images and Files
Replaces the current contents of the File or Image object with file. The file or images contents are replaced with the contents of 'file'.
manage_workflowsTab
(self, REQUEST, manage_tabs_message
=None
)
Tab displaying the current workflows for the content object.
manage_workspace
(self, REQUEST)
Dispatch to first interface in manage_options
notifyWorkflowCreated
(self)
Notify the workflow that the object was just created.
objectValues
(self, spec
=None
)
objectValues
(self, spec
=None
)
objectValues
(self, spec
=None
)
opaqueIds
(self)
Return opaque ids (subelements that are contained using something that is not an ObjectManager).
opaqueItems
(self)
Return opaque items (subelements that are contained using something that is not an ObjectManager).
opaqueValues
(self)
Return opaque values (subelements that are contained using something that is not an ObjectManager).
open
(self, pkgcount)
open_check_sum
(self)
RPMDistro: Download
the checksum of the un-gzipped file
owner_info
(self)
Get ownership info for display
permission_settings
(self, permission
=None
)
Return user-role permission settings. If 'permission' is passed to the method then only the settings for 'permission' is returned.
permissionsOfRole
(self, role)
Returns a role to permission mapping.
possible_permissions
(self)
propdict
(self)
propertyDescription
(self, id)
Return a description for the given property id
propertyIds
(self)
Return a list of property ids.
propertyItems
(self)
Return a list of (id,property) tuples.
propertyLabel
(self, id)
Return a label for the given property id
propertyMap
(self)
Return a tuple of mappings, giving meta-data for properties. Return copies of the real definitions for security.
propertyValues
(self)
Return a list of actual property objects.
raise_standardErrorMessage
(self, client
=None
, REQUEST
={}
, error_type
=None
, error_value
=None
, tb
=None
, error_tb
=None
, error_message
=''
, tagSearch
=
, error_log_url
=''
)
read
(self)
IO API compatibility
reindexObject
(self, idxs
=[]
)
Reindex the object in the portal catalog.
reindexObjectSecurity
(self, skip_self
=False
)
Reindex security-related indexes on the object.
repo_type
(self)
RPMDistro: Download
return the repository type
restrictedTraverse
(self, path, default
=
)
rolesOfPermission
(self, permission)
Returns a permission to role mapping.
tabs_path_default
(self, REQUEST, unquote
=
)
tabs_path_info
(self, script, path, quote
=
)
this
(self)
time_stamp
(self)
RPMDistro: Download
return the last modification time of the data file
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.
tpURL
(self)
tpValues
(self)
undoable_transactions
(self, first_transaction
=None
, last_transaction
=None
, PrincipiaUndoBatchSize
=None
)
unindexObject
(self)
Unindex the object from the portal catalog.
unrestrictedTraverse
(self, path, default
=
, restricted
=False
)
Lookup an object by path. path -- The path to the object. May be a sequence of strings or a slash separated string. If the path begins with an empty path element (i.e., an empty string or a slash) then the lookup is performed from the application root. Otherwise, the lookup is relative to self. Two dots (..) as a path element indicates an upward traversal to the acquisition parent. default -- If provided, this is the value returned if the path cannot be traversed for any reason (i.e., no object exists at that path or the object is inaccessible). restricted -- If false (default) then no security checking is performed. If true, then all of the objects along the path are validated with the security machinery. Usually invoked using restrictedTraverse().
update_data
(self, data, content_type
=None
, size
=None
)
userCanTakeOwnership
(self)
userdefined_roles
(self)
Return list of user-defined roles.
users_with_local_role
(self, role)
valid_roles
(self)
Return list of valid roles.
valid_property_id
(self, id)
valid_roles
(self)
Return list of valid roles.
validate_roles
(self, roles)
Return true if all given roles are valid.
view_image_or_file
(self, URL1)
RPMDistro: Download
The default view of the contents of the File or Image.
virtual_url_path
(self)
Return a URL for the object, relative to the site root. If a virtual host is configured, the URL is a path relative to the virtual host's root object. Otherwise, it is the physical path. In either case, the URL does not begin with a slash.
wl_clearLocks
(self)
wl_delLock
(self, locktoken)
wl_getLock
(self, locktoken)
wl_hasLock
(self, token, killinvalids
=0
)
wl_isLocked
(self)
wl_lockItems
(self, killinvalids
=0
)
wl_lockTokens
(self, killinvalids
=0
)
wl_lockValues
(self, killinvalids
=0
)
wl_lockmapping
(self, killinvalids
=0
, create
=0
)
if 'killinvalids' is 1, locks who are no longer valid will be deleted
wl_setLock
(self, locktoken, lock)
write_xml
(self, text, vr)
class
YumMetaData
(
PropertyManager
,
BSimpleItem
)
storable yum metadata object XML this wrapper also shims createrepo
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. Though we may later try to make a copy appear seamless across namespaces (e.g. from Zope to Apache), COPY is currently only supported within the Zope namespace.
DELETE
(self, REQUEST, RESPONSE)
Delete a resource. For non-collection resources, DELETE may return either 200 or 204 (No Content) to indicate success.
HEAD
(self, REQUEST, RESPONSE)
Retrieve resource information without a response body.
LOCK
(self, REQUEST, RESPONSE)
Lock a resource
MKCOL
(self, REQUEST, RESPONSE)
Create a new collection resource. If called on an existing resource, MKCOL must fail with 405 (Method Not Allowed).
MOVE
(self, REQUEST, RESPONSE)
Move a resource to a new location. Though we may later try to make a move appear seamless across namespaces (e.g. from Zope to Apache), MOVE is currently only supported within the Zope namespace.
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. Because this is often object-dependent, objects which handle PUT should override the default PUT implementation with an object-specific implementation. By default, PUT requests fail with a 405 (Method Not Allowed).
TRACE
(self, REQUEST, RESPONSE)
Return the HTTP message received back to the client as the entity-body of a 200 (OK) response. This will often usually be intercepted by the web server in use. If not, the TRACE request will fail with a 405 (Method Not Allowed), since it is not often possible to reproduce the HTTP request verbatim from within the Zope environment.
UNLOCK
(self, REQUEST, RESPONSE)
Remove an existing lock on a resource.
InitializeClass
(self)
absolute_url
(self, relative
=0
)
Return the absolute URL of the object. This a canonical URL based on the object's physical containment path. It is affected by the virtual host configuration, if any, and can be used by external agents, such as a browser, to address the object. If the relative argument is provided, with a true value, then the value of virtual_url_path() is returned. Some Products incorrectly use '/'+absolute_url(1) as an absolute-path reference. This breaks in certain virtual hosting situations, and should be changed to use absolute_url_path() instead.
absolute_url_path
(self)
Return the path portion of the absolute URL of the object. This includes the leading slash, and can be used as an 'absolute-path reference' as defined in RFC 2396.
ac_inherited_permissions
(self, all
=0
)
access_debug_info
(self)
Return debug info.
acquiredRolesAreUsedBy
(self, permission)
bobobase_modification_time
(self)
cb_isCopyable
(self)
cb_isMoveable
(self)
cb_userHasCopyOrMovePermission
(self)
changeOwnership
(self, user, recursive
=0
)
Change the ownership to the given user. If 'recursive' is true then also take ownership of all sub-objects, otherwise sub-objects retain their ownership information.
dav__init
(self, request, response)
dav__simpleifhandler
(self, request, response, method
='PUT'
, col
=0
, url
=None
, refresh
=0
)
dav__validate
(self, object, methodname, REQUEST)
debugInfo
(self)
View management screens
return tuple of sorted dict keys, plus the __dict__
filtered_manage_options
(self, REQUEST
=None
)
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.
getAttributes
(self)
Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise.
getChildNodes
(self)
Returns a NodeList that contains all children of this node. If there are no children, this is a empty NodeList
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. Parameter: tagname The name of the tag to match (* = all tags). Return Value: A new NodeList object containing all the matched Elements.
getField
(self, fieldname)
getFirstChild
(self)
The first child of this node. If there is no such node this returns None
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.
getLastChild
(self)
The last child of this node. If there is no such node this returns None.
getNextSibling
(self)
The node immediately preceding this node. If there is no such node, this returns None.
getNodeName
(self)
The name of this node, depending on its type
getNodeType
(self)
A code representing the type of the node.
getNodeValue
(self)
The value of this node, depending on its type
getOwner
(self, info
=0
, aq_get
=
, UnownableOwner
=[]
, getSecurityManager
=
)
Get the owner If a true argument is provided, then only the owner path and id are returned. Otherwise, the owner object is returned.
getOwnerDocument
(self)
The Document object associated with this node. When this is a document this is None
getOwnerTuple
(self)
Return a tuple, (userdb_path, user_id) for the owner. o Ownership can be acquired, but only from the containment path. o If unowned, return None.
getParentNode
(self)
The parent of this node. All nodes except Document DocumentFragment and Attr may have a parent
getPath
(self)
Access contents information
getPhysicalPath
(self)
Get the physical path of the object. Returns a path (an immutable sequence of strings) that can be used to access this object again later, for example in a copy/paste operation. getPhysicalRoot() and getPhysicalPath() are designed to operate together.
getPreviousSibling
(self)
The node immediately preceding this node. If there is no such node, this returns None.
getProperty
(self, id, d
=None
)
Access contents information
Get the property 'id'. Returns the optional second argument or None if no such property is found.
getPropertyType
(self, id)
Access contents information
Get the type of property 'id'. Returns None if no such property exists.
getTagName
(self)
The name of the element
getURL
(self, relative
=False
)
Access contents information
getWrappedOwner
(self)
Get the owner, modestly wrapped in the user folder. o If the object is not owned, return None. o If the owner's user database doesn't exist, return Nobody. o If the owner ID does not exist in the user database, return Nobody.
get_local_roles
(self)
get_local_roles_for_userid
(self, userid)
get_request_var_or_attr
(self, name, default)
get_valid_userids
(self)
hasChildNodes
(self)
Returns true if the node has any children, false if it doesn't.
hasProperty
(self, id)
Access contents information
Return true if object has a property 'id'.
has_local_roles
(self)
http__etag
(self, readonly
=0
)
http__parseMatchList
(self, REQUEST, header
='if-match'
)
http__processMatchHeaders
(self, REQUEST
=None
)
http__refreshEtag
(self)
listDAVObjects
(self)
manage
(self, URL1)
manage_DAVget
(self)
Gets the document source
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.
manage_access
(self, REQUEST, **kw)
Change permissions
Return an interface for making permissions settings.
manage_acquiredPermissions
(self, permissions
=[]
, REQUEST
=[]
)
Change the permissions that acquire.
manage_addLocalRoles
(self, userid, roles, REQUEST
=[]
)
Set local roles for a user.
manage_addProperty
(self, id, value, type, REQUEST
=None
)
Manage properties
Add a new property via the web. Sets a new property with the given id, type, and value.
manage_afterAdd
(self, item, container)
manage_afterClone
(self, item)
manage_beforeDelete
(self, item, container)
manage_changeOwnership
(self, userid, recursive
=0
, REQUEST
=None
)
Take ownership
go change the owner to specified user (if found)
manage_changeOwnershipType
(self, explicit
=[]
, RESPONSE
=[]
, REQUEST
=[]
)
Take ownership
Change the type (implicit or explicit) of ownership.
manage_changePermissions
(self, REQUEST)
Change permissions
Change all permissions settings, called by management screen.
manage_changeProperties
(self, REQUEST
=None
, **kw)
Manage properties
Change existing object properties. Change object properties by passing either a REQUEST object or name=value parameters
manage_changePropertyTypes
(self, old_ids, props, REQUEST
=None
)
Manage properties
Replace one set of properties with another Delete all properties that have ids in old_ids, then add a property for each item in props. Each item has a new_id, new_value, and new_type. The type of new_value should match new_type.
manage_debugDelAttrs
(self, attrs, REQUEST
=None
)
Change configuration
remove attributes from object
manage_defined_roles
(self, submit
=None
, REQUEST
=None
)
Called by management screen.
manage_delLocalRoles
(self, userids, REQUEST
=[]
)
Remove all local roles for a user.
manage_delProperties
(self, ids
=None
, REQUEST
=None
)
Manage properties
Delete one or more properties specified by 'ids'.
manage_editProperties
(self, REQUEST)
Manage properties
Edit object properties via the web. The purpose of this method is to change all property values, even those not listed in REQUEST; otherwise checkboxes that get turned off will be ignored. Use manage_changeProperties() instead for most situations.
manage_editRoles
(self, REQUEST, acl_type
='A'
, acl_roles
=[]
)
manage_editedDialog
(self, REQUEST, **args)
manage_fixupOwnershipAfterAdd
(self)
manage_getPermissionMapping
(self)
Return the permission mapping for the object This is a list of dictionaries with: permission_name -- The name of the native object permission class_permission -- The class permission the permission is mapped to.
manage_getUserRolesAndPermissions
(self, user_id)
Used for permission/role reporting for a given user_id. Returns a dict mapping 'user_defined_in' -> path where the user account is defined 'roles' -> global roles, 'roles_in_context' -> roles in context of the current object, 'allowed_permissions' -> permissions allowed for the user, 'disallowed_permissions' -> all other permissions
manage_permission
(self, permission_to_manage, roles
=[]
, acquire
=[]
, REQUEST
=[]
)
Change the settings for the given permission. If optional arg acquire is true, then the roles for the permission are acquired, in addition to the ones specified, otherwise the permissions are restricted to only the designated roles.
manage_ploneCatalog
(self, REQUEST
=None
)
View management screens
add the damned thing into Plone so it appears in navigation ...
manage_repair
(self, REQUEST
=None
)
fix up object upon schema change
manage_role
(self, role_to_manage, permissions
=[]
, REQUEST
=[]
)
Change the permissions given to the given role.
manage_setLocalRoles
(self, userid, roles, REQUEST
=[]
)
Set local roles for a user.
manage_setPermissionMapping
(self, permission_names
=[]
, class_permissions
=[]
, REQUEST
=[]
)
Change the permission mapping
manage_takeOwnership
(self, REQUEST, RESPONSE, recursive
=[]
)
Take ownership
Take ownership (responsibility) for an object. If 'recursive' is true, then also take ownership of all sub-objects.
manage_undo_transactions
(self, transaction_info
=()
, REQUEST
=None
)
Undo changes
manage_workspace
(self, REQUEST)
Dispatch to first interface in manage_options
objectValues
(self, spec
=None
)
objectValues
(self, spec
=None
)
objectValues
(self, spec
=None
)
owner_info
(self)
View management screens
Get ownership info for display
permission_settings
(self, permission
=None
)
Return user-role permission settings. If 'permission' is passed to the method then only the settings for 'permission' is returned.
permissionsOfRole
(self, role)
Returns a role to permission mapping.
possible_permissions
(self)
propdict
(self)
Access contents information
propertyDescription
(self, id)
Access contents information
Return a description for the given property id
propertyIds
(self)
Access contents information
Return a list of property ids.
propertyItems
(self)
Access contents information
Return a list of (id,property) tuples.
propertyLabel
(self, id)
Access contents information
Return a label for the given property id
propertyMap
(self)
Access contents information
Return a tuple of mappings, giving meta-data for properties. Return copies of the real definitions for security.
propertyValues
(self)
Access contents information
Return a list of actual property objects.
publishTraverse
(self, REQUEST, name)
This is copied from OFS/Application.py and seems strangely necessary since Plone 3.0 upgrade ...
raise_standardErrorMessage
(self, client
=None
, REQUEST
={}
, error_type
=None
, error_value
=None
, tb
=None
, error_tb
=None
, error_message
=''
, tagSearch
=
, error_log_url
=''
)
restrictedTraverse
(self, path, default
=
)
rolesOfPermission
(self, permission)
Returns a permission to role mapping.
tabs_path_default
(self, REQUEST, unquote
=
)
tabs_path_info
(self, script, path, quote
=
)
this
(self)
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.
tpURL
(self)
tpValues
(self)
undoable_transactions
(self, first_transaction
=None
, last_transaction
=None
, PrincipiaUndoBatchSize
=None
)
Undo changes
unrestrictedTraverse
(self, path, default
=
, restricted
=False
)
Lookup an object by path. path -- The path to the object. May be a sequence of strings or a slash separated string. If the path begins with an empty path element (i.e., an empty string or a slash) then the lookup is performed from the application root. Otherwise, the lookup is relative to self. Two dots (..) as a path element indicates an upward traversal to the acquisition parent. default -- If provided, this is the value returned if the path cannot be traversed for any reason (i.e., no object exists at that path or the object is inaccessible). restricted -- If false (default) then no security checking is performed. If true, then all of the objects along the path are validated with the security machinery. Usually invoked using restrictedTraverse().
userCanTakeOwnership
(self)
userdefined_roles
(self)
Return list of user-defined roles.
users_with_local_role
(self, role)
valid_roles
(self)
Return list of valid roles.
valid_property_id
(self, id)
Access contents information
valid_roles
(self)
Return list of valid roles.
validate_roles
(self, roles)
Return true if all given roles are valid.
virtual_url_path
(self)
Return a URL for the object, relative to the site root. If a virtual host is configured, the URL is a path relative to the virtual host's root object. Otherwise, it is the physical path. In either case, the URL does not begin with a slash.
wl_clearLocks
(self)
wl_delLock
(self, locktoken)
wl_getLock
(self, locktoken)
wl_hasLock
(self, token, killinvalids
=0
)
wl_isLocked
(self)
wl_lockItems
(self, killinvalids
=0
)
wl_lockTokens
(self, killinvalids
=0
)
wl_lockValues
(self, killinvalids
=0
)
wl_lockmapping
(self, killinvalids
=0
, create
=0
)
if 'killinvalids' is 1, locks who are no longer valid will be deleted
wl_setLock
(self, locktoken, lock)
class
YumMetaDataFile
(
File
,
CMFCatalogAware
)
Handles compression/checksumming Yum meta data
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. Though we may later try to make a copy appear seamless across namespaces (e.g. from Zope to Apache), COPY is currently only supported within the Zope namespace.
DELETE
(self, REQUEST, RESPONSE)
Delete objects
Delete a resource. For non-collection resources, DELETE may return either 200 or 204 (No Content) to indicate success.
HEAD
(self, REQUEST, RESPONSE)
Retrieve resource information without a response body.
LOCK
(self, REQUEST, RESPONSE)
Lock a resource
MKCOL
(self, REQUEST, RESPONSE)
Create a new collection resource. If called on an existing resource, MKCOL must fail with 405 (Method Not Allowed).
MOVE
(self, REQUEST, RESPONSE)
Move a resource to a new location. Though we may later try to make a move appear seamless across namespaces (e.g. from Zope to Apache), MOVE is currently only supported within the Zope namespace.
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)
Change Images and Files
Handle HTTP PUT requests
PrincipiaSearchSource
(self)
RPMDistro: Download
Allow file objects to be searched.
TRACE
(self, REQUEST, RESPONSE)
Return the HTTP message received back to the client as the entity-body of a 200 (OK) response. This will often usually be intercepted by the web server in use. If not, the TRACE request will fail with a 405 (Method Not Allowed), since it is not often possible to reproduce the HTTP request verbatim from within the Zope environment.
Title
(self)
UNLOCK
(self, REQUEST, RESPONSE)
Remove an existing lock on a resource.
ZCacheable_configHTML
(self)
Override to provide configuration of caching behavior that can only be specific to the cacheable object.
ZCacheable_enabled
(self)
Returns true if caching is enabled for this object or method.
ZCacheable_get
(self, view_name
=''
, keywords
=None
, mtime_func
=None
, default
=None
)
Retrieves the cached view for the object under the conditions specified by keywords. If the value is not yet cached, returns the default.
ZCacheable_getCache
(self)
Gets the cache associated with this object.
ZCacheable_getManager
(self)
Returns the currently associated cache manager.
ZCacheable_getManagerId
(self)
Returns the id of the current ZCacheManager.
ZCacheable_getManagerIds
(self)
Returns a list of mappings containing the id and title of the available ZCacheManagers.
ZCacheable_getManagerURL
(self)
Returns the URL of the current ZCacheManager.
ZCacheable_getModTime
(self, mtime_func
=None
)
Returns the highest of the last mod times.
ZCacheable_getObAndView
(self, view_name)
Returns self and view_name unchanged.
ZCacheable_invalidate
(self, view_name
=''
, REQUEST
=None
)
Called after a cacheable object is edited. Causes all cache entries that apply to the view_name to be removed. Returns a status message.
ZCacheable_isCachingEnabled
(self)
Returns true only if associated with a cache manager and caching of this method is enabled.
ZCacheable_set
(self, data, view_name
=''
, keywords
=None
, mtime_func
=None
)
Cacheable views should call this method after generating cacheable results. The data argument can be of any Python type.
ZCacheable_setEnabled
(self, enabled
=0
, REQUEST
=None
)
Changes the enabled flag.
ZCacheable_setManagerId
(self, manager_id, REQUEST
=None
)
Changes the manager_id for this object.
InitializeClass
(self)
absolute_url
(self, relative
=0
)
Return the absolute URL of the object. This a canonical URL based on the object's physical containment path. It is affected by the virtual host configuration, if any, and can be used by external agents, such as a browser, to address the object. If the relative argument is provided, with a true value, then the value of virtual_url_path() is returned. Some Products incorrectly use '/'+absolute_url(1) as an absolute-path reference. This breaks in certain virtual hosting situations, and should be changed to use absolute_url_path() instead.
absolute_url_path
(self)
Return the path portion of the absolute URL of the object. This includes the leading slash, and can be used as an 'absolute-path reference' as defined in RFC 2396.
ac_inherited_permissions
(self, all
=0
)
access_debug_info
(self)
Return debug info.
acquiredRolesAreUsedBy
(self, permission)
bobobase_modification_time
(self)
cb_isCopyable
(self)
cb_isMoveable
(self)
cb_userHasCopyOrMovePermission
(self)
changeOwnership
(self, user, recursive
=0
)
Change the ownership to the given user. If 'recursive' is true then also take ownership of all sub-objects, otherwise sub-objects retain their ownership information.
check_sum
(self)
RPMDistro: Download
the checksum of the gzipped file
close
(self, vr)
collate digests and close file handle
dav__init
(self, request, response)
dav__simpleifhandler
(self, request, response, method
='PUT'
, col
=0
, url
=None
, refresh
=0
)
dav__validate
(self, object, methodname, REQUEST)
digest_algo
(self)
RPMDistro: Download
the checksum algorithm to use
filtered_manage_options
(self, REQUEST
=None
)
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.
getAttributes
(self)
Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise.
getChildNodes
(self)
Returns a NodeList that contains all children of this node. If there are no children, this is a empty NodeList
getContentType
(self)
RPMDistro: Download
Get the content type of a file or image. Returns the content type (MIME type) of a file or image.
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. Parameter: tagname The name of the tag to match (* = all tags). Return Value: A new NodeList object containing all the matched Elements.
getFirstChild
(self)
The first child of this node. If there is no such node this returns None
getId
(self)
Return the id of the object as a string.
getLastChild
(self)
The last child of this node. If there is no such node this returns None.
getNextSibling
(self)
The node immediately preceding this node. If there is no such node, this returns None.
getNodeName
(self)
The name of this node, depending on its type
getNodeType
(self)
A code representing the type of the node.
getNodeValue
(self)
The value of this node, depending on its type
getOwner
(self, info
=0
, aq_get
=
, UnownableOwner
=[]
, getSecurityManager
=
)
Get the owner If a true argument is provided, then only the owner path and id are returned. Otherwise, the owner object is returned.
getOwnerDocument
(self)
The Document object associated with this node. When this is a document this is None
getOwnerTuple
(self)
Return a tuple, (userdb_path, user_id) for the owner. o Ownership can be acquired, but only from the containment path. o If unowned, return None.
getParentNode
(self)
The parent of this node. All nodes except Document DocumentFragment and Attr may have a parent
getPhysicalPath
(self)
Get the physical path of the object. Returns a path (an immutable sequence of strings) that can be used to access this object again later, for example in a copy/paste operation. getPhysicalRoot() and getPhysicalPath() are designed to operate together.
getPreviousSibling
(self)
The node immediately preceding this node. If there is no such node, this returns None.
getProperty
(self, id, d
=None
)
Get the property 'id'. Returns the optional second argument or None if no such property is found.
getPropertyType
(self, id)
Get the type of property 'id'. Returns None if no such property exists.
get_size
(self)
Get the size of a file or image. Returns the size of the file or image.
getTagName
(self)
The name of the element
getWrappedOwner
(self)
Get the owner, modestly wrapped in the user folder. o If the object is not owned, return None. o If the owner's user database doesn't exist, return Nobody. o If the owner ID does not exist in the user database, return Nobody.
get_local_roles
(self)
get_local_roles_for_userid
(self, userid)
get_request_var_or_attr
(self, name, default)
get_size
(self)
RPMDistro: Download
Get the size of a file or image. Returns the size of the file or image.
get_valid_userids
(self)
hasChildNodes
(self)
Returns true if the node has any children, false if it doesn't.
hasProperty
(self, id)
Return true if object has a property 'id'.
has_local_roles
(self)
http__etag
(self, readonly
=0
)
http__parseMatchList
(self, REQUEST, header
='if-match'
)
http__processMatchHeaders
(self, REQUEST
=None
)
http__refreshEtag
(self)
id
(self)
RPMDistro: Download
indexObject
(self)
Index the object in the portal catalog.
index_html
(self, REQUEST, RESPONSE)
RPMDistro: Download
The default view of the contents of a File or Image. Returns the contents of the file or image. Also, sets the Content-Type HTTP header to the objects content type.
listDAVObjects
(self)
manage_DAVget
(self)
Gets the document source
manage_FTPget
(self)
FTP access
Return body for ftp.
manage_FTPlist
(self, REQUEST)
FTP access
Directory listing for FTP. In the case of non-Foldoid objects, the listing should contain one object, the object itself.
manage_FTPstat
(self, REQUEST)
FTP access
Psuedo stat, used by FTP for directory listings.
manage_access
(self, REQUEST, **kw)
Return an interface for making permissions settings.
manage_acquiredPermissions
(self, permissions
=[]
, REQUEST
=[]
)
Change the permissions that acquire.
manage_addLocalRoles
(self, userid, roles, REQUEST
=[]
)
Set local roles for a user.
manage_addProperty
(self, id, value, type, REQUEST
=None
)
Add a new property via the web. Sets a new property with the given id, type, and value.
manage_afterAdd
(self, item, container)
manage_afterClone
(self, item)
manage_beforeDelete
(self, item, container)
manage_changeOwnershipType
(self, explicit
=[]
, RESPONSE
=[]
, REQUEST
=[]
)
Change the type (implicit or explicit) of ownership.
manage_changePermissions
(self, REQUEST)
Change all permissions settings, called by management screen.
manage_changeProperties
(self, REQUEST
=None
, **kw)
Change existing object properties. Change object properties by passing either a REQUEST object or name=value parameters
manage_changePropertyTypes
(self, old_ids, props, REQUEST
=None
)
Replace one set of properties with another Delete all properties that have ids in old_ids, then add a property for each item in props. Each item has a new_id, new_value, and new_type. The type of new_value should match new_type.
manage_defined_roles
(self, submit
=None
, REQUEST
=None
)
Called by management screen.
manage_delLocalRoles
(self, userids, REQUEST
=[]
)
Remove all local roles for a user.
manage_delProperties
(self, ids
=None
, REQUEST
=None
)
Delete one or more properties specified by 'ids'.
manage_edit
(self, title, content_type, precondition
=''
, filedata
=None
, REQUEST
=None
)
Change Images and Files
Changes the title and content type attributes of the File or Image.
manage_editProperties
(self, REQUEST)
Edit object properties via the web. The purpose of this method is to change all property values, even those not listed in REQUEST; otherwise checkboxes that get turned off will be ignored. Use manage_changeProperties() instead for most situations.
manage_editRoles
(self, REQUEST, acl_type
='A'
, acl_roles
=[]
)
manage_editedDialog
(self, REQUEST, **args)
manage_fixupOwnershipAfterAdd
(self)
manage_getPermissionMapping
(self)
Return the permission mapping for the object This is a list of dictionaries with: permission_name -- The name of the native object permission class_permission -- The class permission the permission is mapped to.
manage_getUserRolesAndPermissions
(self, user_id)
Used for permission/role reporting for a given user_id. Returns a dict mapping 'user_defined_in' -> path where the user account is defined 'roles' -> global roles, 'roles_in_context' -> roles in context of the current object, 'allowed_permissions' -> permissions allowed for the user, 'disallowed_permissions' -> all other permissions
manage_permission
(self, permission_to_manage, roles
=[]
, acquire
=[]
, REQUEST
=[]
)
Change the settings for the given permission. If optional arg acquire is true, then the roles for the permission are acquired, in addition to the ones specified, otherwise the permissions are restricted to only the designated roles.
manage_recalculateChecksums
(self, REQUEST
=None
)
Change Images and Files
recompute the checksum, and openchecksum
manage_role
(self, role_to_manage, permissions
=[]
, REQUEST
=[]
)
Change the permissions given to the given role.
manage_setLocalRoles
(self, userid, roles, REQUEST
=[]
)
Set local roles for a user.
manage_setPermissionMapping
(self, permission_names
=[]
, class_permissions
=[]
, REQUEST
=[]
)
Change the permission mapping
manage_takeOwnership
(self, REQUEST, RESPONSE, recursive
=[]
)
Take ownership (responsibility) for an object. If 'recursive' is true, then also take ownership of all sub-objects.
manage_undo_transactions
(self, transaction_info
=()
, REQUEST
=None
)
manage_upload
(self, file
=''
, REQUEST
=None
)
Change Images and Files
Replaces the current contents of the File or Image object with file. The file or images contents are replaced with the contents of 'file'.
manage_workflowsTab
(self, REQUEST, manage_tabs_message
=None
)
Tab displaying the current workflows for the content object.
manage_workspace
(self, REQUEST)
Dispatch to first interface in manage_options
notifyWorkflowCreated
(self)
Notify the workflow that the object was just created.
objectValues
(self, spec
=None
)
objectValues
(self, spec
=None
)
objectValues
(self, spec
=None
)
opaqueIds
(self)
Return opaque ids (subelements that are contained using something that is not an ObjectManager).
opaqueItems
(self)
Return opaque items (subelements that are contained using something that is not an ObjectManager).
opaqueValues
(self)
Return opaque values (subelements that are contained using something that is not an ObjectManager).
open
(self)
setup the digest along with file handle
open_check_sum
(self)
RPMDistro: Download
the checksum of the un-gzipped file
owner_info
(self)
Get ownership info for display
permission_settings
(self, permission
=None
)
Return user-role permission settings. If 'permission' is passed to the method then only the settings for 'permission' is returned.
permissionsOfRole
(self, role)
Returns a role to permission mapping.
possible_permissions
(self)
propdict
(self)
propertyDescription
(self, id)
Return a description for the given property id
propertyIds
(self)
Return a list of property ids.
propertyItems
(self)
Return a list of (id,property) tuples.
propertyLabel
(self, id)
Return a label for the given property id
propertyMap
(self)
Return a tuple of mappings, giving meta-data for properties. Return copies of the real definitions for security.
propertyValues
(self)
Return a list of actual property objects.
raise_standardErrorMessage
(self, client
=None
, REQUEST
={}
, error_type
=None
, error_value
=None
, tb
=None
, error_tb
=None
, error_message
=''
, tagSearch
=
, error_log_url
=''
)
read
(self)
IO API compatibility
reindexObject
(self, idxs
=[]
)
Reindex the object in the portal catalog.
reindexObjectSecurity
(self, skip_self
=False
)
Reindex security-related indexes on the object.
repo_type
(self)
RPMDistro: Download
return the repository type
restrictedTraverse
(self, path, default
=
)
rolesOfPermission
(self, permission)
Returns a permission to role mapping.
tabs_path_default
(self, REQUEST, unquote
=
)
tabs_path_info
(self, script, path, quote
=
)
this
(self)
time_stamp
(self)
RPMDistro: Download
return the last modification time of the data file
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.
tpURL
(self)
tpValues
(self)
undoable_transactions
(self, first_transaction
=None
, last_transaction
=None
, PrincipiaUndoBatchSize
=None
)
unindexObject
(self)
Unindex the object from the portal catalog.
unrestrictedTraverse
(self, path, default
=
, restricted
=False
)
Lookup an object by path. path -- The path to the object. May be a sequence of strings or a slash separated string. If the path begins with an empty path element (i.e., an empty string or a slash) then the lookup is performed from the application root. Otherwise, the lookup is relative to self. Two dots (..) as a path element indicates an upward traversal to the acquisition parent. default -- If provided, this is the value returned if the path cannot be traversed for any reason (i.e., no object exists at that path or the object is inaccessible). restricted -- If false (default) then no security checking is performed. If true, then all of the objects along the path are validated with the security machinery. Usually invoked using restrictedTraverse().
update_data
(self, data, content_type
=None
, size
=None
)
userCanTakeOwnership
(self)
userdefined_roles
(self)
Return list of user-defined roles.
users_with_local_role
(self, role)
valid_roles
(self)
Return list of valid roles.
valid_property_id
(self, id)
valid_roles
(self)
Return list of valid roles.
validate_roles
(self, roles)
Return true if all given roles are valid.
view_image_or_file
(self, URL1)
RPMDistro: Download
The default view of the contents of the File or Image.
virtual_url_path
(self)
Return a URL for the object, relative to the site root. If a virtual host is configured, the URL is a path relative to the virtual host's root object. Otherwise, it is the physical path. In either case, the URL does not begin with a slash.
wl_clearLocks
(self)
wl_delLock
(self, locktoken)
wl_getLock
(self, locktoken)
wl_hasLock
(self, token, killinvalids
=0
)
wl_isLocked
(self)
wl_lockItems
(self, killinvalids
=0
)
wl_lockTokens
(self, killinvalids
=0
)
wl_lockValues
(self, killinvalids
=0
)
wl_lockmapping
(self, killinvalids
=0
, create
=0
)
if 'killinvalids' is 1, locks who are no longer valid will be deleted
wl_setLock
(self, locktoken, lock)
write_xml
(self, text, vr)
class
YumOtherMetaData
(
YumMetaDataFile
)
Yum other meta data
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. Though we may later try to make a copy appear seamless across namespaces (e.g. from Zope to Apache), COPY is currently only supported within the Zope namespace.
DELETE
(self, REQUEST, RESPONSE)
Delete objects
Delete a resource. For non-collection resources, DELETE may return either 200 or 204 (No Content) to indicate success.
HEAD
(self, REQUEST, RESPONSE)
Retrieve resource information without a response body.
LOCK
(self, REQUEST, RESPONSE)
Lock a resource
MKCOL
(self, REQUEST, RESPONSE)
Create a new collection resource. If called on an existing resource, MKCOL must fail with 405 (Method Not Allowed).
MOVE
(self, REQUEST, RESPONSE)
Move a resource to a new location. Though we may later try to make a move appear seamless across namespaces (e.g. from Zope to Apache), MOVE is currently only supported within the Zope namespace.
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)
Change Images and Files
Handle HTTP PUT requests
PrincipiaSearchSource
(self)
RPMDistro: Download
Allow file objects to be searched.
TRACE
(self, REQUEST, RESPONSE)
Return the HTTP message received back to the client as the entity-body of a 200 (OK) response. This will often usually be intercepted by the web server in use. If not, the TRACE request will fail with a 405 (Method Not Allowed), since it is not often possible to reproduce the HTTP request verbatim from within the Zope environment.
Title
(self)
UNLOCK
(self, REQUEST, RESPONSE)
Remove an existing lock on a resource.
ZCacheable_configHTML
(self)
Override to provide configuration of caching behavior that can only be specific to the cacheable object.
ZCacheable_enabled
(self)
Returns true if caching is enabled for this object or method.
ZCacheable_get
(self, view_name
=''
, keywords
=None
, mtime_func
=None
, default
=None
)
Retrieves the cached view for the object under the conditions specified by keywords. If the value is not yet cached, returns the default.
ZCacheable_getCache
(self)
Gets the cache associated with this object.
ZCacheable_getManager
(self)
Returns the currently associated cache manager.
ZCacheable_getManagerId
(self)
Returns the id of the current ZCacheManager.
ZCacheable_getManagerIds
(self)
Returns a list of mappings containing the id and title of the available ZCacheManagers.
ZCacheable_getManagerURL
(self)
Returns the URL of the current ZCacheManager.
ZCacheable_getModTime
(self, mtime_func
=None
)
Returns the highest of the last mod times.
ZCacheable_getObAndView
(self, view_name)
Returns self and view_name unchanged.
ZCacheable_invalidate
(self, view_name
=''
, REQUEST
=None
)
Called after a cacheable object is edited. Causes all cache entries that apply to the view_name to be removed. Returns a status message.
ZCacheable_isCachingEnabled
(self)
Returns true only if associated with a cache manager and caching of this method is enabled.
ZCacheable_set
(self, data, view_name
=''
, keywords
=None
, mtime_func
=None
)
Cacheable views should call this method after generating cacheable results. The data argument can be of any Python type.
ZCacheable_setEnabled
(self, enabled
=0
, REQUEST
=None
)
Changes the enabled flag.
ZCacheable_setManagerId
(self, manager_id, REQUEST
=None
)
Changes the manager_id for this object.
InitializeClass
(self)
absolute_url
(self, relative
=0
)
Return the absolute URL of the object. This a canonical URL based on the object's physical containment path. It is affected by the virtual host configuration, if any, and can be used by external agents, such as a browser, to address the object. If the relative argument is provided, with a true value, then the value of virtual_url_path() is returned. Some Products incorrectly use '/'+absolute_url(1) as an absolute-path reference. This breaks in certain virtual hosting situations, and should be changed to use absolute_url_path() instead.
absolute_url_path
(self)
Return the path portion of the absolute URL of the object. This includes the leading slash, and can be used as an 'absolute-path reference' as defined in RFC 2396.
ac_inherited_permissions
(self, all
=0
)
access_debug_info
(self)
Return debug info.
acquiredRolesAreUsedBy
(self, permission)
bobobase_modification_time
(self)
cb_isCopyable
(self)
cb_isMoveable
(self)
cb_userHasCopyOrMovePermission
(self)
changeOwnership
(self, user, recursive
=0
)
Change the ownership to the given user. If 'recursive' is true then also take ownership of all sub-objects, otherwise sub-objects retain their ownership information.
check_sum
(self)
RPMDistro: Download
the checksum of the gzipped file
close
(self, vr)
dav__init
(self, request, response)
dav__simpleifhandler
(self, request, response, method
='PUT'
, col
=0
, url
=None
, refresh
=0
)
dav__validate
(self, object, methodname, REQUEST)
digest_algo
(self)
RPMDistro: Download
the checksum algorithm to use
filtered_manage_options
(self, REQUEST
=None
)
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.
getAttributes
(self)
Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise.
getChildNodes
(self)
Returns a NodeList that contains all children of this node. If there are no children, this is a empty NodeList
getContentType
(self)
RPMDistro: Download
Get the content type of a file or image. Returns the content type (MIME type) of a file or image.
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. Parameter: tagname The name of the tag to match (* = all tags). Return Value: A new NodeList object containing all the matched Elements.
getFirstChild
(self)
The first child of this node. If there is no such node this returns None
getId
(self)
Return the id of the object as a string.
getLastChild
(self)
The last child of this node. If there is no such node this returns None.
getNextSibling
(self)
The node immediately preceding this node. If there is no such node, this returns None.
getNodeName
(self)
The name of this node, depending on its type
getNodeType
(self)
A code representing the type of the node.
getNodeValue
(self)
The value of this node, depending on its type
getOwner
(self, info
=0
, aq_get
=
, UnownableOwner
=[]
, getSecurityManager
=
)
Get the owner If a true argument is provided, then only the owner path and id are returned. Otherwise, the owner object is returned.
getOwnerDocument
(self)
The Document object associated with this node. When this is a document this is None
getOwnerTuple
(self)
Return a tuple, (userdb_path, user_id) for the owner. o Ownership can be acquired, but only from the containment path. o If unowned, return None.
getParentNode
(self)
The parent of this node. All nodes except Document DocumentFragment and Attr may have a parent
getPhysicalPath
(self)
Get the physical path of the object. Returns a path (an immutable sequence of strings) that can be used to access this object again later, for example in a copy/paste operation. getPhysicalRoot() and getPhysicalPath() are designed to operate together.
getPreviousSibling
(self)
The node immediately preceding this node. If there is no such node, this returns None.
getProperty
(self, id, d
=None
)
Get the property 'id'. Returns the optional second argument or None if no such property is found.
getPropertyType
(self, id)
Get the type of property 'id'. Returns None if no such property exists.
get_size
(self)
Get the size of a file or image. Returns the size of the file or image.
getTagName
(self)
The name of the element
getWrappedOwner
(self)
Get the owner, modestly wrapped in the user folder. o If the object is not owned, return None. o If the owner's user database doesn't exist, return Nobody. o If the owner ID does not exist in the user database, return Nobody.
get_local_roles
(self)
get_local_roles_for_userid
(self, userid)
get_request_var_or_attr
(self, name, default)
get_size
(self)
RPMDistro: Download
Get the size of a file or image. Returns the size of the file or image.
get_valid_userids
(self)
hasChildNodes
(self)
Returns true if the node has any children, false if it doesn't.
hasProperty
(self, id)
Return true if object has a property 'id'.
has_local_roles
(self)
http__etag
(self, readonly
=0
)
http__parseMatchList
(self, REQUEST, header
='if-match'
)
http__processMatchHeaders
(self, REQUEST
=None
)
http__refreshEtag
(self)
id
(self)
RPMDistro: Download
indexObject
(self)
Index the object in the portal catalog.
index_html
(self, REQUEST, RESPONSE)
RPMDistro: Download
The default view of the contents of a File or Image. Returns the contents of the file or image. Also, sets the Content-Type HTTP header to the objects content type.
listDAVObjects
(self)
manage_DAVget
(self)
Gets the document source
manage_FTPget
(self)
FTP access
Return body for ftp.
manage_FTPlist
(self, REQUEST)
FTP access
Directory listing for FTP. In the case of non-Foldoid objects, the listing should contain one object, the object itself.
manage_FTPstat
(self, REQUEST)
FTP access
Psuedo stat, used by FTP for directory listings.
manage_access
(self, REQUEST, **kw)
Return an interface for making permissions settings.
manage_acquiredPermissions
(self, permissions
=[]
, REQUEST
=[]
)
Change the permissions that acquire.
manage_addLocalRoles
(self, userid, roles, REQUEST
=[]
)
Set local roles for a user.
manage_addProperty
(self, id, value, type, REQUEST
=None
)
Add a new property via the web. Sets a new property with the given id, type, and value.
manage_afterAdd
(self, item, container)
manage_afterClone
(self, item)
manage_beforeDelete
(self, item, container)
manage_changeOwnershipType
(self, explicit
=[]
, RESPONSE
=[]
, REQUEST
=[]
)
Change the type (implicit or explicit) of ownership.
manage_changePermissions
(self, REQUEST)
Change all permissions settings, called by management screen.
manage_changeProperties
(self, REQUEST
=None
, **kw)
Change existing object properties. Change object properties by passing either a REQUEST object or name=value parameters
manage_changePropertyTypes
(self, old_ids, props, REQUEST
=None
)
Replace one set of properties with another Delete all properties that have ids in old_ids, then add a property for each item in props. Each item has a new_id, new_value, and new_type. The type of new_value should match new_type.
manage_defined_roles
(self, submit
=None
, REQUEST
=None
)
Called by management screen.
manage_delLocalRoles
(self, userids, REQUEST
=[]
)
Remove all local roles for a user.
manage_delProperties
(self, ids
=None
, REQUEST
=None
)
Delete one or more properties specified by 'ids'.
manage_edit
(self, title, content_type, precondition
=''
, filedata
=None
, REQUEST
=None
)
Change Images and Files
Changes the title and content type attributes of the File or Image.
manage_editProperties
(self, REQUEST)
Edit object properties via the web. The purpose of this method is to change all property values, even those not listed in REQUEST; otherwise checkboxes that get turned off will be ignored. Use manage_changeProperties() instead for most situations.
manage_editRoles
(self, REQUEST, acl_type
='A'
, acl_roles
=[]
)
manage_editedDialog
(self, REQUEST, **args)
manage_fixupOwnershipAfterAdd
(self)
manage_getPermissionMapping
(self)
Return the permission mapping for the object This is a list of dictionaries with: permission_name -- The name of the native object permission class_permission -- The class permission the permission is mapped to.
manage_getUserRolesAndPermissions
(self, user_id)
Used for permission/role reporting for a given user_id. Returns a dict mapping 'user_defined_in' -> path where the user account is defined 'roles' -> global roles, 'roles_in_context' -> roles in context of the current object, 'allowed_permissions' -> permissions allowed for the user, 'disallowed_permissions' -> all other permissions
manage_permission
(self, permission_to_manage, roles
=[]
, acquire
=[]
, REQUEST
=[]
)
Change the settings for the given permission. If optional arg acquire is true, then the roles for the permission are acquired, in addition to the ones specified, otherwise the permissions are restricted to only the designated roles.
manage_recalculateChecksums
(self, REQUEST
=None
)
Change Images and Files
recompute the checksum, and openchecksum
manage_role
(self, role_to_manage, permissions
=[]
, REQUEST
=[]
)
Change the permissions given to the given role.
manage_setLocalRoles
(self, userid, roles, REQUEST
=[]
)
Set local roles for a user.
manage_setPermissionMapping
(self, permission_names
=[]
, class_permissions
=[]
, REQUEST
=[]
)
Change the permission mapping
manage_takeOwnership
(self, REQUEST, RESPONSE, recursive
=[]
)
Take ownership (responsibility) for an object. If 'recursive' is true, then also take ownership of all sub-objects.
manage_undo_transactions
(self, transaction_info
=()
, REQUEST
=None
)
manage_upload
(self, file
=''
, REQUEST
=None
)
Change Images and Files
Replaces the current contents of the File or Image object with file. The file or images contents are replaced with the contents of 'file'.
manage_workflowsTab
(self, REQUEST, manage_tabs_message
=None
)
Tab displaying the current workflows for the content object.
manage_workspace
(self, REQUEST)
Dispatch to first interface in manage_options
notifyWorkflowCreated
(self)
Notify the workflow that the object was just created.
objectValues
(self, spec
=None
)
objectValues
(self, spec
=None
)
objectValues
(self, spec
=None
)
opaqueIds
(self)
Return opaque ids (subelements that are contained using something that is not an ObjectManager).
opaqueItems
(self)
Return opaque items (subelements that are contained using something that is not an ObjectManager).
opaqueValues
(self)
Return opaque values (subelements that are contained using something that is not an ObjectManager).
open
(self, pkgcount)
open_check_sum
(self)
RPMDistro: Download
the checksum of the un-gzipped file
owner_info
(self)
Get ownership info for display
permission_settings
(self, permission
=None
)
Return user-role permission settings. If 'permission' is passed to the method then only the settings for 'permission' is returned.
permissionsOfRole
(self, role)
Returns a role to permission mapping.
possible_permissions
(self)
propdict
(self)
propertyDescription
(self, id)
Return a description for the given property id
propertyIds
(self)
Return a list of property ids.
propertyItems
(self)
Return a list of (id,property) tuples.
propertyLabel
(self, id)
Return a label for the given property id
propertyMap
(self)
Return a tuple of mappings, giving meta-data for properties. Return copies of the real definitions for security.
propertyValues
(self)
Return a list of actual property objects.
raise_standardErrorMessage
(self, client
=None
, REQUEST
={}
, error_type
=None
, error_value
=None
, tb
=None
, error_tb
=None
, error_message
=''
, tagSearch
=
, error_log_url
=''
)
read
(self)
IO API compatibility
reindexObject
(self, idxs
=[]
)
Reindex the object in the portal catalog.
reindexObjectSecurity
(self, skip_self
=False
)
Reindex security-related indexes on the object.
repo_type
(self)
RPMDistro: Download
return the repository type
restrictedTraverse
(self, path, default
=
)
rolesOfPermission
(self, permission)
Returns a permission to role mapping.
tabs_path_default
(self, REQUEST, unquote
=
)
tabs_path_info
(self, script, path, quote
=
)
this
(self)
time_stamp
(self)
RPMDistro: Download
return the last modification time of the data file
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.
tpURL
(self)
tpValues
(self)
undoable_transactions
(self, first_transaction
=None
, last_transaction
=None
, PrincipiaUndoBatchSize
=None
)
unindexObject
(self)
Unindex the object from the portal catalog.
unrestrictedTraverse
(self, path, default
=
, restricted
=False
)
Lookup an object by path. path -- The path to the object. May be a sequence of strings or a slash separated string. If the path begins with an empty path element (i.e., an empty string or a slash) then the lookup is performed from the application root. Otherwise, the lookup is relative to self. Two dots (..) as a path element indicates an upward traversal to the acquisition parent. default -- If provided, this is the value returned if the path cannot be traversed for any reason (i.e., no object exists at that path or the object is inaccessible). restricted -- If false (default) then no security checking is performed. If true, then all of the objects along the path are validated with the security machinery. Usually invoked using restrictedTraverse().
update_data
(self, data, content_type
=None
, size
=None
)
userCanTakeOwnership
(self)
userdefined_roles
(self)
Return list of user-defined roles.
users_with_local_role
(self, role)
valid_roles
(self)
Return list of valid roles.
valid_property_id
(self, id)
valid_roles
(self)
Return list of valid roles.
validate_roles
(self, roles)
Return true if all given roles are valid.
view_image_or_file
(self, URL1)
RPMDistro: Download
The default view of the contents of the File or Image.
virtual_url_path
(self)
Return a URL for the object, relative to the site root. If a virtual host is configured, the URL is a path relative to the virtual host's root object. Otherwise, it is the physical path. In either case, the URL does not begin with a slash.
wl_clearLocks
(self)
wl_delLock
(self, locktoken)
wl_getLock
(self, locktoken)
wl_hasLock
(self, token, killinvalids
=0
)
wl_isLocked
(self)
wl_lockItems
(self, killinvalids
=0
)
wl_lockTokens
(self, killinvalids
=0
)
wl_lockValues
(self, killinvalids
=0
)
wl_lockmapping
(self, killinvalids
=0
, create
=0
)
if 'killinvalids' is 1, locks who are no longer valid will be deleted
wl_setLock
(self, locktoken, lock)
write_xml
(self, text, vr)
class
YumRepository
(
PortalFolder
)
A yum interface to RPM's This is an abstract base class - derive implementing the _repoRPMs method Note that this is a Pure-Zope class as Plone continues to get in the way with logins and view permission requirements when we want our own permissions controller
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. Though we may later try to make a copy appear seamless across namespaces (e.g. from Zope to Apache), COPY is currently only supported within the Zope namespace.
Contributors
(self)
View
Deprecated alias of listContributors.
CreationDate
(self, zone
=None
)
View
Dublin Core Date element - date resource created.
Creator
(self)
View
Dublin Core Creator element - resource author.
DELETE
(self, REQUEST, RESPONSE)
Delete a collection resource. For collection resources, DELETE may return either 200 (OK) or 204 (No Content) to indicate total success, or may return 207 (Multistatus) to indicate partial success. Note that in Zope a DELETE currently never returns 207.
Date
(self, zone
=None
)
View
Dublin Core Date element - default date.
Description
(self)
View
Dublin Core Description element - resource summary.
EffectiveDate
(self, zone
=None
)
View
Dublin Core Date element - date resource becomes effective.
ExpirationDate
(self, zone
=None
)
View
Dublin Core Date element - date resource expires.
Format
(self)
View
Dublin Core Format element - resource format.
HEAD
(self, REQUEST, RESPONSE)
Retrieve resource information without a response body.
Identifier
(self)
View
Dublin Core Identifier element - resource ID.
LOCK
(self, REQUEST, RESPONSE)
Lock a resource
Language
(self)
View
Dublin Core Language element - resource language.
MKCOL
(self, REQUEST, RESPONSE)
Create a new collection resource. If called on an existing resource, MKCOL must fail with 405 (Method Not Allowed).
MKCOL_handler
(self, id, REQUEST
=None
, RESPONSE
=None
)
Handle WebDAV MKCOL.
MOVE
(self, REQUEST, RESPONSE)
Move a resource to a new location. Though we may later try to make a move appear seamless across namespaces (e.g. from Zope to Apache), MOVE is currently only supported within the Zope namespace.
ModificationDate
(self, zone
=None
)
View
Dublin Core Date element - date resource last modified.
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)
The PUT method has no inherent meaning for collection resources, though collections are not specifically forbidden to handle PUT requests. The default response to a PUT request for collections is 405 (Method Not Allowed).
PUT_factory
(self, name, typ, body)
Factory for PUT requests to objects which do not yet exist. Used by NullResource.PUT. Returns -- Bare and empty object of the appropriate type (or None, if we don't know what to do)
ZopeFind
(self, obj, obj_ids
=None
, obj_metatypes
=None
, obj_searchterm
=None
, obj_expr
=None
, obj_mtime
=None
, obj_mspec
=None
, obj_permission
=None
, obj_roles
=None
, search_sub
=0
, REQUEST
=None
, result
=None
, pre
=''
)
Zope Find interface
Publisher
(self)
View
Dublin Core Publisher element - resource publisher.
Rights
(self)
View
Dublin Core Rights element - resource copyright.
SQLConnectionIDs
(container)
Find SQL database connections in the current folder and above This function returns a list of two-element tuples. The second element is the connection ID, the first element either its title, or if the title is empty, its ID.
SecurityCheckPermission
(md, permission, object)
Check whether the security context allows the given permission on the given object. Arguments: permission -- A permission name object -- The object being accessed according to the permission
Subject
(self)
View
Dublin Core Subject element - resource keywords.
TRACE
(self, REQUEST, RESPONSE)
Return the HTTP message received back to the client as the entity-body of a 200 (OK) response. This will often usually be intercepted by the web server in use. If not, the TRACE request will fail with a 405 (Method Not Allowed), since it is not often possible to reproduce the HTTP request verbatim from within the Zope environment.
Title
(self)
View
Dublin Core Title element - resource name.
Type
(self)
View
Dublin Core Type element - resource type.
UNLOCK
(self, REQUEST, RESPONSE)
Remove an existing lock on a resource.
ZQueryIds
(self)
ZopeFind
(self, obj, obj_ids
=None
, obj_metatypes
=None
, obj_searchterm
=None
, obj_expr
=None
, obj_mtime
=None
, obj_mspec
=None
, obj_permission
=None
, obj_roles
=None
, search_sub
=0
, REQUEST
=None
, result
=None
, pre
=''
)
Zope Find interface
ZopeFindAndApply
(self, obj, obj_ids
=None
, obj_metatypes
=None
, obj_searchterm
=None
, obj_expr
=None
, obj_mtime
=None
, obj_mspec
=None
, obj_permission
=None
, obj_roles
=None
, search_sub
=0
, REQUEST
=None
, result
=None
, pre
=''
, apply_func
=None
, apply_path
=''
)
Zope Find interface and apply
getPortalTypeName
(self)
needed for the portal type view mechanism ...
absolute_url
(self, relative
=0
)
Return the absolute URL of the object. This a canonical URL based on the object's physical containment path. It is affected by the virtual host configuration, if any, and can be used by external agents, such as a browser, to address the object. If the relative argument is provided, with a true value, then the value of virtual_url_path() is returned. Some Products incorrectly use '/'+absolute_url(1) as an absolute-path reference. This breaks in certain virtual hosting situations, and should be changed to use absolute_url_path() instead.
absolute_url_path
(self)
Return the path portion of the absolute URL of the object. This includes the leading slash, and can be used as an 'absolute-path reference' as defined in RFC 2396.
ac_inherited_permissions
(self, all
=0
)
access_debug_info
(self)
Return debug info.
acquiredRolesAreUsedBy
(self, permission)
actions
(self)
View
return a list of valid transitions for the object
addCreator
(self, creator
=None
)
Modify portal content
Add creator to Dublin Core creators.
addDTMLDocument
(self, id, title
=''
, file
=''
, REQUEST
=None
, submit
=None
)
Add a DTML Document object with the contents of file. If 'file' is empty, default document text is used.
addDTMLMethod
(self, id, title
=''
, file
=''
, REQUEST
=None
, submit
=None
)
Add a DTML Method object with the contents of file. If 'file' is empty, default document text is used.
additional_buttons
(self)
all_meta_types
(self)
allowedContentTypes
(self)
List type info objects for types which can be added in this folder.
analyseClosure
(self, output
=None
, REQUEST
=None
)
View
analyse the results of a previous closure run
bobobase_modification_time
(self)
categoryValues
(self, active_only
=True
)
View
safe return of CompsCategorys
cb_dataItems
(self)
cb_dataValid
(self)
cb_isCopyable
(self)
cb_isMoveable
(self)
cb_userHasCopyOrMovePermission
(self)
chains
(self, wftool
=None
)
View management screens
return workflow chains
changeOwnership
(self, user, recursive
=0
)
Change the ownership to the given user. If 'recursive' is true then also take ownership of all sub-objects, otherwise sub-objects retain their ownership information.
checkIdAvailable
(self, id)
checksum
(self)
View
contentIds
(self, filter
=None
)
contentItems
(self, filter
=None
)
contentValues
(self, filter
=None
, sort_on
=None
, reverse
=0
)
Able to sort on field.