[Zope] - Bug in sample product?
Jim Fulton
jim.fulton@Digicool.com
Mon, 14 Dec 1998 11:06:10 -0500
The Dragon De Monsyne wrote:
>
> There's either a small bug in SampleProduct, or my zope install is
> loopy.
>
> I had to change this:
>
> >
> > from Globals import HTMLFile, MessageDialog
> > import OFS.SimpleItem, Persistence, Acquisition, AccessControl.Role
> >
>
> to this:
>
> <
> < from Globals import HTMLFile, MessageDialog
> < from BoboPOS import Persistence
Globals does this import so that you can do:
from Globals import Persistence
the advantage of this is that it will not break
when we move to the thing FKA BoboPOS3. FKA BoboPOS3
will have a package name. Globals will be changed to use
the new package name and applications that get persistence from
Globals won't have to change.
A possible better alternative would be to create a separate
Persistence module (or package) that exports Persistent and
PersistentMapping. I'm kind-of leaning toward this second
approach.
> < import OFS.SimpleItem, Acquisition, AccessControl.Role
> <
>
> ... in sample/Product.py to get things to work.
>
> -The Dragon De Monsyne
Right. The sample product hasn't been updated for Zope yet. :(
Jim
--
Jim Fulton mailto:jim@digicool.com
Technical Director (888) 344-4332 Python Powered!
Digital Creations http://www.digicool.com http://www.python.org
Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission. Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.