예제 #1
0
파일: manager.py 프로젝트: openSUSE/cobbler
    def serialize_item(self, collection, item):
        """
        Save a collection item to disk

        :param collection: Collection
        :param item: collection item
        """
        serializer.serialize_item(collection, item)
예제 #2
0
    def serialize_one_item(self, item):
        """
        Save a collection item to disk

        :param item: collection item
        """
        collection = self.get_items(item.COLLECTION_TYPE)
        serializer.serialize_item(collection, item)
예제 #3
0
    def serialize_item(self, collection, item):
        """
        Save a collection item to disk

        Deprecated - Use above serialize_one_item function instead
        collection param can be retrieved

        :param collection: Collection
        :param item: collection item
        """
        serializer.serialize_item(collection, item)
예제 #4
0
    def serialize_item(self, collection, item):
        """
        Save a collection item to disk

        @param Collection collection Collection
        @param Item item collection item
        """

        return serializer.serialize_item(collection, item)