- book_xml = self.materialize(changes=changes)
- apiclient.api_call(user, "books/", {"book_xml": book_xml})
+ if not fake:
+ book_xml = self.materialize(changes=changes)
+ data = {"book_xml": book_xml, "days": days}
+ if host:
+ data['gallery_url'] = host + self.gallery_url()
+ apiclient.api_call(user, "books/", data, beta=beta)