Re: [Zope3-dev] LocationProxy+None

2007-08-14 Thread Jeff Shell
t; removeAllProxies(located_none) is None True Or you can use `sameProxiedObjects`, which does the identity check on the internal objects of one or two proxies: >>> sameProxiedObjects(located_none, None) True You can see this when wrapping another instance of None with a locatio

Re: [Zope3-dev] zope.cachedescriptors outdated

2007-02-24 Thread Jeff Shell
tors. By grand design or divine accident, the fact that the first argument for `property` is the getter function makes it a useful decorator. But it wasn't written with decorators in mind. It was written for ``x = property(getX, setX, delX)``, or some combination thereof. -- Jeff Shell

Re: [Zope3-dev] zc.resourcelibrary resources positioning in

2007-02-21 Thread Jeff Shell
On 2/21/07, Shaar Gabriel <[EMAIL PROTECTED]> wrote: a little thought about zc.resourcelibrary. shouldn't the added resources (at least javascript) be closer to than to . this way the specific javascript resources can make use of the more general ones included in the skin with the template. does

Re: [Zope3-dev] SOAP support?

2007-02-08 Thread Jeff Shell
ystem. Viva AJAX with JSON! Viva View-Source! Viva good old fashioned GET and POST HTTP requests that don't have additional traversal steps buried in a body that one could never type by hand!) - 100 for adding this kind of support to the core. It's way too much of a mess, and the Python

[Zope3-dev] Re: future of fssync (was: RE: [SpringCleaning07])

2007-02-08 Thread Jeff Shell
This is a very delayed response, I'm sorry. I seldom get/make the time to check GMail these days. Eternally busy, for better or worse :). On 1/2/07, Stephan Richter <[EMAIL PROTECTED]> wrote: On Wednesday 20 December 2006 16:03, Jeff Shell wrote: > > > > zope.fssync >

Re: [Zope3-dev] Re: [SpringCleaning07]

2006-12-20 Thread Jeff Shell
w for {{ expr }} type things in its templates? Or was that Kid? Anyways, I hate having to type a whole bunch of TAL to generate a fake tag and all of that to do a simple insertion in cases where I could really do without that overhead:: Featured? 'view/featuredFlag' renders lots o

Re: [Zope3-dev] RE: [SpringCleaning07]

2006-12-20 Thread Jeff Shell
re used and can be built. Perhaps give templated starting points like paster does:: $ paster create --template=zope3product easytodo The Zope 3 experience does nothing to start the casual newcomer towards building a simple starter application. Both Pylons and TurboGears have a 'q

Re: Re: [Zope3-dev] Do not serialize one attribute

2006-12-14 Thread Jeff Shell
On 12/14/06, Jeff Shell <[EMAIL PROTECTED]> wrote: On 12/14/06, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, I have a object, derived from Persistent when contain one > attribute which is not serializable and that's not a problem for me, > but Zope complains ab

Re: [Zope3-dev] Do not serialize one attribute

2006-12-14 Thread Jeff Shell
you can. Some # kind of small memento. # This is what gets pickled and stored in the ZODB. return state def __setstate__(self, state): # here is where you can re-instantiate 'unserializable' state['unserializable'] =

Re: [Zope3-dev] Applying schema data on an object

2006-12-13 Thread Jeff Shell
): value = field.query(source, _marker) if (value is _marker) and applydefaults: value = field.default yield (name, value) address = dict(pairs(contact.address, IStreetAddress)) # or pprint.pprint(list(pairs(contact.address, IStreetAddress)

Re: [Zope3-dev] Bugday today

2006-11-16 Thread Jeff Shell
On 11/15/06, Christian Theune <[EMAIL PROTECTED]> wrote: Hi, just a quick reminder: Today is a bugday to help get Zope 3.3 virtually free of bugs (by handling bugs from the collector.) Any status report on this? The collector state(s) seem unchanged. -- Jeff

Re: Re: [Zope3-dev] Zope 3.3.0 - Why is the minimum generation for 'zope.app' 1? What's a good practice to update to generation 5 prior to my own evolver?

2006-11-06 Thread Jeff Shell
al straw that got me smoking again after two months clean. On 11/3/06, Christian Theune <[EMAIL PROTECTED]> wrote: Jeff Shell wrote: > On 11/3/06, Christian Theune <[EMAIL PROTECTED]> wrote: >> Hi, >> >> what about calling the evolve() scripts from your generation?

Re: Re: [Zope3-dev] Zope 3.3.0 - Why is the minimum generation for 'zope.app' 1? What's a good practice to update to generation 5 prior to my own evolver?

2006-11-03 Thread Jeff Shell
I require... But it looks like I'll have to manually monkey with the order... :( I blame myself. I should have gotten more involved during the beta testing period for Zope 3.3, just to test it against our old databases... It's been a rough week. -- Jeff Shell _

[Zope3-dev] Zope 3.3.0 - Why is the minimum generation for 'zope.app' 1? What's a good practice to update to generation 5 prior to my own evolver?

2006-11-03 Thread Jeff Shell
ow loads up without deprecation warnings on a fresh ZODB, but I'm struggling to load up an old ZODB copy with real data, and am now suddenly behind schedule. We have at least three more customer code bases beyond this one that we want to update as well. I'm trying to think of a better

[Zope3-dev] Re: Big Problem with FTP in Zope 3.3.0, seems to be the result of using `v = self.get(name, self); if v is self...` in a land where Proxy objects can kill identity comparison

2006-10-31 Thread Jeff Shell
I have to follow this up. While I thought I was doing a good job reporting and testing the problem, I didn't do a hard enough control-group study. So, I started to investigate further: Even though I saw absolutely nothing about our ReadDirectory subclass that would cause the strange behavior, I d

[Zope3-dev] Big Problem with FTP in Zope 3.3.0, seems to be the result of using `v = self.get(name, self); if v is self...` in a land where Proxy objects can kill identity comparison

2006-10-31 Thread Jeff Shell
radigm isn't used? After encountering this, I am rather uneasy about the number of places in which I see this "self as default marker check" paradigm. My biggest unease comes from not knowing proxies and when things are proxied and when they're not and when I have to be careful

Re: Re: [Zope3-dev] Grrr. zope.org wikis are evil.

2006-10-11 Thread Jeff Shell
wledge Base / Whatever supports the structured text syntax I've been writing in. Oh well. I absolutely agree that we need to replace the existing wikis. One other thing we'll need to consider is anti-spam capabilities. I'll agree with this agreement. -- Jeff Shell _

Re: Re: [ZF] Re: Use launchpad ! (was Re: [Zope3-dev] the maintenance of change logs)

2006-09-29 Thread Jeff Shell
f issues four layers down from customer-specific code. So: I really like Launchpad's goals and intentions. But its a usability nightmare to me as a casual visitor. And I've found that for me, personally, it's hard to stay involved with or on top of a project in that situation,

Re: Re: Use launchpad ! (was Re: [Zope3-dev] the maintenance of change logs)

2006-09-28 Thread Jeff Shell
x27;s a very nice system to use, even casually. The Timeline is like a Wiki's "Recent Changes" on crack. Except the crack is filled with helpful vitamins: recent wiki changes, recent checkins, recent issue tracker activity (bugs submitted, opened, closed). It just feels so much more alive. -- Jeff Shell ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: Re: [Zope3-dev] Python version for Zope 3.4 ?

2006-09-28 Thread Jeff Shell
age templates, nothing - can't there be a lighter weight security implementation that wouldn't take half a year of "lots of hard work"? -- Jeff Shell ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] Re: Python version for Zope 3.4 ?

2006-09-28 Thread Jeff Shell
Or does Zope 3.3 + Python 2.5 work, but it hasn't been tested enough to say "it's usable, but not required"? -- Jeff Shell ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] Riddle: zope.interface versus zope.formlib

2006-08-25 Thread Jeff Shell
r when really it was bound to IFoo," but I don't understand the solution that you're trying to get to and why. Specifically, I don't get how it "hurts formlib." I think a good copy-and-modify tool for zope.interface.Attribute (or at

[Zope3-dev] ZCML, Paths, and the Things You Actually Want To Change At Configuration Time

2006-04-03 Thread Jeff Shell
someone made an implementation of this at some point. As far as I can tell, the 'Path' schema field is not much more than a string. For a 'configuration' language, that's rough. -- Jeff Shell ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] Re: a plan for widgets?

2006-03-20 Thread Jeff Shell
long and painful process sometimes, but I could at least follow obscure (and accidental) bugs and problems to the source. Go ahead and make ZCML the most beautiful new language you want it to be. But it's got *severe* problems right now. And the "just about anything doable in ZCML can be

Re: [Zope3-dev] Re: Re: a plan for widgets?

2006-03-20 Thread Jeff Shell
| > | Was that an endorsement or criticism? :) > > A endorsement I guess, since Mr. Shell seems to think that's the Right > Way (tm). I'm not sure if it's the Right Way or not. But it's the way that's available now and makes enough sense for simple situations. -

Re: [Zope3-dev] Re: a plan for widgets?

2006-03-20 Thread Jeff Shell
On 3/17/06, Tres Seaver <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > By the way, isn't it pretty easy to provide straight up values anyways > > for those quick drop-down situations? > > > > You're missing the point -- the vocabulary is *not* softw

Re: [Zope3-dev] Re: a plan for widgets?

2006-03-20 Thread Jeff Shell
ily on custom vocabularies for a customer application I'm about to resume work on this week. I don't think I'm going to have time to do any such revision. But I would like to know (or help others know) how to apply such a revision in the future. -- Jeff Shell ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] Re: a plan for widgets?

2006-03-16 Thread Jeff Shell
On 3/16/06, Tres Seaver <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Martijn Faassen wrote: > > > > > * sources and terms are nice, but we should at least provide some basic > > sources and register some basic terms for them; that bit is completely > > missing i

Re: [Zope3-dev] what is ZCML?

2006-03-16 Thread Jeff Shell
ucks an even bigger electrical outlet. (Honestly - I'm too stupid to understand Excel... But maybe I'm saying that after spending a week writing an CSV inventory importer. Ugh). > If ZCML is to be a simple registration language, I'd also like there to > be a 1 to 1 mapping of ZCML sta

Re: [Zope3-dev] Re: Coarse-grained reuse.

2006-03-16 Thread Jeff Shell
On 3/16/06, Martijn Faassen <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > I don't think there's anything wrong with "custom Python" code to set > > this up. It's programmatic, isn't it? A lot of it may be repetitive, > > and if that&#

Re: [Zope3-dev] Re: Coarse-grained reuse.

2006-03-15 Thread Jeff Shell
ch point you've got an event handler all over again. I'm looking at my code to set up the authentication utility for some of our sites. Very specific rules about what plugins are needed (users, groups, http credentials) and things in those plugins (default groups). There's no way I'd

Re: [Zope3-dev] Re: what is ZCML?

2006-03-15 Thread Jeff Shell
opment and *not* just configuration, I think ZCML should be a thin layer and the Python layer should be robust. I think it would promote better code, components, applications, sites, etc, if the Python developer remained the chief focus of the current round of development. The community of developers

Re: [Zope3-dev] Re: a new zcml directive?

2006-03-15 Thread Jeff Shell
e a reference to something in Rails and google ``rails validates_presence_of`` and usually get to the api reference first. (Not that I'm leaving Zope for Rails, but I have been toying with it a bit, I admit). -- Jeff Shell ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Dissecting NamedTemplate (was Re: [Zope3-dev] Re: a new zcml directive?)

2006-03-15 Thread Jeff Shell
def __call__(self): if not self.context.available(): return u'' ... That last bullet is important. This is the "yeah, but how do I grow up beyond ___?" answer. With custom ZCML directives,

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Jeff Shell
I can write an enterprise workflow and document management system in it. Let Python be the language. Let ZCML exist to do the final step of loading/registering registerable objects in a predictable manner, and to provide the few things that we don't want to pollute our (or others) Python code with, like security declarations. -- Jeff Shell ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Jeff Shell
itialize(context)`` functions in your Zope 2 Product's __init__.py files and change things? That's what I view ZCML as being - a better version of that. (Better in only that configuration and initialization can be executed separately from Python imports) -- Jeff Shell ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Jeff Shell
through ZCML statements, and what they've produced. From dynamically made classes to the weirdness of the metaconfigure.py code (handlers, discriminators, etc) - all of those things get in the way of a productive pdb or "why is this thing blowing up?" session real fast. In my experience

Fwd: [Zope3-dev] a new zcml directive?

2006-03-13 Thread Jeff Shell
the existing once should suffice. * Don't let ZCML do automation, Python is better at it. People will look for some of the behaviour in the Python code only to find out that it's not there but hidden behind dubious ZCML directives. This can be avoided. Simply try to look

Re: [Zope3-dev] a new zcml directive?

2006-03-10 Thread Jeff Shell
eful and I ran into having to write a similar bulk of code the other day - although my adapter and annotator had a larger separation (so 'zope:annotation' wouldn't have helped me anyways). I would argue that most situations requiring some sort of automation can be done by Plain Old Pyth

Re: [Zope3-dev] Re: Mandatory Viewing!

2006-03-07 Thread Jeff Shell
cation that's flashier and more dedicated than the ZMI, is less overwhelming than Plone, is easy to generate from a base Schema, and is easy to start branding to one own's desires and morphing into one's own application. Add viewlets/content providers on to that and you could really reall

Re: Movies, audiences, wasted effort, was Re: [Zope3-dev] The vision thing

2006-03-06 Thread Jeff Shell
understandable... Mostly. Much more so than trying to follow a ZCML directive. This is all still for a developer focused crowd, which is still my main interest. I'll provide the cool things for my customers. The more cool and usable things go into the core that help me more than they coddle me, th

Re: [Zope3-dev] Re: The vision thing

2006-03-06 Thread Jeff Shell
On 3/5/06, Max M <[EMAIL PROTECTED]> wrote: > Geoff Davis wrote: > > Jeff Shell has posted some thought-provoking pieces on his blog that are > > relevant to Jim's recent attempt to better articulate a vision for Zope: > > > > http://griddlenoise.blogspot.c

Re: [Zope3-dev] Zope Eggs

2006-03-06 Thread Jeff Shell
oint we're still experimenting with how we'll use > eggs, so suggestions, feedback and comments are welcome. > > Thanks, > > Nathan R. Yergler > ___ > Zope3-dev mailing list > Zope3-dev@zope.org > Unsub: http://mail.z

Re: [Zope3-dev] Re: Notice: zope.interface is now a separate project

2006-03-04 Thread Jeff Shell
nd flexible than most basic type systems. I think that zope.schema, zope.component, and zope.interface could be highly effective when combined with a tool like 'sqlalchemy'. -- Jeff Shell ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] Re: [Zope-dev] Re: Two visions

2006-03-04 Thread Jeff Shell
tions, app servers, and even competition. One of my thoughts for some weekend hacking was to look at zope.bobo, or play with my own concept just to see if I really understand how the publisher/publication interact. As I started thinking about that, I started wondering (a) how to get the pieces I need

Re: [Zope3-dev] Re: [Zope3-Users] Visionaire! (All your problems, solved)

2006-03-01 Thread Jeff Shell
e 3 as a someday successor to Zope 2, maybe" message goes away. 'Zope 3' becomes less of a product name on its own and comes to stand for the work done to re-imagine Zope as a loosely coupled collection of components, and the possibilities that it opens up. The message then becomes "Zo

[Zope3-dev] Django, Catwalk, nice admins (was re: Visionaire! (All your problems, solved))

2006-03-01 Thread Jeff Shell
On 3/1/06, Gary Poster <[EMAIL PROTECTED]> wrote: > > On Mar 1, 2006, at 11:02 PM, Jeff Shell wrote: > [...] > > Django is killing us on automatic data (not system) administration > > pages. > [...] > > I didn't follow this, probably because I don&#x

Re: [Zope3-dev] Visionaire! (All your problems, solved)

2006-03-01 Thread Jeff Shell
On 3/1/06, Shane Hathaway <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > - Zope 3 CA: The Zope Component Architecture. Core services. Would > > include zope.publisher and most other current top level zope.* things. > > Usable as a library, as a publisher for oth

[Zope3-dev] Visionaire! (All your problems, solved)

2006-03-01 Thread Jeff Shell
ides a robust and mature web development environment that is in place already behind many web sites and applications worldwide. [download zope 2.9 now | more info | roadmap ] Thoughts? I think this keeps Zope 3 as we know it alive, keeps the Zope brand intact, and offers a future for Zope 2 and

Re: [Zope3-dev] Two visions

2006-02-28 Thread Jeff Shell
le, that trying to use a particular widget isn't likely to make my system need to register 80 supporting components and sub systems. Hopefully some simple guidelines can stay in place and stuck to in regards to "how to make sharable components sharable". -- Jeff Shell ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] Two visions

2006-02-27 Thread Jeff Shell
my own selfish desires anyways. I still believe that if we can build and deliver a solidly defined core, then we (or others) can do anything on top of it - a full on replacement for ZClasses, continuations based development with through the web shadowing

Re: [Zope3-dev] Brainstorming about browser pages

2006-02-18 Thread Jeff Shell
t is similar. It has nothing to do with page templates, except as a minor implementation detail. I think __call__ is about the best generic API we can use right now. On top of that, the 'update/render' API used in zope.formlib, zope.contentprovider, and zope.view

Re: [Zope3-dev] Re: Zope 3 web root

2006-02-17 Thread Jeff Shell
sically see the "Zope 3 ZMI" long enough to add one of my sites/applications. At that point, my skins take over, and that's all I see. The rotterdam skin is there as last resort to get out of trouble or to tweak local utility configurations. I guess I've just made some supporting libraries and frameworks to help me. I had this with Zope 2 too, but it's been easier to do with Zope 3. I encourage everyone to do this. -- Jeff Shell ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] Brainstorming about browser pages

2006-02-17 Thread Jeff Shell
me* kind of support. If done properly, having this:: class ArticleDisplay(PageView): template = ViewPageTemplateFile('article.pt') [ZCML] seems pleasant enough. Then when you need to format the 'description' field through something like newlin

Re: [Zope3-dev] Zope 3 web root

2006-02-16 Thread Jeff Shell
On 2/16/06, Shane Hathaway <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > I agree that better integration with external data should be a > > priority for Zope. But what does that mean? In theory, if something's > > a Python object it should work with Zope 3 wit

Re: [Zope3-dev] One namespace for ZCML

2006-02-16 Thread Jeff Shell
On 2/15/06, Chris Withers <[EMAIL PROTECTED]> wrote: > Stephan Richter wrote: > > I do not think namespace declarations are dead chickens. For me declaring a > > namespace in ZCML is the same as importing a package or module in Python. > > You > > would not want all functions and classes in Python

Re: [Zope3-dev] Zope 3 web root

2006-02-15 Thread Jeff Shell
On 2/10/06, Shane Hathaway <[EMAIL PROTECTED]> wrote: > Wade Leftwich wrote: > > +1 from the standpoint of promoting corporate adoption, especially when > > combined with first-class citizenship for RDBMS. (In the corporation I > > work for, anyway.) > > Yes, RDBMS would become a first-class citize

Re: [Zope3-dev] Re: Last chance to comment on Simplify skinning

2006-02-15 Thread Jeff Shell
On 2/15/06, Fred Drake <[EMAIL PROTECTED]> wrote: > On 2/15/06, Paul Winkler <[EMAIL PROTECTED]> wrote: > > Only that I have the same question Martijn does: > > Can I then override one of those resources and keep the other 34? > > Perhaps the resourceDirectory directive should just be sugar for a s

Re: [Zope3-dev] Zope 3 web root

2006-02-15 Thread Jeff Shell
On 2/10/06, Shane Hathaway <[EMAIL PROTECTED]> wrote: > Chris Withers wrote: > > I'd flip that, because I think you and Steve A would agree on one thing: > > The use of an object database _should_ be a choice, not a requirement, > > but it should also be the default ;-) > > Actually, I disagree--I

Re: [Zope3-dev] Re: Last chance to comment on Simplify skinning

2006-02-15 Thread Jeff Shell
rface Types. I don't have our Zope 3 book in front of me right now, so I'm not sure if it has anything helpful to say. But I'll just say that Interface Types have been an elusive concept for me, so far. -- Jeff Shell ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] One namespace for ZCML

2006-02-14 Thread Jeff Shell
On 2/13/06, Stephan Richter <[EMAIL PROTECTED]> wrote: > On Monday 13 February 2006 07:57, Philipp von Weitershausen wrote: > > Yet again looking for comments, this time at: > > http://dev.zope.org/Zope3/OneNamespaceForZCML. > > -1 > > Here some comments: > > - You do not argue how the decision-mak

Re: [Zope3-dev] Re: Selecting a code name

2006-02-07 Thread Jeff Shell
On 2/7/06, Stephan Richter <[EMAIL PROTECTED]> wrote: > On Tuesday 07 February 2006 05:09, Jeff Shell wrote: > > Alright, I've stayed up way too late on this. > > Jeff, > > you always make great points! I would like to nominate you as the "Zope 3 > Propagan

Re: [Zope3-dev] Re: Selecting a code name

2006-02-07 Thread Jeff Shell
ality, it doesn't help. > This is the proposal that considers the most serious consideration in my > opinion. The original discussion showed that a lot of people found Zope's > lack of branding a problem. Now it's time to find a solution to that > problem. Something that

Re: [Zope3-dev] ZCML bad ;-)

2006-01-24 Thread Jeff Shell
On 1/24/06, Chris Withers <[EMAIL PROTECTED]> wrote: > Gary Poster wrote: > > > > FWIW, me too. I'm no XML guru (as Fred will attest ;-) ) but reading > > the namespaces on an XML file seems like basic XML procedure. > > Well, the reading of them is the lesser of my two complaints... > > I find it

Re: [Zope3-dev] Re: ZCML bad ;-)

2006-01-21 Thread Jeff Shell
ot;write these n lines of ZCML to auto-generate an edit form for a schema/interface", it should be "write these 5 lines of Python to generate that form, and 1-2 lines of ZCML to register it, name it, and protect it." And then, as the user

[Zope3-dev] schema api

2006-01-17 Thread Jeff Shell
found from the interface down in the factories/classes section, maybe that's good enough? -- Jeff Shell ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Re: [Zope3-dev] Principal Comparison and/or References

2006-01-13 Thread Jeff Shell
On 1/13/06, Gary Poster <[EMAIL PROTECTED]> wrote: > > Comparing the id attribute works. Is it reasonable to assume that > > zapi.principals().getPrincipal(request.principal.id) should return the > > same principal as request.principal? And thus if > > somerecord['creator_id'] == request.principal.

[Zope3-dev] Principal Comparison and/or References

2006-01-12 Thread Jeff Shell
b3_1 == b3_2 False Comparing the id attribute works. Is it reasonable to assume that zapi.principals().getPrincipal(request.principal.id) should return the same principal as request.principal? And thus if somerecord['creator_id'] == request.principal.id, that's considered a good match?

[Zope3-dev] Undo Principal Transaction problems with pluggable users

2006-01-10 Thread Jeff Shell
I've developed a sick fascination with undo and have been working [hard] over the past few days trying to write some code for our internal frameworks to make Undo easy. Inspired by GMail's "Message Discarded (Undo Discard)" functionality, I've set about making something similar that does a modified

Re: [Zope3-dev] Re: RFC: abolishing python: expressions in ZPT TALES

2006-01-04 Thread Jeff Shell
On 1/3/06, Wade Leftwich <[EMAIL PROTECTED]> wrote: > Andreas Jung wrote: > > To bring it to the point: _scripters_ should be able to develop in Zope > > 3 as easy as in Zope 2 :-) > > Or at least almost as easily as in RoR or Django. TTW is not a > requirement; Chris McDonough's "TTB" posting was

Re: [Zope3-dev] RFC: abolishing python: expressions in ZPT TALES

2005-12-30 Thread Jeff Shell
Actually, I just found another place where Python expressions are handy. I have a simple but kindof specialized form - one that is too simple and too specific to really go through the Zope schema system without a lot of gnashing of teeth. It may be easier to do with zope.formlib, but it's still not

Re: [Zope3-dev] attr name space (was: RFC: abolishing python: expressions)

2005-12-30 Thread Jeff Shell
On 12/30/05, Alexander Limi <[EMAIL PROTECTED]> wrote: > On Thu, 29 Dec 2005 15:49:46 +0100, Philipp von Weitershausen > <[EMAIL PROTECTED]> wrote: > > > I think it would be quite possible to do explicit key or attribute > > lookup with TALES, e.g.: > > > > foo/attr:bar (for foo.bar) > > foo/k

Re: [Zope3-dev] RFC: abolishing python: expressions in ZPT TALES

2005-12-29 Thread Jeff Shell
-1. I use them very rarely, and expect to use them less with Viewlets now in the picture. But there are still little situations where Python expressions are handy, especially on big-macro templates where there's not a backing view. I'm not advocating programming in page templates, but there are so

Re: [Zope3-dev] Important Heads Up: I'm making IResult private

2005-12-26 Thread Jeff Shell
On 12/23/05, Jim Fulton <[EMAIL PROTECTED]> wrote: > > I've been working on trying to clean up the IResult/response.write mess. > I want to retract IResult from the public API. > > Here's what I propose to do: > > - Move IResult from zope.publisher.interfaces.http to >zope.publisher.http, thus

Re: [Zope3-dev] URGENT RFC: Is anyone using response.write in Zope 3?

2005-12-19 Thread Jeff Shell
king), efficient image serving from Zope is not that big of a concern to us... But back to the issue at hand - knowing how to better serve those out to the response would be a big help. On 12/19/05, Martijn Faassen <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > I was using it in

Re: [Zope3-dev] URGENT RFC: Is anyone using response.write in Zope 3?

2005-12-19 Thread Jeff Shell
I was using it in some custom views for HurryFile based images. I've removed it since I started testing our code against Zope 3.2. Right now I just return the hurryfile binary data with a return statement (one big chunk), but am looking forward to knowing how to return long output. On 12/19/05, Ji

Re: [Zope3-dev] Re: View lookup changes in Zope 3.2?

2005-12-16 Thread Jeff Shell
On 12/15/05, Martijn Faassen <[EMAIL PROTECTED]> wrote: > Jim Fulton wrote: > > Martijn Faassen wrote: > [snip] > > > Or am I wrong in even imagining this would be desirable? > > > > I think so. If there are custom views for more specific interfaces, > > it is likely those custom views provide fe

[Zope3-dev] Interface implementation declaration weight (was Re: View lookup changes in Zope 3.2?)

2005-12-13 Thread Jeff Shell
On 12/13/05, Jim Fulton <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > ... > > Going through a lot of debugging, it looks as through it has to do > > with how things are ranked in > > zope.interface.adapter.AdapterLookup.lookup() for multi-adapters. > > Yu

Re: [Zope3-dev] Re: View lookup changes in Zope 3.2?

2005-12-13 Thread Jeff Shell
On 12/13/05, Jim Fulton <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > On 12/13/05, Jim Fulton <[EMAIL PROTECTED]> wrote: > > > >>Jeff Shell wrote: > >> > >>>Is it related to this? "Bug in Multi Adapter Lookup"? > >&

Re: [Zope3-dev] Re: View lookup changes in Zope 3.2?

2005-12-13 Thread Jeff Shell
On 12/13/05, Jim Fulton <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > Is it related to this? "Bug in Multi Adapter Lookup"? > > http://www.zope.org/Collectors/Zope3-dev/396 > > ('fixed' in Zope 3.2b1) > > > > That's my suspicion

[Zope3-dev] Re: View lookup changes in Zope 3.2?

2005-12-13 Thread Jeff Shell
have to re-declare the view for each container type. I guess I should also learn more about how everything collaborates to establish an objects interfaces and in what order so I can ensure that the base Zope interfaces are lower on the providedBy list? On 12/12/05, Jeff Shell <[EMAIL PROTECTED]&

[Zope3-dev] Re: XUL, DHTML

2005-12-12 Thread Jeff Shell
There's nothing (as far as I'm aware) stopping you from using XUL for your own Zope 3 apps - even replacing some or all of the basic ZMI with it and then offering it as a management skin for Zope. But for what it's worth - we've been working on a CMS in Zope 3 with a custom skin for managing conte

[Zope3-dev] View lookup changes in Zope 3.2?

2005-12-12 Thread Jeff Shell
Today I finally got around to installing Zope 3.2b1 and started testing one of our sites against it. I'm running into a few problems, some of which are my fault, some that I don't quite understand, and one that is really bad. We have been basically rolling a custom CMS in Zope 3, and the content m

Re: [Zope3-dev] Ajax in Zope 3

2005-12-06 Thread Jeff Shell
Bottlerocket has also chosen MochiKit. It's not full of flashy effects, but its Ajax support is nice, it's well tested, and it brings a lot of Python style functionality to JavaScript which makes JavaScript suck a whole lot less (for real - the DOM and Iterator libraries are absolutely great). In

Re: [Zope3-dev] Zope 3.2.0 Beta 1 released

2005-12-06 Thread Jeff Shell
No 'formlib' for the core distribution, or was that just omitted from the feature list? I plan to start testing this soon. We had some problems with Python 2.4.1 + Zope 3.1 on one of our deployment boxes (the app/ZODB was developed against Python 2.3.x). I'm hoping it was just the [EMAIL PROTECTED

[Zope3-dev] Generations - a missed use case? (Evolving an application for the first time)

2005-11-18 Thread Jeff Shell
I have an application where I'm trying to use 'zope.app.generations' for the first time. And after much pulling of hair and looking at the core code, I found what may be a missed scenario. Basically, we deployed this application for a customer and now they want some changes. It changes the schema

Re: [Zope3-dev] hurry.query in Zope 3.2?

2005-10-28 Thread Jeff Shell
I love hurry.query. Whether it's in the core or not doesn't phase me, but it is really really helpful. We got bit by not realizing that FieldIndex queries passed directly to the catalog/index had a low and high range. It was a small bite. But it took us a while to figure out why searching for 'summ

Re: [Zope3-dev] Re: zope3 website report?

2005-10-12 Thread Jeff Shell
Why is WYSIWYG so important? Who's going to be editing all of that? I don't want another zopewiki.org. I think that zopewiki.org is a good site and that there should be an area of the site that's like that which may be open to the world - but I'd like serious / fun / USABLE documentation to be sepa

Re: [Zope3-dev] fssync and export/import for Zope 3

2005-10-11 Thread Jeff Shell
YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES OH GOD YES! I mean. Yes! Backup/restore, and deploy. We're deploying a customers site in chunks - one section, then another, then a third. It's content that's being migrated off of Zope 2. The other developer here was complaining about ha

Re: [Zope3-dev] Why I posted about Zope3.org (the outsider's thoughts that got me thinking)

2005-10-11 Thread Jeff Shell
On 10/11/05, Stephan Richter <[EMAIL PROTECTED]> wrote: > On Tuesday 11 October 2005 13:24, Jeff Shell wrote: > > Personally, I really like the Z3ECM project site - z3lab.org. It has a > > combination of blogs, papers, demos (animations) and documentation. > > That'

Re: [Zope3-dev] Why I posted about Zope3.org (the outsider's thoughts that got me thinking)

2005-10-11 Thread Jeff Shell
On 10/11/05, Stephan Richter <[EMAIL PROTECTED]> wrote: > On Tuesday 11 October 2005 13:24, Jeff Shell wrote: > > I'd really like to give Zope 3 a try, and I keep trying to. The docs > > are just nauseating. They might look good or fine to someone who's > > us

[Zope3-dev] Why I posted about Zope3.org (the outsider's thoughts that got me thinking)

2005-10-11 Thread Jeff Shell
ishing them on the web. Or a shorter path between writing some plain old Python code and seeing a result. I need to read more of the other thread about this. I just know that there's some debate of whether Zope 3 should be a part of the Zope.org site. I'm for having it be

Re: [Zope3-dev] Z-I with GCC 4

2005-07-19 Thread Jeff Shell
Zope 3.0 doesn't seem to work with GCC 4, as I (and others) have had the same problem. On my system (Mac OS X 10.4), GCC 3.3 is also available, and I was able to use 'gcc_select' to switch to 3.3 to build Zope 3.0. If you have, or can get, both gcc's on your system, this appears to be the best rout

Re: [Zope3-dev] KeywordIndex

2005-07-18 Thread Jeff Shell
Is what's there right now going to be what ships with Zope 3.1 final? On 7/18/05, Gary Poster <[EMAIL PROTECTED]> wrote: > > On Jul 18, 2005, at 11:14 AM, Jeff Shell wrote: > > > I'm working on a simple application which is the first time I get to > > use the

[Zope3-dev] KeywordIndex

2005-07-18 Thread Jeff Shell
cation. I can throw together my own, I'm sure, that's a bit more brute force for my own purposes if necessary. I don't claim to have a solid understanding of how indexes and the catalog work (although it's been much easier to figure out