"R. David Murray" wrote:
This means you can do things like
have (my example) a Paradox database of books, authors, and a
books-to-authors map, and have Author and Book objects in the system
such that a Book has a list of its Author objects and the Author
has a list of its Book objects, all
I've been messing around with the Photo product, and I've
noticed something odd about how it handles changes to the
display sizes:
When you create several Photo objects in the same folder
(not in a ZPhotoAlbumPage), they affect each others display
sizes. For example, changing one of the display
I have an existing Python Product that I would like to use
as a DataSkin in a Rack.
What do I need to change (import/subclass) in order to use
it in this way?
Thanks,
Michael Bernstein.
___
Zope-Dev maillist - [EMAIL PROTECTED]
Erik Enge wrote:
[Michael Bernstein]
| I need to know how far the ZCatalog will scale using this indexing
| and search strategy. Does anyone have anectodal or benchmark data to
| suggest if (and when) I will hit a 'wall' regarding the number of
| objects being indexed and searched?
Erik Enge wrote:
[Michael R. Bernstein]
| Erik Enge wrote:
|
| I'll let you know how it goes. (And please, do poke at me if it takes
| too long.)
|
| Ok, I'm poking :-).
Thanks. Keep doing it till you get what you need, I truly don't
mind. :-)
| How did it go?
Thanks
Erik Enge wrote:
[Michael R. Bernstein]
| What I'm looking for is any indication that object creation time
| and/or indexing time goes up with the number of objects already in
| the ZODB.
Well, one thing I've already learned - which you all probably know -
is that you do _not_ want
"Phillip J. Eby" wrote:
At 12:51 PM 2/18/01 -0800, Michael R. Bernstein wrote:
I have an existing Python Product that I would like to use
as a DataSkin in a Rack.
What do I need to change (import/subclass) in order to use
it in this way?
from ZPatterns.DataSkins impor
"Phillip J. Eby" wrote:
At 12:51 PM 2/18/01 -0800, Michael R. Bernstein wrote:
I have an existing Python Product that I would like to use
as a DataSkin in a Rack.
What do I need to change (import/subclass) in order to use
it in this way?
from ZPatterns.DataSkins impor
"Phillip J. Eby" wrote:
At 09:49 PM 2/18/01 -0800, Michael R. Bernstein wrote:
Ok, assuming that the 'normal' instantiation is either
solved or a non-issue, do I need to do anything special to
get the newItem() method to call my products manage_add
method?
newItem() w
to read:
from Products.ZPatterns.DataSkins import DataSkin
Thanks,
Michael Bernstein.
Michael Bernstein wrote:
"Phillip J. Eby" wrote:
At 12:51 PM 2/18/01 -0800, Michael R. Bernstein wrote:
What do I need to change (import/subclass) in order to use
it in this way
Steve Alexander wrote:
Is the __init__ method of DataSkin getting called?
This would happen if, for example, you define an __init__ method in your
class, but you don't use something like:
from Globals import default__class_init__
default__class_init__(yourClass)
(At least, I
"Phillip J. Eby" wrote:
At 10:47 PM 2/18/01 -0800, Michael R. Bernstein wrote:
Hmm. So I need to refactor the 'manage_add' method inside
the python product into two methods, 'manage_add' which
would be used by the 'normal' object creation process and
that would also call a sec
Steve Alexander wrote:
Michael R. Bernstein wrote:
Steve Alexander wrote:
Is the __init__ method of DataSkin getting called?
This would happen if, for example, you define an __init__ method in your
class, but you don't use something like:
from Globals import
Ron Bickers wrote:
I noticed this behavior a while ago. The author said he didn't have time to
mess with it and it was a low priority. I've been able to get the photos
back the way they should be by some combination of saving properties on the
properties screen and other such fumbling
Steve Alexander wrote:
Michael R. Bernstein wrote:
File /home/webmaven/Products/ZPatterns/DataSkins.py, line 208, in
__set_attr__ (Object: ElementWithAttributes) KeyError: (see above)
What version of ZPatterns are you using?
0.4.3b2 on Zope 2.2.0
I certainly don't have
"R. David Murray" wrote:
On Fri, 23 Feb 2001, Michael R. Bernstein wrote:
As you can see by the second example, an ISBN can have
letters as well as numbers in it, so it cannot be
represented by an integer. Text indexes seem to ignore
'words' that contain numbers, thoug
Toby Dickenson wrote:
If you are interested in a short-term hack, it is possible implement
your own type of index and add it to an existing catalog, without
having to modify any of the ZCatalog product.
Ok, how? Please keep in mind that I'm more of a designer and
integrator than a coder.
Hi all,
I realize this is a little off-topic, but I figured I'd give
it a shot anyway.
I am a Zope-savvy web-designer that has recently been
'downsized', and I'm looking for a new employer. I'm
located in Las Vegas, NV, and would prefer not to
relocate, but would be open to telecommuting.
Casey Duncan wrote:
I rarely find myself using any explicit boolean operators when I use
Google. And even when it returns 657,340,269 pages, the ones I wanted
tend to be in the top 30. I think "OR" searching is fine if the result
scoring can be done intelligently somehow.
It's pretty
"[EMAIL PROTECTED]" wrote:
A half-page ad in the Sunday New York Times can cost more than $50,000 and only
reaches 4 million people.
SpamCopped.
http://spamcop.net/sc?id=z18008689zb12fa2894091c08b658348efed77122dz
Michael Bernstein.
P.S. Join in the fun! The more people report a
"Phillip J. Eby" wrote:
At 05:27 PM 3/30/01 -0800, Michael R. Bernstein wrote:
Now I am working on a ArchiveImage ZClass that holds 'meta'
information about an image, such as the description, a date,
and keywords.
I want to have one Rack for each image size that I want to
stor
Problem:
---
You want your ZClass instance edit form to correctly display
the currently selected values for a multiple selection
property.
Assumptions:
---
You have a ZClass that has a multiple select property named
'format' with a value set to 'format_list'.
You have a
"Phillip J. Eby" wrote:
At 08:59 PM 3/30/01 -0800, Michael R. Bernstein wrote:
The terminology I'm using is ArchiveImage (for the 'Image'
class) and RackImage (for the 'Rendering' class).
I'd recommend a name change for RackImage, at least at the Specialist
level. If you
"Phillip J. Eby" wrote:
By the way, RenderingKinds is a sort of specialist that hasn't been
discussed much outside of the apps Ty and I work with - the "constant"
Specialist, one which contains application configuration or metadata rather
than "content". Oftentimes it's handy to simply
Hi all,
I had some questions about SkinScripts:
1) Are there any naming conventions for SkinScripts?
2) Is there any reason (other than factoring) to split
SkinScripts up, or is putting all your declarations in one
SkinScript ok?
Thanks,
Michael Bernstein.
"Phillip J. Eby" wrote:
At 05:08 PM 4/1/01 -0700, Michael R. Bernstein wrote:
I'm also assuming that RenderingKinds' defaultRack is set to
use 'ZPatterns: DataSkin' and be set to load by accessing
the 'id' attribute. Is this correct?
Well, I would create a "RenderingK
"Phillip J. Eby" wrote:
At 01:45 PM 4/1/01 -0700, Michael R. Bernstein wrote:
It seems as though the manage_upload method is supposed to
hand off the image data to RenderingKinds, which in turn
either replaces the image data in existing Renderings, or
creates new ones, by
Mike Blake wrote:
PLEASE don't post HTML email to the list.
Thank you.
Michael Bernstein
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
Hi all,
Someone just mentioned on the #zope IRC channel that they
saw a comment to the effect that the 'zexp format was
'deprecated'. Can anyone confirm this? what release will no
longer support the format?
Michael Bernstein.
___
Zope-Dev maillist -
Erik Enge wrote:
The programmer solving our problems with the post codes has solved it in a
different way than what I would've done (his method is way superior), so
we're not ending up adding all addresses as Zope Objects.
Oh well. Does anyone else have any setups that store truly
massive
Ulrich Eck wrote:
traversal_method has 'REQUEST, name' as parameters, and the
following body:
return getattr(container.Renderings, name)
The 'traversal' SkinScript has the following body:
WITH SELF COMPUTE __bobo_traverse__=traversal_method
try:
if
Andy McKay wrote:
Any cataloguing and un-cataloguing of an object is expensive, c'mon you are
changing all the indices, vocabulary and so on. You never notice it normally
for 1 - 10 things, but run an import script of 1 and catalog each object
as it gets added (rather than all of them
With some help from the kind folks on #zope, this has been
solved.
"Michael R. Bernstein" wrote:
Here is what I've done:
ArchiveImages (Specialist)
defaultRack
traversal_method (Python Script)
traversal (SkinScript)
Renderings (sub-Specialist)
defaultRack
This
Ok, I now have the following setup:
ArchiveImages (Specialist)
defaultRack
traversal (SkinScript)
traversal_method (Python Script)
Renderings (Specialist)
defaultRack
The SkinScript in ArchiveImages/defaultRack simply points
__bobo_traverse__ to traversal_method.
traversal_method, in
"Michael R. Bernstein" wrote:
Ok, so what's next? Somehow, ArchiveImages must be made
aware of what Renderings they have.
The ArchiveImage Specialist needs a getRenderingIds() Python
Script, which in turn calls
container.Renderings.getRenderingIdsFor().
Now I'm stuck. How d
Itai Tavor wrote:
Could I get a copy of this product? I'm trying to create a
Rack-mountable Image class but I'm having a lot of trouble getting a
class subclassed from Image and DataSkin to work. Having some working
code could save me some trouble.
I only need the basic RackImage,
Steve Alexander wrote:
In the ScinScript, you need to determine what data to use based on
self.id. Here's the SkinScript I use for a similar function; I'm
creating "virtual" instances of one ZClass, based on instances of a
different ZClass from another Specialist. In this case, the other
Itai Tavor wrote:
Thanks, Michael! Turns out I just had to make a few small changes in
my product to get it to work, which I discovered looking at yours.
Don't know if anything in my product that it would be interesting to
add to yours... it's aimed at storing photos for a product
Hello all,
I've been trying to follow the instructions for getting
subSpecialist instances to appear as directly traversable
from Specialist instances, but have not yet had any success.
Here is what I've done:
ArchiveImages (Specialist)
defaultRack
traversal_method (Python Script)
On Mon, 2001-09-17 at 09:04, Phil Harris wrote:
+1 family member.
The nuclear family is now ready.
I guess it's now time for you to go fission.
Michael.
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
On Fri, 2001-09-21 at 15:51, Paul Everitt wrote:
I'll reply in more depth later (on the way out for my b-day dinner)
Hey, happy birthday, Paul!
Michael Bernstein.
___
Zope-Dev maillist - [EMAIL PROTECTED]
On Tue, 2001-09-25 at 09:19, Paul Everitt wrote:
We'll probably work up some boilerplate such as, I'm going to commit
your patch to Zope. It's going to be available under the ZPL and the
joint ownership model of the Zope Contributor Agreement. Please respond
agreeing that you
On Tue, 2001-09-25 at 05:27, Paul Everitt wrote:
Does anyone think this is close enough that I can go ahead and get the
bootstrap group (under ten, selected by us) going? I'd like to avoid
making them sign and mail an agreement, then do it again if there's
substantive changes.
Full
On Sun, 2001-09-23 at 17:00, Andy McKay wrote:
[snip]
Haven't we been complaining about this automatic appending of
tracebacks for
a while? To me this is what log files are for but Im not sure what this
guy is on. I wouldnt count this as a security vulnerability.
Hmm. It's 'side-band'
On Tue, 2001-09-25 at 18:16, Chris Withers wrote:
PS: Anyone using DTML or ZClasses for this kind of thing in this day and age
should be shot ;-)
Personally, I think all extremists and fanatics should be shot.
Oh yeah, I forgot, ;-)
Michael.
Hi all,
I posted this 24 hours ago on the main zope list, but didn't receive a
response, so I'm reposting here.
I've got an ObjectManager and Folder derived ZClass that contains
instances of a second rather simple ZClass.
It works fine, the Manager role can access the management interface of
The current roadmap for Zope 2.5 sets an alpha release date for sometime
in september, but is that still likely?
Michael Bernstein.
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML
On Tue, 2002-01-08 at 14:01, Evan Simpson wrote:
Michael R. Bernstein wrote:
[snip stuff about accessing a browser_id_manager's
meta_type from unrestricted code raising an
unauthorized exception]
Will this be fixed for 2.5 final?
That depends. We're currently waiting
On Wed, 2002-01-09 at 01:40, Wolfram Kerber wrote:
From: Chris McDonough:
meta_type is an attribute, so you can't just do
security.declareProtected(ACCESS_CONTENTS_PERM, 'meta_type')
That's right.
The id attribute has the getId method, perhaps what's required is a
On Wed, 2002-01-09 at 10:13, Wolfram Kerber wrote:
I didn't think you could have more than one
setDefaultAccess in a class. If you can, then you can set:
security.setDefaultAccess('deny')
security.setDefaultAccess({'meta_type': 1})
The last 'setDefaultAccess' statement in a class
be willing to live without this.
Does anyone already have something like this developed with the bugs
worked out? I'd rather not reinvent this particular wheel if I don't
have to.
--
Michael R. Bernstein [EMAIL PROTECTED]
___
Zope-Dev maillist - [EMAIL
On Thu, 2007-10-04 at 09:57 -0400, Jim Fulton wrote:
Any objections?
This would basically involve retiring the zope3-dev list and moving
zope3 developers to the zope-dev list.
+1
Seems reasonable. The archives for the retired list will remain in
place, right?
- Michael R. Bernstein
Hi folks,
The deadline for the O'Reilly Open Source Convention Call For
Participation is Tuesday Feb 3rd.
OSCON will be held July 20-24 in San Jose, California.
As of today, there are no Zope-related proposals, so yours could have a
pretty good chance of acceptance. ;-)
There have been a lot
53 matches
Mail list logo