[Zope3-Users] vary formlib render_submit_button by skin

2007-04-18 Thread Leonardo Rochael
Hi, I was looking at formlib and I found that If i want to customize widgets per skin, I just have to register their view to a different type, e.g.: where "zope.app.skins.colskin" comes from: However I found no such way of customizing the render_submit_button adapter per-skin. All exa

Re: [Zope3-Users] vary formlib render_submit_button by skin

2007-04-19 Thread Leonardo Rochael
Fred Drake wrote: > > On 4/19/07, Christian Theune <[EMAIL PROTECTED]> wrote: >> Do you consider it a bug? Is it tracked somewhere already? > > Not a bug, but missing a useful feature. I may have filed an issue > about it at some point, but really don't remember. > I've added this issue to

Re: [Zope3-Users] schema.List validation does not accept PersistentList

2007-07-19 Thread Leonardo Rochael
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

Re: [Zope3-Users] Re: schema.List validation does not accept PersistentList

2007-07-19 Thread Leonardo Rochael
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

Re: [Zope3-Users] Selectwidgets (Object is of wrong type)

2007-10-02 Thread Leonardo Rochael
You are probably experiencing a ValidationError in the .validate() method of your "language" field. This is probably because TextLine expect the values to be unicode whereas the vocabulary in your widget has (8-bit) string values ("voc = SimpleVocabulary.fromItems([('de','German'), ('en','English

Re: [Zope3-Users] Expressing n:m relationship in ZODB

2006-07-11 Thread Leonardo Rochael Almeida
cts. In usual Object Oriented modeling, an n:m relationship is usually modeled as a collection of relationship objects each one keeping one direct reference to each side of the relationship. Of course, using these systems that already try to model relationships helps you not to reinvent anothe

Re: [Zope3-Users] Expressing n:m relationship in ZODB

2006-07-11 Thread Leonardo Rochael Almeida
What you describe sounds perfectly fine. You might want to consider exposing the actual IArticleProjectRelation object eventually if you decide to hang other attributes to it, say a 'start date'. Cheers, Leo Em Qua, 2006-07-12 às 00:40 +0200, Achim Domma escreveu: > Leonardo Ro

[Zope3-Users] Re: [storm] using storm with Zope3

2008-07-06 Thread Leonardo Rochael Almeida
Sorry, this was also supposed to go to the lists On Sun, Jul 6, 2008 at 18:04, Leonardo Rochael Almeida <[EMAIL PROTECTED]> wrote: > Hi Dulmandakh, > > The page below documents steps for using grok with storm through a > package called "stormcontainer". The code in tha