Author: leidel
Date: Thu Mar 19 09:04:46 2009
New Revision: 409

Modified:
    trunk/pages/admin/__init__.py

Log:
Only try to load the widget if name is really given ;)

Modified: trunk/pages/admin/__init__.py
==============================================================================
--- trunk/pages/admin/__init__.py       (original)
+++ trunk/pages/admin/__init__.py       Thu Mar 19 09:04:46 2009
@@ -199,7 +199,7 @@
          Given the request and name of a placeholder return a Widget  
subclass
          like Textarea or TextInput.
          """
-        if '.' in name:
+        if name and '.' in name:
              module_name, class_name = name.rsplit('.', 1)
              module = __import__(module_name, {}, {}, [class_name])
              widget = getattr(module, class_name, fallback)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to