changeset 1738:7d258c74032d

merged
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 25 Aug 2012 11:55:59 +0200
parents af5b4eab796c (current diff) 90401aaf45e9 (diff)
children 6776bf3fe376 bf840fab4737
files
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/blog.py	Sat Aug 25 17:09:09 2012 +0800
+++ b/MoinMoin/items/blog.py	Sat Aug 25 11:55:59 2012 +0200
@@ -19,7 +19,7 @@
 from MoinMoin.themes import render_template
 from MoinMoin.forms import OptionalText, Tags, DateTime
 from MoinMoin.storage.middleware.protecting import AccessDenied
-from MoinMoin.constants.keys import NAME, NAME_EXACT, WIKINAME, PTIME, TAGS
+from MoinMoin.constants.keys import NAME, NAME_EXACT, WIKINAME, ITEMTYPE, PTIME, TAGS
 from MoinMoin.items import Item, Default, register, BaseMetaForm
 
 
@@ -56,6 +56,8 @@
         prefix = self.name + u'/'
         current_timestamp = int(time.time())
         terms = [Term(WIKINAME, app.cfg.interwikiname),
+                 # Only blog entry itemtypes
+                 Term(ITEMTYPE, ITEMTYPE_BLOG_ENTRY),
                  # Only sub items of this item
                  Prefix(NAME_EXACT, prefix),
                  # Filter out those items that do not have a PTIME meta or PTIME is in the future.