-
Notifications
You must be signed in to change notification settings - Fork 38
Home
Jindrich Luza edited this page Oct 23, 2013
·
16 revisions
- implemented libcomps.Langpacks, libcomps.Blacklist and libcomps.Whiteout
- libcomps.Blacklist and libcomps.Whiteout is libcomps.MDict class so when you get item form mentioned class instance you get libcomps.StrSeq which is simple string list. When you set item to class instance, you could use libcomps.StrSeq instance or python list containing only string or unicode objects
-
libcomps.CategoryList, libcomps.EnvList, libcomps.GroupList has now accepting object id in _getitem_ function. Code bellow is now working:
list = libcomps.CategoryList()
list.append(libcomps.Category(id="cat1"))
list.append(libcomps.Category(id="cat2"))
list.append(libcomps.Category(id="cat3"))
cat1 = list["cat1"]
__getitem__(id)
returns first object with specified id in list (unique id in list enforcement planned to future)
- display_order attribute for
libcomps.Group
andlibcomps.Environment
is optional now and won't be included in xml output if wasn't setter before -
libcomps.Group
,libcomps.Category
,libcomps.Environment
won't appear in xml output if don't contain any packages/group_id/option_id -
remove
method added for libcomps sequence types (groups, categories, environments, packages, group_list, option_list). Method remove exact object by reference from list.
-
libcomps.Package
default type is mandatory now and attribute won't appear in xml output if mandatory. - option_list and group_list won't appear in xml output if empty.
- complete C-objects memory management redesign
- PyCOMPS_Dict.get() doesn't throw KeyError exception anymore. Change was made additionaly in https://github.com/midnightercz/libcomps/tree/keyerror-bugfix-0.1.4-3 and merge with master in libcomps-0.1.6 https://github.com/midnightercz/libcomps/commit/a76bbc0f613f16b362584e8ed3f70e584fb9c79e
-
libcomps.GroupId
has 'default' boolean attribute now.
-
libcomps.Dict
has_key method and get() alias added -
libcomps.Package
requires attribute added