On 7/19/07, Leonardo Rochael <[EMAIL PROTECTED]> wrote:
They seem to do the right thing (I fixed one of the cases when it didn't).
Check zope/app/form/browser/itemswidgets.py:MultiDataHelper._toFieldValue()
...
if hasattr(self.context, '_type'):
_type = self.context._type
Fred Drake wrote:
>
> [...]
> You probably want to check the results of the edit widgets; they might
> produce list values instead of PersistentList values. Widgets are not
> expected to edit the value in place, but to produce a new value.
>
They seem to do the right thing (I fixed one of th
On 7/19/07, Alek Kowalczyk <[EMAIL PROTECTED]> wrote:
Thanks! List should be list, whether it is persistent or not, but it's the
simplest solution...
You probably want to check the results of the edit widgets; they might
produce list values instead of PersistentList values. Widgets are not
exp
Leonardo Rochael <[EMAIL PROTECTED]> writes:
> As it happens, PersistentList is not an instance of "list". Proponents of
> strong dynamically-typed OO would complain that this code is forcing the
> comingling of the "type" concept (a.k.a. interface) into the concept of
> class inheritance [...]
>
Thanks for the answer. I should have explained why I wanted to know.
I've been away from Zope 3 or 4 years (so I missed those emails) and I
am now tasked with preparing a workshop for next year (as I re-learn
everything too). I know that is one of the questions I'll get. So, I
wanted to be able
Tim Cook wrote:
Does z3c stand for Zope 3 Component?
It stands for "Zope 3 community", but (IMO), name space package names,
while mnemonic, don't actually confer meaning. In other words, just
because Zope Corp uses zc. as our name space doesn't mean anything other
than we were the ones that
Does z3c stand for Zope 3 Component?
Thanks,
Tim
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
Does z3c stand for Zope 3 Component?
Thanks,
Tim
signature.asc
Description: This is a digitally signed message part
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
Hi Alex,
Alek Kowalczyk wrote:
>
> I have a schema with the List field defined:
>
> from zope.interface import Interface
> from zope.schema import List, TextLine
> class IMyObject(Interface):
>myList = List(title=u'mylist', value_type=TextLine(title=u'item'))
>
> Then I implement this usi
Hi,
I have a schema with the List field defined:
from zope.interface import Interface
from zope.schema import List, TextLine
class IMyObject(Interface):
myList = List(title=u'mylist', value_type=TextLine(title=u'item'))
Then I implement this using field property.
Then in constructor I assign
Thanks Dmitry,
I can see how it should work. However I am still having trouble. My
application is initially based on the wcsite example and is intended
to be really not any more complex than that so I wanted to keep it
that way. However I have probably inherited something from wcsite that
I don't
11 matches
Mail list logo