Ignore the .props when giving children

This commit is contained in:
Guillaume Ayoub 2012-02-20 17:45:47 +01:00
parent 224d0d47e8
commit 5e8dec6683

View File

@ -92,7 +92,7 @@ class Collection(ical.Collection):
@classmethod @classmethod
def is_item(cls, path): def is_item(cls, path):
abs_path = os.path.join(FOLDER, path.replace("/", os.sep)) abs_path = os.path.join(FOLDER, path.replace("/", os.sep))
return os.path.isfile(abs_path) return os.path.isfile(abs_path) and not abs_path.endswith(".props")
@property @property
def last_modified(self): def last_modified(self):