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.utils
Info
Products.RPMDistro.utils
Up one level
Products
→
RPMDistro
→
utils
Functions
catalogObject
(ob, event)
create_splash
(context, fname)
do splash file creation - this is a strange lss16 format!!!
lstrip
(astring, prefix
=' '
)
Workaround for the fact that ''.lstrip() takes no arguments in python 2.1. This can be deleted and replaced with ''.lstrip() once we require zope 2.7.
nevraPrintableFromTuple
(tuple)
returns printable nevra string from a (n,e,v,r,a)
nevraTupleFromRPMName
(str)
nevraTupleFromYumDep
(dep)
epoch:name-ver-rel.arch
normalize_time
(datetime)
Convert datetime to string representing time in local zone. The datetime arg can be either a string parsable by DateTime.DateTime(), or it can already be a DateTime instance. Output is sort of like that used by ls -l (i.e. only show year if it's not this year), e.g.: 'Aug 5 2003' or 'Sep 21 23:22'. If the input is a string that cannot be parsed, return ''.
opcode2str
(code)
map rpm opcode to string - these should agree with createrepo ;)
prettySize
(size)
make a nice string-formatted entry for size
returnNevraPrintable
(rpmhdr)
return printable string for the pkgname/object name - epoch:ver-rel.arch
uncatalogObject
(ob, event)
Document Actions
Send this
«
February 2012
»
February
Mo
Tu
We
Th
Fr
Sa
Su
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
API Documentation
View API Docs
Products.RPMDistro
Buy Now
Subscribe Now
and get
BastionLinux™
for as little as
GBP 29.99
per month...