Skip to content.

Etria Lists

 

[quills-dev] dirty BBB hack warning

Reinout van Rees reinout at vanrees.org
Wed Oct 25 09:03:42 UTC 2006


hi all,

I added a try/except hack to provide quick backward compatibility
for an incompatible method signature change that was
recently introduced in fatsyndication:

-            entries.extend(fs.getFeedEntries(max_only))
+            try:
+                entries.extend(fs.getFeedEntries(max_only))
+            except TypeError:
+                # BBB
+                # Sudden change in method signature (extra 'max_only'
+                # parameter, which breaks Quills (and probably a few
+                # others).
+                entries.extend(fs.getFeedEntries())

It feels dirty, so I'm warning here.

Reinout

-- 
Reinout van Rees                       r.van.rees @ zestsoftware.nl
http://vanrees.org/weblog/                  http://zestsoftware.nl/
"Military engineers build missiles. Civil engineers build targets."



More information about the quills-dev mailing list