[Checkins] SVN: hurry.custom/trunk/ If data language is not known, don't raise any errors.
Martijn Faassen
faassen at startifact.com
Mon Jun 15 09:23:46 EDT 2009
Log message for revision 100995:
If data language is not known, don't raise any errors.
Changed:
U hurry.custom/trunk/CHANGES.txt
U hurry.custom/trunk/setup.py
U hurry.custom/trunk/src/hurry/custom/core.py
-=-
Modified: hurry.custom/trunk/CHANGES.txt
===================================================================
--- hurry.custom/trunk/CHANGES.txt 2009-06-15 13:21:39 UTC (rev 100994)
+++ hurry.custom/trunk/CHANGES.txt 2009-06-15 13:23:46 UTC (rev 100995)
@@ -1,12 +1,13 @@
Changes
-------
-0.7 (unreleased)
+0.6.1 (unreleased)
~~~~~~~~~~~~~~~~
* ``structure`` functionality now skips directories and files start that
with a period.
+* If data language is not known, don't return any samples.
0.6 (2009-06-10)
~~~~~~~~~~~~~~~~
Modified: hurry.custom/trunk/setup.py
===================================================================
--- hurry.custom/trunk/setup.py 2009-06-15 13:21:39 UTC (rev 100994)
+++ hurry.custom/trunk/setup.py 2009-06-15 13:23:46 UTC (rev 100995)
@@ -15,7 +15,7 @@
setup(
name="hurry.custom",
- version = '0.7dev',
+ version = '0.6.1dev',
description="A framework for allowing customizing templates",
long_description=long_description,
classifiers=[
Modified: hurry.custom/trunk/src/hurry/custom/core.py
===================================================================
--- hurry.custom/trunk/src/hurry/custom/core.py 2009-06-15 13:21:39 UTC (rev 100994)
+++ hurry.custom/trunk/src/hurry/custom/core.py 2009-06-15 13:23:46 UTC (rev 100995)
@@ -168,7 +168,10 @@
default=None)
if sample_extension is None:
return result
- parse = component.getUtility(IDataLanguage, name=sample_extension)
+ try:
+ parse = component.getUtility(IDataLanguage, name=sample_extension)
+ except ComponentLookupError:
+ return result
for path in glob.glob(
os.path.join(template_dir,
template_name + '-*' + sample_extension)):
More information about the Checkins
mailing list