meta = None
identifier = str(WLURI.from_slug(book.slug))
if isinstance(book, Book):
meta = None
identifier = str(WLURI.from_slug(book.slug))
if isinstance(book, Book):
- setSpec = map(self.tag_to_setspec, book.tags.filter(category__in=self.TAG_CATEGORIES))
- header = common.Header(identifier, book.changed_at, setSpec, False)
+ # setSpec = map(self.tag_to_setspec, book.tags.filter(category__in=self.TAG_CATEGORIES))
+ header = common.Header(identifier, book.changed_at, [], False)
def books(self, tag, from_, until):
if tag:
def books(self, tag, from_, until):
if tag:
- books = Book.tagged.with_all([tag])
+ # we do not support sets, since they are problematic for deleted books.
+ raise errror.NoSetHierarchyError()
+ # books = Book.tagged.with_all([tag])
def listIdentifiers(self, **kw):
print "list identifiers %s" % (kw, )
records = [self.record_for_book(book, headers_only=True) for
def listIdentifiers(self, **kw):
print "list identifiers %s" % (kw, )
records = [self.record_for_book(book, headers_only=True) for
- for category in Catalogue.TAG_CATEGORIES:
- for tag in Tag.objects.filter(category=category):
- tags.append(("%s:%s" % (tag.category, tag.slug),
- tag.name,
- tag.description))
+ # for category in Catalogue.TAG_CATEGORIES:
+ # for tag in Tag.objects.filter(category=category):
+ # tags.append(("%s:%s" % (tag.category, tag.slug),
+ # tag.name,
+ # tag.description))