Re: r6641 - Archetypes/branches/1.3
Daniel Nouri <[email protected]> Sun, 02 Jul 2006 12:57:41 +0200
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm surprised that this is going into 1.3 still.
Please consider merging https://dev.plone.org/archetypes/changeset/5645
into 1.4 branch or trunk instead. r5645 has also tests.
zworkb wrote:
> Author: zworkb
> Date: Mon Jun 26 00:22:17 2006
> New Revision: 6641
>
> Modified:
> Archetypes/branches/1.3/ReferenceEngine.py
> Log:
> if updateReferences is set to False more than one reference of the same relation can be connected between two instances
>
> Modified: Archetypes/branches/1.3/ReferenceEngine.py
> ==============================================================================
> --- Archetypes/branches/1.3/ReferenceEngine.py (original)
> +++ Archetypes/branches/1.3/ReferenceEngine.py Mon Jun 26 00:22:17 2006
> @@ -530,7 +530,10 @@
> raise ReferenceException('Invalid target UID')
>
> objects = self._resolveBrains(self._queryFor(sID, tID, relationship))
> - if objects:
> + if objects and kwargs.get('updateReferences',1):
> + #allow more than one
> + #reference of the same relation between 2 objects
> +
> #we want to update the existing reference
> #XXX we might need to being a subtransaction here to
> # do this properly, and close it later
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642