Message350
Logged In: YES
user_id=113859
Found the problem. If the "import gadfly" already worked
than you can import gadfly from backends already.
Thus here is code that actually works:
try:
import gadfly
import gadfly.client
except ImportError, message:
if str(message)=='No module named client':
# make sure that gadfly cannot be imported from this
module
del gadfly
else:ยท
if ( str(message) != 'No module named gadfly'): raise
|
|
Date |
User |
Action |
Args |
2009-02-03 14:20:04 | admin | link | issue612873 messages |
2009-02-03 14:20:04 | admin | create | |
|