Log in


Forgot your password?
 
You are here: Home Zpydoc API Documentation Products.RPMDistro.SRPMPackage

 Products.RPMDistro.SRPMPackage  

Up one level
Zpydoc Products RPMDistro SRPMPackage
Modules
File Products.RPMDistro.RPMSpec File Products.RPMDistro.utils
Classes
Class  class SRPMPackage ( PackageBase , LogSupport , SpecSupport )
There could be illegal chars in name, hence using id ... Also, size is strangely expressed as a string ... This get's used in both contexts - the user context doesn't have epoch or arch ... For more info on RPMTAG enums, try /usr/include/rpm/rpmlib.h or: http://2robots.com/man/index.php?RPM::Constants
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
Dublin Core Date element - date resource becomes effective.
Method ExpirationDate(self, zone=None)
Lock   View
Dublin Core Date element - date resource expires.
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 SearchableText(self)
catalog searching
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 X__getitem__(self, name)
delegate to get properties from the underlying rpm object ...
Method InitializeClass(self)
Method nvr(self)
return name-version-release string
Method getPortalTypeName(self)
needed for the portal type view mechanism ...
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 addCreator(self, creator=None)
Lock   Modify portal content
Add creator to Dublin Core creators.
Method addSpecRequires(self, spec='', clauses=[], operator='=')
Lock   Access contents information
returns the spec file with clauses injected as requires
Method appendlog(self, msg)
Method basename(self)
package file name
Method bobobase_modification_time(self)
Method buildArchs(self, REQUEST=None)
return a list of our chroot archs for which this will be submitted for building
Method buildDate(self)
Lock   Access contents information
return the datestamp when this package was built
Method buildTime(self)
Lock   RPMDistro: View
return nicely formatted build time
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 created(self)
Lock   View
Dublin Core Date element - date resource created.
Method cycles(self)
Lock   Access contents information
return a list of names representing cycles involving this package
Method cyclesGraphs(self)
Lock   Access contents information
return a list of DependencyGraph representation's of cycles
Method cyclesImage(self, format='png')
Lock   Access contents information
return an image of the collected cycles graphs
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 keys, plus the __dict__
Method download(self, REQUEST, RESPONSE)
Lock   RPMDistro: Download
download the thing off the filesystem ...
Method download_size(self)
Lock   Access contents information
the actual physical file payload size (or zero if missing)
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 exists(self)
Lock   Access contents information
return if package is present on the file system
Method existsSpec(self)
Lock   Access contents information
returns whether or not a spec file is present on the filesystem for this SRPM
Method expires(self)
Lock   View
Dublin Core Date element - date resource expires.
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 getAttribute(self, name)
Retrieves an attribute value by name.
Method getAttributeNode(self, name)
Retrieves an Attr node by name or None if there is no such attribute.
Method getAttributes(self)
Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise.
Method getBastionDomain(self)
return a BastionDomain - DNS info for anything within a hosting context
Method getChildNodes(self)
Returns a NodeList that contains all children of this node. If there are no children, this is a empty NodeList
Method getContentType(self, fieldname)
kupu get's confused with our non-AT types ...
Method 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.
Method getField(self, fieldname)
kupu get's confused with our non-AT types
Method getFirstChild(self)
The first child of this node. If there is no such node this returns None
Method getHTMLLog(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)
The last child of this node. If there is no such node this returns None.
Method getMetadataHeaders(self)
Lock   View
Return RFC-822-style headers.
Method getNextSibling(self)
The node immediately preceding this node. If there is no such node, this returns None.
Method getNodeName(self)
The name of this node, depending on its type
Method getNodeType(self)
A code representing the type of the node.
Method getNodeValue(self)
The value of this node, depending on its type
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)
The Document object associated with this node. When this is a document this is None
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 getParentNode(self)
The parent of this node. All nodes except Document DocumentFragment and Attr may have a parent
Method getPath(self)
Lock   Access contents information
Method 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.
Method getPortalTypeName(self)
needed for the portal type view mechanism ...
Method getPreviousSibling(self)
The node immediately preceding this node. If there is no such node, this returns None.
Method getProperty(self, id, d=None)
Lock   Access contents information
Get the property 'id'. Returns the optional second argument or None if no such property is found.
Method getPropertyType(self, id)
Lock   Access contents information
Get the type of property 'id'. Returns None if no such property exists.
Method getSpec(self)
Lock   Access contents information
return spec text
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)
The name of the element
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_local_roles(self)
Method get_local_roles_for_userid(self, userid)
Method get_request_var_or_attr(self, name, default)
Method get_size(self)
Lock   Access contents information
Method get_valid_userids(self)
Method getlog(self, default='N/a')
Lock   RPMDistro: View
return log text for a package - if a build was attempted
Method getlogBatch(self, b_start=0, b_size=1000)
returns a tuple, number of chunks, and html text for the specifed chunk
Method group(self)
Lock   Access contents information
get group from one of the provides rpms ...
Method hasChildNodes(self)
Returns true if the node has any children, false if it doesn't.
Method hasProperty(self, id)
Lock   Access contents information
Return true if object has a property 'id'.
Method has_local_roles(self)
Method htmlDescription(self)
Lock   Access contents information
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, idxs=[])
Lock   Modify portal content
Method installedRPMVersions(self)
Lock   Access contents information
return hash of name/vr lists of provides installed rpms'
Method isCompiled(self)
Lock   Access contents information
return if all provides RPMS are built
Method isEffective(self, date)
Lock   View
Is the date within the resource's effective range?
Method isInstalled(self)
Lock   Access contents information
check that the active provides RPMS in the comps.xml are indeed installed on this machine
Method isLatest(self)
Lock   Access contents information
return if version matches that on mirror (adjusted for any %dist thingy that may have occurred)
Method isSpecRequires(self)
Lock   Access contents information
returns whether or not auto-generated Requires have been applied
Method latest(self)
Lock   Access contents information
returns the latest suggested remote from *all* channels
Method license(self, REQUEST=None)
Lock   Access contents information
return the license string contained in the RPM package
Method lintCheck(self)
Lock   Access contents information
return a tuple of errors and warnings - note that we silently absorb missing packages etc
Method lintInfo(self)
Lock   Access contents information
return a tuple of errors and warnings
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 logSize(self)
returns the size (in bytes) of the logfile
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_assignRequires(self, mirror_id, dependencies=[], REQUEST=None)
Lock   Change configuration
assign the indicated dependency names from the mirror, silently ignoring those not in that mirror
Method manage_beforeDelete(self, item, container)
Method manage_bumpSpec(self, spec='', tags=(), REQUEST=None)
return the spec file tweaked as per tags (calling specBump<Tag> functor)
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_change_status(self, wfid, action, REQUEST=None)
Lock   Manage properties
do a workflow transition from the ZMI
Method manage_cheat(self, arch, yumrefresh=True, REQUEST=None)
Lock   Change configuration
OK, don't build the thing, go to the mirror and download the provides RPM's instead ... cheating either replaces the SRPMS in the mirror url, or, uses the mirror's rpm_url, and substitutes any %{ARCH} macro you can supply your own mirror dist tag if it proves impossible to derive We automatically update yum repo data unless you specifiy otherwise.
Method manage_cleanup(self, REQUEST=None)
Lock   Change configuration
remove all packages of earlier vintage than self ...
Method manage_clearLog(self, REQUEST=None)
Lock   Change configuration
remove the log
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_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
auto reload object on name change
Method manage_editRoles(self, REQUEST, acl_type='A', acl_roles=[])
Method manage_editSpec(self, spec, REQUEST=None)
Lock   Change configuration
edit spec file, repackage and reload SRPM
Method manage_editedDialog(self, REQUEST, **args)
Method manage_fixupOwnershipAfterAdd(self)
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_injectSpec(self, text, aftertag, REQUEST=None)
Lock   Change configuration
inject the text (block) after the nominated tag
Method manage_install(self, install=[], dependencies=0, REQUEST=None)
Lock   Change configuration
Method manage_installProvides(self, install, arch, REQUEST=None)
install nominated provides nvr's RPM's into chroot(s)
Method manage_move(self, mirrorid, REQUEST=None)
Lock   Change configuration
Move this package to another mirror (ie to take ownership)
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_reload(self, guess=False, REQUEST=None)
Lock   Change configuration
refresh properties from rpm header information
Method manage_removeSpec(self, tag, REQUEST=None)
Lock   Change configuration
returns the spec file with generated requires removed
Method manage_removeSpecRequires(self, REQUEST=None)
Lock   Change configuration
returns the spec file with generated requires removed
Method manage_repair(self, REQUEST=None)
fix up object upon schema change
Method manage_resolve(self, REQUEST=None)
Lock   Change configuration
magically retrieve packages to resolve dependencies
Method manage_role(self, role_to_manage, permissions=[], REQUEST=[])
Change the permissions given to the given role.
Method manage_rpmbuild(self, reload=False, dependencies=[], install=[], _seen=[], REQUEST=None)
Lock   Change configuration
go do the build, recursively building and installing dependencies, and analyse the log file etc etc dependencies is a list of rpm names (or [] to figure it out, None to not do any...) install is a list of rpm nvr values (or [] to figure it out, None to not do any...) _seen is internal to cycle-detect on recursion
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_statusModify(self, workflow_action, REQUEST=None)
Lock   Change configuration
perform the workflow (customised content_status_modify.py ...)
Method manage_sync(self, REQUEST=None)
Lock   Change configuration
fetch package from mirror
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_uninstall(self, REQUEST=None)
Lock   Change configuration
commit suicide ;)
Method manage_unpack(self, REQUEST=None)
Lock   Change configuration
Method manage_upgrade(self, REQUEST=None)
Lock   Change configuration
upgrade new package from filesystem
Method manage_verify(self, archs=('noarch', 'x86_64'), REQUEST=None)
Lock   Change configuration
verify that all of the underlying stuff for this SRPM has been done and that it's state is reflected properly - automagic state machine ...
Method manage_workspace(self, REQUEST)
Dispatch to first interface in manage_options
Method mdmetadata(self)
Lock   Access contents information
return yum metadata for object - which may be an empty string if the underlying doesn't exist ...
Method mirror(self)
Lock   Access contents information
return the name of the mirror to which SRPM is assigned
Method modified(self)
Lock   View
Dublin Core Date element - date resource last modified.
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 nvr(self)
Lock   Access contents information
return name-version-release string
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 owner_info(self)
Lock   View management screens
Get ownership info for display
Method path(self)
Lock   Access contents information
return underlying path of the rpm, allowing for possibility of nosrc packages
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 prettyLogSize(self)
returns the log size in M (or K)
Method prettySize(self)
Lock   Access contents information
return size as a string in M, K etc
Method prettyValue(self)
Lock   Access contents information
return e:v-r (if set)
Method propdict(self)
Lock   Access contents information
Method propertyDescription(self, id)
Lock   Access contents information
Return a description for the given property id
Method propertyIds(self)
Lock   Access contents information
Return a list of property ids.
Method propertyItems(self)
Lock   Access contents information
Return a list of (id,property) tuples.
Method propertyLabel(self, id)
Lock   Access contents information
Return a label for the given property id
Method propertyMap(self)
Lock   Access contents information
Return a tuple of mappings, giving meta-data for properties. Return copies of the real definitions for security.
Method propertyValues(self)
Lock   Access contents information
Return a list of actual property objects.
Method providesInfo(self, arch)
Lock   Access contents information
provides meta-data
Method providesRPMClauses(self)
Lock   Access contents information
returns RPMPackages of full provides (well those built to date anyway)
Method providesRPMIds(self)
Lock   Access contents information
Method providesRPMValues(self, arch='x86_64')
Lock   Access contents information
Method publishTraverse(self, REQUEST, name)
This is copied from OFS/Application.py and seems strangely necessary since Plone 3.0 upgrade ...
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 realArch(self)
some packages have f**ked up arch's - map all archs to iX86/x86_64
Method reindexObject(self, idxs=[])
Lock   Modify portal content
override to ensure clauses get indexed
Method reindexObjectSecurity(self, skip_self=False)
Lock   Modify portal content
Reindex security-related indexes on the object.
Method remote(self)
Lock   Access contents information
return the remote cache details of the object
Method requiresGraph(self, tree=None, recursive=False)
Lock   Access contents information
return a chain of all it's build requirements, expressed as a Graph
Method requiresGraphImage(self, format='png', recursive=False)
Lock   View
returns an image of the Directed Graph of dependencies
Method requiresInfo(self, arch, recursive=False)
Lock   Access contents information
return a list of hashes of provides meta-data
Method requiresRPMClauses(self, local_only=False)
Lock   Access contents information
returns requires clauses - we should know more abour clauses than RPMPackages because RPMPackage info only becomes available as the result of a successful build, whereas RPMClause's are known at download time this function is designed to deprecate the requiresRPMHashes suite ...
Method requiresRPMIds(self)
Lock   Access contents information
return an ordered list of expanded required rpm *names*
Method requiresRPMValues(self, local_only=False)
Lock   Access contents information
returns RPMPackages of full requires (well those built to date anyway)
Method requiresSRPMValues(self, local_only=True)
return the SRPM packages corresponding to the requires clauses, removing any duplicates that may be caused by x and x-devel etc requirements
Method requiresUnresolved(self)
Lock   Access contents information
returns a list of RPMClauses for which we don't have RPMPackages
Method restrictedTraverse(self, path, default=)
Method rolesOfPermission(self, permission)
Returns a permission to role mapping.
Method rpmbuild(self, reload, compile=True, install=None, dependencies=0)
go do all the build/install necessary for this pkg install is a list of rpm nvr values this is a recursive sub-function helper for manage_rpmbuild
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 set_distTag(self, oldtag='', REQUEST=None)
Lock   Change configuration
force the build environments %dist tag into the release tag of this package note that this function performs *regexp* substitutions - the oldtag is a regexp - or defaults to the mirror's dist tag
Method setlog(self, msg)
Lock   Change configuration
set the log message
Method sourcerpm(self, REQUEST=None)
Lock   Access contents information
return the sourcerpm string contained in the RPM package
Method specAsHtml(self)
Lock   Access contents information
syntax hilighting for spec file
Method srpmValue(self)
Lock   Access contents information
returns the ZODB source RPM package object for this package
Method stat(self)
Lock   Access contents information
return os.stat() dict on underlying file - keys are: st_mode (protection bits), st_ino (inode number), st_dev (device), st_nlink (number of hard links), st_uid (user ID of owner), st_gid (group ID of owner), st_size (size of file, in bytes), st_atime (time of most recent access), st_mtime (time of most recent content modification), st_ctime
Method status(self, wftool=None, wf_var='review_state')
Lock   View
return workflow status
Method summary(self)
Lock   Access contents information
return the summary string contained in the RPM package
Method tabs_path_default(self, REQUEST, unquote=)
Method tabs_path_info(self, script, path, quote=)
Method this(self)
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 nvr(self)
return name-version-release string
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
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 upload(self, file, REQUEST=None)
Lock   Change configuration
upload, verify, and write/overwrite the underlying filesystem file
Method userCanTakeOwnership(self)
Method userdefined_roles(self)
Return list of user-defined roles.
Method users_with_local_role(self, role)
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 verifyChecksum(self)
Lock   Access contents information
return that filesystem file is the same one we loaded
Method verifyIndexed(self)
Lock   Access contents information
verify/add index to catalog
Method verifyMetaData(self)
Lock   Access contents information
it seems some metadata is not well-formed XML
Method verifyPath(self)
Lock   Access contents information
return if filesystem file exists for this ZODB object
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 vr(self)
Lock   Access contents information
return version-release string
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
Method wl_setLock(self, locktoken, lock)
Method workflowHistory(self, workflow)
Lock   View management screens
return the worflow history/transition info (latest first)
Method zsyncId(self)
Functions
Function delSRPMPackage (ob, event)
go put back our cache entry (and not sure why we wouldn't have a remote...)
Function getSecurityManager ()
Get a security manager, for the current thread.
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 implements (*interfaces)
Declare interfaces implemented by instances of a class This function is called in a class definition. The arguments are one or more interfaces or interface specifications (IDeclaration objects). The interfaces given (including the interfaces in the specifications) are added to any interfaces previously declared. Previous declarations include declarations for base classes unless implementsOnly was used. This function is provided for convenience. It provides a more convenient way to call classImplements. For example:: implements(I1) is equivalent to calling:: classImplements(C, I1) after the class has been created. Consider the following example:: >>> from zope.interface import Interface >>> class IA1(Interface): pass ... >>> class IA2(Interface): pass ... >>> class IB(Interface): pass ... >>> class IC(Interface): pass ... >>> class A(object): ... implements(IA1, IA2) >>> class B(object): ... implements(IB) >>> class C(A, B): ... implements(IC) >>> ob = C() >>> int(IA1 in providedBy(ob)) 1 >>> int(IA2 in providedBy(ob)) 1 >>> int(IB in providedBy(ob)) 1 >>> int(IC in providedBy(ob)) 1 Instances of ``C`` implement ``I1``, ``I2``, and whatever interfaces instances of ``A`` and ``B`` implement.
Function manage_addSRPMPackage (self, hdr, force=False, REQUEST=None)
this is a private function - we don't want to be able to add this stuff via the ZMI!!! use the force flag to upload from local even though the package may not be on that remote mirror
Document Actions
« February 2012 »
February
MoTuWeThFrSaSu
12345
6789101112
13141516171819
20212223242526
272829
Buy Now
Bastion CD
Subscribe Now
and get BastionLinux™ for as little as GBP 29.99 per month...