You are here: Home / API Documentation / Products.RPMManager.RPMManager

 Products.RPMManager.RPMManager  

Up one level
Zpydoc Products RPMManager RPMManager
Classes
Class  class RPMManager ( PropertyManager , PortalContent , ZScheduleEvent )
A server used to manage and distribute RedHat RPM's as per the XML-RPC expectations of the RedHat up2date suite. The ZScheduleEvent is to manage billing.
Plus Lock  RPMManager: Add RPMManager
Implements IRPMManager IX509CASchema IPropertySchema IViewSchema IPropertyManager ILocalPortletAssignable IUUIDAware IAttributeUUID IDynamicType IDublinCore ICatalogableDublinCore IMutableDublinCore IJSONRepresentation ISimpleItem IItem IDAVResource IWriteLock EtagBaseInterface ICopySource ITraversable IOwned IUndoSupport IPersistentExtra IPersistent IAcquirer IRoleManager IPermissionMappingSupport ICatalogAware IWorkflowAware IOpaqueItemManager IScheduleEvent IPropertySchema
Method 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.
Method Contributors(self)
Lock   View
Deprecated alias of listContributors.
Method CreationDate(self, zone=None)
Lock   View
Dublin Core Date element - date resource created.
Method Creator(self)
Lock   View
Dublin Core Creator element - resource author.
Method DELETE(self, REQUEST, RESPONSE)
Delete a resource. For non-collection resources, DELETE may return either 200 or 204 (No Content) to indicate success.
Method Date(self, zone=None)
Lock   View
Dublin Core Date element - default date.
Method Description(self)
Lock   View
Dublin Core Description element - resource summary.
Method EffectiveDate(self, zone=None)
Lock   View
Method ExpirationDate(self, zone=None)
Lock   View
Method Format(self)
Lock   View
Dublin Core Format element - resource format.
Method HEAD(self, REQUEST, RESPONSE)
Retrieve resource information without a response body.
Method Identifier(self)
Lock   View
Dublin Core Identifier element - resource ID.
Method LOCK(self, REQUEST, RESPONSE)
Lock a resource
Method Language(self)
Lock   View
Dublin Core Language element - resource language.
Method MKCOL(self, REQUEST, RESPONSE)
Create a new collection resource. If called on an existing resource, MKCOL must fail with 405 (Method Not Allowed).
Method 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.
Method ModificationDate(self, zone=None)
Lock   View
Dublin Core Date element - date resource last modified.
Method OPTIONS(self, REQUEST, RESPONSE)
Retrieve communication options.
Method PROPFIND(self, REQUEST, RESPONSE)
Retrieve properties defined on the resource.
Method PROPPATCH(self, REQUEST, RESPONSE)
Set and/or remove properties defined on the resource.
Method 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).
Method Publisher(self)
Lock   View
Dublin Core Publisher element - resource publisher.
Method Rights(self)
Lock   View
Dublin Core Rights element - resource copyright.
Method 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
Method Subject(self)
Lock   View
Dublin Core Subject element - resource keywords.
Method 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.
Method Title(self)
Lock   View
Dublin Core Title element - resource name.
Method Type(self)
Lock   View
Dublin Core Type element - resource type.
Method UNLOCK(self, REQUEST, RESPONSE)
Remove an existing lock on a resource.
Method InitializeClass(self)
Method getPortalTypeName(self)
needed for the portal type view mechanism ...
Method wl_lockmapping(self, killinvalids=0, create=0)
if 'killinvalids' is 1, locks who are no longer valid will be deleted
Method 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.
Method 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.
Method ac_inherited_permissions(self, all=0)
Method access_debug_info(self)
Return debug info.
Method acquiredRolesAreUsedBy(self, permission)
Method actions(self)
Lock   View
return a list of valid transitions for the object
Method active(self)
active status flag
Method addCreator(self, creator=None)
Lock   Modify portal content
Add creator to Dublin Core creators.
Method basicAuthUrl(self, user='usrname', pwd='password')
Lock   View
returns a demonstration of the url syntax you need to connect with
Method bobobase_modification_time(self)
Method capability(self)
capabilies expressed in proper string format
Method cb_isCopyable(self)
Method cb_isMoveable(self)
Method cb_userHasCopyOrMovePermission(self)
Method chains(self, wftool=None)
Lock   View management screens
return workflow chains
Method 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.
Method content_type(self)
WebDAV needs this to do the Right Thing (TM).
Method countries(self)
Method created(self)
Lock   View
Dublin Core Date element - date resource created.
Method cronTab(self)
crontab-formatted times
Method dav__init(self, request, response)
Method dav__simpleifhandler(self, request, response, method='PUT', col=0, url=None, refresh=0)
Method dav__validate(self, object, methodname, REQUEST)
Method debugInfo(self)
Lock   View management screens
return tuple of sorted dict key, values
Method detectReleaseFile(self)
Lock   View
returns the release config file ie /etc/fedora-release
Method detectReleaseSubstring(self)
Lock   View
returns the release contents of the *detectReleaseFile()*
Method editMetadata(self, title='', subject=(), description='', contributors=(), effective_date=None, expiration_date=None, format='text/html', language='en-US', rights='')
Lock   Modify portal content
Need to add check for webDAV locked resource for TTW methods.
Method effective(self)
Lock   View
Dublin Core Date element - date resource becomes effective.
Method emptyContent(self)
initially dupe kupu into setting a blank field
Method event(self)
return the actual event object/method the event object's security permissions control access
Method expandedCronTab(self)
cron time with ranges etc expanded into commas
Method expires(self)
Lock   View
Dublin Core Date element - date resource expires.
Method famNewPackage(self, filename)
Lock   Change configuration
a File Attribute Monitor notification that a new package has arrived on the file system refresh any name matches found on our channels
Method famRemovePackage(self, filename)
Lock   Change configuration
a File Attribute Monitor notification that a new package has arrived on the file system just go change it's status
Method filtered_manage_options(self, REQUEST=None)
Method getActionInfo(self, action_chain, check_visibility=0, check_condition=0)
Get an Action info mapping specified by a chain of actions.
Method getActionsFor(self, workflow)
Lock   View management screens
return a list of valid transition states
Method getAllStatusIdsOf(self, workflow)
Lock   View management screens
return a list of valid state (ids) for the workflow
Method getAttribute(self, name)
Method getAttributeNode(self, name)
Method getAttributes(self)
Method getBastionDomain(self)
return a BastionDomain - DNS info for anything within a hosting context
Method getChildNodes(self)
Method getContentType(self, fieldname)
kupu get's confused with our non-AT types ...
Method getDefaultStatusOf(self, workflow)
Lock   View management screens
return the initial state of the workflow
Method getElementsByTagName(self, tagname)
Method getField(self, fieldname)
kupu get's confused with our non-AT types
Method getFirstChild(self)
Method icon(self, relative_to_portal=0)
Using this method allows the content class creator to grab icons on the fly instead of using a fixed attribute on the class.
Method getIconURL(self)
Get the absolute URL of the icon for the object.
Method 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.
Method getLastChild(self)
Method getMetadataHeaders(self)
Lock   View
Return RFC-822-style headers.
Method getNextSibling(self)
Method getNodeName(self)
Method getNodeType(self)
Method getNodeValue(self)
Method getObsoletes(self, channel, version, REQUEST=None)
Lock   RPMManager: Download RPMS
Method 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.
Method getOwnerDocument(self)
Method 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.
Method getPackage(self, channel, filename, offset=0, REQUEST=None)
Lock   RPMManager: Download RPMS
stream the package off the file system (and yes we DO expect a REQUEST...)
Method getPackageHeader(self, channel, filename, REQUEST)
Lock   RPMManager: Download RPMS
filename = '4Suite-1.0-a3.i686.hdr'
Method getPackageSource(self, channel, filename, offset=0, REQUEST=None)
Lock   RPMManager: Download SRPMS
Method getParentNode(self)
Method getPath(self)
Lock   Access contents information
Method getPhysicalPath(self)
Method getPortalTypeName(self)
needed for the portal type view mechanism ...
Method getPreviousSibling(self)
Method getProperty(self, id, d=None)
Lock   Access contents information
Method getPropertyType(self, id)
Lock   Access contents information
Method getStatusOf(self, workflow, wftool=None, variable=None)
Lock   View management screens
return the status of ourselves in the context of this workflow (the corresponding WorkflowTool function is strangely declared private ...
Method getTagName(self)
Method getTypeInfo(self)
Lock   View
Get the TypeInformation object specified by the portal type.
Method getURL(self, relative=False)
Lock   Access contents information
Method 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.
Method get_isos(self)
Lock   View
return a tuple of iso image names and sizes
Method get_local_roles(self)
Method get_local_roles_for_userid(self, userid)
Method get_valid_userids(self)
Method hasChildNodes(self)
Method hasProperty(self, id)
Lock   Access contents information
Method has_local_roles(self)
Method html2pdf(self, html, encode=True)
return a pdf-representation of the html document, encode is to base64-encode
Method http__etag(self, readonly=0)
Method http__parseMatchList(self, REQUEST, header='if-match')
Method http__processMatchHeaders(self, REQUEST=None)
Method http__refreshEtag(self)
Method indexObject(self)
Lock   Modify portal content
Index the object in the portal catalog.
Method isAgentProcessing(self)
Lock   View
returns if this RPMManager is allowing RPMAgent processing
Method isBilling(self)
Lock   Access contents information
indicate whether this RPMManager is capable of billing
Method isCA(self)
whether or not we're capable of doing/managing CA certificates
Method isEffective(self, date)
Lock   View
Is the date within the resource's effective range?
Method isMaintainerProcessing(self)
Lock   View
returns if this RPMManager is allowing RPMMaintainer processing
Method json(self, only=None, exclude=None, **config)
return JSON representation of item
Method listAllPackages(self, channel, version, REQUEST=None)
Lock   RPMManager: Download RPMS
Method listContributors(self)
Lock   View
Dublin Core Contributor elements - resource collaborators.
Method listCreators(self)
Lock   View
List Dublin Core Creator elements - resource authors.
Method listDAVObjects(self)
Method listPackages(self, channel, version, REQUEST=None)
Lock   RPMManager: Download RPMS
supposed to return a package list and a type (f**k knows what that is...)
Method manage(self, URL1)
Method manage_DAVget(self)
Gets the document source
Method manage_FTPlist(self, REQUEST)
Directory listing for FTP. In the case of non-Foldoid objects, the listing should contain one object, the object itself.
Method manage_FTPstat(self, REQUEST)
Psuedo stat, used by FTP for directory listings.
Method manage_access(self, REQUEST, **kw)
Lock   Change permissions
Return an interface for making permissions settings.
Method manage_acquiredPermissions(self, permissions=[], REQUEST=[])
Change the permissions that acquire.
Method manage_addLocalRoles(self, userid, roles, REQUEST=[])
Set local roles for a user.
Method manage_addProperty(self, id, value, type, REQUEST=None)
Lock   Manage properties
Add a new property via the web. Sets a new property with the given id, type, and value.
Method manage_afterAdd(self, item, container)
Method manage_afterClone(self, item)
Method manage_beforeDelete(self, item, container)
Method manage_changeOwnership(self, userid, recursive=0, REQUEST=None)
Lock   Take ownership
go change the owner to specified user (if found)
Method manage_changeOwnershipType(self, explicit=[], RESPONSE=[], REQUEST=[])
Lock   Take ownership
Change the type (implicit or explicit) of ownership.
Method manage_changePermissions(self, REQUEST)
Lock   Change permissions
Change all permissions settings, called by management screen.
Method manage_changeProperties(self, REQUEST=None, **kw)
Lock   Manage properties
Change existing object properties. Change object properties by passing either a REQUEST object or name=value parameters
Method manage_changePropertyTypes(self, old_ids, props, REQUEST=None)
Lock   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.
Method manage_changeStatus(self, wfid, action, REQUEST=None)
Lock   Manage properties
do a workflow transition from the ZMI
Method manage_debugDelAttrs(self, attrs, REQUEST=None)
Lock   Change configuration
remove attributes from object
Method manage_defined_roles(self, submit=None, REQUEST=None)
Called by management screen.
Method manage_delLocalRoles(self, userids, REQUEST=[])
Remove all local roles for a user.
Method manage_delProperties(self, ids=None, REQUEST=None)
Lock   Manage properties
Delete one or more properties specified by 'ids'.
Method manage_download(self, order, REQUEST=None)
Lock   View
create an octet-stream from a BLOrder (BastionLedger) and chuck a tarball back at the user ... If you aren't using BastionLedger, then you can just set permissions and allow individual downloads ...
Method manage_downloadISO(self, REQUEST, index=0)
Lock   RPMManager: Download RPMS
download an iso image
Method manage_editMetadata(self, title, subject, description, contributors, effective_date, expiration_date, format, language, rights, REQUEST)
Lock   Modify portal content
Update metadata from the ZMI.
Method manage_editProperties(self, REQUEST)
Lock   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.
Method manage_editRoles(self, REQUEST, acl_type='A', acl_roles=[])
Method manage_editSchedule(self, tz, minute, hour, month, day_of_month, day_of_week, active=False, REQUEST=None)
update the schedule info ...
Method manage_editedDialog(self, REQUEST, **args)
Method manage_errata(self, REQUEST, RESPONSE)
Lock   View management screens
Method manage_fixObjectCreated(self, REQUEST=None)
seems (indexable) stuff not created via _setObject doesn't get some necessary handlers called to setup uuid etc
Method manage_fixupOwnershipAfterAdd(self)
Method manage_forceStatus(self, wfid, state, REQUEST=None)
Lock   Manage properties
force a workflow transition
Method manage_generateCACert(self, days=3650, REQUEST=None)
generate a CA certificate valid for the specified number of days
Method manage_generateCert(self, memberid, REQUEST=None)
generate a certificate for the member, signing it with our CA
Method 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.
Method 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
Method manage_invokeEvent(self, *args, **kw)
dispatch to callable and log any results
Method manage_mirrors(self, REQUEST, RESPONSE)
Lock   View management screens
Method manage_oidSearch(self, oid)
Lock   View management screens
search for an OID (usually result of fsrefs) and identify the object
Method 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.
Method manage_ploneCatalog(self, REQUEST=None)
Lock   View management screens
add the damned thing into Plone so it appears in navigation ...
Method manage_psc(self, REQUEST, RESPONSE)
Lock   View management screens
Method manage_rebuildCatalog(self, REQUEST=None)
Lock   Change configuration
hmmm - plone catalogs are necessary for the navigation portal, but we can't catalog-index them because we don't have strict container relationships for our channels ...
Method manage_registration(self, REQUEST, RESPONSE)
Lock   View management screens
Method manage_reloadPAS(self, REQUEST=None)
Lock   Change configuration
go and reload all users/roles in PAS based upon our channels and users
Method manage_repair(self, REQUEST=None)
Method manage_rhnsd(self, REQUEST, RESPONSE)
Lock   View management screens
Method manage_role(self, role_to_manage, permissions=[], REQUEST=[])
Change the permissions given to the given role.
Method manage_schedule(self, REQUEST=None)
notify the scheduler
Method manage_setLocalRoles(self, userid, roles, REQUEST=[])
Set local roles for a user.
Method manage_setPermissionMapping(self, permission_names=[], class_permissions=[], REQUEST=[])
Change the permission mapping
Method manage_takeOwnership(self, REQUEST, RESPONSE, recursive=[])
Lock   Take ownership
Take ownership (responsibility) for an object. If 'recursive' is true, then also take ownership of all sub-objects.
Method manage_undo_transactions(self, transaction_info=(), REQUEST=None)
Lock   Undo changes
Method manage_unschedule(self, REQUEST=None)
notify the scheduler
Method manage_up2date(self, REQUEST, RESPONSE)
Lock   View management screens
Method manage_uploadCAFromFile(self, REQUEST=None)
if our ca_certfile is set, assign ca attrs from this certificate
Method manage_workspace(self, REQUEST)
Dispatch to first interface in manage_options
Method managedRPMs(self)
Lock   View management screens
all of the RPM packages on the filesystem being 'actively' managed and controlled by this RPMManager (including 'missing' ones)
Method modified(self)
Lock   View
Dublin Core Date element - date resource last modified.
Method nextEventTime(self, time=None)
return next executable time after given time
Method notifyModified(self)
Take appropriate action after the resource has been modified. Update creators and modification_date.
Method notifyWorkflowCreated(self)
Notify the workflow that the object was just created.
Method objectValues(self, spec=None)
Method objectValues(self, spec=None)
Method objectValues(self, spec=None)
Method opaqueIds(self)
Return opaque ids (subelements that are contained using something that is not an ObjectManager).
Method opaqueItems(self)
Return opaque items (subelements that are contained using something that is not an ObjectManager).
Method opaqueValues(self)
Return opaque values (subelements that are contained using something that is not an ObjectManager).
Method osReleases(self)
Lock   Access contents information
a list of all the OS release's of this distro
Method owner_info(self)
Lock   View management screens
Get ownership info for display
Method 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.
Method permissionsOfRole(self, role)
Returns a role to permission mapping.
Method portalCatalogMe(self, REQUEST=None)
Lock   Modify portal content
stick object in portal catalog (sometimes we just internally catalog stuff but want navigation etc)
Method possible_permissions(self)
Method prettyCapabilities(self)
Lock   View
nicely formatted capabilites list
Method propdict(self)
Lock   Access contents information
Method propertyDescription(self, id)
Lock   Access contents information
Method propertyIds(self)
Lock   Access contents information
Method propertyItems(self)
Lock   Access contents information
Method propertyLabel(self, id)
Lock   Access contents information
Method propertyMap(self)
Lock   Access contents information
Method propertyValues(self)
Lock   Access contents information
Method publishTraverse(self, REQUEST, name)
This is copied from OFS/Application.py and seems strangely necessary since Plone 3.0 (to 4.3 at least) upgrade ... so that containers-as-attributes can be traversed ...
Method raise_standardErrorMessage(self, client=None, REQUEST={}, error_type=None, error_value=None, tb=None, error_tb=None, error_message='', tagSearch=, error_log_url='')
Method reindexObject(self, idxs=[])
Lock   Modify portal content
Reindex the object in the portal catalog.
Method reindexObjectSecurity(self, skip_self=False)
Lock   Modify portal content
Reindex security-related indexes on the object.
Method releaseConfigPkg(self)
Lock   View
return's the package with all the up2date config etc to allow a user to quickly turn a competing distro into ours ...
Method restrictedTraverse(self, path, default=)
Method rolesOfPermission(self, permission)
Returns a permission to role mapping.
Method rpmManager(self)
Lock   Access contents information
helper to acquire us
Method setContributors(self, contributors)
Lock   Modify portal content
Set Dublin Core Contributor elements - resource collaborators.
Method setCreators(self, creators)
Lock   Modify portal content
Set Dublin Core Creator elements - resource authors.
Method setDescription(self, description)
Lock   Modify portal content
Set Dublin Core Description element - resource summary.
Method setEffectiveDate(self, effective_date)
Lock   Modify portal content
Set Dublin Core Date element - date resource becomes effective.
Method setExpirationDate(self, expiration_date)
Lock   Modify portal content
Set Dublin Core Date element - date resource expires.
Method setFormat(self, format)
Lock   Modify portal content
Set Dublin Core Format element - resource format.
Method setId(self, value)
Lock   Modify portal content
Sets the object id. - this is the Archetypes::BaseObject implementation ...
Method setLanguage(self, language)
Lock   Modify portal content
Set Dublin Core Language element - resource language.
Method setModificationDate(self, modification_date=None)
Lock   Modify portal content
Set the date when the resource was last modified. When called without an argument, sets the date to now.
Method setRights(self, rights)
Lock   Modify portal content
Set Dublin Core Rights element - resource copyright.
Method setSubject(self, subject)
Lock   Modify portal content
Set Dublin Core Subject element - resource keywords.
Method setTitle(self, title)
Lock   Modify portal content
Set Dublin Core Title element - resource name.
Method status(self, wftool=None, wf_var='review_state')
Lock   View
return workflow status
Method tabs_path_default(self, REQUEST, unquote=)
Method tabs_path_info(self, script, path, quote=)
Method test_schedule(self, start_time=None, size=10)
visually display next scheduled times ...
Method this(self)
Method timezones(self)
return known timezones
Method 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.
Method title_or_id(self)
Return the title if it is not blank and the id otherwise.
Method tpURL(self)
Method tpValues(self)
Method undoable_transactions(self, first_transaction=None, last_transaction=None, PrincipiaUndoBatchSize=None)
Lock   Undo changes
Method unindexObject(self)
Lock   Modify portal content
Unindex the object from the portal catalog.
Method 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().
Method userCanTakeOwnership(self)
Method userdefined_roles(self)
Return list of user-defined roles.
Method users_with_local_role(self, role)
Method validCACert(self)
verify the CA Certificate looks like a valid X09 CA certificate
Method validCAKey(self)
verify the CA Key path looks like it contains valid RSA private key
Method valid_roles(self)
Return list of valid roles.
Method valid_property_id(self, id)
Lock   Access contents information
Method valid_roles(self)
Return list of valid roles.
Method validate_roles(self, roles)
Return true if all given roles are valid.
Method 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.
Method wl_clearLocks(self)
Method wl_delLock(self, locktoken)
Method wl_getLock(self, locktoken)
Method wl_hasLock(self, token, killinvalids=0)
Method wl_isLocked(self)
Method wl_lockItems(self, killinvalids=0)
Method wl_lockTokens(self, killinvalids=0)
Method wl_lockValues(self, killinvalids=0)
Method wl_lockmapping(self, killinvalids=0, create=0)
if 'killinvalids' is 1, locks who are no longer valid will be deleted **Monkey patched by** 'plone.protect.monkey.wl_lockmapping'
Method wl_setLock(self, locktoken, lock)
Method workflowHistory(self, workflow)
Lock   View management screens
return the worflow history/transition info (latest first)
Functions
Function RSA_key (size)
Function addRPMManager (ob, event)
setup special roles etc
Function getToolByName (obj, name, default=[])
Get the tool, 'toolname', by acquiring it. o Application code should use this method, rather than simply acquiring the tool by name, to ease forward migration (e.g., to Zope3).
Function manage_addRPMManager (self, id, title='Redhat Network Manager', REQUEST=None)
Function manage_addRedCarpetActivator (self, REQUEST=None)
Function notify (event)
Notify all subscribers of ``event``.
Function pasRoles (acl_users)
returns a list of roles in the PAS
Function rpmchannelSecurityPolicy (channel, add=True)
security policy for a RPMChannel ensuring only roles with download permision can do stuff
Function rpmmanagerSecurityPolicy (rpmmanager)
this is the default security policy for a RPMManager instance this policy is designed to make sense in the context of our permissions and up2date usage, make sure you understand what you are doing before changing anything!!
Function rpmuserAllowChannel (user, channelid)
add the channel-role to this user
Function x509_validity (cert, days)

Document Actions