Ticket #2 (closed defect: fixed)
System.EnumContents doesn't specify categories in it's answer list
| Reported by: | rgammans | Owned by: | |
|---|---|---|---|
| Priority: | major | Keywords: | |
| Cc: |
Description
Without full object id's in the contents list we
cannot find the relavent objects at all.
>>> game = ctx.OpenPackFile("examples/test1.mmpack")
>>> list(game.EnumContents())
['1', '2']
>>> list(game.EnumCategories())
['Items']
>>> list(game.EnumObjects("Items"))
['1', '2']
>>> game.NewCategory("Characters")
>>> game.NewObject("Characters")
Characters:1
>>> list(game.EnumCategories())
['Items', 'Characters']
>>> list(game.EnumContents())
['1', '2', '1']
Here we have show that multiple categories are listed but we can tell except from out history which category the '2' object comes from.
Change History
Note: See
TracTickets for help on using
tickets.
