logo       

Archetypes in CVS broken?: msg#00067

web.zope.plone.archetypes.devel

Subject: Archetypes in CVS broken?

Just checked out from CVS hoping to demo the latest and greatest to my boss, and rather embarrassingly found a minor problemo:

in Archetypes/Field.py

def __init__(self, name, **kwargs):
DefaultLayerContainer.__init__(self)

self.__name__ = name

self.__dict__.update(self._properties)
self.__dict__.update(kwargs)

self._widgetLayer()
self._validationLayer()

self.registerLayer('storage', self.storage)


But previously self.__name__ has been self.name, and thus everything breaks...

Not sure if the idea is to use the __name__ convention, in which all the template generation needs to be updated, but if that is the case would be nice to provide a wrapper name -> __name__ so as not to break absolutely everything that has been done before.

Anyways, I'm going just going to fix this for myself, but thought it might merit attention.

Regards,

- seb

--
Seb Potter
Lead Developer
Getfrank Limited



-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise