Example #1
0
 def get_list(self, lang=None):
     """@rtype: L{list}"""
     collections = self.read("/admin/collections.xml", lang)
     return Collection.wrapCollection(collections)
Example #2
0
 def edit(self, category, lang=None):
     """@rtype: L{list}"""
     collections = self.update("/admin/collections/%d" % int(category.get_id()), category, lang)
     return Collection.wrapCollection(collections)
Example #3
0
 def add(self, category, lang=None):
     collections = self.create("/admin/collections.xml", category, lang)
     return Collection.wrapCollection(collections)
Example #4
0
 def get(self, id, lang=None):
     """@rtype: L{list}"""
     collections = self.read("/admin/collections/%d" % id, lang)
     return Collection.wrapCollection(collections)