Hi!

> > Good evening everybody!
> > 
> > I have some question regarding attribute and agent programming for ZPatterns.
> > 
> > I have some provider which is registered for the "handlers" and "attributes"
> > methods and some attributes.
> > 
> > My problem is when trying to create a new object and directly editing it, e.g.
> > 
> > obj=newItem()
> > obj.propertysheets.data.manage_changeProperties(foobar=13)
> > 
> > the propertysheet is defined and my provider is also registered for
> > handling the property "foobar". Unfortunately my SetAttributeFor() method
> > is never called.
> 
> 
> Have you defined a namesForRegistration method in your provider?

Yes, as said above it registers for handlers and attributes. Also
_objectChanged and _SetAttributeFor() etc. are called. They're just not called 
directly after creating the object (when being in the same request that is).

cheers,
  Christian


-- 
COM.lounge                                          http://comlounge.net/
communication & design                                 [EMAIL PROTECTED]

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to