Warning: Can't synchronize with the repository (Unsupported version control system "hg": "Couldn't import symbols: RepoError" ). Look in the Trac log for more information.

Ticket #2 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Changed 2 years ago by rgammans

  • status changed from new to closed
  • resolution set to fixed

Fixed by [bad66bb23384]

Note: See TracTickets for help on using tickets.