[Checkins] SVN: z3c.zalchemy/trunk/src/z3c/zalchemy/container.py
Small bug fix. Mmh, jukart,
you seem to use zalchemy different than I
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sun Jan 7 10:20:08 EST 2007
Log message for revision 71770:
Small bug fix. Mmh, jukart, you seem to use zalchemy different than I
did in my test code. Do you have a best practice you would like to
share? :-)
Changed:
U z3c.zalchemy/trunk/src/z3c/zalchemy/container.py
-=-
Modified: z3c.zalchemy/trunk/src/z3c/zalchemy/container.py
===================================================================
--- z3c.zalchemy/trunk/src/z3c/zalchemy/container.py 2007-01-07 15:06:52 UTC (rev 71769)
+++ z3c.zalchemy/trunk/src/z3c/zalchemy/container.py 2007-01-07 15:20:06 UTC (rev 71770)
@@ -61,13 +61,13 @@
class SQLAlchemyNameChooser(NameChooser):
- def checkName(self, name, container):
+ def checkName(self, name, content):
if isinstance(name, str):
name = unicode(name)
elif not isinstance(name, unicode):
raise TypeError("Invalid name type", type(name))
- unproxied = removeSecurityProxy(container)
+ unproxied = removeSecurityProxy(self.context)
if not name.startswith(unproxied._class.__name__+'-'):
raise UserError("Invalid name for SQLAlchemy object")
return True
More information about the Checkins
mailing list