#817: Upgrading past SVN 1081 breaks external modules' datababse connectivity.
---------------------------------+------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: SQLObject | Version: 0.9a5
Severity: major | Resolution:
Keywords: |
---------------------------------+------------------------------------------
Comment (by [EMAIL PROTECTED]):
I have narrowed the breaking change down to the following:
{{{
--- turbogears/__init__.py (revision 1076)
+++ turbogears/__init__.py (revision 1087)
@@ -1,5 +1,7 @@
"TurboGears Front-to-Back Web Framework"
+import pkg_resources
+
from turbogears import config
from turbogears.controllers import expose, flash, validate, redirect, \
error_handler, exception_handler, url
@@ -11,6 +13,12 @@
from turbogears.widgets import mochikit
from turbogears.config import update_config
+extensions = pkg_resources.iter_entry_points("turbogears.extensions")
+for entrypoint in extensions:
+ ext = entrypoint.load()
+ if hasattr(ext, "tgsymbols"):
+ globals().update(ext.tgsymbols())
+
i18n.install() # adds _ (gettext) to builtins namespace
}}}
Which hardly makes sense. Steps to reproduce the error:
1. Follow the above instructions on installing SimpleTest.
1. Run the following:
{{{
svn co -r 1076 http://www.turbogears.org/svn/turbogears/trunk turbogears
}}}
1. Install TurboGears in development mode: `sudo python setup.py
develop`.
1. Run `tg-admin` - successfully.
1. Navigate to the `turbogears/turbogears` directory and execute the
following:
{{{
svn up -r 1087 __init__.py
}}}
1. Run `tg-admin` - with the error.
If I `svn up` to the latest revision and reverse this patch by hand
(removing the import line and extensions block) it works like a charm.
Over to you, Kevin! *grin*
(As of SVN 1076 there are no plugins using this tgsymbols feature. In the
current SVN, plugins/fastdata/tgfastdata does.)
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/817>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---