Re: [Zope-dev] Zope 2: circular import

2009-12-28 Thread yuppie
Tres Seaver wrote: >> But where would be a good place for TaintedString? It is too small to >> create a package just for that. In which existing package would it fit? >> >> Or should we just add a copy of TaintedString to DocumentTemplate? > > Put it in Shared.DC.Scripting? ZPT and DTML already

Re: [Zope-dev] Zope 2: circular import

2009-12-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 yuppie wrote: > Hi! > > > I stumbled over a circular import in Zope 2. > > > in DocumentTemplate.DT_Util: > from ZPublisher.TaintedString import TaintedString > > this triggers ZPublisher.BaseRequest with: > from AccessControl.ZopeSecurityPolicy i

[Zope-dev] Zope 2: circular import

2009-12-27 Thread yuppie
Hi! I stumbled over a circular import in Zope 2. in DocumentTemplate.DT_Util: from ZPublisher.TaintedString import TaintedString this triggers ZPublisher.BaseRequest with: from AccessControl.ZopeSecurityPolicy import getRoles this triggers AccessControl.DTML with: from DocumentTemplate import